DynamoMTL / spree_chimpy

Spree/MailChimp Integration
BSD 3-Clause "New" or "Revised" License
35 stars 123 forks source link

Bundler fails to install on spree-3.0.0 stable #60

Closed paquettej closed 9 years ago

paquettej commented 9 years ago

Using rails 4.2, spree 3.0, I cannot install spree_chimpy

Relevent portion of my Gemfile

gem 'spree', '3.0.0'
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_static_content', github: 'spree/spree_static_content', branch: '3-0-stable'
gem 'spree_chimpy', github: 'DynamoMTL/spree_chimpy', branch: 'master'
gem "spree_comments", github: 'spree/spree_comments', branch: '3-0-stable'
Andromeda:handmade Jeff$ bundle
Updating git://github.com/DynamoMTL/spree_chimpy.git
Fetching gem metadata from https://rubygems.org/........
Fetching additional 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.0)

  In Gemfile:
    spree_chimpy (>= 0) ruby depends on
      spree_core (~> 2.1) ruby

Running `bundle update` will rebuild your snapshot from scratch, using only
the gems in your Gemfile, which may resolve the conflict.

Andromeda:handmade Jeff$ bundle update
Updating git://github.com/spree/spree_gateway.git
Updating git://github.com/spree/spree_auth_devise.git
Updating git://github.com/spree/spree_static_content.git
Updating git://github.com/DynamoMTL/spree_chimpy.git
Updating git://github.com/spree/spree_comments.git
Fetching gem metadata from https://rubygems.org/........
Fetching additional metadata from https://rubygems.org/..
Resolving dependencies...
Bundler could not find compatible versions for gem "spree_core":
  In Gemfile:
    spree_chimpy (>= 0) ruby depends on
      spree_core (~> 2.1) ruby

    spree_static_content (>= 0) ruby depends on
      spree_core (3.0.0.rc3)
joshnuss commented 9 years ago

Howdy @snowmoonsoftware

Spree 3.0 is not yet supported (shouldnt be very hard to do). PR is most welcome.

With the switch to Rails 4.2, we also plan to switch to using active_job instead of depending on delayed_job and sidekiq directily

Ionut-Milas commented 9 years ago

Any time-frame or hints for supporting Spree 3.0 ?

joshnuss commented 9 years ago

No time frame yet, feel free to submit a PR, I think it shouldn't require too many changes.

braidn commented 9 years ago

Now that Spree 3.0 stable is out in the wild, I will work on it. Thank you for the stacktrace @snowmoonsoftware

joshnuss commented 9 years ago

Thanks @braidn !

braidn commented 9 years ago

Branch work started at: https://github.com/DynamoMTL/spree_chimpy/tree/3-stable This is not finished though. Very much a WIP

braidn commented 9 years ago

Still playing with this. Spree 3.0 seems to have some interesting methods attached to it's test helpers. Have a question in with their IRC/Gitter channels.

braidn commented 9 years ago

@snowmoonsoftware give this a whirl now on 3.0. All the tests are passing and so my guess is you are going to see some success!

paquettej commented 9 years ago

Thanks @braidn, I finally had a moment to give this a shot using spree_chimpy from git but I am still having issues:

Andromeda:handmade Jeff$ bundle install
Updating git://github.com/DynamoMTL/spree_chimpy.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.2.beta)

  In Gemfile:
    spree (>= 0) ruby depends on
      spree_backend (= 3.0.2.beta) ruby depends on
        spree_core (= 3.0.2.beta) ruby

    spree (>= 0) ruby depends on
      spree_backend (= 3.0.2.beta) ruby depends on
        spree_core (= 3.0.2.beta) ruby

    spree (>= 0) ruby depends on
      spree_backend (= 3.0.2.beta) ruby depends on
        spree_core (= 3.0.2.beta) ruby

    spree (>= 0) ruby depends on
      spree_backend (= 3.0.2.beta) ruby depends on
        spree_core (= 3.0.2.beta) ruby

    spree (>= 0) ruby depends on
      spree_backend (= 3.0.2.beta) ruby depends on
        spree_core (= 3.0.2.beta) ruby

    spree_comments (>= 0) ruby depends on
      spree_core (~> 3.0.0) ruby

    spree_chimpy (>= 0) ruby depends on
      spree_core (~> 2.1) ruby

Running `bundle update` will rebuild your snapshot from scratch, using only
the gems in your Gemfile, which may resolve the conflict.
Andromeda:handmade Jeff$ bundle update
Updating git://github.com/spree/spree.git
Updating https://github.com/spree/spree_gateway.git
Updating https://github.com/spree/spree_auth_devise.git
Updating git://github.com/spree/spree_static_content.git
Updating git://github.com/DynamoMTL/spree_chimpy.git
Updating git://github.com/spree/spree_comments.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 Gemfile:
    spree (>= 0) ruby depends on
      spree_frontend (= 3.0.2.beta) ruby depends on
        spree_core (= 3.0.2.beta) ruby

    spree (>= 0) ruby depends on
      spree_frontend (= 3.0.2.beta) ruby depends on
        spree_core (= 3.0.2.beta) ruby

    spree (>= 0) ruby depends on
      spree_frontend (= 3.0.2.beta) ruby depends on
        spree_core (= 3.0.2.beta) ruby

    spree (>= 0) ruby depends on
      spree_frontend (= 3.0.2.beta) ruby depends on
        spree_core (= 3.0.2.beta) ruby

    spree (>= 0) ruby depends on
      spree_frontend (= 3.0.2.beta) ruby depends on
        spree_core (= 3.0.2.beta) ruby

    spree_chimpy (>= 0) ruby depends on
      spree_core (~> 2.1) ruby
braidn commented 9 years ago

@snowmoonsoftware do you mind pasting or linking a gist showing your Gemfile where you are defining the spree_chimpy gem? I have a feeling I know the problem, just need to see the Gemfile so I don't set you on a wild goose chase.

paquettej commented 9 years ago

My Gemfile:

# Build JSON APIs with ease. Read more: https://github.com/rails/jbuilder
#gem 'jbuilder', '~> 1.2'

# secure app configuration
gem 'figaro'

group :doc do
  # bundle exec rake doc:rails generates the API under doc/api.
  gem 'sdoc', require: false
end

# fixes undefined method `assume_from_symbol' for Money:Class
#gem 'money', '=6.0.1'

# Use ActiveModel has_secure_password
# gem 'bcrypt', '~> 3.1.7'

# Use unicorn as the app server
# gem 'unicorn'

# Use Capistrano for deployment
# gem 'capistrano', group: :development

# Use debugger
# gem 'debugger', group: [:development, :test]

gem 'spree', github: 'spree/spree', branch: '3-0-stable'
gem 'spree_gateway', :git => 'https://github.com/spree/spree_gateway.git', branch: '3-0-stable'
gem 'spree_auth_devise', :git => 'https://github.com/spree/spree_auth_devise.git', branch: '3-0-stable'
gem 'spree_static_content', github: 'spree/spree_static_content', branch: '3-0-stable'
gem 'spree_chimpy', github: 'DynamoMTL/spree_chimpy', branch: 'master'
#gem 'spree_dynamic_sitemaps', github: 'romul/spree_dynamic_sitemaps'
#gem 'spree_favorite_products'
gem 'spree_comments', github: 'spree/spree_comments', branch: '3-0-stable'
#gem 'spree_editor', github: 'spree/spree_editor', branch: '3-0-stable'

group :development do
  gem 'capistrano', '~> 3.2.0'
  gem 'capistrano-rails', '~> 1.0.0'
  gem 'capistrano-bundler', '~> 1.1.2'
  gem 'rvm1-capistrano3', require: false
end
braidn commented 9 years ago

@snowmoonsoftware let's change the spree_chimpy branch to 3-stable and re bundle. Should be golden on that new branch

paquettej commented 9 years ago

That did it, thanks! I had tried 3-0-stable but of course that branch didn't exist. Thanks for your help!

braidn commented 9 years ago

Most welcome! Closing for this issue for now! Glad we can support everyone on the Spree bleeding edge