Closed digitalm closed 10 years ago
Ok thanks for feedback.. will look into it with 1.9.3... ... maybe a ruby vs jruby issue as the following worked fine for me just now with JRuby - Gemfile as per :
gem 'rails', '4.0.5'
gem 'spree', '~> 2.2.2'
gem 'datashift' gem 'datashift_spree'
OUT: testbed>bundle exec thor list
thor datashift:export:csv -m, --model=MODEL -r, --result=RESULT ... thor datashift:export:db -r, --result=RESULT ... thor datashift:export:excel -m, --model=MODEL -r, --result=RESULT ... thor datashift:generate:csv -m, --model=MODEL -r, --result=RESULT ... thor datashift:generate:db -r, --result=RESULT ... thor datashift:generate:excel -m, --model=MODEL -r, --result=RESULT ... thor datashift:import:csv -i, --input=INPUT -m, --model=MODEL ... thor datashift:import:excel -i, --input=INPUT -m, --model=MODEL ... thor datashift:paperclip:attach -a, --attachment-klass=ATTACHMENT_KLASS -f, -... thor datashift:tools:zip -o, --output=OUTPUT -p, --path=PATH ... thor datashift:tools:zip_matching -p, --path=PATH -r, --results=RESULTS ...
Thanks for your reply Tom. I've completely missed that it was made of JRuby. Now got it. I thought your datashift may the best solution for our dev team since going to several extensions from now on , though.. Especially the importing needs more less-maintainability.
Reports. I've found it works under ver '0.13.0' on Ruby 1.9.3.
gem 'spree', '2.1.4'
# gem 'datashift', '~> 0.14.0'
gem 'datashift', '~> 0.13.0'
gem 'datashift_spree'
bundle exec thor list datashift
datashift
---------
thor datashift:export:csv -m, --model=MODEL -r, --result=RESULT # export...
thor datashift:export:excel -m, --model=MODEL -r, --result=RESULT # export...
thor datashift:generate:csv -m, --model=MODEL -r, --result=RESULT # genera...
thor datashift:generate:excel -m, --model=MODEL -r, --result=RESULT # genera...
thor datashift:import:csv -i, --input=INPUT -m, --model=MODEL # import...
thor datashift:import:excel -i, --input=INPUT -m, --model=MODEL # import...
thor datashift:paperclip:attach -a, --attachment-klass=ATTACHMENT_KLASS -f, --attach-to-field=ATTACH_TO_FIELD -i, --input=INPUT -k, --attach-to-klass=ATTACH_TO_KLASS -l, --attach-to-find-by-field=ATTACH_TO_FIND_BY_FIELD # Create...
thor datashift:tools:zip -o, --output=OUTPUT -p, --path=PATH # Create...
thor datashift:tools:zip_matching -p, --path=PATH -r, --results=RESULTS # Create...
datashift_spree
---------------
thor datashift_spree:data_bank:uk_shipping:counties # Setup UK Counties (Spree::State)
thor datashift_spree:data_bank:uk_shipping:royal_mail # Setup Royal Mail Zones, Shipping Categories and Methods Available Calculators are: Spree::Calculator::Shipping::FlatPercentItemTotal Spree::Calculator::Shipping::FlatRa...
thor datashift_spree:load:attach_images -i, --input=INPUT # Populate Products with images from Excel/CSV Provide column SKU or Name Column containing full path to image can be named 'attachment', 'images' or 'path'
thor datashift_spree:load:images -i, --input=INPUT # Populate the DB with images from a directory The image name, must contain the Product Sku somewhere within it. N.B Currently only lookup on SKU available - more flexabi...
thor datashift_spree:load:products -i, --input=INPUT # Populate Spree Product/Variant data from .xls (Excel) or CSV file
thor datashift_spree:reports:no_image # Spree Products without an image
thor datashift_spree:utils:cleanup # Remove Spree Product/Variant data from DB
Thank you @digitalm its also working for me (Ruby 2.1 and gem 'datashift', '~> 0.13.0'
)
Hi @tailic and no problem. This is current-master's branch which I forked to simply avoid this error on my ruby1.9.4 / rails4.0.4. I added only 4 lines and works fine on 1.9.4. please try if you like .
https://github.com/digitalm/datashift/tree/init4cRubyProto gem 'datashift', github: 'digitalm/datashift', branch: 'init4cRubyProto'
Lots of changes commited recently for Rails 4 and rspec 3 .... be great if people could use git hub code and help iron out any issues before I package and release new gems
thanks tom
Sent from Yahoo Mail on Android
hi Tom
I just have installed datashift and datashift_spree from rubygems with Spree 2-1-stable. and created mysite.thor as README.
When command "bundle exec thor list datashift" , got uninitialized constant. Is there a way to fix this?
In addition , github repo cannot be installed currently.
Just for information : Rails 4.0.2 / ruby 1.9.3p484
Best regards, Mika