autotelik / datashift

Full Excel/CSV Import/Export facilities for Rails
http://www.autotelik.co.uk
Other
136 stars 75 forks source link

NameError: uninitialized constant DataShift::LoaderBase::Forwardable #51

Closed flyfy1 closed 7 years ago

flyfy1 commented 7 years ago

Version: current latest on RubyGems, 0.40.0

Script:

require 'thor'
require 'datashift'

Error Message:

Problem initializing gem #<NameError: uninitialized constant DataShift::LoaderBase::Forwardable>
Problem loading datashift file /Users/songyy/.rvm/gems/ruby-2.3.1/gems/datashift-0.40.0/lib/exporters/csv_exporter.rb - #<NameError: uninitialized constant DataShift::ExporterBase
Did you mean?  DataShift::Exporters>
Problem loading datashift file /Users/songyy/.rvm/gems/ruby-2.3.1/gems/datashift-0.40.0/lib/exporters/excel_exporter.rb - #<NameError: uninitialized constant DataShift::ExporterBase
Did you mean?  DataShift::Exporters>
autotelik commented 7 years ago

Strange I don't see this, maybe a path load issue, I'm on Ubuntu

I will add a specific require to LoaderBase

for time being adding require 'forwardable' at top of your script should resolve this

flyfy1 commented 7 years ago

Thx @autotelik . The issue seems to be resolved after version 0.40.1

autotelik commented 7 years ago

great, thanks for the feedback