Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Not compatible with latest stable (Spree-3.0.4) #71

Open
abhinaykumar opened this issue Sep 8, 2015 · 8 comments
Open

Not compatible with latest stable (Spree-3.0.4) #71

abhinaykumar opened this issue Sep 8, 2015 · 8 comments

Comments

@abhinaykumar
Copy link

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.

@FutureShocker
Copy link

Likewise, any input into this much appreciated.

@avishai
Copy link

avishai commented Oct 10, 2015

Any news on this?

@samappachan
Copy link

i am too having same problem

@lmahendra
Copy link

Anyone got this working? I am too having same issue

@abhinaykumar
Copy link
Author

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 :)

@lmahendra
Copy link

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.

@abhinaykumar
Copy link
Author

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 :)

@illustriam
Copy link

Thanks for the assist her abhinaykumar. Commenting out line 39 worked for me too.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

6 participants