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

Gems issue #48

Closed
omarsve opened this issue Jan 22, 2013 · 6 comments
Closed

Gems issue #48

omarsve opened this issue Jan 22, 2013 · 6 comments

Comments

@omarsve
Copy link

omarsve commented Jan 22, 2013

Hi, i have a little problem

When i try using the branch 'master' i get this error
uninitialized constant Spree::Core::ControllerHelpers::Order /Users/omarsve/.rvm/gems/ruby-1.9.3-p194/bundler/gems/spree_auth_devise-53b5d2e934a7/app/helpers/spree/current_order_decorator.rb:1:in <top (required)>'
/Users/omarsve/.rvm/gems/ruby-1.9.3-p194/bundler/gems/spree_auth_devise-53b5d2e934a7/lib/spree/auth/engine.rb:13:in block in activate' /Users/omarsve/.rvm/gems/ruby-1.9.3-p194/bundler/gems/spree_auth_devise-53b5d2e934a7/lib/spree/auth/engine.rb:12:in glob'
/Users/omarsve/.rvm/gems/ruby-1.9.3-p194/bundler/gems/spree_auth_devise-53b5d2e934a7/lib/spree/auth/engine.rb:12:in activate' /Users/omarsve/.rvm/gems/ruby-1.9.3-p194/gems/activesupport-3.2.8/lib/active_support/callbacks.rb:495:in _run__2503917921596617891__prepare__403513826735000885__callbacks'
/Users/omarsve/.rvm/gems/ruby-1.9.3-p194/gems/activesupport-3.2.8/lib/active_support/callbacks.rb:405:in __run_callback' /Users/omarsve/.rvm/gems/ruby-1.9.3-p194/gems/activesupport-3.2.8/lib/active_support/callbacks.rb:385:in _run_prepare_callbacks'
/Users/omarsve/.rvm/gems/ruby-1.9.3-p194/gems/activesupport-3.2.8/lib/active_support/callbacks.rb:81:in run_callbacks' /Users/omarsve/.rvm/gems/ruby-1.9.3-p194/gems/actionpack-3.2.8/lib/action_dispatch/middleware/reloader.rb:74:in prepare!'
/Users/omarsve/.rvm/gems/ruby-1.9.3-p194/gems/actionpack-3.2.8/lib/action_dispatch/middleware/reloader.rb:48:in prepare!' /Users/omarsve/.rvm/gems/ruby-1.9.3-p194/gems/railties-3.2.8/lib/rails/application/finisher.rb:47:in block in module:Finisher'
/Users/omarsve/.rvm/gems/ruby-1.9.3-p194/gems/railties-3.2.8/lib/rails/initializable.rb:30:in instance_exec' /Users/omarsve/.rvm/gems/ruby-1.9.3-p194/gems/railties-3.2.8/lib/rails/initializable.rb:30:in run'
/Users/omarsve/.rvm/gems/ruby-1.9.3-p194/gems/railties-3.2.8/lib/rails/initializable.rb:55:in block in run_initializers' /Users/omarsve/.rvm/gems/ruby-1.9.3-p194/gems/railties-3.2.8/lib/rails/initializable.rb:54:in each'
/Users/omarsve/.rvm/gems/ruby-1.9.3-p194/gems/railties-3.2.8/lib/rails/initializable.rb:54:in run_initializers' /Users/omarsve/.rvm/gems/ruby-1.9.3-p194/gems/railties-3.2.8/lib/rails/application.rb:136:in nitialize!'
/Users/omarsve/.rvm/gems/ruby-1.9.3-p194/gems/railties-3.2.8/lib/rails/railtie/configurable.rb:30:in method_missing' /Users/omarsve/projects/shopping-spree/store/config/environment.rb:5:in <top (required)>'
/Users/omarsve/.rvm/gems/ruby-1.9.3-p194/gems/polyglot-0.3.3/lib/polyglot.rb:63:in ()require' /Users/omarsve/.rvm/gems/ruby-1.9.3-p194/gems/polyglot-0.3.3/lib/polyglot.rb:63:in ()require'
/Users/omarsve/.rvm/gems/ruby-1.9.3-p194/gems/railties-3.2.8/lib/rails/application.rb:103:in require_environment!' /Users/omarsve/.rvm/gems/ruby-1.9.3-p194/gems/railties-3.2.8/lib/rails/application.rb:295:in block (2 levels) in initialize_tasks'
Tasks: TOP => db:migrate => environment
(See full trace by running task with --trace)`

Your documentation said that this could be fixed using the branch '1-2-stable' but when i use that branch i get this error trying to run the bundle install

  In snapshot (Gemfile.lock):
    devise (2.1.2)

  In Gemfile:
    spree_auth_devise (>= 0) ruby depends on
      devise (~> 2.0.4) ruby

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

Your documentation also says that this could be fixed using the 'edge' branch but when i use this branch i get this error trying to run the bundle install

```Bundler could not find compatible versions for gem "cancan":
  In snapshot (Gemfile.lock):
    cancan (1.6.7)

  In Gemfile:
    spree_auth_devise (>= 0) ruby depends on
      cancan (= 1.6.8) ruby

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

So wich branch should i use or how can i fix this error?
@radar
Copy link
Contributor

radar commented Jan 22, 2013

Which version of Spree are you using? If you're using 1.2, please use the 1-2-stable branch of spree_auth_devise and run bundle update as it advises.

Thanks!

@radar radar closed this as completed Jan 22, 2013
@omarsve
Copy link
Author

omarsve commented Jan 22, 2013

Sorry i forgot that part, I use 1.2 but when i run bundle update i get this error:

Bundler could not find compatible versions for gem "devise":
In Gemfile:
devise-encryptable (>= 0) ruby depends on
devise (~> 2.1) ruby

spree_auth_devise (>= 0) ruby depends on
  devise (2.0.4)

@radar
Copy link
Contributor

radar commented Jan 22, 2013

Could you please show me your Gemfile?

On Wed, Jan 23, 2013 at 10:25 AM, Omar Salas Vega
notifications@github.comwrote:

Sorry i forgot that part, I use 1.2 but when i run bundle update i get
this error:

Bundler could not find compatible versions for gem "devise":
In Gemfile:
devise-encryptable (>= 0) ruby depends on
devise (~> 2.1) ruby

spree_auth_devise (>= 0) ruby depends on
devise (2.0.4)


Reply to this email directly or view it on GitHubhttps://github.com//issues/48#issuecomment-12572887.

@omarsve
Copy link
Author

omarsve commented Jan 22, 2013

source 'https://rubygems.org'

gem 'rails', '3.2.8'

Bundle edge Rails instead:

gem 'rails', :git => 'git://github.com/rails/rails.git'

gem 'mysql2'
gem 'formtastic-bootstrap', git: 'https://github.com/mjbellantoni/formtastic-bootstrap.git'

Gems used only for assets and not required

in production environments by default.

group :assets do
gem 'sass-rails', '> 3.2.3'
gem 'compass-rails'
gem 'bootstrap-sass', '
> 2.1.0'
gem 'coffee-rails', '~> 3.2.1'

See https://github.com/sstephenson/execjs#readme for more supported runtimes

gem 'therubyracer', :platforms => :ruby
gem 'libv8', '~> 3.11.8'

gem 'uglifier', '>= 1.0.3'
gem 'jquery-datatables-rails', :git => 'git://github.com/rweng/jquery-datatables-rails'
end

gem 'jquery-rails'
gem 'farbtastic-rails'
gem 'bluecloth'

To use ActiveModel has_secure_password

gem 'bcrypt-ruby', '~> 3.0.0'

To use Jbuilder templates for JSON

gem 'jbuilder'

Use unicorn as the app server

gem 'unicorn'

Deploy with Capistrano

gem ''

To use debugger

gem 'debugger'

gem 'spree', '1.2.0'
gem 'spree_auth_devise', :git => 'git://github.com/spree/spree_auth_devise', :branch => '1-2-stable'
gem 'spree_shopping_extension', :path => '../spree_shopping_extension'
gem 'spree_basic_theme', :path => '../themes/spree_basic'
gem 'devise-encryptable'
gem 'spree_i18n', :git => 'git://github.com/spree/spree_i18n.git', :branch => '1-0-stable'
gem 'spree_paypal_express', :git => 'git://github.com/spree/spree_paypal_express.git', :branch => '1-2-stable'

@radar
Copy link
Contributor

radar commented Jan 22, 2013

This line is the culprit:

gem 'devise-encryptable'

The 1-2-stable version of spree_auth_devise uses an older Devise version, which doesn't need this gem installed. Remove that line and you should be good to go.

@omarsve
Copy link
Author

omarsve commented Jan 22, 2013

That worked great, thank you.

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

2 participants