Not compatible with latest stable (Spree-3.0.4)
Opened this issue · 8 comments
When i run : $ bundle install
Updating git://github.com/spree-contrib/spree_drop_ship.git
Fetching gem metadata from https://rubygems.org/.............
Fetching version metadata from https://rubygems.org/...
Fetching dependency metadata from https://rubygems.org/..
Resolving dependencies...
Bundler could not find compatible versions for gem "spree_core":
In snapshot (Gemfile.lock):
spree_core (= 3.0.4)
In Gemfile:
spree_core (~> 3.0.0) ruby
spree_core (~> 3.0.0) ruby
spree_drop_ship (>= 0) ruby depends on
spree_core (~> 3.1.0.beta) ruby
Running `bundle update` will rebuild your snapshot from scratch, using only the gems in your Gemfile, which may resolve the conflict
I tried installing latest development version using
gem 'spree', github: 'spree/spree', branch: 'master'
but this seems to fail every time.
Likewise, any input into this much appreciated.
Any news on this?
i am too having same problem
Anyone got this working? I am too having same issue
I changed versions to 3-0 stable and its working now. not really a fix but enough to move ahead.
changes in Gem file:
gem 'spree', '3.0.4'
gem 'spree_gateway', github: 'spree/spree_gateway', branch: '3-0-stable'
gem 'spree_auth_devise', github: 'spree/spree_auth_devise', branch: '3-0-stable'
gem 'spree_drop_ship', github: 'spree-contrib/spree_drop_ship', branch: '3-0-stable'
hope that help :)
Hi Abhinay, thanks for reply, I could install the spree_drop_ship using branch 3-0-stable as you mentioned. However, when I click on shipments in the admin, it's throwing an error
NoMethodError in Spree::Admin::Shipments#index
Showing /home/ec2-user/.bundler/ruby/2.2.0/spree_drop_ship-da697b311997/app/views/spree/admin/shipments/index.html.erb where line #39 raised:
undefined method `state_eq' for #<Ransack::Search:0x00000007a94708>
Can you help me with this?
sorry for asking, but I am new to rails and this is really making me pull hairs out.
Hey Mahendra,
I had a similar issue . just comment the line no. 39 in the file:
home/ec2-user/.bundler/ruby/2.2.0/spree_drop_ship-da697b311997/app/views/spree/admin/shipments/index.html.erb
like this:
<div class="col-md-4">
<div class="form-group">
<%= label_tag nil, Spree.t(:status) %><br/>
<%#= f.select :state_eq, Spree::Shipment.state_machines[:state].states.collect {|s| [Spree.t("shipment_state.#{s.name}"), s.value]}, {:include_blank => true}, :class => 'select2' %>
</div>
</div>
Should start working again. not an appropriate solution :)
Thanks for the assist her abhinaykumar. Commenting out line 39 worked for me too.