Redmine can't generate secret token - ruby

I have problem with generating secret token.
I'm was trying this:
[redmine]# rake generate_secret_token rake aborted! LoadError: cannot
load such file -- rspec/core
/usr/local/rvm/gems/ruby-1.9.3-p551/gems/activesupport-3.2.19/lib/active_support/dependencies.rb:251:in
require'
/usr/local/rvm/gems/ruby-1.9.3-p551/gems/activesupport-3.2.19/lib/active_support/dependencies.rb:251:in
block in require'
/usr/local/rvm/gems/ruby-1.9.3-p551/gems/activesupport-3.2.19/lib/active_support/dependencies.rb:236:in
load_dependency'
/usr/local/rvm/gems/ruby-1.9.3-p551/gems/activesupport-3.2.19/lib/active_support/dependencies.rb:251:in
require'
/redmine/plugins/easyproject/easy_plugins/easy_extensions/lib/tasks/tests.rake:3:in
<top (required)>'
/usr/local/rvm/gems/ruby-1.9.3-p551/gems/activesupport-3.2.19/lib/active_support/dependencies.rb:245:in
load'
/usr/local/rvm/gems/ruby-1.9.3-p551/gems/activesupport-3.2.19/lib/active_support/dependencies.rb:245:in
block in load'
/usr/local/rvm/gems/ruby-1.9.3-p551/gems/activesupport-3.2.19/lib/active_support/dependencies.rb:236:in
load_dependency'
/usr/local/rvm/gems/ruby-1.9.3-p551/gems/activesupport-3.2.19/lib/active_support/dependencies.rb:245:in
load'
/redmine/plugins/easyproject/lib/tasks/easyproject.rake:1:in
block in '
/redmine/plugins/easyproject/lib/tasks/easyproject.rake:1:in
each'
/redmine/plugins/easyproject/lib/tasks/easyproject.rake:1:in
'
/usr/local/rvm/gems/ruby-1.9.3-p551/gems/activesupport-3.2.19/lib/active_support/dependencies.rb:245:in
load'
/usr/local/rvm/gems/ruby-1.9.3-p551/gems/activesupport-3.2.19/lib/active_support/dependencies.rb:245:in
block in load'
/usr/local/rvm/gems/ruby-1.9.3-p551/gems/activesupport-3.2.19/lib/active_support/dependencies.rb:236:in
load_dependency'
/usr/local/rvm/gems/ruby-1.9.3-p551/gems/activesupport-3.2.19/lib/active_support/dependencies.rb:245:in
load' /redmine/lib/tasks/redmine.rake:179:in block
in <top (required)>'
/redmine/lib/tasks/redmine.rake:179:ineach'
/redmine/lib/tasks/redmine.rake:179:in <top
(required)>'
/usr/local/rvm/gems/ruby-1.9.3-p551/gems/activesupport-3.2.19/lib/active_support/dependencies.rb:245:in
load'
/usr/local/rvm/gems/ruby-1.9.3-p551/gems/activesupport-3.2.19/lib/active_support/dependencies.rb:245:in
block in load'
/usr/local/rvm/gems/ruby-1.9.3-p551/gems/activesupport-3.2.19/lib/active_support/dependencies.rb:236:in
load_dependency'
/usr/local/rvm/gems/ruby-1.9.3-p551/gems/activesupport-3.2.19/lib/active_support/dependencies.rb:245:in
load'
/usr/local/rvm/gems/ruby-1.9.3-p551/gems/railties-3.2.19/lib/rails/engine.rb:425:in
block in load_tasks'
/usr/local/rvm/gems/ruby-1.9.3-p551/gems/railties-3.2.19/lib/rails/engine.rb:425:in
each'
/usr/local/rvm/gems/ruby-1.9.3-p551/gems/railties-3.2.19/lib/rails/engine.rb:425:in
load_tasks'
/usr/local/rvm/gems/ruby-1.9.3-p551/gems/railties-3.2.19/lib/rails/application.rb:145:in
load_tasks'
/usr/local/rvm/gems/ruby-1.9.3-p551/gems/railties-3.2.19/lib/rails/railtie/configurable.rb:30:in
method_missing' /redmine/Rakefile:7:in <top
(required)>'
/usr/local/rvm/gems/ruby-1.9.3-p551/bin/ruby_executable_hooks:15:in
eval'
/usr/local/rvm/gems/ruby-1.9.3-p551/bin/ruby_executable_hooks:15:in
`' (See full trace by running task with --trace)
With adding before "bundle exec" errors are same.
Gem list:
> [redmine]# gem list | grep rspec
rspec (3.1.0)
rspec-core (3.1.7)
>rspec-expectations (3.1.2)
rspec-mocks (3.1.3)
rspec-support (3.1.2)
> [redmine]# gem list | grep core
core (0.0.6)
rspec-core (3.1.7)
Anyone can help?

Something is looking for rspec. But you don't have it in your Gemfile, which is why rake cannot find it (nor bundler). It appears to be installed, so just add it to your Gemfile , then bundle and you should be all set.
As it looks like a rails project, adding this and then running bundle should be all set you need.
group :development, :test do
gem 'rspec-rails', '~> 3.0'
end
Rails only uses the gems specified in your bundle.

Related

ruby on rails upgrade asset precompilation failure

I have a rails 4.2 application I am in the process of upgrading from 3.2. Something is going wrong with asset precomiplation but I'm not sure what I am missing.
#Gemfile
gem 'rails', '~> 4.2.7.1'
ruby "2.3.3"
gem 'jquery-rails', '2.1.4'
gem 'jquery-ui-rails', '4.2.1'
gem 'activeadmin'
gem 'sprockets-rails', '2.3.3
Here is the active_admin.js
//= require jquery
//= require jquery_ujs
//= require jquery-ui
//= require select2
//= require active_admin/base
//= require best_in_place
//= require best_in_place.jquery-ui
//= require activeadmin-sortable
The asset precompilation fails here
$ bundle exec rake assets:precompile
I, [2018-02-28T10:58:20.467128 #6312] INFO -- : Writing /home/nellis/src/circle2/public/assets/style-6150d2089bcada194fcfda8d38d0046cadfe7a754b6b477226d1b701cda7e197.css.gz
rake aborted!
Sprockets::FileNotFound: couldn't find file 'jquery_ujs' with type 'application/javascript'
Checked in these paths:
/home/nellis/src/circle2/app/assets/fonts
/home/nellis/src/circle2/app/assets/images
/home/nellis/src/circle2/app/assets/javascripts
/home/nellis/src/circle2/app/assets/stylesheets
/home/nellis/src/circle2/vendor/assets/javascripts
/home/nellis/src/circle2/vendor/assets/stylesheets
/home/nellis/src/circle2/public/vendor
/home/nellis/src/circle2/app/assets/javascripts/active_admin.js:2
/home/nellis/.rvm/gems/ruby-2.3.3/gems/sprockets-3.7.1/lib/sprockets/resolve.rb:65:in `resolve!'
/home/nellis/.rvm/gems/ruby-2.3.3/gems/sprockets-3.7.1/lib/sprockets/directive_processor.rb:399:in `resolve'
/home/nellis/.rvm/gems/ruby-2.3.3/gems/sprockets-3.7.1/lib/sprockets/directive_processor.rb:207:in `process_require_directive'
/home/nellis/.rvm/gems/ruby-2.3.3/gems/sprockets-3.7.1/lib/sprockets/directive_processor.rb:180:in `block in process_directives'
/home/nellis/.rvm/gems/ruby-2.3.3/gems/sprockets-3.7.1/lib/sprockets/directive_processor.rb:178:in `each'
/home/nellis/.rvm/gems/ruby-2.3.3/gems/sprockets-3.7.1/lib/sprockets/directive_processor.rb:178:in `process_directives'
/home/nellis/.rvm/gems/ruby-2.3.3/gems/sprockets-3.7.1/lib/sprockets/directive_processor.rb:83:in `_call'
/home/nellis/.rvm/gems/ruby-2.3.3/gems/sprockets-3.7.1/lib/sprockets/directive_processor.rb:68:in `call'
/home/nellis/.rvm/gems/ruby-2.3.3/gems/sprockets-3.7.1/lib/sprockets/processor_utils.rb:75:in `call_processor'
/home/nellis/.rvm/gems/ruby-2.3.3/gems/sprockets-3.7.1/lib/sprockets/processor_utils.rb:57:in `block in call_processors'
/home/nellis/.rvm/gems/ruby-2.3.3/gems/sprockets-3.7.1/lib/sprockets/processor_utils.rb:56:in `reverse_each'
/home/nellis/.rvm/gems/ruby-2.3.3/gems/sprockets-3.7.1/lib/sprockets/processor_utils.rb:56:in `call_processors'
/home/nellis/.rvm/gems/ruby-2.3.3/gems/sprockets-3.7.1/lib/sprockets/loader.rb:134:in `load_from_unloaded'
/home/nellis/.rvm/gems/ruby-2.3.3/gems/sprockets-3.7.1/lib/sprockets/loader.rb:60:in `block in load'
/home/nellis/.rvm/gems/ruby-2.3.3/gems/sprockets-3.7.1/lib/sprockets/loader.rb:317:in `fetch_asset_from_dependency_cache'
/home/nellis/.rvm/gems/ruby-2.3.3/gems/sprockets-3.7.1/lib/sprockets/loader.rb:44:in `load'
/home/nellis/.rvm/gems/ruby-2.3.3/gems/sprockets-3.7.1/lib/sprockets/cached_environment.rb:20:in `block in initialize'
/home/nellis/.rvm/gems/ruby-2.3.3/gems/sprockets-3.7.1/lib/sprockets/cached_environment.rb:47:in `load'
/home/nellis/.rvm/gems/ruby-2.3.3/gems/sprockets-3.7.1/lib/sprockets/bundle.rb:23:in `block in call'
/home/nellis/.rvm/gems/ruby-2.3.3/gems/sprockets-3.7.1/lib/sprockets/utils.rb:200:in `dfs'
/home/nellis/.rvm/gems/ruby-2.3.3/gems/sprockets-3.7.1/lib/sprockets/bundle.rb:24:in `call'
/home/nellis/.rvm/gems/ruby-2.3.3/gems/sprockets-3.7.1/lib/sprockets/processor_utils.rb:75:in `call_processor'
/home/nellis/.rvm/gems/ruby-2.3.3/gems/sprockets-3.7.1/lib/sprockets/processor_utils.rb:57:in `block in call_processors'
/home/nellis/.rvm/gems/ruby-2.3.3/gems/sprockets-3.7.1/lib/sprockets/processor_utils.rb:56:in `reverse_each'
/home/nellis/.rvm/gems/ruby-2.3.3/gems/sprockets-3.7.1/lib/sprockets/processor_utils.rb:56:in `call_processors'
/home/nellis/.rvm/gems/ruby-2.3.3/gems/sprockets-3.7.1/lib/sprockets/loader.rb:134:in `load_from_unloaded'
/home/nellis/.rvm/gems/ruby-2.3.3/gems/sprockets-3.7.1/lib/sprockets/loader.rb:60:in `block in load'
/home/nellis/.rvm/gems/ruby-2.3.3/gems/sprockets-3.7.1/lib/sprockets/loader.rb:317:in `fetch_asset_from_dependency_cache'
/home/nellis/.rvm/gems/ruby-2.3.3/gems/sprockets-3.7.1/lib/sprockets/loader.rb:44:in `load'
/home/nellis/.rvm/gems/ruby-2.3.3/gems/sprockets-3.7.1/lib/sprockets/cached_environment.rb:20:in `block in initialize'
/home/nellis/.rvm/gems/ruby-2.3.3/gems/sprockets-3.7.1/lib/sprockets/cached_environment.rb:47:in `load'
/home/nellis/.rvm/gems/ruby-2.3.3/gems/sprockets-3.7.1/lib/sprockets/base.rb:66:in `find_asset'
/home/nellis/.rvm/gems/ruby-2.3.3/gems/sprockets-3.7.1/lib/sprockets/base.rb:73:in `find_all_linked_assets'
/home/nellis/.rvm/gems/ruby-2.3.3/gems/sprockets-3.7.1/lib/sprockets/manifest.rb:134:in `block in find'
/home/nellis/.rvm/gems/ruby-2.3.3/gems/sprockets-3.7.1/lib/sprockets/manifest.rb:133:in `each'
/home/nellis/.rvm/gems/ruby-2.3.3/gems/sprockets-3.7.1/lib/sprockets/manifest.rb:133:in `find'
/home/nellis/.rvm/gems/ruby-2.3.3/gems/sprockets-3.7.1/lib/sprockets/manifest.rb:185:in `compile'
/home/nellis/.rvm/gems/ruby-2.3.3/gems/sprockets-rails-2.3.3/lib/sprockets/rails/task.rb:70:in `block (3 levels) in define'
/home/nellis/.rvm/gems/ruby-2.3.3/gems/sprockets-3.7.1/lib/rake/sprocketstask.rb:147:in `with_logger'
/home/nellis/.rvm/gems/ruby-2.3.3/gems/sprockets-rails-2.3.3/lib/sprockets/rails/task.rb:69:in `block (2 levels) in define'
/home/nellis/.rvm/gems/ruby-2.3.3/gems/rake-12.3.0/exe/rake:27:in `<top (required)>'
/home/nellis/.rvm/gems/ruby-2.3.3/bin/ruby_executable_hooks:15:in `eval'
/home/nellis/.rvm/gems/ruby-2.3.3/bin/ruby_executable_hooks:15:in `<main>'
Tasks: TOP => assets:precompile
(See full trace by running task with --trace)
zlib(finalizer): Zlib::GzipWriter object must be closed explicitly.
zlib(finalizer): the stream was freed prematurely.
All the questions I read just say run bundle install and make sure the gems are in your Gemfile which they are.
Hard to say what's going on without knowing more about your configuration, but it might be a loading issue. jquery-rails puts the actual .js files in vendor/assets/javascripts, which might not be in your load path for whatever reason. You might try two things:
First try running the generator that comes with the gem to see if it fixes the paths in the manifest file:
rails generate jquery:install #--ui to enable jQuery UI
If that doesn't work, and don't want to upgrade jquery-rails, you might have to do something like this
//= require vendor/assets/javascripts/jquery.js
//= require vendor/assets/javascripts/jquery_ujs.js
//= require vendor/assets/javascripts/jquery-ui.js
If I were you I would upgrade

Why doesn't ruby find the 'dimensions' gem?

I am using Jekyll for quite a while now to generate my blog (source). Today, without having changed anything in the generation process, I got
[...]
jekyll build --config _config_prod.yml
Configuration file: _config_prod.yml
/home/moose/GitHub/MartinThoma.github.io/_plugins/caption_tag.rb:23:in `require': cannot load such file -- dimensions (LoadError)
from /home/moose/GitHub/MartinThoma.github.io/_plugins/caption_tag.rb:23:in `<top (required)>'
from /var/lib/gems/2.1.0/gems/jekyll-2.5.3/lib/jekyll/plugin_manager.rb:74:in `require'
from /var/lib/gems/2.1.0/gems/jekyll-2.5.3/lib/jekyll/plugin_manager.rb:74:in `block (2 levels) in require_plugin_files'
from /var/lib/gems/2.1.0/gems/jekyll-2.5.3/lib/jekyll/plugin_manager.rb:73:in `each'
from /var/lib/gems/2.1.0/gems/jekyll-2.5.3/lib/jekyll/plugin_manager.rb:73:in `block in require_plugin_files'
from /var/lib/gems/2.1.0/gems/jekyll-2.5.3/lib/jekyll/plugin_manager.rb:72:in `each'
from /var/lib/gems/2.1.0/gems/jekyll-2.5.3/lib/jekyll/plugin_manager.rb:72:in `require_plugin_files'
from /var/lib/gems/2.1.0/gems/jekyll-2.5.3/lib/jekyll/plugin_manager.rb:18:in `conscientious_require'
from /var/lib/gems/2.1.0/gems/jekyll-2.5.3/lib/jekyll/site.rb:79:in `setup'
from /var/lib/gems/2.1.0/gems/jekyll-2.5.3/lib/jekyll/site.rb:41:in `initialize'
from /var/lib/gems/2.1.0/gems/jekyll-2.5.3/lib/jekyll/commands/build.rb:29:in `new'
from /var/lib/gems/2.1.0/gems/jekyll-2.5.3/lib/jekyll/commands/build.rb:29:in `process'
from /var/lib/gems/2.1.0/gems/jekyll-2.5.3/lib/jekyll/commands/build.rb:18:in `block (2 levels) in init_with_program'
from /usr/lib/ruby/vendor_ruby/mercenary/command.rb:220:in `call'
from /usr/lib/ruby/vendor_ruby/mercenary/command.rb:220:in `block in execute'
from /usr/lib/ruby/vendor_ruby/mercenary/command.rb:220:in `each'
from /usr/lib/ruby/vendor_ruby/mercenary/command.rb:220:in `execute'
from /usr/lib/ruby/vendor_ruby/mercenary/program.rb:42:in `go'
from /usr/lib/ruby/vendor_ruby/mercenary.rb:19:in `program'
from /var/lib/gems/2.1.0/gems/jekyll-2.5.3/bin/jekyll:20:in `<top (required)>'
from /usr/local/bin/jekyll:23:in `load'
from /usr/local/bin/jekyll:23:in `<main>'
Makefile:35: recipe for target 'deploy' failed
make: *** [deploy] Error 1
I am not a Ruby developer, but I guess the problem is require 'dimensions'? However, when I execute this line in irb it only shows => true.
What is the problem and how can I fix it?
Diagnostic information
$ jekyll --version
jekyll 2.5.3
$ head -1 `which irb`
#!/usr/bin/ruby2.1
$ head -1 `which jekyll`
#!/usr/bin/ruby2.1
Executing RUBY_VERSION in irb gives => "2.1.5".
The problem was fixed by adding gem 'dimensions' to the file Gemfile. It now looks like this:
source "https://rubygems.org"
# see https://github.com/paulrobertlloyd/paulrobertlloyd.com/blob/master/Gemfile
# Guard (automates development tasks)
# Jekyll (generates static files)
gem 'jekyll'
group :jekyll_plugins do
gem 'jekyll-paginate'
gem 'dimensions'
gem 'rmagick'
end
# Rake (manages build tasks)
gem 'rake'

Spree Error: --migrate=true is not a rails project

I cannot install a spree store in my application because of this error I keep getting:
spree install
Would you like to install the default gateways? (Recommended) (yes/no) [yes] y
Would you like to install the default authentication system? (yes/no) [yes] y
Would you like to run the migrations? (yes/no) [yes] y
Would you like to load the seed data? (yes/no) [yes] n
Would you like to load the sample data? (yes/no) [yes] n
gemfile spree
gemfile spree_gateway
gemfile spree_auth_devise
run bundle install from "."
--migrate=true is not a rails project.
here is my gemfile...
source 'https://rubygems.org'
gem 'rails_12factor'
gem 'paperclip'
gem 'cancan'
gem 'devise'
gem 'therubyracer'
gem 'twitter-bootswatch-rails'
gem 'twitter-bootswatch-rails-helpers'
gem 'rails', '4.1.6'
gem 'spree_cmd'
gem 'spree', '2.3.4'
gem 'spree_gateway', :git => 'https://github.com/spree/spree_gateway.git', :branch => '2-3-stable'
gem 'spree_auth_devise', :git => 'https://github.com/spree/spree_auth_devise.git', :branch => '2-3-stable'
then, when i run the other command, rails g spree:install, this is what happens:
rails g spree:install
Would you like to install the default gateways? (Recommended) (yes/no) [yes] y
Would you like to install the default authentication system? (yes/no) [yes] y
Would you like to run the migrations? (yes/no) [yes] y
Would you like to load the seed data? (yes/no) [yes] n
Would you like to load the sample data? (yes/no) [yes] n
gemfile spree
gemfile spree_gateway
gemfile spree_auth_devise
run bundle install from "."
--migrate=true is not a rails project.
/Users/claymccullough/Desktop/cybocars/config/initializers/devise.rb:132:in `block in <top (required)>': undefined method `expire_all_remember_me_on_sign_out=' for Devise:Module (NoMethodError)
from /Users/claymccullough/.rvm/gems/ruby-2.0.0-p247/gems/devise-3.2.4/lib/devise.rb:288:in `setup'
from /Users/claymccullough/Desktop/cybocars/config/initializers/devise.rb:3:in `<top (required)>'
from /Users/claymccullough/.rvm/gems/ruby-2.0.0-p247/gems/activesupport-4.1.6/lib/active_support/dependencies.rb:241:in `load'
from /Users/claymccullough/.rvm/gems/ruby-2.0.0-p247/gems/activesupport-4.1.6/lib/active_support/dependencies.rb:241:in `block in load'
from /Users/claymccullough/.rvm/gems/ruby-2.0.0-p247/gems/activesupport-4.1.6/lib/active_support/dependencies.rb:232:in `load_dependency'
from /Users/claymccullough/.rvm/gems/ruby-2.0.0-p247/gems/activesupport-4.1.6/lib/active_support/dependencies.rb:241:in `load'
from /Users/claymccullough/.rvm/gems/ruby-2.0.0-p247/gems/railties-4.1.6/lib/rails/engine.rb:648:in `block in load_config_initializer'
from /Users/claymccullough/.rvm/gems/ruby-2.0.0-p247/gems/activesupport-4.1.6/lib/active_support/notifications.rb:161:in `instrument'
from /Users/claymccullough/.rvm/gems/ruby-2.0.0-p247/gems/railties-4.1.6/lib/rails/engine.rb:647:in `load_config_initializer'
from /Users/claymccullough/.rvm/gems/ruby-2.0.0-p247/gems/railties-4.1.6/lib/rails/engine.rb:612:in `block (2 levels) in <class:Engine>'
from /Users/claymccullough/.rvm/gems/ruby-2.0.0-p247/gems/railties-4.1.6/lib/rails/engine.rb:611:in `each'
from /Users/claymccullough/.rvm/gems/ruby-2.0.0-p247/gems/railties-4.1.6/lib/rails/engine.rb:611:in `block in <class:Engine>'
from /Users/claymccullough/.rvm/gems/ruby-2.0.0-p247/gems/railties-4.1.6/lib/rails/initializable.rb:30:in `instance_exec'
from /Users/claymccullough/.rvm/gems/ruby-2.0.0-p247/gems/railties-4.1.6/lib/rails/initializable.rb:30:in `run'
from /Users/claymccullough/.rvm/gems/ruby-2.0.0-p247/gems/railties-4.1.6/lib/rails/initializable.rb:55:in `block in run_initializers'
from /Users/claymccullough/.rvm/rubies/ruby-2.0.0-p247/lib/ruby/2.0.0/tsort.rb:150:in `block in tsort_each'
from /Users/claymccullough/.rvm/rubies/ruby-2.0.0-p247/lib/ruby/2.0.0/tsort.rb:183:in `block (2 levels) in each_strongly_connected_component'
from /Users/claymccullough/.rvm/rubies/ruby-2.0.0-p247/lib/ruby/2.0.0/tsort.rb:210:in `block (2 levels) in each_strongly_connected_component_from'
from /Users/claymccullough/.rvm/rubies/ruby-2.0.0-p247/lib/ruby/2.0.0/tsort.rb:219:in `each_strongly_connected_component_from'
from /Users/claymccullough/.rvm/rubies/ruby-2.0.0-p247/lib/ruby/2.0.0/tsort.rb:209:in `block in each_strongly_connected_component_from'
from /Users/claymccullough/.rvm/gems/ruby-2.0.0-p247/gems/railties-4.1.6/lib/rails/initializable.rb:44:in `each'
from /Users/claymccullough/.rvm/gems/ruby-2.0.0-p247/gems/railties-4.1.6/lib/rails/initializable.rb:44:in `tsort_each_child'
from /Users/claymccullough/.rvm/rubies/ruby-2.0.0-p247/lib/ruby/2.0.0/tsort.rb:203:in `each_strongly_connected_component_from'
from /Users/claymccullough/.rvm/rubies/ruby-2.0.0-p247/lib/ruby/2.0.0/tsort.rb:182:in `block in each_strongly_connected_component'
from /Users/claymccullough/.rvm/rubies/ruby-2.0.0-p247/lib/ruby/2.0.0/tsort.rb:180:in `each'
from /Users/claymccullough/.rvm/rubies/ruby-2.0.0-p247/lib/ruby/2.0.0/tsort.rb:180:in `each_strongly_connected_component'
from /Users/claymccullough/.rvm/rubies/ruby-2.0.0-p247/lib/ruby/2.0.0/tsort.rb:148:in `tsort_each'
from /Users/claymccullough/.rvm/gems/ruby-2.0.0-p247/gems/railties-4.1.6/lib/rails/initializable.rb:54:in `run_initializers'
from /Users/claymccullough/.rvm/gems/ruby-2.0.0-p247/gems/railties-4.1.6/lib/rails/application.rb:300:in `initialize!'
from /Users/claymccullough/.rvm/gems/ruby-2.0.0-p247/gems/railties-4.1.6/lib/rails/railtie.rb:194:in `public_send'
from /Users/claymccullough/.rvm/gems/ruby-2.0.0-p247/gems/railties-4.1.6/lib/rails/railtie.rb:194:in `method_missing'
from /Users/claymccullough/Desktop/cybocars/config/environment.rb:5:in `<top (required)>'
from /Users/claymccullough/.rvm/gems/ruby-2.0.0-p247/gems/polyglot-0.3.5/lib/polyglot.rb:65:in `require'
from /Users/claymccullough/.rvm/gems/ruby-2.0.0-p247/gems/polyglot-0.3.5/lib/polyglot.rb:65:in `require'
from /Users/claymccullough/.rvm/gems/ruby-2.0.0-p247/gems/activesupport-4.1.6/lib/active_support/dependencies.rb:247:in `block in require'
from /Users/claymccullough/.rvm/gems/ruby-2.0.0-p247/gems/activesupport-4.1.6/lib/active_support/dependencies.rb:232:in `load_dependency'
from /Users/claymccullough/.rvm/gems/ruby-2.0.0-p247/gems/activesupport-4.1.6/lib/active_support/dependencies.rb:247:in `require'
from /Users/claymccullough/.rvm/gems/ruby-2.0.0-p247/gems/railties-4.1.6/lib/rails/application.rb:276:in `require_environment!'
from /Users/claymccullough/.rvm/gems/ruby-2.0.0-p247/gems/railties-4.1.6/lib/rails/commands/commands_tasks.rb:147:in `require_application_and_environment!'
from /Users/claymccullough/.rvm/gems/ruby-2.0.0-p247/gems/railties-4.1.6/lib/rails/commands/commands_tasks.rb:133:in `generate_or_destroy'
from /Users/claymccullough/.rvm/gems/ruby-2.0.0-p247/gems/railties-4.1.6/lib/rails/commands/commands_tasks.rb:51:in `generate'
from /Users/claymccullough/.rvm/gems/ruby-2.0.0-p247/gems/railties-4.1.6/lib/rails/commands/commands_tasks.rb:40:in `run_command!'
from /Users/claymccullough/.rvm/gems/ruby-2.0.0-p247/gems/railties-4.1.6/lib/rails/commands.rb:17:in `<top (required)>'
from bin/rails:4:in `require'
from bin/rails:4:in `<main>'
If anyone else who has faced this problem and solved it could help, that would be great. Thanks for your time. Also, I did not have this issue before I downloaded OS X Yosemite.
I had this problem. The way I resolved it was by following Spree's documentation instructions for installation verbatim:
gem install spree
rails _4.2.1_ new my_store
spree install my_store
Originally I was not including '__4.2.1_' in my rails new command

Broken upgrade to susy 2.1.2 cannot load such file -- sass/script/node

I have just updated to susy 2.1.2 from version 1.0.9 so I expected errors.
However, I have no idea what this means.
I do still have both versions installed:
Select gem to uninstall:
1. susy-1.0.9
2. susy-2.1.2
3. All versions
When running my compass:dev I get the following, although the task still finished. How can I remove the erorrs?
Running "compass:dev" (compass) task
C:/RUBY200/lib/ruby/site_ruby/2.0.0/rubygems/core_ext/kernel_require.rb:135:in `require': cannot load such file -- sass/script/node (LoadError)
from C:/RUBY200/lib/ruby/site_ruby/2.0.0/rubygems/core_ext/kernel_require.rb:135:in `rescue in require'
from C:/RUBY200/lib/ruby/site_ruby/2.0.0/rubygems/core_ext/kernel_require.rb:144:in `require'
from C:/RUBY200/lib/ruby/gems/2.0.0/gems/compass-0.12.2/lib/compass/sass_extensions/monkey_patches/browser_support.rb:1:in `<top (required)>'
from C:/RUBY200/lib/ruby/site_ruby/2.0.0/rubygems/core_ext/kernel_require.rb:55:in `require'
from C:/RUBY200/lib/ruby/site_ruby/2.0.0/rubygems/core_ext/kernel_require.rb:55:in `require'
from C:/RUBY200/lib/ruby/gems/2.0.0/gems/compass-0.12.2/lib/compass/sass_extensions/monkey_patches.rb:2:in `block in <top (required)>'
from C:/RUBY200/lib/ruby/gems/2.0.0/gems/compass-0.12.2/lib/compass/sass_extensions/monkey_patches.rb:1:in `each'
from C:/RUBY200/lib/ruby/gems/2.0.0/gems/compass-0.12.2/lib/compass/sass_extensions/monkey_patches.rb:1:in `<top (required)>'
from C:/RUBY200/lib/ruby/site_ruby/2.0.0/rubygems/core_ext/kernel_require.rb:55:in `require'
from C:/RUBY200/lib/ruby/site_ruby/2.0.0/rubygems/core_ext/kernel_require.rb:55:in `require'
from C:/RUBY200/lib/ruby/gems/2.0.0/gems/compass-0.12.2/lib/compass/sass_extensions.rb:9:in `<top (required)>'
from C:/RUBY200/lib/ruby/site_ruby/2.0.0/rubygems/core_ext/kernel_require.rb:55:in `require'
from C:/RUBY200/lib/ruby/site_ruby/2.0.0/rubygems/core_ext/kernel_require.rb:55:in `require'
from C:/RUBY200/lib/ruby/gems/2.0.0/gems/compass-0.12.2/lib/compass.rb:5:in `block in <top (required)>'
from C:/RUBY200/lib/ruby/gems/2.0.0/gems/compass-0.12.2/lib/compass.rb:4:in `each'
from C:/RUBY200/lib/ruby/gems/2.0.0/gems/compass-0.12.2/lib/compass.rb:4:in `<top (required)>'
from C:/RUBY200/lib/ruby/site_ruby/2.0.0/rubygems/core_ext/kernel_require.rb:55:in `require'
from C:/RUBY200/lib/ruby/site_ruby/2.0.0/rubygems/core_ext/kernel_require.rb:55:in `require'
from C:/RUBY200/lib/ruby/gems/2.0.0/gems/compass-0.12.2/bin/compass:20:in `block in <top (required)>'
from C:/RUBY200/lib/ruby/gems/2.0.0/gems/compass-0.12.2/bin/compass:8:in `fallback_load_path'
from C:/RUBY200/lib/ruby/gems/2.0.0/gems/compass-0.12.2/bin/compass:19:in `<top (required)>'
from C:/Ruby200/bin/compass:23:in `load'
from C:/Ruby200/bin/compass:23:in `<main>'
Running "watch" task
Waiting...
Your Gemfile need only have these:
gem "susy", "~>2.1.0"
gem "sass", "~>3.3.0"
gem "breakpoint", "~>2.4.0"
Bundler will sort out the other dependencies (which are many), as well as updating the gems to the latest versions.
This is the message I got when trying to update Susy with bundler.
susy (~> 2.1.2) ruby depends on
sass (~> 3.3.0) ruby
compass (~> 0.12.6) ruby depends on
sass (3.2.19)
This means you will need at least Sass 3.3.0. The latest alpha pre release of Compass will work with this and you can install it with the following command:
gem install compass --pre
Alternatively if you are using a Gemfile you could install it like this:
gem "compass", "~> 1.0.0.alpha.19"

undefined method `desc' for Sinatra::Application:Class

This is the error I get when I run any rake command: undefined method 'desc' for Sinatra::Application:Class
# app.rb
require 'sinatra'
require 'sinatra/activerecord'
require 'sinatra/contrib'
get '/' do
puts "Hello World"
end
# config.ru
require "./app"
run Sinatra::Application
# Rakefile
require './app'
require 'sinatra/activerecord/rake'
# Gemfile
source 'https://rubygems.org'
ruby '2.0.0'
gem 'activerecord', '~> 4.0.2'
gem 'sinatra', '~> 1.4.4'
gem 'sinatra-activerecord', '~> 1.2.3'
gem 'sinatra-contrib', '~> 1.4.2'
Full trace:
/Users/j/.rvm/gems/ruby-2.0.0-p247/gems/sinatra-contrib-1.4.2/lib/sinatra/namespace.rb:269:in `method_missing'
/Users/j/.rvm/gems/ruby-2.0.0-p247/gems/sinatra-activerecord-1.2.3/lib/sinatra/activerecord/tasks.rake:4:in `block in <top (required)>'
/Users/j/.rvm/gems/ruby-2.0.0-p247/gems/sinatra-contrib-1.4.2/lib/sinatra/namespace.rb:126:in `class_eval'
/Users/j/.rvm/gems/ruby-2.0.0-p247/gems/sinatra-contrib-1.4.2/lib/sinatra/namespace.rb:126:in `block in new'
/Users/j/.rvm/gems/ruby-2.0.0-p247/gems/sinatra-contrib-1.4.2/lib/sinatra/namespace.rb:118:in `initialize'
/Users/j/.rvm/gems/ruby-2.0.0-p247/gems/sinatra-contrib-1.4.2/lib/sinatra/namespace.rb:118:in `new'
/Users/j/.rvm/gems/ruby-2.0.0-p247/gems/sinatra-contrib-1.4.2/lib/sinatra/namespace.rb:118:in `new'
/Users/j/.rvm/gems/ruby-2.0.0-p247/gems/sinatra-contrib-1.4.2/lib/sinatra/namespace.rb:142:in `namespace'
/Users/j/.rvm/gems/ruby-2.0.0-p247/gems/sinatra-1.4.4/lib/sinatra/base.rb:1972:in `block (2 levels) in delegate'
/Users/j/.rvm/gems/ruby-2.0.0-p247/gems/sinatra-activerecord-1.2.3/lib/sinatra/activerecord/tasks.rake:3:in `<top (required)>'
/Users/j/.rvm/gems/ruby-2.0.0-p247/gems/activesupport-4.0.2/lib/active_support/dependencies.rb:223:in `load'
/Users/j/.rvm/gems/ruby-2.0.0-p247/gems/activesupport-4.0.2/lib/active_support/dependencies.rb:223:in `block in load'
/Users/j/.rvm/gems/ruby-2.0.0-p247/gems/activesupport-4.0.2/lib/active_support/dependencies.rb:214:in `load_dependency'
/Users/j/.rvm/gems/ruby-2.0.0-p247/gems/activesupport-4.0.2/lib/active_support/dependencies.rb:223:in `load'
/Users/j/.rvm/gems/ruby-2.0.0-p247/gems/sinatra-activerecord-1.2.3/lib/sinatra/activerecord/rake.rb:77:in `<top (required)>'
/Users/j/.rvm/rubies/ruby-2.0.0-p247/lib/ruby/site_ruby/2.0.0/rubygems/core_ext/kernel_require.rb:51:in `require'
/Users/j/.rvm/rubies/ruby-2.0.0-p247/lib/ruby/site_ruby/2.0.0/rubygems/core_ext/kernel_require.rb:51:in `require'
/Users/j/.rvm/gems/ruby-2.0.0-p247/gems/backports-3.3.5/lib/backports/tools.rb:328:in `require_with_backports'
/Users/j/.rvm/gems/ruby-2.0.0-p247/gems/activesupport-4.0.2/lib/active_support/dependencies.rb:229:in `block in require'
/Users/j/.rvm/gems/ruby-2.0.0-p247/gems/activesupport-4.0.2/lib/active_support/dependencies.rb:214:in `load_dependency'
/Users/j/.rvm/gems/ruby-2.0.0-p247/gems/activesupport-4.0.2/lib/active_support/dependencies.rb:229:in `require'
/Users/j/Desktop/app/Rakefile:2:in `<top (required)>'
/Users/j/.rvm/gems/ruby-2.0.0-p247#global/gems/rake-10.1.0/lib/rake/rake_module.rb:25:in `load'
/Users/j/.rvm/gems/ruby-2.0.0-p247#global/gems/rake-10.1.0/lib/rake/rake_module.rb:25:in `load_rakefile'
/Users/j/.rvm/gems/ruby-2.0.0-p247#global/gems/rake-10.1.0/lib/rake/application.rb:637:in `raw_load_rakefile'
/Users/j/.rvm/gems/ruby-2.0.0-p247#global/gems/rake-10.1.0/lib/rake/application.rb:94:in `block in load_rakefile'
/Users/j/.rvm/gems/ruby-2.0.0-p247#global/gems/rake-10.1.0/lib/rake/application.rb:165:in `standard_exception_handling'
/Users/j/.rvm/gems/ruby-2.0.0-p247#global/gems/rake-10.1.0/lib/rake/application.rb:93:in `load_rakefile'
/Users/j/.rvm/gems/ruby-2.0.0-p247#global/gems/rake-10.1.0/lib/rake/application.rb:77:in `block in run'
/Users/j/.rvm/gems/ruby-2.0.0-p247#global/gems/rake-10.1.0/lib/rake/application.rb:165:in `standard_exception_handling'
/Users/j/.rvm/gems/ruby-2.0.0-p247#global/gems/rake-10.1.0/lib/rake/application.rb:75:in `run'
/Users/j/.rvm/gems/ruby-2.0.0-p247#global/gems/rake-10.1.0/bin/rake:33:in `<top (required)>'
/Users/j/.rvm/gems/ruby-2.0.0-p247#global/bin/rake:23:in `load'
/Users/j/.rvm/gems/ruby-2.0.0-p247#global/bin/rake:23:in `<main>'
/Users/j/.rvm/gems/ruby-2.0.0-p247/bin/ruby_executable_hooks:15:in `eval'
/Users/j/.rvm/gems/ruby-2.0.0-p247/bin/ruby_executable_hooks:15:in `<main>'
Found an easiest solution:
Juste add the require:false attribute to sinatra contrib in your gemfile:
gem "sinatra-contrib",require: false
Found this here:
http://aaronlerch.github.io/blog/sinatra-bundler-and-the-global-namespace/
The Sinatra namespace extension from Sinatra contrib is interfering with Rake’s own namespace support. They both define a namespace method, and the Sinatra contrib version is being called (incorrectly) from the Sinatra-ActiveRecord Rake tasks.
If you’re not using the namespaces from Sinatra-contrib, then the easiest solution would be to only require those extensions that you need; e.g. change
require 'sinatra/contrib'
to
require 'sinatra/whatever'
require 'sinatra/anotherextension'
If you are using Sinatra namespaces then I think you may be able to get round this by moving to a modular style app. Change your app.rb to something like
require 'sinatra/base' # note this has changed from just 'sinatra'
require 'sinatra/activerecord'
require 'sinatra/contrib'
class MyApp < Sinatra::Base
register Sinatra::Contrib
get '/' do
"Hello World"
end
# other routes etc. as needed
end
Then in your config.ru you need run MyApp rather then run Sinatra::Application (of course you can – and should – give your class a better name). This avoids the collision of the two namespace methods, since the Sinatra version is only available in your application class, not the top level.

Resources