weshatheleopard / rubyXL

Ruby lib for reading/writing/modifying .xlsx and .xlsm files
MIT License
1.28k stars 255 forks source link

Parse_buffer not available #292

Closed zackyangzinc closed 6 years ago

zackyangzinc commented 6 years ago

NoMethodError (undefined method `parse_buffer' for RubyXL::Parser:Class) -- is this even defined?

weshatheleopard commented 6 years ago

No idea what you are doing, but works for me:

001 > require 'rubyXL'
 => true
002 > RubyXL::Parser.parse_buffer(File.open("test.xlsx", "rb").read)
hquick81 commented 6 years ago

I have the same problem. When i include this gem in my rails app via

gem 'rubyXL'

I get

undefined method 'parse_buffer' for RubyXL::Parser:Class

as well.

Do i have to sepcify a version or sth. like that ?

hquick81 commented 6 years ago

I seems that the gem that is being downloaded by default is another version (3.1.0):

Using rubyXL 3.3.29 (was 3.1.0) from https://github.com/weshatheleopard/rubyXL.git (at master@74b4717)

I had to define it like that:

gem 'rubyXL', '3.3.29'