I'm getting the following error when running any rails commands like rails s or rails c, it's also preventing my heroku app from starting (same error):
app/config/application.rb:7:in `<top (required)>': uninitialized constant Bundler (NameError)
from /Users/you/.rvm/rubies/ruby-2.0.0-p247/lib/ruby/site_ruby/2.0.0/rubygems/core_ext/kernel_require.rb:126:in `require'
Line 7 in the error message is:
Bundler.require(:default, Rails.env)
Doing the commands as bundle exec rails s succeeds, but that doesn't help the heroku app. I've verified which ruby, which rails and which bundler. I've also tried starting a new rvm gemset and reinstalling the bundle. The heroku error is identical:
/app/config/application.rb:7:in `<top (required)>': uninitialized constant Bundler (NameError)
running bundle check returns no issues.
Some similar questions suggested this:
bundle config --delete bin # Turn off Bundler's stub generator
rake rails:update:bin # Use the new Rails 4 executables
git add bin # Add bin/ to source control
But I tried it and got no changes. I'm on Rails 4
edit:
I was working in another app and ran rails g model and this popped up:
Bundler is using a binstub that was created for a different gem.
This is deprecated, in future versions you may need to `bundle binstub rails` to work around a system/bundle conflict.
gemfile
source 'https://rubygems.org'
ruby '2.0.0'
gem 'rails', '4.0.3'
gem 'sass-rails', '~> 4.0.1'
gem 'uglifier'
gem 'coffee-rails'
gem 'jquery-rails'
gem 'turbolinks'
gem 'jbuilder'
gem 'bcrypt-ruby'
gem "geocoder"
gem 'gmaps4rails'
gem "paperclip"
gem 'route_translator'
gem 'aws-sdk'
gem 'ckeditor'
gem 'soundcloud'
gem 'omniauth-facebook'
gem 'twitter'
gem 'pg'
gem 'unicorn'
gem 'sass'
gem 'compass', '0.12.2'
gem 'font-awesome-rails'
gem 'acts-as-taggable-on'
gem 'json', '1.7.7'
gem 'figaro'
#for mailchimp api
gem 'gibbon'
#for deploying
gem 'capistrano', '~> 3.0.1'
gem 'capistrano-rails', '~> 1.1.0'
gem 'capistrano-bundler'
gem 'capistrano-rbenv', '~> 2.0'
gem 'exception_notification'
gem 'textacular'
gem 'mail_form'
gem 'dumper'
group :doc do
gem 'sdoc', require: false
end
# development gems
group :development, :test do
# env variables
gem "faker"
end
# Paging
gem 'kaminari'
gem 'will_paginate-bootstrap', '~> 1.0.0'
# Slugs and friendly id's
gem 'friendly_id'
# font-awesome
gem 'font-awesome-sass', '~> 4.0.2'
# production gems for heroku
group :production do
gem 'rails_12factor'
gem 'therubyracer'
gem 'execjs'
end
# Devise
gem 'devise'
gem 'chosen-rails'
# Bootstrap 3
group :development, :test do
gem 'rails_layout' # Bootstrap 3 layout generator
end
gem 'bootstrap-sass', '~> 3.0.3.0'
# RSpec
group :test, :development do
gem "rspec-rails"
gem "factory_girl_rails"
end
# Capybara
group :test do
gem "capybara"
gem 'email_spec'
end
gemfile.lock
GEM
remote: https://rubygems.org/
specs:
actionmailer (4.0.3)
actionpack (= 4.0.3)
mail (~> 2.5.4)
actionpack (4.0.3)
activesupport (= 4.0.3)
builder (~> 3.1.0)
erubis (~> 2.7.0)
rack (~> 1.5.2)
rack-test (~> 0.6.2)
activemodel (4.0.3)
activesupport (= 4.0.3)
builder (~> 3.1.0)
activerecord (4.0.3)
activemodel (= 4.0.3)
activerecord-deprecated_finders (~> 1.0.2)
activesupport (= 4.0.3)
arel (~> 4.0.0)
activerecord-deprecated_finders (1.0.3)
activesupport (4.0.3)
i18n (~> 0.6, >= 0.6.4)
minitest (~> 4.2)
multi_json (~> 1.3)
thread_safe (~> 0.1)
tzinfo (~> 0.3.37)
acts-as-taggable-on (3.1.1)
actionpack (>= 3, < 5)
activerecord (>= 3, < 5)
activesupport (>= 3, < 5)
addressable (2.3.6)
arel (4.0.2)
aws-sdk (1.38.0)
json (~> 1.4)
nokogiri (>= 1.4.4)
uuidtools (~> 2.1)
bcrypt (3.1.7)
bcrypt-ruby (3.1.5)
bcrypt (>= 3.1.3)
bootstrap-sass (3.0.3.0)
sass (~> 3.2)
builder (3.1.4)
capistrano (3.0.1)
i18n
rake (>= 10.0.0)
sshkit (>= 0.0.23)
capistrano-bundler (1.1.2)
capistrano (~> 3.0)
sshkit (~> 1.2)
capistrano-rails (1.1.0)
capistrano (>= 3.0.0)
capistrano-bundler (>= 1.0.0)
capistrano-rbenv (2.0.1)
capistrano (~> 3.0)
sshkit (~> 1.3)
capybara (2.2.1)
mime-types (>= 1.16)
nokogiri (>= 1.3.3)
rack (>= 1.0.0)
rack-test (>= 0.5.4)
xpath (~> 2.0)
chosen-rails (1.1.0)
coffee-rails (>= 3.2)
compass-rails (>= 1.1.2)
railties (>= 3.0)
sass-rails (>= 3.2)
chunky_png (1.3.0)
ckeditor (4.0.11)
mime-types
orm_adapter (~> 0.5.0)
climate_control (0.0.3)
activesupport (>= 3.0)
cocaine (0.5.4)
climate_control (>= 0.0.3, < 1.0)
coffee-rails (4.0.1)
coffee-script (>= 2.2.0)
railties (>= 4.0.0, < 5.0)
coffee-script (2.2.0)
coffee-script-source
execjs
coffee-script-source (1.7.0)
compass (0.12.2)
chunky_png (~> 1.2)
fssm (>= 0.2.7)
sass (~> 3.1)
compass-rails (1.1.7)
compass (>= 0.12.2)
sprockets (<= 2.11.0)
devise (3.2.4)
bcrypt (~> 3.0)
orm_adapter (~> 0.1)
railties (>= 3.2.6, < 5)
thread_safe (~> 0.1)
warden (~> 1.2.3)
diff-lcs (1.2.5)
dumper (1.5.0)
multi_json (>= 1.0)
multipart-post (>= 1.1.5)
posix-spawn (>= 0.3.6)
email_spec (1.5.0)
launchy (~> 2.1)
mail (~> 2.2)
erubis (2.7.0)
exception_notification (4.0.1)
actionmailer (>= 3.0.4)
activesupport (>= 3.0.4)
execjs (2.0.2)
factory_girl (4.4.0)
activesupport (>= 3.0.0)
factory_girl_rails (4.4.1)
factory_girl (~> 4.4.0)
railties (>= 3.0.0)
faker (1.3.0)
i18n (~> 0.5)
faraday (0.9.0)
multipart-post (>= 1.2, < 3)
figaro (0.7.0)
bundler (~> 1.0)
rails (>= 3, < 5)
font-awesome-rails (4.0.3.1)
railties (>= 3.2, < 5.0)
font-awesome-sass (4.0.3.1)
sass (~> 3.2)
friendly_id (5.0.3)
activerecord (>= 4.0.0)
fssm (0.2.10)
geocoder (1.2.0)
gibbon (1.1.2)
httparty
multi_json (>= 1.3.4)
gmaps4rails (2.1.2)
hashie (2.1.1)
hike (1.2.3)
httmultiparty (0.3.14)
httparty (>= 0.7.3)
mimemagic
multipart-post
httparty (0.11.0)
multi_json (~> 1.0)
multi_xml (>= 0.5.2)
i18n (0.6.9)
jbuilder (2.0.6)
activesupport (>= 3.0.0, < 5)
multi_json (~> 1.2)
jquery-rails (3.1.0)
railties (>= 3.0, < 5.0)
thor (>= 0.14, < 2.0)
json (1.7.7)
jwt (0.1.11)
multi_json (>= 1.5)
kaminari (0.15.1)
actionpack (>= 3.0.0)
activesupport (>= 3.0.0)
kgio (2.9.2)
launchy (2.4.2)
addressable (~> 2.3)
libv8 (3.16.14.3)
mail (2.5.4)
mime-types (~> 1.16)
treetop (~> 1.4.8)
mail_form (1.5.0)
actionmailer (>= 3.2, < 5)
activemodel (>= 3.2, < 5)
mime-types (1.25.1)
mimemagic (0.2.1)
mini_portile (0.5.3)
minitest (4.7.5)
multi_json (1.9.2)
multi_xml (0.5.5)
multipart-post (2.0.0)
net-scp (1.2.0)
net-ssh (>= 2.6.5)
net-ssh (2.8.0)
nokogiri (1.6.1)
mini_portile (~> 0.5.0)
oauth2 (0.9.3)
faraday (>= 0.8, < 0.10)
jwt (~> 0.1.8)
multi_json (~> 1.3)
multi_xml (~> 0.5)
rack (~> 1.2)
omniauth (1.2.1)
hashie (>= 1.2, < 3)
rack (~> 1.0)
omniauth-facebook (1.6.0)
omniauth-oauth2 (~> 1.1)
omniauth-oauth2 (1.1.2)
faraday (>= 0.8, < 0.10)
multi_json (~> 1.3)
oauth2 (~> 0.9.3)
omniauth (~> 1.2)
orm_adapter (0.5.0)
paperclip (4.1.1)
activemodel (>= 3.0.0)
activesupport (>= 3.0.0)
cocaine (~> 0.5.3)
mime-types
pg (0.17.1)
polyglot (0.3.4)
posix-spawn (0.3.8)
rack (1.5.2)
rack-test (0.6.2)
rack (>= 1.0)
rails (4.0.3)
actionmailer (= 4.0.3)
actionpack (= 4.0.3)
activerecord (= 4.0.3)
activesupport (= 4.0.3)
bundler (>= 1.3.0, < 2.0)
railties (= 4.0.3)
sprockets-rails (~> 2.0.0)
rails_12factor (0.0.2)
rails_serve_static_assets
rails_stdout_logging
rails_layout (1.0.14)
rails_serve_static_assets (0.0.2)
rails_stdout_logging (0.0.3)
railties (4.0.3)
actionpack (= 4.0.3)
activesupport (= 4.0.3)
rake (>= 0.8.7)
thor (>= 0.18.1, < 2.0)
raindrops (0.13.0)
rake (10.3.0)
rdoc (3.12.2)
json (~> 1.4)
ref (1.0.5)
route_translator (3.2.0)
rspec-core (2.14.8)
rspec-expectations (2.14.5)
diff-lcs (>= 1.1.3, < 2.0)
rspec-mocks (2.14.6)
rspec-rails (2.14.2)
actionpack (>= 3.0)
activemodel (>= 3.0)
activesupport (>= 3.0)
railties (>= 3.0)
rspec-core (~> 2.14.0)
rspec-expectations (~> 2.14.0)
rspec-mocks (~> 2.14.0)
sass (3.2.19)
sass-rails (4.0.3)
railties (>= 4.0.0, < 5.0)
sass (~> 3.2.0)
sprockets (~> 2.8, <= 2.11.0)
sprockets-rails (~> 2.0)
sdoc (0.3.20)
json (>= 1.1.3)
rdoc (~> 3.10)
simple_oauth (0.2.0)
soundcloud (0.3.2)
hashie (~> 2.0)
httmultiparty (~> 0.3.0)
sprockets (2.11.0)
hike (~> 1.2)
multi_json (~> 1.0)
rack (~> 1.0)
tilt (~> 1.1, != 1.3.0)
sprockets-rails (2.0.1)
actionpack (>= 3.0)
activesupport (>= 3.0)
sprockets (~> 2.8)
sshkit (1.4.0)
net-scp (>= 1.1.2)
net-ssh (>= 2.8.0)
term-ansicolor
term-ansicolor (1.3.0)
tins (~> 1.0)
textacular (3.2.0)
activerecord (>= 3.0, < 4.2)
therubyracer (0.12.1)
libv8 (~> 3.16.14.0)
ref
thor (0.19.1)
thread_safe (0.3.3)
tilt (1.4.1)
tins (1.1.0)
treetop (1.4.15)
polyglot
polyglot (>= 0.3.1)
turbolinks (2.2.2)
coffee-rails
twitter (4.8.1)
faraday (~> 0.8, < 0.10)
multi_json (~> 1.0)
simple_oauth (~> 0.2)
tzinfo (0.3.39)
uglifier (2.2.1)
execjs (>= 0.3.0)
multi_json (~> 1.0, >= 1.0.2)
unicorn (4.8.2)
kgio (~> 2.6)
rack
raindrops (~> 0.7)
uuidtools (2.1.4)
warden (1.2.3)
rack (>= 1.0)
will_paginate (3.0.5)
will_paginate-bootstrap (1.0.0)
will_paginate (>= 3.0.3)
xpath (2.0.0)
nokogiri (~> 1.3)
PLATFORMS
ruby
DEPENDENCIES
acts-as-taggable-on
aws-sdk
bcrypt-ruby
bootstrap-sass (~> 3.0.3.0)
capistrano (~> 3.0.1)
capistrano-bundler
capistrano-rails (~> 1.1.0)
capistrano-rbenv (~> 2.0)
capybara
chosen-rails
ckeditor
coffee-rails
compass (= 0.12.2)
devise
dumper
email_spec
exception_notification
execjs
factory_girl_rails
faker
figaro
font-awesome-rails
font-awesome-sass (~> 4.0.2)
friendly_id
geocoder
gibbon
gmaps4rails
jbuilder
jquery-rails
json (= 1.7.7)
kaminari
mail_form
omniauth-facebook
paperclip
pg
rails (= 4.0.3)
rails_12factor
rails_layout
route_translator
rspec-rails
sass
sass-rails (~> 4.0.1)
sdoc
soundcloud
textacular
therubyracer
turbolinks
twitter
uglifier
unicorn
will_paginate-bootstrap (~> 1.0.0)
update2: If I clone the repo and bundle install, and the try to run rails s or any rake task, I replicate the bundler errors. However, if I then do gem install bundler and gem install rake, the new repo will work fine. Uninstalling and reinstalling the two gems in my original repo will not fix the issue. glad I've found a quasi fix, but would still like to get to the bottom of this.
update3: I think I've narrowed it down to an issue with the gems, but not sure how to proceed. If I run the commands that trigger errors using my default gemset, there is no issue, it's only when I switch over to the gemset for this project that I get errors. I did not run bundle update before testing commands with the default gemset.
update4: I've cloned the repo on another machine and it replicates the issue. So I'm guessing it's time to start going back and checking commits from before this issue and see what happens? My other idea is to start commenting out gems / removing dependencies and seeing if that helps. Anything else I might want to look at?
After removing all gems, the warning with uninitialized constant is still present.
These commands from the bundler FAQ did the trick:
#remove project-specific settings
rm -rf .bundle/
# remove project-specific cached gems and repos
rm -rf vendor/cache/
# remove the saved resolve of the Gemfile
rm -rf Gemfile.lock
and then rebundling with bundle install
edit: heroku deploy was also failing to start up because it starts the server with bin/rails s and my binstubs were all wonky. to fix this: BUNDLE INSTALL --BINSTUBS, again from bundler docs
I just removed the lock using rm -rf Gemfile.lock within my project directory's root folder, and re-ran bundle install and everything works perfect now.
I have problems like you, subscribe my case.
config/applicataion.rb:
require_relative 'boot'
require 'rails/all'
# Require the gems listed in Gemfile, including any gems
# you've limited to :test, :development, or :production.
Bundler.require(*Rails.groups)
module AppName
class Application < Rails::Application
config.load_defaults 5.2
end
end
where require_relative 'boot' is very important, such as config/boot.rb:
ENV['BUNDLE_GEMFILE'] ||= File.expand_path('../Gemfile', __dir__)
require 'bundler/setup' # Set up gems listed in the Gemfile.
has including bundler library into application.
Related
I have a very big project developed in certain test version, the project run well, but there are a problem with the rspec, the Gemfile and the Gemfile.lock, some of the developers have updated some gems but didn't remove the old Gemfile.lock, so we did not had any problem with the project because the Gemfile not crashed with the project.
TOO MANY commits after, I found the problem, I think is for the differences beetween gems.
When I copy and paste the last version of the Gemfile.lock all the specs run well, but if I remove the old Gemfile.lock and run again the bundle install the project will to present many problems with the specs I think is for the gems version, but I try to install the same version that I have in my old Gemfile.lock and I have the same problem, also there are some gems that cannot find the original version.
The project is so big, and I cannot update the Gemfile, I think that one of the possible solution is with a program convert the Gemfile.lock to Gemfile to not have any error with my specs
This is my old Gemfile.lock that makes run my rspec well:
GEM
remote: https://rubygems.org/
specs:
aasm (3.0.3)
activerecord
actionmailer (3.2.1)
actionpack (= 3.2.1)
mail (~> 2.4.0)
actionpack (3.2.1)
activemodel (= 3.2.1)
activesupport (= 3.2.1)
builder (~> 3.0.0)
erubis (~> 2.7.0)
journey (~> 1.0.1)
rack (~> 1.4.0)
rack-cache (~> 1.1)
rack-test (~> 0.6.1)
sprockets (~> 2.1.2)
active_median (0.0.1)
active_record_query_trace (1.5.4)
activemodel (3.2.1)
activesupport (= 3.2.1)
builder (~> 3.0.0)
activerecord (3.2.1)
activemodel (= 3.2.1)
activesupport (= 3.2.1)
arel (~> 3.0.0)
tzinfo (~> 0.3.29)
activeresource (3.2.1)
activemodel (= 3.2.1)
activesupport (= 3.2.1)
activesupport (3.2.1)
i18n (~> 0.6)
multi_json (~> 1.0)
addressable (2.2.7)
akami (1.0.0)
gyoku (>= 0.4.0)
algorithms (0.5.0)
arel (3.0.2)
awesome_nested_set (2.1.6)
activerecord (>= 3.0.0)
bcrypt-ruby (3.0.1)
bluepill (0.0.66)
activesupport (>= 3.0.0, < 4.0.0)
daemons (~> 1.1.4)
i18n (>= 0.5.0)
state_machine (~> 1.1)
bourne (1.6.0)
mocha (~> 1.1)
builder (3.0.0)
cancan (1.6.7)
capistrano (2.11.2)
highline
net-scp (>= 1.0.0)
net-sftp (>= 2.0.0)
net-ssh (>= 2.0.14)
net-ssh-gateway (>= 1.1.0)
coffee-rails (3.2.2)
coffee-script (>= 2.2.0)
railties (~> 3.2.0)
coffee-script (2.2.0)
coffee-script-source
execjs
coffee-script-source (1.2.0)
columnize (0.9.0)
daemons (1.1.9)
database_cleaner (0.7.2)
debugger (1.6.8)
columnize (>= 0.3.1)
debugger-linecache (~> 1.2.0)
debugger-ruby_core_source (~> 1.3.5)
debugger-linecache (1.2.0)
debugger-ruby_core_source (1.3.8)
devise (2.0.4)
bcrypt-ruby (~> 3.0)
orm_adapter (~> 0.0.3)
railties (~> 3.1)
warden (~> 1.1.1)
devise_lastseenable (0.0.6)
devise
rails (>= 3.0.4)
diff-lcs (1.1.3)
erubis (2.7.0)
exception_notification (2.6.1)
actionmailer (>= 3.0.4)
execjs (1.3.0)
multi_json (~> 1.0)
factory_girl (3.0.0)
activesupport (>= 3.0.0)
factory_girl_rails (3.0.0)
factory_girl (~> 3.0.0)
railties (>= 3.0.0)
faraday (0.7.6)
addressable (~> 2.2)
multipart-post (~> 1.1)
rack (~> 1.1)
geocoder (1.1.1)
groupdate (1.0.4)
activerecord (>= 3.0.0)
gyoku (0.4.4)
builder (>= 2.1.2)
highline (1.6.11)
hike (1.2.1)
holidays (3.3.0)
httpi (0.9.6)
rack
i18n (0.6.0)
i18n-inflector (2.6.6)
i18n (>= 0.4.1)
journey (1.0.3)
json (1.6.5)
kaminari (0.13.0)
actionpack (>= 3.0.0)
activesupport (>= 3.0.0)
railties (>= 3.0.0)
mail (2.4.4)
i18n (>= 0.4.0)
mime-types (~> 1.16)
treetop (~> 1.4.8)
metaclass (0.0.4)
mime-types (1.18)
mocha (1.2.1)
metaclass (~> 0.0.1)
multi_json (1.1.0)
multipart-post (1.1.5)
net-scp (1.0.4)
net-ssh (>= 1.99.1)
net-sftp (2.0.5)
net-ssh (>= 2.0.9)
net-ssh (2.9.2)
net-ssh-gateway (1.1.0)
net-ssh (>= 1.99.1)
newrelic_rpm (3.15.2.317)
nokogiri (1.5.2)
nori (1.1.0)
oauth (0.4.5)
oauth-plugin (0.4.0.rc2)
multi_json
oauth (~> 0.4.4)
oauth2
rack
oauth2 (0.5.2)
faraday (~> 0.7)
multi_json (~> 1.0)
orm_adapter (0.0.7)
passenger (5.0.28)
rack
rake (>= 0.8.1)
pg (0.18.4)
polyglot (0.3.3)
rabl (0.6.2)
activesupport (>= 2.3.14)
multi_json (~> 1.1.0)
rack (1.4.1)
rack-cache (1.2)
rack (>= 0.4)
rack-protection (1.2.0)
rack
rack-ssl (1.3.2)
rack
rack-test (0.6.1)
rack (>= 1.0)
rails (3.2.1)
actionmailer (= 3.2.1)
actionpack (= 3.2.1)
activerecord (= 3.2.1)
activeresource (= 3.2.1)
activesupport (= 3.2.1)
bundler (~> 1.0)
railties (= 3.2.1)
railties (3.2.1)
actionpack (= 3.2.1)
activesupport (= 3.2.1)
rack-ssl (~> 1.3.2)
rake (>= 0.8.7)
rdoc (~> 3.4)
thor (~> 0.14.6)
rake (11.1.2)
rdoc (3.12)
json (~> 1.4)
redis (2.2.2)
redis-actionpack (3.2.1)
actionpack (= 3.2.1)
redis-rack (~> 1.4.0)
redis-store (~> 1.1.0)
redis-activesupport (3.2.1)
activesupport (= 3.2.1)
redis-store (~> 1.1.0)
redis-namespace (1.0.3)
redis (< 3.0.0)
redis-rack (1.4.1)
rack (= 1.4.1)
redis-store (~> 1.1.0)
redis-rails (3.2.1)
redis-actionpack (~> 3.2.1)
redis-activesupport (~> 3.2.1)
redis-store (~> 1.1.0)
redis-store (1.1.0)
redis (~> 2.2.0)
resque (1.20.0)
multi_json (~> 1.0)
redis-namespace (~> 1.0.2)
sinatra (>= 0.9.2)
vegas (~> 0.1.2)
resque-scheduler (2.0.0)
redis (>= 2.0.1)
resque (>= 1.20.0)
rufus-scheduler
resque_mailer (2.0.3)
actionmailer (>= 3.0.0)
resque (>= 1.2.3)
resque_spec (0.12.2)
resque (>= 1.19.0)
rspec (>= 2.5.0)
rspec (2.9.0)
rspec-core (~> 2.9.0)
rspec-expectations (~> 2.9.0)
rspec-mocks (~> 2.9.0)
rspec-core (2.9.0)
rspec-expectations (2.9.0)
diff-lcs (~> 1.1.3)
rspec-mocks (2.9.0)
rspec-rails (2.9.0)
actionpack (>= 3.0)
activesupport (>= 3.0)
railties (>= 3.0)
rspec (~> 2.9.0)
rufus-scheduler (2.0.17)
tzinfo (>= 0.3.23)
rvm-capistrano (1.0.2)
capistrano (>= 2.0.0)
sass (3.1.15)
sass-rails (3.2.5)
railties (~> 3.2.0)
sass (>= 3.1.10)
tilt (~> 1.3)
savon (0.9.9)
akami (~> 1.0)
builder (>= 2.1.2)
gyoku (>= 0.4.0)
httpi (~> 0.9)
nokogiri (>= 1.4.0)
nori (~> 1.1)
wasabi (~> 2.1)
shoulda-matchers (1.5.6)
activesupport (>= 3.0.0)
bourne (~> 1.3)
simplecov (0.6.1)
multi_json (~> 1.0)
simplecov-html (~> 0.5.3)
simplecov-html (0.5.3)
sinatra (1.3.2)
rack (~> 1.3, >= 1.3.6)
rack-protection (~> 1.2)
tilt (~> 1.3, >= 1.3.3)
slack-notifier (1.5.1)
sprockets (2.1.2)
hike (~> 1.2)
rack (~> 1.0)
tilt (~> 1.1, != 1.3.0)
sqlite3 (1.3.5)
state_machine (1.2.0)
strip_attributes (1.1.0)
activemodel (~> 3.0)
sugarcrm (0.9.18)
activesupport (>= 2.3.10)
i18n
json
thor (0.14.6)
tilt (1.3.3)
timecop (0.8.1)
timezone (0.99.2)
treetop (1.4.10)
polyglot
polyglot (>= 0.3.1)
typhoeus (0.3.3)
mime-types
tzinfo (0.3.49)
uglifier (1.2.3)
execjs (>= 0.3.0)
multi_json (>= 1.0.2)
vegas (0.1.11)
rack (>= 1.0.0)
warden (1.1.1)
rack (>= 1.0)
wasabi (2.1.0)
nokogiri (>= 1.4.0)
PLATFORMS
ruby
DEPENDENCIES
aasm
active_median
active_record_query_trace
algorithms
awesome_nested_set
bluepill
cancan
capistrano
coffee-rails (~> 3.2.1)
database_cleaner (~> 0.7.1)
debugger
devise
devise_lastseenable
exception_notification (~> 2.6.1)
factory_girl_rails
geocoder
groupdate
holidays
i18n-inflector
kaminari
net-ssh (= 2.9.2)
newrelic_rpm
nokogiri
oauth-plugin (>= 0.4.0.pre1)
passenger
pg
rabl (~> 0.6.0)
rails (= 3.2.1)
redis-rails
resque (~> 1.20.0)
resque-scheduler
resque_mailer (~> 2.0.3)
resque_spec
rspec-rails (~> 2.4)
rvm-capistrano
sass-rails (~> 3.2.3)
savon (~> 0.9.9)
shoulda-matchers (~> 1.5.0)
simplecov
slack-notifier (~> 1.5, >= 1.5.1)
sqlite3
strip_attributes (~> 1.0)
sugarcrm
timecop
timezone
typhoeus (~> 0.3.3)
tzinfo (~> 0.3.49)
uglifier (>= 1.0.3)
BUNDLED WITH
1.14.6
And here is my attemp to copy the Gemfile.lock to the Gemfile:
source 'https://rubygems.org'
gem 'rails', '3.2.1'
gem 'pg', '~> 0.18.4', group: [:development, :test, :production]
group :assets do
gem 'sass-rails', '~> 3.2.3'
gem 'coffee-rails', '~> 3.2.1'
gem 'uglifier', '>= 1.0.3'
end
group :production do
gem 'passenger', '~> 5.0.8'
# gem 'passenger', '~> 5.1.4'
end
gem 'devise'
gem 'devise_lastseenable'
gem 'cancan'
gem 'oauth-plugin', ">= 0.4.0.pre1"
group :test, :development, :vcr do
gem 'rspec', '~> 1.1.3'
gem "rspec-rails", "~> 2.99"
gem 'factory_girl_rails'
gem 'timecop'
gem 'shoulda-matchers', '~> 2.8.0'#, git: 'git://github.com/thoughtbot/shoulda-matchers.git'
gem 'debugger'
gem 'sqlite3'
gem 'database_cleaner', '~> 0.7.1'
gem 'simplecov'
end
group :test do
gem 'resque_spec'
end
gem 'rabl', '~> 0.6.0'
gem 'aasm'
gem 'net-ssh', '=2.9.2'
gem 'holidays', '~> 3.1.2'#, git: 'https://github.com/sincola/holidays.git'
gem 'capistrano', require: false
gem 'rvm-capistrano', require: false
gem 'newrelic_rpm', '~> 3.18.1'
gem 'i18n-inflector'
gem 'savon', '~> 0.9.9'
gem "typhoeus", "~> 0.3.3"
gem "exception_notification", "~> 2.6.1"
gem "strip_attributes", "~> 1.0"
gem 'resque', "~> 1.20.0"
gem 'resque_mailer', "~> 2.0.3"
gem 'resque-scheduler', :require => 'resque_scheduler'
gem 'kaminari'
gem 'redis-rails'
gem 'algorithms'
gem 'geocoder'
gem 'timezone', '~> 1.0'
gem 'sugarcrm'
gem 'bluepill'
gem 'groupdate'
gem 'active_median'
gem 'awesome_nested_set'
gem 'tzinfo', '~> 0.3.49'
gem 'active_record_query_trace' # source: https://github.com/ruckus/active-record-query-trace
gem 'slack-notifier', '~> 1.5', '>= 1.5.1'
gem 'nokogiri', '~> 1.6.5'
What I think is: there are different gems that are repeated in my Gemfile.lock with different versions in old Gemfile.lock
Please read carefully my problem, and If you know how to help my, I would thank you infinitely.
Thanks and regards,
When you try to run bundle install, Some gem will give you error like Your bundle is locked to xyz gem (version), but that version could not be found in any of the sources listed in your Gemfile. To resolve such issue you have to update exact version = xxx in your Gemfile not with ~> xxx.
Also you might need to update locked gems also in Gemfile.lock, due to dependency of other gems.
The Gemfile is less strict than the Gemfile.lock. So, all the Gems that have no restriction or a soft restriction (for example, ~> 4 or > 4.0) would be updated to a new version, which may not be the one that was used when the code was originally developed, that's why some of the gems may fail.
I hadn't time to do a complete review of your attempt to copy the Gemfile.lock to a Gemfile yet, but I have seen you used some gems without specifying an exact version in your Gemfile and I think that may be your problem. The Gemfile.lock always specify the exact version, so if you want to copy your Gemfile.lock you should be doing the same. For example, for slack-notifier gem you are using version 1.5.1 but your Gemfile has gem 'slack-notifier', '~> 1.5', '>= 1.5.1' when it should be gem 'slack-notifier', '1.5.1'
When I try start my application on Docker, I get an error message:
Could not find gem 'devise_masquerade (>-0) ruby' in any of the gem
sources listed in your Gemfile or available on this machine.
I don't understand what the issue is since I included the devise_masquerade gem to my Gemfile and it appears in my Gemfile lock. My client wants to keep rails 4.0.0 and so that's my only restriction when it comes to gem versions. What can I do to fix this problem? What is the problem? Is there a gem incompatibility?
This is my Gemfile:
source 'https://rubygems.org'
# ruby '2.0.0'
# Bundle edge Rails instead: gem 'rails', github: 'rails/rails'
gem 'rails', '~> 4.0.0'
# Use sqlite3 as the database for Active Record
# gem 'sqlite3'
gem 'mysql2', "~> 0.3.15"
gem 'pg', "~> 0.17.1"
gem "activerecord4-redshift-adapter", github: "aamine/activerecord4-redshift-adapter"
# Cache
gem 'dalli'
# AWS SDK
gem 'aws-sdk', '~> 1.0'
# Build JSON APIs with ease. Read more: https://github.com/rails/jbuilder
# gem 'jbuilder', '~> 1.2'
# Excel Generation
gem 'axlsx_rails'
# CORS
gem 'rack-cors', :require => 'rack/cors'
# JWT
gem 'jwt', '~> 1.0'
#Importing Excel
gem 'roo'
gem 'request_store'
# for whitelabel
gem 'sass-rails', '~> 4.0.0'
group :doc do
# bundle exec rake doc:rails generates the API under doc/api.
gem 'sdoc', require: false
end
group :test, :development do
# Development
gem 'quiet_assets'
gem 'better_errors' # Output a much better error page
gem 'binding_of_caller' # - REPL for better_errors
gem 'meta_request' # Supporting gem for Rails Panel (Chrome Extension)
# gem 'rails-dev-tweaks', git: "git://github.com/yellowhammer/rails-dev-tweaks.git"
gem 'rails-dev-boost', git: "git://github.com/thedarkone/rails-dev-boost.git"
# Testing
gem 'rspec-rails', '~> 2.0'
gem 'faker'
gem "shoulda-matchers", '2.5.0'
gem 'database_cleaner'
gem 'factory_girl_rails' # Use factories instead of fixtures
gem 'json_expressions' # Better testing for JSON patterns
gem 'mocha_rails' # Mocha Testing Framework / Chai
gem 'ci_reporter', '1.9.1' # needed for jenkins
gem "codeclimate-test-reporter" # needed for jenkins integration with codeclimate
gem 'simplecov' # needed to generate code coverage reports
gem 'simplecov-rcov' # needed to generate code coverage report that ruby metrics plugin understands
gem 'spring-commands-rspec' # integrate spring for rspec for faster testing
gem 'pry'
gem "pry-remote", :require => "pry-remote"
gem 'slim'
gem "bullet"
gem "rubocop"
end
gem 'sinatra', require: false
# Devise (authentication)
gem 'devise', '~> 3.4'
gem 'devise_masquerade'
gem 'omniauth-google-oauth2', "0.2.2"
# Permissioning
gem 'authority', "~> 2.9.0"
# Versionist
gem 'versionist', "~> 1.2.1"
# JSON serialization
gem "active_model_serializers", "~> 0.8.1"
# For soft deletes
gem "soft_deletion", "~> 0.4.6"
# Application settings
gem "rails_config", "~> 0.3.3"
gem 'awesome_print', '~> 1.2.0'
# Segment.io
gem 'analytics-ruby', '<1.0'
# Paper Trail for object auditing
gem 'paper_trail', '~> 3.0.5'
# RestClient + Nokogiri for fetching/parsing LiveRail API (until extracted to private gem)
gem 'rest-client', '~> 1.7'
gem 'nokogiri', '~> 1.6'
gem 'sidekiq', '~> 3.3'
gem 'puma', '~>2.11'
# AppNexus Wrapper
source 'http://geminabox.rhinoserve.com:8080' do
gem 'appnexus', '0.0.7'
end
This is my gemlock:
GIT
remote: git://github.com/aamine/activerecord4-redshift-adapter.git
revision: 72692fd7e08d67a1834f6ad3ff90cafa35d5df8f
specs:
activerecord4-redshift-adapter (0.1.1)
activerecord (>= 4.0.0)
pg
GIT
remote: git://github.com/thedarkone/rails-dev-boost.git
revision: 15ebc37b3f1b424ce7f5a160d2a8f890023208e6
specs:
rails-dev-boost (0.3.0)
railties (>= 3.0)
GEM
remote: https://rubygems.org/
remote: http://geminabox.rhinoserve.com:8080/
specs:
actionmailer (4.0.13)
actionpack (= 4.0.13)
mail (~> 2.5, >= 2.5.4)
actionpack (4.0.13)
activesupport (= 4.0.13)
builder (~> 3.1.0)
erubis (~> 2.7.0)
rack (~> 1.5.2)
rack-test (~> 0.6.2)
active_model_serializers (0.8.3)
activemodel (>= 3.0)
activemodel (4.0.13)
activesupport (= 4.0.13)
builder (~> 3.1.0)
activerecord (4.0.13)
activemodel (= 4.0.13)
activerecord-deprecated_finders (~> 1.0.2)
activesupport (= 4.0.13)
arel (~> 4.0.0)
activerecord-deprecated_finders (1.0.4)
activesupport (4.0.13)
i18n (~> 0.6, >= 0.6.9)
minitest (~> 4.2)
multi_json (~> 1.3)
thread_safe (~> 0.1)
tzinfo (~> 0.3.37)
analytics-ruby (0.6.0)
faraday (>= 0.8)
faraday_middleware (>= 0.8, < 0.10)
multi_json (~> 1.0)
appnexus (0.0.7)
activesupport (>= 4.0.0)
rest-client
arel (4.0.2)
ast (2.0.0)
astrolabe (1.3.1)
parser (~> 2.2)
authority (2.9.0)
activesupport (>= 3.0.0)
rake (>= 0.8.7)
awesome_print (1.2.0)
aws-sdk (1.64.0)
aws-sdk-v1 (= 1.64.0)
aws-sdk-v1 (1.64.0)
json (~> 1.4)
nokogiri (>= 1.4.4)
axlsx (2.0.1)
htmlentities (~> 4.3.1)
nokogiri (>= 1.4.1)
rubyzip (~> 1.0.0)
axlsx_rails (0.3.0)
axlsx (>= 2.0.1)
rails (>= 3.1)
bcrypt (3.1.10)
better_errors (2.1.1)
coderay (>= 1.0.0)
erubis (>= 2.6.6)
rack (>= 0.9.0)
binding_of_caller (0.7.2)
debug_inspector (>= 0.0.1)
builder (3.1.4)
bullet (4.14.7)
activesupport (>= 3.0.0)
uniform_notifier (~> 1.9.0)
callsite (0.0.11)
celluloid (0.16.0)
timers (~> 4.0.0)
ci_reporter (1.9.1)
builder (>= 2.1.2)
codeclimate-test-reporter (0.4.7)
simplecov (>= 0.7.1, < 1.0.0)
coderay (1.1.0)
connection_pool (2.2.0)
dalli (2.7.4)
database_cleaner (1.4.1)
debug_inspector (0.0.2)
devise (3.4.1)
bcrypt (~> 3.0)
orm_adapter (~> 0.1)
railties (>= 3.2.6, < 5)
responders
thread_safe (~> 0.1)
warden (~> 1.2.3)
diff-lcs (1.2.5)
docile (1.1.5)
domain_name (0.5.23)
unf (>= 0.0.5, < 1.0.0)
erubis (2.7.0)
factory_girl (4.5.0)
activesupport (>= 3.0.0)
factory_girl_rails (4.5.0)
factory_girl (~> 4.5.0)
railties (>= 3.0.0)
faker (1.4.3)
i18n (~> 0.5)
faraday (0.9.1)
multipart-post (>= 1.2, < 3)
faraday_middleware (0.9.1)
faraday (>= 0.7.4, < 0.10)
hashie (3.4.1)
hike (1.2.3)
hitimes (1.2.2)
htmlentities (4.3.3)
http-cookie (1.0.2)
domain_name (~> 0.5)
i18n (0.7.0)
json (1.8.2)
json_expressions (0.8.3)
jwt (1.4.1)
mail (2.6.3)
mime-types (>= 1.16, < 3)
meta_request (0.3.4)
callsite (~> 0.0, >= 0.0.11)
rack-contrib (~> 1.1)
railties (>= 3.0.0, < 5.0.0)
method_source (0.8.2)
mime-types (2.4.3)
mini_portile (0.6.2)
minitest (4.7.5)
mocha_rails (0.0.5)
rails (>= 3.1.0)
multi_json (1.11.0)
multi_xml (0.5.5)
multipart-post (2.0.0)
mysql2 (0.3.18)
netrc (0.10.3)
nokogiri (1.6.6.2)
mini_portile (~> 0.6.0)
oauth2 (1.0.0)
faraday (>= 0.8, < 0.10)
jwt (~> 1.0)
multi_json (~> 1.3)
multi_xml (~> 0.5)
rack (~> 1.2)
omniauth (1.2.2)
hashie (>= 1.2, < 4)
rack (~> 1.0)
omniauth-google-oauth2 (0.2.2)
omniauth (~> 1.0)
omniauth-oauth2
omniauth-oauth2 (1.2.0)
faraday (>= 0.8, < 0.10)
multi_json (~> 1.3)
oauth2 (~> 1.0)
omniauth (~> 1.2)
orm_adapter (0.5.0)
paper_trail (3.0.7)
activerecord (>= 3.0, < 5.0)
activesupport (>= 3.0, < 5.0)
parser (2.2.2.6)
ast (>= 1.1, < 3.0)
pg (0.17.1)
powerpack (0.1.1)
pry (0.10.1)
coderay (~> 1.1.0)
method_source (~> 0.8.1)
slop (~> 3.4)
pry-remote (0.1.8)
pry (~> 0.9)
slop (~> 3.0)
puma (2.11.2)
rack (>= 1.1, < 2.0)
quiet_assets (1.1.0)
railties (>= 3.1, < 5.0)
rack (1.5.2)
rack-contrib (1.2.0)
rack (>= 0.9.1)
rack-cors (0.3.1)
rack-protection (1.5.3)
rack
rack-test (0.6.3)
rack (>= 1.0)
rails (4.0.13)
actionmailer (= 4.0.13)
actionpack (= 4.0.13)
activerecord (= 4.0.13)
activesupport (= 4.0.13)
bundler (>= 1.3.0, < 2.0)
railties (= 4.0.13)
sprockets-rails (~> 2.0)
rails_config (0.3.4)
activesupport (>= 3.0)
railties (4.0.13)
actionpack (= 4.0.13)
activesupport (= 4.0.13)
rake (>= 0.8.7)
thor (>= 0.18.1, < 2.0)
rainbow (2.0.0)
rake (10.4.2)
rdoc (4.2.0)
json (~> 1.4)
redis (3.2.1)
redis-namespace (1.5.2)
redis (~> 3.0, >= 3.0.4)
request_store (1.1.0)
responders (1.1.2)
railties (>= 3.2, < 4.2)
rest-client (1.8.0)
http-cookie (>= 1.0.2, < 2.0)
mime-types (>= 1.16, < 3.0)
netrc (~> 0.7)
roo (1.13.2)
nokogiri
rubyzip
spreadsheet (> 0.6.4)
rspec-collection_matchers (1.1.2)
rspec-expectations (>= 2.99.0.beta1)
rspec-core (2.99.2)
rspec-expectations (2.99.2)
diff-lcs (>= 1.1.3, < 2.0)
rspec-mocks (2.99.3)
rspec-rails (2.99.0)
actionpack (>= 3.0)
activemodel (>= 3.0)
activesupport (>= 3.0)
railties (>= 3.0)
rspec-collection_matchers
rspec-core (~> 2.99.0)
rspec-expectations (~> 2.99.0)
rspec-mocks (~> 2.99.0)
rubocop (0.32.1)
astrolabe (~> 1.3)
parser (>= 2.2.2.5, < 3.0)
powerpack (~> 0.1)
rainbow (>= 1.99.1, < 3.0)
ruby-progressbar (~> 1.4)
ruby-ole (1.2.11.8)
ruby-progressbar (1.7.5)
rubyzip (1.0.0)
sass (3.2.19)
sass-rails (4.0.5)
railties (>= 4.0.0, < 5.0)
sass (~> 3.2.2)
sprockets (~> 2.8, < 3.0)
sprockets-rails (~> 2.0)
sdoc (0.4.1)
json (~> 1.7, >= 1.7.7)
rdoc (~> 4.0)
shoulda-matchers (2.5.0)
activesupport (>= 3.0.0)
sidekiq (3.3.3)
celluloid (>= 0.16.0)
connection_pool (>= 2.1.1)
json
redis (>= 3.0.6)
redis-namespace (>= 1.3.1)
simplecov (0.9.2)
docile (~> 1.1.0)
multi_json (~> 1.0)
simplecov-html (~> 0.9.0)
simplecov-html (0.9.0)
simplecov-rcov (0.2.3)
simplecov (>= 0.4.1)
sinatra (1.4.6)
rack (~> 1.4)
rack-protection (~> 1.4)
tilt (>= 1.3, < 3)
slim (3.0.3)
temple (~> 0.7.3)
tilt (>= 1.3.3, < 2.1)
slop (3.6.0)
soft_deletion (0.4.6)
spreadsheet (1.0.3)
ruby-ole (>= 1.0)
spring (1.3.4)
spring-commands-rspec (1.0.4)
spring (>= 0.9.1)
sprockets (2.12.3)
hike (~> 1.2)
multi_json (~> 1.0)
rack (~> 1.0)
tilt (~> 1.1, != 1.3.0)
sprockets-rails (2.2.4)
actionpack (>= 3.0)
activesupport (>= 3.0)
sprockets (>= 2.8, < 4.0)
temple (0.7.5)
thor (0.19.1)
thread_safe (0.3.5)
tilt (1.4.1)
timers (4.0.1)
hitimes
tzinfo (0.3.43)
unf (0.1.4)
unf_ext
unf_ext (0.0.6)
uniform_notifier (1.9.0)
versionist (1.2.1)
rails (>= 3)
yard (~> 0.7)
warden (1.2.3)
rack (>= 1.0)
yard (0.8.7.6)
PLATFORMS
ruby
DEPENDENCIES
active_model_serializers (~> 0.8.1)
activerecord4-redshift-adapter!
analytics-ruby (< 1.0)
appnexus (= 0.0.7)!
authority (~> 2.9.0)
awesome_print (~> 1.2.0)
aws-sdk (~> 1.0)
axlsx_rails
better_errors
binding_of_caller
bullet
ci_reporter (= 1.9.1)
codeclimate-test-reporter
dalli
database_cleaner
devise (~> 3.4)
factory_girl_rails
faker
json_expressions
jwt (~> 1.0)
meta_request
mocha_rails
mysql2 (~> 0.3.15)
nokogiri (~> 1.6)
omniauth-google-oauth2 (= 0.2.2)
paper_trail (~> 3.0.5)
pg (~> 0.17.1)
pry
pry-remote
puma (~> 2.11)
quiet_assets
rack-cors
rails (~> 4.0.0)
rails-dev-boost!
rails_config (~> 0.3.3)
request_store
rest-client (~> 1.7)
roo
rspec-rails (~> 2.0)
rubocop
sass-rails (~> 4.0.0)
sdoc
shoulda-matchers (= 2.5.0)
sidekiq (~> 3.3)
simplecov
simplecov-rcov
sinatra
slim
soft_deletion (~> 0.4.6)
spring-commands-rspec
versionist (~> 1.2.1)
BUNDLED WITH
1.10.6
Make sure you have the following in your Gemfile:
gem 'devise_masquerade'
Then run:
bundle install
This should fix your issue.
Sample:
gem install packet-name -v '1.0.0'
I get errors like this:
xill#atawho:/opt/metasploit-framework$ msfconsole
**Could not find cucumber-1.3.19 in any of the sources**
So try:
gem install cucumber -v '1.3.19'
I have been working with Rails and it sends me back this error. Please provide questions. Thanks for all the help. I will update this question with a better one because I don't know how to ask it.
Bundler::GemNotFound: Could not find rake-10.3.2 in any of the sources
~/.rvm/gems/ruby-2.0.0-p451/gems/bundler-1.6.2/lib/bundler/spec_set.rb:92:in `block in materialize'
~/.rvm/gems/ruby-2.0.0-p451/gems/bundler-1.6.2/lib/bundler/spec_set.rb:85:in `map!'
~/.rvm/gems/ruby-2.0.0-p451/gems/bundler-1.6.2/lib/bundler/spec_set.rb:85:in `materialize'
~/.rvm/gems/ruby-2.0.0-p451/gems/bundler-1.6.2/lib/bundler/definition.rb:133:in `specs'
~/.rvm/gems/ruby-2.0.0-p451/gems/bundler-1.6.2/lib/bundler/definition.rb:178:in `specs_for'
Show 28 more lines
I am sure my rake is latest version
Gemfile
source 'https://rubygems.org'
# Bundle edge Rails instead: gem 'rails', github: 'rails/rails'
gem 'rails', '4.1.1'
# Use sqlite3 as the database for Active Record
gem 'sqlite3'
# Use SCSS for stylesheets
gem 'sass-rails', '~> 4.0.3'
# Use Uglifier as compressor for JavaScript assets
gem 'uglifier', '>= 1.3.0'
# Use CoffeeScript for .js.coffee assets and views
gem 'coffee-rails', '~> 4.0.0'
# See https://github.com/sstephenson/execjs#readme for more supported runtimes
# gem 'therubyracer', platforms: :ruby
# Use jquery as the JavaScript library
gem 'jquery-rails'
gem 'devise', '3.0.2'
gem "seo_helper", "~> 1.0.2"
gem "open_graph_helper"
gem "rmagick"
gem "carrierwave"
gem "carrierwave-meta"
gem "settingslogic"
gem "anjlab-bootstrap-rails", "2.3.1.2", :require => "bootstrap-rails"
gem "bootstrap_helper", ">= 4.2.2.1"
gem "simple_form", "~> 3.0.1"
gem "will_paginate", "3.0.3"
gem "font-awesome-rails", "~> 3.2.1.3"
gem "high_voltage"
gem "airbrake"
gem "rvm-capistrano"
gem 'rake', '~> 10.3.2'
gem "omniauth"
gem "omniauth-facebook"
gem "auto-facebook", "0.42"
gem "whenever"
gem "hipchat"
# Cache
gem "dalli"
gem "compass-rails", "~> 1.1.2"
group :development do
gem "capistrano"
gem "capistrano-ext"
gem "cape"
gem "binding_of_caller"
gem "better_errors", "~> 0.9.0"
gem "magic_encoding"
gem "annotate"
gem "powder"
gem "pry-nav"
gem "pry-remote"
end
Gemfile.lock
GEM
remote: https://rubygems.org/
specs:
actionmailer (4.1.1)
actionpack (= 4.1.1)
actionview (= 4.1.1)
mail (~> 2.5.4)
actionpack (4.1.1)
actionview (= 4.1.1)
activesupport (= 4.1.1)
rack (~> 1.5.2)
rack-test (~> 0.6.2)
actionview (4.1.1)
activesupport (= 4.1.1)
builder (~> 3.1)
erubis (~> 2.7.0)
activemodel (4.1.1)
activesupport (= 4.1.1)
builder (~> 3.1)
activerecord (4.1.1)
activemodel (= 4.1.1)
activesupport (= 4.1.1)
arel (~> 5.0.0)
activesupport (4.1.1)
i18n (~> 0.6, >= 0.6.9)
json (~> 1.7, >= 1.7.7)
minitest (~> 5.1)
thread_safe (~> 0.1)
tzinfo (~> 1.1)
airbrake (3.1.17)
builder
multi_json
anjlab-bootstrap-rails (2.3.1.2)
railties (>= 3.0)
sass (>= 3.2)
annotate (2.6.3)
activerecord (>= 2.3.0)
rake (>= 0.8.7)
arel (5.0.1.20140414130214)
auto-facebook (0.42)
omniauth
omniauth-facebook
rails (>= 4.0.0)
bcrypt (3.1.7)
bcrypt-ruby (3.1.5)
bcrypt (>= 3.1.3)
better_errors (0.9.0)
coderay (>= 1.0.0)
erubis (>= 2.6.6)
binding_of_caller (0.7.2)
debug_inspector (>= 0.0.1)
bootstrap_helper (4.2.3)
railties (>= 4.0.0)
thor (~> 0.14)
will_paginate (>= 3.0.3)
builder (3.2.2)
cape (1.8.0)
capistrano (2.15.5)
highline
net-scp (>= 1.0.0)
net-sftp (>= 2.0.0)
net-ssh (>= 2.0.14)
net-ssh-gateway (>= 1.1.0)
capistrano-ext (1.2.1)
capistrano (>= 1.0.0)
carrierwave (0.10.0)
activemodel (>= 3.2.0)
activesupport (>= 3.2.0)
json (>= 1.7)
mime-types (>= 1.16)
carrierwave-meta (0.0.5)
activesupport (>= 3.0)
carrierwave (>= 0.5.7)
mime-types
chronic (0.10.2)
chunky_png (1.3.1)
coderay (1.1.0)
coffee-rails (4.0.1)
coffee-script (>= 2.2.0)
railties (>= 4.0.0, < 5.0)
coffee-script (2.2.0)
coffee-script-source
execjs
coffee-script-source (1.7.0)
compass (0.12.6)
chunky_png (~> 1.2)
fssm (>= 0.2.7)
sass (~> 3.2.19)
compass-rails (1.1.7)
compass (>= 0.12.2)
sprockets (<= 2.11.0)
dalli (2.7.2)
debug_inspector (0.0.2)
devise (3.0.2)
bcrypt-ruby (~> 3.0)
orm_adapter (~> 0.1)
railties (>= 3.2.6, < 5)
warden (~> 1.2.3)
erubis (2.7.0)
execjs (2.0.2)
faraday (0.9.0)
multipart-post (>= 1.2, < 3)
font-awesome-rails (3.2.1.3)
railties (>= 3.2, < 5.0)
fssm (0.2.10)
hashie (2.1.1)
high_voltage (2.1.0)
highline (1.6.21)
hike (1.2.3)
hipchat (1.1.0)
httparty
httparty (0.13.1)
json (~> 1.8)
multi_xml (>= 0.5.2)
i18n (0.6.9)
jbuilder (2.0.7)
activesupport (>= 3.0.0, < 5)
multi_json (~> 1.2)
jquery-rails (3.1.0)
railties (>= 3.0, < 5.0)
thor (>= 0.14, < 2.0)
json (1.8.1)
jwt (0.1.13)
multi_json (>= 1.5)
magic_encoding (0.0.2)
mail (2.5.4)
mime-types (~> 1.16)
treetop (~> 1.4.8)
method_source (0.8.2)
mime-types (1.25.1)
minitest (5.3.4)
multi_json (1.10.1)
multi_xml (0.5.5)
multipart-post (2.0.0)
net-scp (1.2.1)
net-ssh (>= 2.6.5)
net-sftp (2.1.2)
net-ssh (>= 2.6.5)
net-ssh (2.9.1)
net-ssh-gateway (1.2.0)
net-ssh (>= 2.6.5)
oauth2 (0.9.3)
faraday (>= 0.8, < 0.10)
jwt (~> 0.1.8)
multi_json (~> 1.3)
multi_xml (~> 0.5)
rack (~> 1.2)
omniauth (1.2.1)
hashie (>= 1.2, < 3)
rack (~> 1.0)
omniauth-facebook (1.6.0)
omniauth-oauth2 (~> 1.1)
omniauth-oauth2 (1.1.2)
faraday (>= 0.8, < 0.10)
multi_json (~> 1.3)
oauth2 (~> 0.9.3)
omniauth (~> 1.2)
open_graph_helper (0.2.0)
orm_adapter (0.5.0)
polyglot (0.3.4)
powder (0.2.1)
thor (>= 0.11.5)
pry (0.9.12.6)
coderay (~> 1.0)
method_source (~> 0.8)
slop (~> 3.4)
pry-nav (0.2.3)
pry (~> 0.9.10)
pry-remote (0.1.8)
pry (~> 0.9)
slop (~> 3.0)
rack (1.5.2)
rack-test (0.6.2)
rack (>= 1.0)
rails (4.1.1)
actionmailer (= 4.1.1)
actionpack (= 4.1.1)
actionview (= 4.1.1)
activemodel (= 4.1.1)
activerecord (= 4.1.1)
activesupport (= 4.1.1)
bundler (>= 1.3.0, < 2.0)
railties (= 4.1.1)
sprockets-rails (~> 2.0)
railties (4.1.1)
actionpack (= 4.1.1)
activesupport (= 4.1.1)
rake (>= 0.8.7)
thor (>= 0.18.1, < 2.0)
rake (10.3.2)
rdoc (4.1.1)
json (~> 1.4)
rmagick (2.13.2)
rvm-capistrano (1.5.1)
capistrano (~> 2.15.4)
sass (3.2.19)
sass-rails (4.0.3)
railties (>= 4.0.0, < 5.0)
sass (~> 3.2.0)
sprockets (~> 2.8, <= 2.11.0)
sprockets-rails (~> 2.0)
sdoc (0.4.0)
json (~> 1.8)
rdoc (~> 4.0, < 5.0)
seo_helper (1.0.2)
settingslogic (2.0.9)
simple_form (3.0.2)
actionpack (~> 4.0)
activemodel (~> 4.0)
slop (3.5.0)
spring (1.1.3)
sprockets (2.11.0)
hike (~> 1.2)
multi_json (~> 1.0)
rack (~> 1.0)
tilt (~> 1.1, != 1.3.0)
sprockets-rails (2.1.3)
actionpack (>= 3.0)
activesupport (>= 3.0)
sprockets (~> 2.8)
sqlite3 (1.3.9)
thor (0.19.1)
thread_safe (0.3.3)
tilt (1.4.1)
treetop (1.4.15)
polyglot
polyglot (>= 0.3.1)
turbolinks (2.2.2)
coffee-rails
tzinfo (1.1.0)
thread_safe (~> 0.1)
uglifier (2.5.0)
execjs (>= 0.3.0)
json (>= 1.8.0)
warden (1.2.3)
rack (>= 1.0)
whenever (0.9.2)
activesupport (>= 2.3.4)
chronic (>= 0.6.3)
will_paginate (3.0.3)
PLATFORMS
ruby
DEPENDENCIES
airbrake
anjlab-bootstrap-rails (= 2.3.1.2)
annotate
auto-facebook (= 0.42)
better_errors (~> 0.9.0)
binding_of_caller
bootstrap_helper (>= 4.2.2.1)
cape
capistrano
capistrano-ext
carrierwave
carrierwave-meta
coffee-rails (~> 4.0.0)
compass-rails (~> 1.1.2)
dalli
devise (= 3.0.2)
font-awesome-rails (~> 3.2.1.3)
high_voltage
hipchat
jbuilder (~> 2.0)
jquery-rails
magic_encoding
omniauth
omniauth-facebook
open_graph_helper
powder
pry-nav
pry-remote
rails (= 4.1.1)
rmagick
rvm-capistrano
sass-rails (~> 4.0.3)
sdoc (~> 0.4.0)
seo_helper (~> 1.0.2)
settingslogic
simple_form (~> 3.0.1)
spring
sqlite3
turbolinks
uglifier (>= 1.3.0)
whenever
will_paginate (= 3.0.3)
I tried bundle install rake and bundle update but it still doesn't work.
Thanks for all the help.
bundle config set --local path 'vendor/cache'
generally fixes it as that is the more common problem. Basically, your bundler path configuration is messed up. See their documentation (first paragraph) for where to find those configurations and change them manually if needed.
I solved that deleting the Gemfile.lock
I think rake must be preinstalled if you want work with bundler. Try to install rake via 'gem install' and then run 'bundle install' again:
gem install rake && bundle install
If you are using rvm ( http://rvm.io ) rake is installed by default...
If you're having this issue, and try to run bundle exec jekyll serve per this Jekyll documentation, it'll ask you to run bundle install, which should prompt you to install any missing gems, which in this case will be rake. This should resolve your issue.
You may also need to run bundle update to ensure Gemfile.lock is referencing the most up-to-date gems.
Bundler 2
If you need to update from bundler v1 to v2 follow this official guide.
For a fast solution:
In root of your application run bundle config set path "/bundle" to add a custom path for bundler use, in this case I set /bundle, you can use whatever.
1.2 [Alternative solution] You can use a bundler file (~/.bundle/config) also, to use this I recommend set bundler folders in environment, like a Docker image, for example. Here the official guide.
You don't need to delete your Gemfile.lock, It's a bad practice and this can cause other future problems. Commit Gemfile.lock normaly, sometimes you need to update your bundle with bundle install or install individual gem.
You can see all the configs for bundler version 2 here.
My colleague told me that it can solved by disabling spring.
For docker users:
docker exec -ite DISABLE_SPRING=1 [container_name] rails c
Remove your Gemfile.lock.
Move to bash if you are using zsh.
sudo bash
gem update --system
Now run command bundle to create a new Gemfile.lock file.
Move back to your zsh sudo exec zsh now run your rake commands.
**
bundle install --no-deployment
**
$ jekyll help
jekyll 4.0.0 -- Jekyll is a blog-aware, static site generator in Ruby
In my case, my problem was environmental. Meaning, I did something wrong in my bash session. After attempting nearly everything in this thread, I opened a new bash session and everything was back to normal.
I solved the simmilar problem, when i tried to push to repo via gitlab ci/cd pipeline by the command "gem install rake && bundle install"
Regarding knows1's answer:
In Rails ~> 6.0.0 it complains:
[DEPRECATED] The --no-deployment flag is deprecated because it
relies on being remembered across bundler invocations, which bundler
will no longer do in future versions. Instead please use bundle config set --local deployment 'false', and stop using this flag
I am running my first test on a new app, and I am getting this error:
/.rvm/gems/ruby-2.0.0-p247#global/gems/bundler-1.3.5/lib/bundler/
runtime.rb:33:in `block in setup': You have already activated rspec-core
2.14.4, but your Gemfile requires rspec-core 2.13.1. Using bundle exec
may solve this. (Gem::LoadError)
I don't know what it means by "activated rspec-core 2.14.4. I don't remember doing anything like this.
I ran the test from the command line with:
bundle exec rspec spec/requests/static_pages_spec.rb
Ruby -v: 2.0.0
Rails -v: 4.0.0
The test in question:
require 'spec_helper'
describe "Static pages" do
describe "Home page" do
it "should have the content 'Skeleton App'" do
visit root_url
expect(page).to have_content('Skeleton App')
end
end
end
My Gemfile:
source 'https://rubygems.org'
ruby '2.0.0'
#ruby-gemset=railstutorial_rails_4_0
gem 'rails', '4.0.0'
gem 'bootstrap-sass', '~> 3.0.1.0.rc'
gem 'bcrypt-ruby', '3.0.1'
gem 'faker', '1.1.2'
gem 'will_paginate', '3.0.4'
gem 'bootstrap-will_paginate', '0.0.9'
gem 'devise'
group :development, :test do
gem 'sqlite3', '1.3.7'
gem 'rspec-rails', '2.13.1'
# The following optional lines are part of the advanced setup.
gem 'guard-rspec', '2.5.0'
gem 'spork-rails', github: 'sporkrb/spork-rails'
gem 'guard-spork', '1.5.0'
gem 'childprocess', '0.3.6'
end
group :test do
gem 'selenium-webdriver', '2.0.0'
gem 'capybara', '2.1.0'
gem 'factory_girl_rails', '4.2.0'
gem 'cucumber-rails', '1.3.0', :require => false
gem 'database_cleaner', github: 'bmabey/database_cleaner'
# Uncomment this line on OS X.
gem 'growl', '1.0.3'
# Uncomment these lines on Linux.
# gem 'libnotify', '0.8.0'
# Uncomment these lines on Windows.
# gem 'rb-notifu', '0.0.4'
# gem 'win32console', '1.3.2'
end
gem 'sass-rails', '4.0.0'
gem 'uglifier', '2.1.1'
gem 'coffee-rails', '4.0.0'
gem 'jquery-rails', '2.2.1'
gem 'turbolinks', '1.1.1'
gem 'jbuilder', '1.0.2'
group :doc do
gem 'sdoc', '0.3.20', require: false
end
group :production do
gem 'pg', '0.15.1'
gem 'rails_12factor', '0.0.2'
end
Thanks!
EDIT:
/Gemfile.lock
GIT
remote: git://github.com/bmabey/database_cleaner.git
revision: 6da38c4c1a565bbcc62ed9b84c2574537c6ebae2
specs:
database_cleaner (1.2.0)
GIT
remote: git://github.com/sporkrb/spork-rails.git
revision: 0dd45e59d3237b4c8f9efc215b46d9c07072a95e
specs:
spork-rails (4.0.0)
rails (>= 3.0.0, < 5)
spork (>= 1.0rc0)
GEM
remote: https://rubygems.org/
specs:
actionmailer (4.0.0)
actionpack (= 4.0.0)
mail (~> 2.5.3)
actionpack (4.0.0)
activesupport (= 4.0.0)
builder (~> 3.1.0)
erubis (~> 2.7.0)
rack (~> 1.5.2)
rack-test (~> 0.6.2)
activemodel (4.0.0)
activesupport (= 4.0.0)
builder (~> 3.1.0)
activerecord (4.0.0)
activemodel (= 4.0.0)
activerecord-deprecated_finders (~> 1.0.2)
activesupport (= 4.0.0)
arel (~> 4.0.0)
activerecord-deprecated_finders (1.0.3)
activesupport (4.0.0)
i18n (~> 0.6, >= 0.6.4)
minitest (~> 4.2)
multi_json (~> 1.3)
thread_safe (~> 0.1)
tzinfo (~> 0.3.37)
arel (4.0.1)
atomic (1.1.14)
bcrypt-ruby (3.0.1)
bootstrap-sass (3.0.1.0)
sass (~> 3.2)
bootstrap-will_paginate (0.0.9)
will_paginate
builder (3.1.4)
capybara (2.1.0)
mime-types (>= 1.16)
nokogiri (>= 1.3.3)
rack (>= 1.0.0)
rack-test (>= 0.5.4)
xpath (~> 2.0)
celluloid (0.15.2)
timers (~> 1.1.0)
childprocess (0.3.6)
ffi (~> 1.0, >= 1.0.6)
coderay (1.0.9)
coffee-rails (4.0.0)
coffee-script (>= 2.2.0)
railties (>= 4.0.0.beta, < 5.0)
coffee-script (2.2.0)
coffee-script-source
execjs
coffee-script-source (1.6.3)
cucumber (1.3.9)
builder (>= 2.1.2)
diff-lcs (>= 1.1.3)
gherkin (~> 2.12)
multi_json (>= 1.7.5, < 2.0)
multi_test (>= 0.0.2)
cucumber-rails (1.3.0)
capybara (>= 1.1.2)
cucumber (>= 1.1.8)
nokogiri (>= 1.5.0)
devise (3.2.0)
bcrypt-ruby (~> 3.0)
orm_adapter (~> 0.1)
railties (>= 3.2.6, < 5)
thread_safe (~> 0.1)
warden (~> 1.2.3)
diff-lcs (1.2.5)
erubis (2.7.0)
execjs (2.0.2)
factory_girl (4.2.0)
activesupport (>= 3.0.0)
factory_girl_rails (4.2.0)
factory_girl (~> 4.2.0)
railties (>= 3.0.0)
faker (1.1.2)
i18n (~> 0.5)
ffi (1.9.3)
formatador (0.2.4)
gherkin (2.12.2)
multi_json (~> 1.3)
growl (1.0.3)
guard (2.2.3)
formatador (>= 0.2.4)
listen (~> 2.1)
lumberjack (~> 1.0)
pry (>= 0.9.12)
thor (>= 0.18.1)
guard-rspec (2.5.0)
guard (>= 1.1)
rspec (~> 2.11)
guard-spork (1.5.0)
childprocess (>= 0.2.3)
guard (>= 1.1)
spork (>= 0.8.4)
hike (1.2.3)
i18n (0.6.5)
jbuilder (1.0.2)
activesupport (>= 3.0.0)
jquery-rails (2.2.1)
railties (>= 3.0, < 5.0)
thor (>= 0.14, < 2.0)
json (1.8.1)
json_pure (1.8.1)
listen (2.2.0)
celluloid (>= 0.15.2)
rb-fsevent (>= 0.9.3)
rb-inotify (>= 0.9)
lumberjack (1.0.4)
mail (2.5.4)
mime-types (~> 1.16)
treetop (~> 1.4.8)
method_source (0.8.2)
mime-types (1.25)
mini_portile (0.5.2)
minitest (4.7.5)
multi_json (1.8.2)
multi_test (0.0.2)
nokogiri (1.6.0)
mini_portile (~> 0.5.0)
orm_adapter (0.4.0)
pg (0.15.1)
polyglot (0.3.3)
pry (0.9.12.2)
coderay (~> 1.0.5)
method_source (~> 0.8)
slop (~> 3.4)
rack (1.5.2)
rack-test (0.6.2)
rack (>= 1.0)
rails (4.0.0)
actionmailer (= 4.0.0)
actionpack (= 4.0.0)
activerecord (= 4.0.0)
activesupport (= 4.0.0)
bundler (>= 1.3.0, < 2.0)
railties (= 4.0.0)
sprockets-rails (~> 2.0.0)
rails_12factor (0.0.2)
rails_serve_static_assets
rails_stdout_logging
rails_serve_static_assets (0.0.1)
rails_stdout_logging (0.0.3)
railties (4.0.0)
actionpack (= 4.0.0)
activesupport (= 4.0.0)
rake (>= 0.8.7)
thor (>= 0.18.1, < 2.0)
rake (10.1.0)
rb-fsevent (0.9.3)
rb-inotify (0.9.2)
ffi (>= 0.5.0)
rdoc (3.12.2)
json (~> 1.4)
rspec (2.13.0)
rspec-core (~> 2.13.0)
rspec-expectations (~> 2.13.0)
rspec-mocks (~> 2.13.0)
rspec-core (2.13.1)
rspec-expectations (2.13.0)
diff-lcs (>= 1.1.3, < 2.0)
rspec-mocks (2.13.1)
rspec-rails (2.13.1)
actionpack (>= 3.0)
activesupport (>= 3.0)
railties (>= 3.0)
rspec-core (~> 2.13.0)
rspec-expectations (~> 2.13.0)
rspec-mocks (~> 2.13.0)
rubyzip (1.1.0)
sass (3.2.12)
sass-rails (4.0.0)
railties (>= 4.0.0.beta, < 5.0)
sass (>= 3.1.10)
sprockets-rails (~> 2.0.0)
sdoc (0.3.20)
json (>= 1.1.3)
rdoc (~> 3.10)
selenium-webdriver (2.0.0)
childprocess (>= 0.1.9)
ffi (>= 1.0.7)
json_pure
rubyzip
slop (3.4.6)
spork (1.0.0rc4)
sprockets (2.10.0)
hike (~> 1.2)
multi_json (~> 1.0)
rack (~> 1.0)
tilt (~> 1.1, != 1.3.0)
sprockets-rails (2.0.1)
actionpack (>= 3.0)
activesupport (>= 3.0)
sprockets (~> 2.8)
sqlite3 (1.3.7)
thor (0.18.1)
thread_safe (0.1.3)
atomic
tilt (1.4.1)
timers (1.1.0)
treetop (1.4.15)
polyglot
polyglot (>= 0.3.1)
turbolinks (1.1.1)
coffee-rails
tzinfo (0.3.38)
uglifier (2.1.1)
execjs (>= 0.3.0)
multi_json (~> 1.0, >= 1.0.2)
warden (1.2.3)
rack (>= 1.0)
will_paginate (3.0.4)
xpath (2.0.0)
nokogiri (~> 1.3)
PLATFORMS
ruby
DEPENDENCIES
bcrypt-ruby (= 3.0.1)
bootstrap-sass (~> 3.0.1.0.rc)
bootstrap-will_paginate (= 0.0.9)
capybara (= 2.1.0)
childprocess (= 0.3.6)
coffee-rails (= 4.0.0)
cucumber-rails (= 1.3.0)
database_cleaner!
devise
factory_girl_rails (= 4.2.0)
faker (= 1.1.2)
growl (= 1.0.3)
guard-rspec (= 2.5.0)
guard-spork (= 1.5.0)
jbuilder (= 1.0.2)
jquery-rails (= 2.2.1)
pg (= 0.15.1)
rails (= 4.0.0)
rails_12factor (= 0.0.2)
rspec-rails (= 2.13.1)
sass-rails (= 4.0.0)
sdoc (= 0.3.20)
selenium-webdriver (= 2.0.0)
spork-rails!
sqlite3 (= 1.3.7)
turbolinks (= 1.1.1)
uglifier (= 2.1.1)
will_paginate (= 3.0.4)
Look in your Gemfile.lock file for multiple rspec-core dependencies. It's likely one of your included gems has locked a dependency that is inconsistent with the version you're locking to.
Paste in your Gemfile.lock file here for more help.
A reasonable solution would be to use an operator in your gemfile that allows for less restrictive version locking. The pessimistic operator (`gem 'rspec-rails', '~>2.13') will allow versions of rspec-rails >= 2.13 and < 3. More info here: http://techiferous.com/2011/05/sanely-updating-your-gems/
try this: In your Gemfile specify:
group :development, :test do
gem 'rspec-rails', "~> 2.14"
#other gems for development and test only
end
then in the shell cd to your application directory and run
bundle install
Let me know if this works or if i missed something.
I'm not sure what was causing this error, but I removed all rspec related (actually all testing related) gems from Gemfile, ran bundle install, added them back, and ran bundle install again, and so far it seems to be working.
I am running: ruby 1.9.2p290 (2011-07-09 revision 32553) [x86_64-darwin10.8.0]
Nokogiri is seg-faulting on me and I think the issue has been solved at:
https://github.com/ender672/nokogiri
However if I do:
gem 'nokogiri', :git => 'git://github.com/ender672/nokogiri.git'
I get a successful bundle install, bundle pack, and even did a bundle update to generate a new Gemfile. However, I can't even get to console:
git://github.com/ender672/nokogiri.git (at master) is not checked out. Please run `bundle install`
rvm just updated my 1.9.2 to p290 and I think that might be causing the problem. Maybe I should just step back to the last stable build. I would be interested in how to do that, but I don't know the previous build number.
Gemfile
source 'http://rubygems.org'
gem 'simplecov', '>= 0.4.0', :require => false, :group => :test
gem 'httparty'
gem "rails", "3.1.0.rc5"
# Rails 3.1 - Asset Pipeline
group :assets do
gem 'sass-rails', "~> 3.1.0.rc"
gem 'coffee-script'
gem 'uglifier'
gem 'json'
gem 'jquery-rails'
gem 'therubyracer'
gem 'execjs'
gem 'sprockets', '~> 2.0.0.beta.12'
end
# Bundle gems needed for Mongoid
gem "mongoid", "~>2.0.1" #, "2.0.0.rc.7"
gem "bson_ext" #, "1.1.5"
gem 'rake', '0.8.7'
# Bundle gem needed for Devise and cancan
gem "devise", "~>1.4.0" # ,"1.1.7"
gem "cancan"
#gem "omniauth", :git => 'git://github.com/intridea/omniauth.git' # maybe we need this latest version instead of the gem -tbb
#gem "govkit" #, :git => 'git://github.com/tbbooher/govkit.git'
#gem "nytimes-congress"
#gem "geokit"
#gem 'drumbone'
gem "googlecharts"
#gem "omniauth" "0.2.6"
#gem 'omniauth', '>= 0.2.6'
gem 'omniauth', :git => 'git://github.com/intridea/omniauth.git'
# we need some stuff too (tbb)
gem "formtastic"
# for installation
#gem "heroku"
# for deployment
gem "capistrano"
# and server
gem 'unicorn'
# time to connect to opencongress
gem 'json'
#gem 'ym4r'
gem 'geocoder'
#group :after_initialize do
gem 'nokogiri' #, :git => 'git://github.com/ender672/nokogiri.git'# :git => 'git://github.com/tenderlove/nokogiri.git'
gem "feedzirra" #ls
#, :git => "git://github.com/pauldix/feedzirra.git"
#end
gem 'sax-machine'
# Bundle gem needed for paperclip and attachments
gem "mongoid-paperclip", :require => "mongoid_paperclip"
# MongoID Extensions and extras
gem 'mongoid-tree', :require => 'mongoid/tree'
# Bundle gems for views
gem "haml"
gem "will_paginate"
gem 'escape_utils'
gem "RedCloth", "4.2.5"
# Markdown
# do "easy_install pygments" on your system
gem 'redcarpet'
gem 'albino'
#gem "nokogiri", "1.4.6"
# maybe we need rack here
# Bundle gems for development
group :development do
gem "nifty-generators"
gem "rails-erd"
gem 'rdoc'
gem "rails3-generators"
gem "ruby-debug19"
gem 'unicorn'
gem 'yard' #broken in OS X 10.7 see how to workarround this issue
end
# Bundle gems for testing
group :test do
#gem 'webmock'
#gem 'vcr'
gem 'faker'
gem 'json_pure'
gem 'capybara'
gem 'database_cleaner'
gem 'cucumber-rails'
gem 'cucumber'
gem 'rspec', '2.6.0'
gem 'rspec-rails', '2.6.1'
gem 'spork', '0.9.0.rc9'
gem 'spork-testunit'
gem 'launchy'
gem 'factory_girl'
gem 'factory_girl_rails'
gem 'ZenTest'
gem 'autotest'
gem 'autotest-rails'
gem 'ruby-growl'
gem 'autotest-growl'
gem "mocha"
gem "fabrication"
gem "gherkin"
gem 'test-unit'
gem "autotest-fsevent"
end
Gemfile.lock
GIT
remote: git://github.com/intridea/omniauth.git
revision: 26fb41d840a9f50da1d3ab4c778ef5a20581808b
specs:
oa-basic (0.3.0.rc1)
oa-core (= 0.3.0.rc1)
rest-client (~> 1.6.0)
oa-core (0.3.0.rc1)
oa-enterprise (0.3.0.rc1)
addressable (~> 2.2.6)
net-ldap (~> 0.2.2)
nokogiri (~> 1.5.0)
oa-core (= 0.3.0.rc1)
pyu-ruby-sasl (~> 0.0.3.1)
rubyntlm (~> 0.1.1)
oa-more (0.3.0.rc1)
multi_json (~> 1.0.0)
oa-core (= 0.3.0.rc1)
rest-client (~> 1.6.0)
oa-oauth (0.3.0.rc1)
faraday (~> 0.7.3)
multi_json (~> 1.0.0)
multi_xml (~> 0.2.2)
oa-core (= 0.3.0.rc1)
oauth (~> 0.4.0)
oauth2 (~> 0.5.0)
oa-openid (0.3.0.rc1)
oa-core (= 0.3.0.rc1)
rack-openid (~> 1.3.1)
ruby-openid-apps-discovery (~> 1.2.0)
omniauth (0.3.0.rc1)
oa-basic (= 0.3.0.rc1)
oa-core (= 0.3.0.rc1)
oa-enterprise (= 0.3.0.rc1)
oa-more (= 0.3.0.rc1)
oa-oauth (= 0.3.0.rc1)
oa-openid (= 0.3.0.rc1)
GEM
remote: http://rubygems.org/
specs:
RedCloth (4.2.5)
ZenTest (4.6.0)
actionmailer (3.1.0.rc5)
actionpack (= 3.1.0.rc5)
mail (~> 2.3.0)
actionpack (3.1.0.rc5)
activemodel (= 3.1.0.rc5)
activesupport (= 3.1.0.rc5)
builder (~> 3.0.0)
erubis (~> 2.7.0)
i18n (~> 0.6)
rack (~> 1.3.1)
rack-cache (~> 1.0.2)
rack-mount (~> 0.8.1)
rack-test (~> 0.6.0)
sprockets (~> 2.0.0.beta.12)
activemodel (3.1.0.rc5)
activesupport (= 3.1.0.rc5)
bcrypt-ruby (~> 2.1.4)
builder (~> 3.0.0)
i18n (~> 0.6)
activerecord (3.1.0.rc5)
activemodel (= 3.1.0.rc5)
activesupport (= 3.1.0.rc5)
arel (~> 2.1.4)
tzinfo (~> 0.3.29)
activeresource (3.1.0.rc5)
activemodel (= 3.1.0.rc5)
activesupport (= 3.1.0.rc5)
activesupport (3.1.0.rc5)
multi_json (~> 1.0)
addressable (2.2.6)
albino (1.3.3)
posix-spawn (>= 0.3.6)
archive-tar-minitar (0.5.2)
arel (2.1.4)
autotest (4.4.6)
ZenTest (>= 4.4.1)
autotest-fsevent (0.2.5)
sys-uname
autotest-growl (0.2.9)
autotest-rails (4.1.0)
ZenTest
bcrypt-ruby (2.1.4)
bson (1.3.1)
bson_ext (1.3.1)
builder (3.0.0)
cancan (1.6.5)
capistrano (2.8.0)
highline
net-scp (>= 1.0.0)
net-sftp (>= 2.0.0)
net-ssh (>= 2.0.14)
net-ssh-gateway (>= 1.1.0)
capybara (1.0.0)
mime-types (>= 1.16)
nokogiri (>= 1.3.3)
rack (>= 1.0.0)
rack-test (>= 0.5.4)
selenium-webdriver (~> 0.2.0)
xpath (~> 0.1.4)
childprocess (0.2.0)
ffi (~> 1.0.6)
cocaine (0.1.0)
coffee-script (2.2.0)
coffee-script-source
execjs
coffee-script-source (1.1.2)
columnize (0.3.4)
crack (0.1.8)
cucumber (1.0.2)
builder (>= 2.1.2)
diff-lcs (>= 1.1.2)
gherkin (~> 2.4.5)
json (>= 1.4.6)
term-ansicolor (>= 1.0.5)
cucumber-rails (1.0.2)
capybara (>= 1.0.0)
cucumber (~> 1.0.0)
nokogiri (>= 1.4.6)
curb (0.7.15)
database_cleaner (0.6.7)
devise (1.4.2)
bcrypt-ruby (~> 2.1.2)
orm_adapter (~> 0.0.3)
warden (~> 1.0.3)
diff-lcs (1.1.2)
erubis (2.7.0)
escape_utils (0.2.3)
execjs (1.2.4)
multi_json (~> 1.0)
fabrication (1.0.1)
factory_girl (2.0.3)
factory_girl_rails (1.1.0)
factory_girl (~> 2.0.0)
railties (>= 3.0.0)
faker (0.9.5)
i18n (~> 0.4)
faraday (0.7.4)
addressable (~> 2.2.6)
multipart-post (~> 1.1.0)
rack (= 1.1.0)
feedzirra (0.0.24)
activesupport (>= 2.3.8)
builder (>= 2.1.2)
curb (>= 0.2.3)
loofah (>= 0.3.1)
nokogiri (> 0.0.0)
sax-machine (>= 0.0.12)
ffi (1.0.9)
formtastic (1.2.4)
actionpack (>= 2.3.7)
activesupport (>= 2.3.7)
i18n (~> 0.4)
geocoder (1.0.2)
gherkin (2.4.5)
json (>= 1.4.6)
googlecharts (1.6.7)
haml (3.1.2)
highline (1.6.2)
hike (1.2.0)
httparty (0.7.8)
crack (= 0.1.8)
i18n (0.6.0)
jquery-rails (1.0.12)
railties (~> 3.0)
thor (~> 0.14)
json (1.5.3)
json_pure (1.5.3)
kgio (2.6.0)
launchy (2.0.5)
addressable (~> 2.2.6)
libv8 (3.3.10.2)
linecache19 (0.5.12)
ruby_core_source (>= 0.1.4)
loofah (1.0.0)
nokogiri (>= 1.3.3)
mail (2.3.0)
i18n (>= 0.4.0)
mime-types (~> 1.16)
treetop (~> 1.4.8)
mime-types (1.16)
mocha (0.9.12)
mongo (1.3.1)
bson (>= 1.3.1)
mongoid (2.0.2)
activemodel (~> 3.0)
mongo (~> 1.3)
tzinfo (~> 0.3.22)
mongoid-paperclip (0.0.5)
paperclip (~> 2.3.6)
mongoid-tree (0.6.1)
mongoid (~> 2.0)
multi_json (1.0.3)
multi_xml (0.2.2)
multipart-post (1.1.3)
net-ldap (0.2.2)
net-scp (1.0.4)
net-ssh (>= 1.99.1)
net-sftp (2.0.5)
net-ssh (>= 2.0.9)
net-ssh (2.1.4)
net-ssh-gateway (1.1.0)
net-ssh (>= 1.99.1)
nifty-generators (0.4.6)
nokogiri (1.5.0)
oauth (0.4.5)
oauth2 (0.5.0)
faraday (= 0.6.1)
multi_json (~> 1.0.0)
orm_adapter (0.0.5)
paperclip (2.3.16)
activerecord (>= 2.3.0)
activesupport (>= 2.3.2)
cocaine (>= 0.0.2)
mime-types
polyglot (0.3.2)
posix-spawn (0.3.6)
pyu-ruby-sasl (0.0.3.3)
rack (1.3.2)
rack-cache (1.0.2)
rack (>= 0.4)
rack-mount (0.8.1)
rack (>= 1.0.0)
rack-openid (1.3.1)
rack (>= 1.1.0)
ruby-openid (>= 2.1.8)
rack-ssl (1.3.2)
rack
rack-test (0.6.1)
rack (>= 1.0)
rails (3.1.0.rc5)
actionmailer (= 3.1.0.rc5)
actionpack (= 3.1.0.rc5)
activerecord (= 3.1.0.rc5)
activeresource (= 3.1.0.rc5)
activesupport (= 3.1.0.rc5)
bundler (~> 1.0)
railties (= 3.1.0.rc5)
rails-erd (0.4.5)
activerecord (~> 3.0)
activesupport (~> 3.0)
ruby-graphviz (~> 0.9.18)
rails3-generators (0.17.4)
railties (>= 3.0.0)
railties (3.1.0.rc5)
actionpack (= 3.1.0.rc5)
activesupport (= 3.1.0.rc5)
rack-ssl (~> 1.3.2)
rake (>= 0.8.7)
rdoc (~> 3.4)
thor (~> 0.14.6)
raindrops (0.7.0)
rake (0.8.7)
rdoc (3.9.1)
redcarpet (1.17.2)
rest-client (1.6.3)
mime-types (>= 1.16)
rspec (2.6.0)
rspec-core (~> 2.6.0)
rspec-expectations (~> 2.6.0)
rspec-mocks (~> 2.6.0)
rspec-core (2.6.4)
rspec-expectations (2.6.0)
diff-lcs (~> 1.1.2)
rspec-mocks (2.6.0)
rspec-rails (2.6.1)
actionpack (~> 3.0)
activesupport (~> 3.0)
railties (~> 3.0)
rspec (~> 2.6.0)
ruby-debug-base19 (0.11.25)
columnize (>= 0.3.1)
linecache19 (>= 0.5.11)
ruby_core_source (>= 0.1.4)
ruby-debug19 (0.11.6)
columnize (>= 0.3.1)
linecache19 (>= 0.5.11)
ruby-debug-base19 (>= 0.11.19)
ruby-graphviz (0.9.21)
ruby-growl (3.0)
ruby-openid (2.1.8)
ruby-openid-apps-discovery (1.2.0)
ruby-openid (>= 2.1.7)
ruby_core_source (0.1.5)
archive-tar-minitar (>= 0.5.2)
rubyntlm (0.1.1)
rubyzip (0.9.4)
sass (3.1.7)
sass-rails (3.1.0.rc.5)
actionpack (~> 3.1.0.rc1)
railties (~> 3.1.0.rc1)
sass (>= 3.1.4)
sprockets (>= 2.0.0.beta.9)
sax-machine (0.0.20)
nokogiri (> 0.0.0)
selenium-webdriver (0.2.2)
childprocess (>= 0.1.9)
ffi (>= 1.0.7)
json_pure
rubyzip
simplecov (0.4.2)
simplecov-html (~> 0.4.4)
simplecov-html (0.4.5)
spork (0.9.0.rc9)
spork-testunit (0.0.5)
spork (>= 0.6.0)
sprockets (2.0.0.beta.13)
hike (~> 1.2)
rack (~> 1.0)
tilt (!= 1.3.0, ~> 1.1)
sys-uname (0.8.5)
term-ansicolor (1.0.6)
test-unit (2.3.1)
therubyracer (0.9.2)
libv8 (~> 3.3.10)
thor (0.14.6)
tilt (1.3.2)
treetop (1.4.10)
polyglot
polyglot (>= 0.3.1)
tzinfo (0.3.29)
uglifier (1.0.0)
execjs (>= 0.3.0)
multi_json (>= 1.0.2)
unicorn (4.0.1)
kgio (~> 2.4)
rack
raindrops (~> 0.6)
warden (1.0.5)
rack (>= 1.0)
will_paginate (2.3.15)
xpath (0.1.4)
nokogiri (~> 1.3)
yard (0.7.2)
PLATFORMS
ruby
DEPENDENCIES
RedCloth (= 4.2.5)
ZenTest
albino
autotest
autotest-fsevent
autotest-growl
autotest-rails
bson_ext
cancan
capistrano
capybara
coffee-script
cucumber
cucumber-rails
database_cleaner
devise (~> 1.4.0)
escape_utils
execjs
fabrication
factory_girl
factory_girl_rails
faker
feedzirra
formtastic
geocoder
gherkin
googlecharts
haml
httparty
jquery-rails
json
json_pure
launchy
mocha
mongoid (~> 2.0.1)
mongoid-paperclip
mongoid-tree
nifty-generators
nokogiri
omniauth!
rails (= 3.1.0.rc5)
rails-erd
rails3-generators
rake (= 0.8.7)
rdoc
redcarpet
rspec (= 2.6.0)
rspec-rails (= 2.6.1)
ruby-debug19
ruby-growl
sass-rails (~> 3.1.0.rc)
sax-machine
simplecov (>= 0.4.0)
spork (= 0.9.0.rc9)
spork-testunit
sprockets (~> 2.0.0.beta.12)
test-unit
therubyracer
uglifier
unicorn
will_paginate
yard
it appears that the gem source code on github does not include a .gemspec file, in my case I could not even get it to install
source 'http://rubygems.org'
gem 'nokogiri', :git => 'git://github.com/ender672/nokogiri.git'
run: bundle install, fails with
Could not find gem 'nokogiri (>= 0, runtime)' in git://github.com/ender672/nokogiri.git (at master).
Source does not contain any versions of 'nokogiri (>= 0, runtime)'
did a google search and found this - https://github.com/tenderlove/nokogiri/issues/274
but since this is not from tenderlove git repo, I don't think that will work
looking at bundler homepage
If there is no .gemspec at the root of a git repository, you must specify a version that bundler should use when resolving dependencies
using this in the gem file I was at least able to install it, note the "1.5" addition
source 'http://rubygems.org'
gem 'nokogiri', "1.5", :git => 'git://github.com/ender672/nokogiri.git'
I can't claim this will fix your issue, but I think your app is using the 'official' 1.5 release that still has issue, I don't think you were executing the code from ender672 git repo? they are both labeled as 1.5
contents of Gemfile.lock
GIT
remote: git://github.com/ender672/nokogiri.git
revision: 953e9b3b1ecf240c83c544f185461c7b86d387d5
specs:
nokogiri (1.5)
GEM
remote: http://rubygems.org/
specs:
PLATFORMS
ruby
DEPENDENCIES
nokogiri (= 1.5)!
I did not see remote: git://github.com/ender672/nokogiri.git in your Gemfile.lock, so assuming it is not really installed
hope this helps