Rails. Gem bundle failed - ruby-on-rails

after I run:
bundle install
I got:
/usr/local/lib/ruby/site_ruby/1.9.1/rubygems.rb:14:in <top
(required)>': undefined methodremove' for Gem::QuickLoader:Module
(NoMethodError) from :158:in require' from
<internal:gem_prelude>:158:inload_full_rubygems_library' from
:280:in method_missing' from
/usr/local/bin/bundle:19:in'
mat#Macbook-Pro~/Documents/workspace/RoR/rails_projects/sample_app$
Edited:
>bundle -v
/usr/local/lib/ruby/site_ruby/1.9.1/rubygems.rb:14:in `<top (required)>': undefined method `remove' for Gem::QuickLoader:Module (NoMethodError)
from <internal:gem_prelude>:158:in `require'
from <internal:gem_prelude>:158:in `load_full_rubygems_library'
from <internal:gem_prelude>:280:in `method_missing'
from /usr/local/bin/bundle:19:in `<main>'
mat#Macbook-Pro~$ gem -v
/usr/local/lib/ruby/site_ruby/1.9.1/rubygems/gem_runner.rb:86:in `<top (required)>': undefined method `load_plugins' for Gem:Module (NoMethodError)
from /usr/local/bin/gem:9:in `require'
from /usr/local/bin/gem:9:in `<main>'
My Gemfile is :
>
source 'http://rubygems.org'
gem 'rails', '3.0.9'
# Bundle edge Rails instead:
# gem 'rails', :git => 'git://github.com/rails/rails.git'
gem 'sqlite3', '1.3.3'
group :development do
gem 'rspec-rails', '2.6.1'
end
group :test do
gem 'rspec-rails', '2.6.1'
gem 'webrat', '0.7.1'
end
# Use unicorn as the web server
# gem 'unicorn'
# Deploy with Capistrano
# gem 'capistrano'
# To use debugger (ruby-debug for Ruby 1.8.7+, ruby-debug19 for Ruby 1.9.2+)
# gem 'ruby-debug'
# gem 'ruby-debug19', :require => 'ruby-debug'
# Bundle the extra gems:
# gem 'bj'
# gem 'nokogiri'
# gem 'sqlite3-ruby', :require => 'sqlite3'
# gem 'aws-s3', :require => 'aws/s3'
# Bundle gems for the local environment. Make sure to
# put test-only gems in this group so their generators
# and rake tasks are available in development mode:
# group :development, :test do
# gem 'webrat'
# end
Could anybody help me?THanks!

I faced with a similar error:
$ bundle -v
/Users/Reza/.rvm/rubies/ruby-1.9.2-rc2/lib/ruby/site_ruby/1.9.1/rubygems.rb:14:in `<top (required)>': undefined method `remove' for Gem::QuickLoader:Module (NoMethodError)
It seems that all [..]/rubygems.rb Undefined method[..] issues is related to a conflict between installed rubygems (e.g. via rvm rubygems) and built in rubygems methods in ruby 1.9.x
just rename the installed rubygems files and issue is resolved.
$ which ruby
/Users/Reza/.rvm/rubies/ruby-1.9.2-rc2/bin/ruby
$ echo $MY_RUBY_HOME
/Users/Reza/.rvm/rubies/ruby-1.9.2-rc2
$ cd "$MY_RUBY_HOME/lib/ruby/site_ruby/1.9.1/"
$ mv rubygems.rb rubygems.rb-rename
$ mv rubygems rubygems-rename
$ bundle -v
Bundler version 1.0.18

Try to manually update to the latest RubyGems version from here:
http://rubygems.org/pages/download
1. Download the latest rubygems
http://production.cf.rubygems.org/rubygems/rubygems-1.8.7.tgz
2. Extract it
tar zxvf rubygems-1.8.7.tgz
3. Install it
cd rubygems-1.8.7
sudo ruby setup.rb
If that does not help you can try and download an older version of rubygems from here:
http://rubyforge.org/frs/?group_id=126
For example 1.8.5, 1.8.0, 1.7.0, 1.6.0.

Related

Ruby 2.4 => 2.7: NoMethodError: undefined method `new' for BigDecimal:Class

I updated my Ruby from 2.4 to 2.7 for an existing project and now rspec is giving this error for every single spec. I cannot find the source of the error. There is no BigDecimal in my project. I did not write the tests. How do I find the gem that is causing the problem?
An error occurred while loading ./spec/views/terms_users/new.html.erb_spec.rb.
Failure/Error: require File.expand_path('../../config/environment', __FILE__)
NoMethodError:
undefined method `new' for BigDecimal:Class
# ./config/application.rb:17:in `<top (required)>'
# ./config/environment.rb:2:in `<top (required)>'
# ./spec/rails_helper.rb:4:in `<top (required)>'
# ./spec/views/terms_users/new.html.erb_spec.rb:1:in `<top (required)>'
C:/ruby27/lib/ruby/gems/2.7.0/bundler/gems/shoulda-matchers-4b160bd19ecc/lib/shoulda/matchers/active_model/validate_inclusion_of_matcher.rb:271: warning: already initialized constant Shoulda::Matchers::ActiveModel::ValidateInclusionOfMatcher::ARBITRARY_OUTSIDE_STRING
C:/ruby27/lib/ruby/gems/2.7.0/bundler/gems/shoulda-matchers-4b160bd19ecc/lib/shoulda/matchers/active_model/validate_inclusion_of_matcher.rb:271: warning: previous definition of ARBITRARY_OUTSIDE_STRING was here
C:/ruby27/lib/ruby/gems/2.7.0/bundler/gems/shoulda-matchers-4b160bd19ecc/lib/shoulda/matchers/active_model/validate_inclusion_of_matcher.rb:272: warning: already initialized constant Shoulda::Matchers::ActiveModel::ValidateInclusionOfMatcher::ARBITRARY_OUTSIDE_FIXNUM
C:/ruby27/lib/ruby/gems/2.7.0/bundler/gems/shoulda-matchers-4b160bd19ecc/lib/shoulda/matchers/active_model/validate_inclusion_of_matcher.rb:272: warning: previous definition of ARBITRARY_OUTSIDE_FIXNUM was here
This is application.rb:17:
Bundler.require(*Rails.groups)
This is my Gemfile for :test:
ruby '~>2.7.0'
gem 'rails', '~> 5.0.2'
group :test do
# Acceptance test framework for web applications
gem 'capybara'
# Strategies for cleaning databases
gem 'database_cleaner'#, '~> 1.6.1.0'
# Factories
gem 'fabrication'#, '~> 2.16.1'
# Tool for writing automated tests of websites
gem 'selenium-webdriver'#, '~> 3.4'
# Code coverage
gem 'simplecov', require: false
# One-liners that test common Rails functionality
gem 'shoulda-matchers', git: 'https://github.com/thoughtbot/shoulda-matchers.git', branch: 'rails-5'
# Stubbing and setting expectations on HTTP requests
gem 'webmock', require: false
end
group :development, :test do
# Annotate Rails classes with schema and routes info
gem 'annotate', '~> 2.7'
# Call 'byebug' anywhere to stop execution and get a debugger console
gem 'byebug' #, platform: :mri
# Load environment variables from `.env`
gem 'dotenv-rails', '~> 2.2'
# `rails c` alternative and runtime developer console
gem 'pry-rails', '~> 0.3'
# Launch a pry session when a test fails
gem 'pry-rescue'
# Move up and down the stack with pry
gem 'pry-stack_explorer'
# Testing
gem 'rspec-rails'#, '~> 3.5'
# Ruby static code analyzer
gem 'rubocop', '~> 0.49.1', require: false
gem 'rubocop-rspec'#, '~> 1.15', require: false
end
The app runs and loads and works.
This tracked it down:
>set RAILS_ENV=test
>echo %RAILS_ENV%
test
>rails console
Traceback (most recent call last):
58: from bin/rails:9:in `<main>'
57: from C:/ruby27/lib/ruby/gems/2.7.0/gems/bootsnap-1.9.1/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:31:in `require'
...
1: from C:/ruby27/lib/ruby/gems/2.7.0/bundler/gems/shoulda-matchers-4b160bd19ecc/lib/shoulda/matchers/active_model/validate_inclusion_of_matcher.rb:270:in `<module:ActiveModel>'
C:/ruby27/lib/ruby/gems/2.7.0/bundler/gems/shoulda-matchers-4b160bd19ecc/lib/shoulda/matchers/active_model/validate_inclusion_of_matcher.rb:273:in `<class:ValidateInclusionOfMatcher>': undefined method `new' for BigDecimal:Class (NoMethodError)
This solved it:
`Gemfile`
gem 'shoulda-matchers'#, git: 'https://github.com/thoughtbot/shoulda-matchers.git', branch: 'rails-5'
> bundle update
Installing shoulda-matchers 4.5.1 (was 3.1.2)
> rails console
[1] pry(main)>

Error running rails server - how can I change default ruby for rubygem environment?

So I came across this question ( Syntax error when creating a Rails model ) which has an error similar to mine. I am deducing from it that my problem is using Ruby 1.8 instead of 1.9. I tried uninstalling the gems and updating rubygems as described in one of the answers, but that did not fix the issue. I also tried setting the default ruby via rvm to 1.9 - it works but it does not solve the issue.
When I run "gem env" I get the following:
RubyGems Environment:
- RUBYGEMS VERSION: 1.8.23
- RUBY VERSION: 1.8.7 (2011-06-30 patchlevel 352) [x86_64-linux]
- INSTALLATION DIRECTORY: /usr/lib/ruby/gems/1.8
- RUBY EXECUTABLE: /usr/bin/ruby1.8
- EXECUTABLE DIRECTORY: /usr/bin
- RUBYGEMS PLATFORMS:
- ruby
- x86_64-linux
- GEM PATHS:
- /usr/lib/ruby/gems/1.8
- /home/owner/.gem/ruby/1.8
- GEM CONFIGURATION:
- :update_sources => true
- :verbose => true
- :benchmark => false
- :backtrace => false
- :bulk_threshold => 1000
- REMOTE SOURCES:
- http://rubygems.org/
In usr/bin I have a "ruby" which is a symlink to usr/bin/ruby1.9.1.
Basically, I need to know how to change the ruby being used here (at least I think that will solve my issue).
My OS is Linux Mint 12.
Rails --version returns "Rails 3.2.3"
My full error is below (from running "rails s" in project directory):
=> Booting WEBrick
=> Rails 3.2.3 application starting in development on http://0.0.0.0:3000
=> Call with -d to detach
=> Ctrl-C to shutdown server
Exiting
/usr/lib/ruby/gems/1.8/gems/activesupport-3.2.3/lib/active_support/dependencies.rb:245:in `load': /media/Windows/Users/Owner/Projects/rails_projects/sample_app/config/initializers/session_store.rb:3: syntax error, unexpected ':', expecting $end (SyntaxError)
...sion_store :cookie_store, key: '_sample_app_session'
^
from /usr/lib/ruby/gems/1.8/gems/activesupport-3.2.3/lib/active_support/dependencies.rb:245:in `load'
from /usr/lib/ruby/gems/1.8/gems/activesupport-3.2.3/lib/active_support/dependencies.rb:236:in `load_dependency'
from /usr/lib/ruby/gems/1.8/gems/activesupport-3.2.3/lib/active_support/dependencies.rb:245:in `load'
from /usr/lib/ruby/gems/1.8/gems/railties-3.2.3/lib/rails/engine.rb:588
from /usr/lib/ruby/gems/1.8/gems/railties-3.2.3/lib/rails/engine.rb:587:in `each'
from /usr/lib/ruby/gems/1.8/gems/railties-3.2.3/lib/rails/engine.rb:587
from /usr/lib/ruby/gems/1.8/gems/railties-3.2.3/lib/rails/initializable.rb:30:in `instance_exec'
from /usr/lib/ruby/gems/1.8/gems/railties-3.2.3/lib/rails/initializable.rb:30:in `run'
from /usr/lib/ruby/gems/1.8/gems/railties-3.2.3/lib/rails/initializable.rb:55:in `run_initializers'
from /usr/lib/ruby/gems/1.8/gems/railties-3.2.3/lib/rails/initializable.rb:54:in `each'
from /usr/lib/ruby/gems/1.8/gems/railties-3.2.3/lib/rails/initializable.rb:54:in `run_initializers'
from /usr/lib/ruby/gems/1.8/gems/railties-3.2.3/lib/rails/application.rb:136:in `initialize!'
from /usr/lib/ruby/gems/1.8/gems/railties-3.2.3/lib/rails/railtie/configurable.rb:30:in `send'
from /usr/lib/ruby/gems/1.8/gems/railties-3.2.3/lib/rails/railtie/configurable.rb:30:in `method_missing'
from /media/Windows/Users/Owner/Projects/rails_projects/sample_app/config/environment.rb:5
from /media/Windows/Users/Owner/Projects/rails_projects/sample_app/config.ru:4:in `require'
from /media/Windows/Users/Owner/Projects/rails_projects/sample_app/config.ru:4
from /usr/lib/ruby/gems/1.8/gems/rack-1.4.1/lib/rack/builder.rb:51:in `instance_eval'
from /usr/lib/ruby/gems/1.8/gems/rack-1.4.1/lib/rack/builder.rb:51:in `initialize'
from /media/Windows/Users/Owner/Projects/rails_projects/sample_app/config.ru:1:in `new'
from /media/Windows/Users/Owner/Projects/rails_projects/sample_app/config.ru:1
My gemfile is:
source 'https://rubygems.org'
gem 'rails'
gem 'bootstrap-sass'
gem 'tilt'
gem 'execjs'
gem 'therubyracer', :platforms => :ruby
group :development do
gem 'sqlite3', '1.3.5'
gem 'rspec-rails'
gem 'guard-rspec', '0.5.5'
end
# Gems used only for assets and not required
# in production environments by default.
group :assets do
gem 'sass-rails', '3.2.4'
gem 'coffee-rails', '3.2.2'
gem 'uglifier', '1.2.3'
end
gem 'jquery-rails', '2.0.0'
group :test do
gem 'rspec-rails'
gem 'capybara', '1.1.2'
# System-dependent gems# Test gems on Windows
group :test do
gem 'rspec-rails'
gem 'capybara', '1.1.2'
gem 'rb-fchange', '0.0.5'
gem 'rb-notifu', '0.0.4'
end
gem 'guard-spork', '0.3.2'
gem 'spork', '0.9.0'
end
group :production do
gem 'pg', '0.12.2'
end
PATH:
echo $PATH
/usr/bin/rubycurrent:/usr/lib/lightdm/lightdm:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games
"which ruby" returns:
/usr/bin/rubycurrent/ruby
So I finally figure it out. Here's what I did.
First, to troubleshoot I uninstalled ruby 1.8. After that I tried running rails s again and got the following error:
bash: /usr/local/bin/rails: /usr/bin/ruby1.8: bad interpreter: No such file or directory
When I checked /usr/local/bin/rails script I saw it was including /usr/bin/ruby1.8 at the top. After trying tons of different things to get it working, the only thing that worked was uninstalling ruby, rubygems, rails, and rvm, and reinstalling them all (I had to do this several times... finally it worked one time).
You can try what is listed below to see if it works for you:
http://fatal-errors.com/ubuntu-10-ruby-1-9-rails-3-not-working-solved/99008.
Edit your terminal configuration file (~/.bashrc, ~/.zshrc, etc.) and make sure that the directory that contains ruby 1.9 occurs in the path variable before /usr/bin. In general it is not good to modify /usr/bin because things in here are usually system dependencies.

Can't run new application

I've installed RoR in my MacOS X using this guide
http://ryanbigg.com/2010/12/ubuntu-ruby-rvm-rails-and-you/
Here my versions:
$ ruby --version
ruby 1.8.7 (2010-01-10 patchlevel 249) [universal-darwin11.0]
$ rails --version
Rails 3.2.3
$ gem --version
1.8.23
I was unable to run my app so I've googled and modified Gemfile using this tutorial: http://ruby.railstutorial.org/ruby-on-rails-tutorial-book
Now this is my Gemfile:
source 'https://rubygems.org'
gem 'rails', '3.2.3'
# Bundle edge Rails instead:
# gem 'rails', :git => 'git://github.com/rails/rails.git'
group :development do
gem 'sqlite3', '1.3.5'
end
# Gems used only for assets and not required
# in production environments by default.
group :assets do
gem 'sass-rails', '3.2.4'
gem 'coffee-rails', '3.2.2'
# See https://github.com/sstephenson/execjs#readme for more supported runtimes
# gem 'therubyracer', :platform => :ruby
gem 'uglifier', '1.2.3'
end
gem 'jquery-rails', '2.0.0'
# 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 'capistrano'
# To use debugger
# gem 'ruby-debug19', :require => 'ruby-debug'
When I run the app using
rails server
I got this:
=> Booting WEBrick
=> Rails 3.2.3 application starting in development on http://0.0.0.0:3000
=> Call with -d to detach
=> Ctrl-C to shutdown server
Exiting
/Library/Ruby/Gems/1.8/gems/activesupport-3.2.3/lib/active_support/dependencies.rb:245:in `load': /Users/giacomo/websrc/rubyrails-app/config/initializers/session_store.rb:3: syntax error, unexpected ':', expecting $end (SyntaxError)
...sion_store :cookie_store, key: '_rubyrails-app_session'
^
from /Library/Ruby/Gems/1.8/gems/activesupport-3.2.3/lib/active_support/dependencies.rb:245:in `load'
from /Library/Ruby/Gems/1.8/gems/activesupport-3.2.3/lib/active_support/dependencies.rb:236:in `load_dependency'
from /Library/Ruby/Gems/1.8/gems/activesupport-3.2.3/lib/active_support/dependencies.rb:245:in `load'
from /Library/Ruby/Gems/1.8/gems/railties-3.2.3/lib/rails/engine.rb:588
from /Library/Ruby/Gems/1.8/gems/railties-3.2.3/lib/rails/engine.rb:587:in `each'
from /Library/Ruby/Gems/1.8/gems/railties-3.2.3/lib/rails/engine.rb:587
from /Library/Ruby/Gems/1.8/gems/railties-3.2.3/lib/rails/initializable.rb:30:in `instance_exec'
from /Library/Ruby/Gems/1.8/gems/railties-3.2.3/lib/rails/initializable.rb:30:in `run'
from /Library/Ruby/Gems/1.8/gems/railties-3.2.3/lib/rails/initializable.rb:55:in `run_initializers'
from /Library/Ruby/Gems/1.8/gems/railties-3.2.3/lib/rails/initializable.rb:54:in `each'
from /Library/Ruby/Gems/1.8/gems/railties-3.2.3/lib/rails/initializable.rb:54:in `run_initializers'
from /Library/Ruby/Gems/1.8/gems/railties-3.2.3/lib/rails/application.rb:136:in `initialize!'
from /Library/Ruby/Gems/1.8/gems/railties-3.2.3/lib/rails/railtie/configurable.rb:30:in `send'
from /Library/Ruby/Gems/1.8/gems/railties-3.2.3/lib/rails/railtie/configurable.rb:30:in `method_missing'
from /Users/giacomo/websrc/rubyrails-app/config/environment.rb:5
from /Users/giacomo/websrc/rubyrails-app/config.ru:4:in `require'
from /Users/giacomo/websrc/rubyrails-app/config.ru:4
from /Library/Ruby/Gems/1.8/gems/rack-1.4.1/lib/rack/builder.rb:51:in `instance_eval'
from /Library/Ruby/Gems/1.8/gems/rack-1.4.1/lib/rack/builder.rb:51:in `initialize'
from /Users/giacomo/websrc/rubyrails-app/config.ru:1:in `new'
from /Users/giacomo/websrc/rubyrails-app/config.ru:1
How can I solve the problem?
By using Ruby 1.9.x instead of 1.8.7.
Or by opening /Users/giacomo/websrc/rubyrails-app/config/initializers/session_store.rb and replacing:
key: '_rubyrails-app_session'
With:
:key => '_rubyrails-app_session'
And opening /Users/giacomo/websrc/rubyrails-app/config/initializers/wrap_parameters.rb and replacing:
wrap_parameters format: [:json]
With:
wrap_parameters :format => [:json]
The error occurs because the new ruby has another syntax for hash. Tutorial that you used is outdated, I would suggest to try this: http://railsapps.github.com/installing-rails.html
This is the best I could find. And also it is constantly updated.
In your case you need just to install new version of ruby and then reinstall rails.

Ruby on Rails: 2.3.8: How do I get searchlogic to work with bundler?

Currently, I get this error: NameError: undefined methodmerge_joins' for class Class'
i'm just doing
gem "searchlogic"
and bundler says that it is using version 2.4.28
So... what in the right searchlogic version to use with rails 2.3.8?
searchlogic 2.4.28 was the last version available before it started requiring 2.3.11 =\
NameError: undefined method `merge_joins' for class `Class'
/Library/Ruby/Gems/1.8/gems/activesupport-2.3.8/lib/active_support/core_ext/module/aliasing.rb:33:in `alias_method'
/Library/Ruby/Gems/1.8/gems/activesupport-2.3.8/lib/active_support/core_ext/module/aliasing.rb:33:in `alias_method_chain'
/Library/Ruby/Gems/1.8/gems/searchlogic-2.4.28/lib/searchlogic/active_record/consistency.rb:8:in `included'
/Library/Ruby/Gems/1.8/gems/searchlogic-2.4.28/lib/searchlogic/active_record/consistency.rb:7:in `class_eval'
/Library/Ruby/Gems/1.8/gems/searchlogic-2.4.28/lib/searchlogic/active_record/consistency.rb:7:in `included'
/Library/Ruby/Gems/1.8/gems/searchlogic-2.4.28/lib/searchlogic.rb:34:in `include'
/Library/Ruby/Gems/1.8/gems/searchlogic-2.4.28/lib/searchlogic.rb:34
/Library/Ruby/Gems/1.8/gems/bundler-1.0.18/lib/bundler/runtime.rb:68:in `require'
/Library/Ruby/Gems/1.8/gems/bundler-1.0.18/lib/bundler/runtime.rb:68:in `require'
/Library/Ruby/Gems/1.8/gems/bundler-1.0.18/lib/bundler/runtime.rb:66:in `each'
/Library/Ruby/Gems/1.8/gems/bundler-1.0.18/lib/bundler/runtime.rb:66:in `require'
/Library/Ruby/Gems/1.8/gems/bundler-1.0.18/lib/bundler/runtime.rb:55:in `each'
/Library/Ruby/Gems/1.8/gems/bundler-1.0.18/lib/bundler/runtime.rb:55:in `require'
/Library/Ruby/Gems/1.8/gems/bundler-1.0.18/lib/bundler.rb:120:in `require'
~/category/app/config/environment.rb:16
on line 16 in my env, I do this:
Bundler.require(:default)
EDIT:
Gemfile:
source "http://rubygems.org"
# system
gem "rails", "2.3.8"
gem "activesupport", "2.3.8", :require => "active_support"
gem "rake", "0.8.7"
# might be for POW, not sure
gem "childprocess", "0.2.2", :git => "git://github.com/jarib/childprocess.git"
# app
gem "mysql", "2.7"
gem "lockfile"
gem "ssl_requirement", "0.1.0"
gem "attr_encrypted", "1.1.2"
gem "searchlogic", "2.3.5"
gem "will_paginate", "2.3.14"
gem "garb", "0.7.6"
gem "delayed_job", "2.0.3"
gem "httparty", "0.5.2"
gem "pony", "1.1"
gem "friendly_id", "3.0.6"
gem "stringex", "1.1.0"
gem "i18n", "0.4.2"
gem "sms_fu", "1.1.1"
It looks like 2.3.5 has decent Rails 2.3.x support:
gem "searchlogic", :version => "2.3.5"
Grepping through the history of the project shows the Rails 2.3.11 dependency was added in 2.4.29:
https://github.com/binarylogic/searchlogic/blob/v2.4.29/Gemfile
EDIT: Found some evidence on Heroku 2.3.5 will work with Rails 2.3.8, even though the dependency wasn't added until 2.4.28
As it turns out, the version(s) of searchlogic that I can use don't work with bundler, so I just kept this in my environment.rb:
config.gem "searchlogic", :version => "whatever"

Heroku rake aborted?

I am trying to run
heroku rake db:migrate
but I keep getting this error
(in /app)
/app/.bundle/gems/ruby/1.9.1/gems/rake-0.9.2/lib/rake/file_utils.rb:10: warning: already initialized constant RUBY
/app/.bundle/gems/ruby/1.9.1/gems/rake-0.9.2/lib/rake/file_utils.rb:84: warning: already initialized constant LN_SUPPORTED
rake/rdoctask is deprecated. Use rdoc/task instead (in RDoc 2.4.2+)
rake aborted!
test-unit is not part of the bundle. Add it to Gemfile.
/usr/ruby1.9.2/lib/ruby/gems/1.9.1/gems/bundler-1.0.7/lib/bundler/shared_helpers.rb:102:in `block in cripple_rubygems'
/app/lib/tasks/rspec.rake:1:in `<top (required)>'
/app/.bundle/gems/ruby/1.9.1/gems/activesupport-2.3.8/lib/active_support/dependencies.rb:145:in `load'
/app/.bundle/gems/ruby/1.9.1/gems/activesupport-2.3.8/lib/active_support/dependencies.rb:145:in `block in load_with_new_constant_marking'
/app/.bundle/gems/ruby/1.9.1/gems/activesupport-2.3.8/lib/active_support/dependencies.rb:521:in `new_constants_in'
/app/.bundle/gems/ruby/1.9.1/gems/activesupport-2.3.8/lib/active_support/dependencies.rb:145:in `load_with_new_constant_marking'
/app/.bundle/gems/ruby/1.9.1/gems/rails-2.3.8/lib/tasks/rails.rb:14:in `block in <top (required)>'
/app/.bundle/gems/ruby/1.9.1/gems/rails-2.3.8/lib/tasks/rails.rb:14:in `each'
/app/.bundle/gems/ruby/1.9.1/gems/rails-2.3.8/lib/tasks/rails.rb:14:in `<top (required)>'
/app/Rakefile:11:in `require'
The app gets launched successfully
-----> Heroku receiving push
-----> Ruby/Rails app detected
-----> Configure Rails to log to stdout
Installing rails_log_stdout... done
-----> Gemfile detected, running Bundler version 1.0.7
All dependencies are satisfied
-----> Compiled slug size is 14.3MB
-----> Launching... done, v7
http://young-robot-995.heroku.com deployed to Heroku
but I am getting this error
In my local development it looks like i am using ruby 1.8 but on heroku it looks like its 1.9.1 maybe thats causing it....any ideas on how to fix this
here is my gemfile if that will help
source 'http://rubygems.org'
#gem 'sqlite3-ruby', '1.2.5', :require => 'sqlite3'
gem 'rails', '2.3.8'
gem 'will_paginate', '2.3.12'
gem 'googlecharts'
gem 'faker'
gem 'httparty'
gem 'bandsintown'
gem 'itunes-search-api','0.1.0', :path => 'vendor/gems/itunes-search-api-0.1.0'
gem 'i18n', '0.4.2'
gem "giggly", "~> 0.1.2"
gem "ruby-paypal",'0.0.5', :path => 'vendor/gems/ruby-paypal-0.0.5'
group :development, :test do
gem 'sqlite3-ruby', '1.2.5', :require => 'sqlite3'
end
Looks like you need to modify your Gemfile, try using the one below and see if that works for you:
source 'http://rubygems.org'
gem 'rails', '2.3.8'
gem 'will_paginate', '2.3.12'
gem 'googlecharts'
gem 'faker'
gem 'httparty'
gem 'bandsintown'
gem 'itunes-search-api','0.1.0', :path => 'vendor/gems/itunes-search-api-0.1.0'
gem 'i18n', '0.4.2'
gem "giggly", "~> 0.1.2"
gem "ruby-paypal",'0.0.5', :path => 'vendor/gems/ruby-paypal-0.0.5'
group :production do
gem 'test-unit'
gem 'pg'
end
group :development, :test do
gem 'sqlite3-ruby', '1.2.5', :require => 'sqlite3'
end

Resources