Bundle install requiring gem not in gemfile - ruby

I've got an application that I'm trying to fix and build. I am having a hard time getting paste this error:
****$ bundle update
/usr/share/rvm/gems/ruby-2.1.5#global/gems/bundler-1.7.6/lib/bundler.rb:302: warning: Insecure world writable dir /usr/share/rvm in PATH, mode 042777
Updating https://github.com/Compass/compass-rails
Updating https://github.com/DavyJonesLocker/client_side_validations-simple_form
Updating https://github.com/DavyJonesLocker/client_side_validations
Updating https://github.com/seyhunak/twitter-bootstrap-rails.git
Fetching source index from https://rubygems.org/
Resolving dependencies........
Using rake 12.0.0
Using i18n 0.7.0
Using json 1.8.0
Using minitest 5.10.3
Using thread_safe 0.3.6
Using tzinfo 1.2.10 (was 1.2.3)
Using activesupport 4.2.5
Using builder 3.2.4 (was 3.2.3)
Using erubis 2.7.0
Using mini_portile2 2.1.0
Using nokogiri 1.6.8.1
Using rails-deprecated_sanitizer 1.0.4 (was 1.0.3)
Using rails-dom-testing 1.0.9 (was 1.0.8)
Using crass 1.0.6
Using loofah 2.19.1 (was 2.0.3)
Using rails-html-sanitizer 1.4.4 (was 1.0.3)
Using actionview 4.2.5
Using rack 1.6.13 (was 1.6.8)
Using rack-test 0.6.3
Using actionpack 4.2.5
Using globalid 0.4.2 (was 0.3.6)
Using activejob 4.2.5
Using mini_mime 1.1.2
Gem::InstallError: date requires Ruby version >= 2.6.0.
An error occurred while installing date (3.3.3), and Bundler cannot continue.
Make sure that `gem install date -v '3.3.3'` succeeds before bundling.
****$
Updates:
I've tried looping through the gems in the file, I cannot find a single gem that requires date.
The gen file has a lot of gems and I used gem dependency {gem} and kept looping through what I found. Nothing, I went through 30 iterations.
I also did gem dependency date --reverse-dependencies again nothing.
source 'https://rubygems.org'
gem 'rails', '4.2.5'
gem 'concurrent-ruby', '1.0.0'
gem 'minitest', "5.10.3"
gem 'connection_pool', "2.2.0"
#gem for facebook bot
gem 'facebook-messenger' , "0.11.1"
# Bundle edge Rails instead:
# gem 'rails', :git => 'git://github.com/rails/rails.git'
gem 'mysql2', '0.3.20' #, '~> 0.3.13'
gem 'rack-ssl', '1.3.4', :require => 'rack/ssl'
gem 'execjs', '2.6.0'
#gem 'therubyracer'
#gem 'rack' , '1.4.5'
gem 'json', '1.8.0'
gem 'protected_attributes', '1.1.3'
gem 'gdata_19', '1.1.5'
gem 'foreverb', '0.3.3'
gem 'paper_trail', '3.0.1'
gem 'rack-cors', '0.4.0'
#gem 'exception_notification'
gem 'social-share-button', '0.8.0'
# gem 'contacts', :git => 'git#github.com:eofferma/contacts.git'
# Deploy with Capistrano
gem 'puma', '3.4.0'
gem 'noty-rails', '2.3.8'
#gem 'rvm-capistrano'
gem 'active_model_serializers', '0.9.3'
gem "font-awesome-rails", '4.6.3.0'
gem 'therubyracer', '0.12.2', platforms: :ruby
gem 'sunspot_rails','2.2.0'
gem 'sunspot_solr', '2.2.2'
gem 'capybara', '2.7.1'
gem 'poltergeist', '1.8.1'
gem 'simplecov', '0.8.2', :require => false, :group => :test
gem 'sidekiq', '4.1.1'
group :development do
gem "better_errors", "2.1.1"
gem "binding_of_caller", "0.7.2"
gem 'quiet_assets', '1.1.0'
end
gem 'nokogiri', "1.6.8.1"
gem 'sprockets', "3.5.2"
gem 'sass-rails',"5.0.4"
gem 'compass-rails', git: "https://github.com/Compass/compass-rails", branch: "master"
#gem 'compass-rails', github: "Compass/compass-rails", branch: "master"
gem 'uglifier', "2.7.2"
gem 'compass', "1.0.3"
gem 'compass-h5bp', '0.1.1'
gem 'haml-rails', "0.9.0" # Optional - to generate haml
gem 'jquery-rails' , "4.1.0" #must be fixed because current version of multiselect widget doesn't work with jquery version >= 1.8.0
gem 'fancybox-rails', "0.3.1"
gem 'jquery-ui-rails', "5.0.5"
gem 'html5-rails', '0.1.0'
# To use ActiveModel has_secure_password
# gem 'bcrypt-ruby', '~> 3.0.0'
# Use unicorn as the web server
# gem 'unicorn'
# Deploy with Capistrano
# gem 'capistrano'
# To use debugger
# gem 'ruby-debug'
gem 'slim-rails', "3.0.1"
gem 'devise', "4.3.0"
gem 'devise-encryptable', "0.1.2"
#gem 'devise-token_authenticatable'
gem 'coffee-rails', "4.1.0"
gem "omniauth-facebook", "4.0.0"
gem "omniauth-twitter", "1.4.0"
gem "omniauth-google-oauth2", "0.5.2"
gem "koala", "2.2.0"
gem "fb_graph", "2.7.17"
gem 'twitter', "5.15.0"
gem "ancestry", "2.1.0"
gem 'simple_form', "3.2.0"
gem 'client_side_validations-simple_form', git: 'https://github.com/DavyJonesLocker/client_side_validations-simple_form', :ref => 'e6b61d5a82537a4d1d6d5259b8fd07f865ef89c9'
#gem 'client_side_validations-simple_form', github: 'DavyJonesLocker/client_side_validations-simple_form'
gem 'paperclip', '4.2.0'
gem 'aws-sdk', '< 2.0'
#gem 'client_side_validations'
gem 'client_side_validations', git: 'https://github.com/DavyJonesLocker/client_side_validations', :ref => '4f000000a858a46d830a4b2aec1e8d6f41f58685'
#gem 'client_side_validations', github: 'DavyJonesLocker/client_side_validations'
gem 'will_paginate', "3.0.7"
gem 'browser', "1.0.1"
#gem 'twitter-bootstrap-rails', :git => 'git#github.com:seyhunak/twitter-bootstrap-rails.git', :branch => 'bootstrap3'
gem 'twitter-bootstrap-rails', :git => 'https://github.com/seyhunak/twitter-bootstrap-rails.git', :branch => 'bootstrap3'
# gem 'geokit-rails'
gem "recaptcha", '0.5.0', :require => "recaptcha/rails"
gem 'whenever', "0.9.4", :require => false
gem "activemerchant", "1.43.3"
gem "hpricot", "0.8.6"
gem 'money', "6.6.1"
gem 'contacts', "1.2.4"
gem "paypal-sdk-merchant", "1.116.0"
gem 'paypal-sdk-adaptivepayments', "1.117.0"
gem 'fastercsv', "1.5.5"
gem 'cmess', "0.5.0"
gem "grape", "0.13.0"
gem 'wine_bouncer', '0.5.0'
gem 'httparty', "0.13.7"
gem 'delayed_job_active_record', "4.1.0"
gem "daemons", "1.2.3"
gem "rake", "12.0.0"
gem "rake-progressbar", "0.0.5"
gem "httpclient", "2.7.0.1"
gem 'typhoeus', "0.8.0"
gem 'tire', "0.6.2"
gem 'roo', '1.10.3'
# gem 'rubyzip', '< 1.0.0', :require => false
gem 'google_places', "0.32.0"
gem 'foursquare2', "2.0.2"
gem 'twilio-ruby', "4.8.0"
gem 'mechanize', "2.7.3"
gem 'orm_adapter', "0.5.0"
# gem 'capybara'
# gem 'wombat'
# gem 'capybara-webkit'
#gem 'elasticsearch'
gem 'rails3-jquery-autocomplete', "1.0.15"
gem 'selenium-webdriver', '2.53.4'
# gem 'selenium-webdriver'
# gem 'poltergeist'
group :test do
# gem 'phantomjs', :require => 'phantomjs/poltergeist'
gem 'database_cleaner', "1.5.1"
gem 'rspec-rails', "3.4.0"
# gem 'selenium-webdriver'
# gem 'poltergeist'
end
group :development, :test do
gem 'thin', "1.7.0"
#gem 'machinist'
gem 'faker', "1.5.0"
gem 'rails-dev-tweaks', "1.2.0"
gem 'byebug', "8.2.1"
end
gem "paranoia", "2.1.4"
gem 'rails-observers', "0.1.2"
gem 'activerecord-session_store', "0.1.2"
gem 'useragent', "0.10.0"
gem 'acts_as_commentable', "4.0.2"
gem "iconv", "1.0.4"
gem "rails-erd", "1.4.1"
gem 'zeroclipboard-rails', "0.1.1"
#source 'https://rails-assets.org' do
#gem 'rails-assets-reveal'
#end

Related

Capybara Upgrade Capybara::Query

I have an old project with Capybara version 2.7.1. One file has the following code
module Capybara
module Node
module Finders
def all(*args)
using_wait_time 1 do
xpath = args.find { |a| a.is_a? String }
has_selector? xpath
query = Capybara::Query::Query.new(*args)
synchronize(1) do
result = query.resolve_for(self)
raise Capybara::ExpectationNotMet, result.failure_message unless result.matches_count?
result
end
end
end
end
end
end
We have now upgraded to Capybara 3.15.0 and looks like Capybara::Query has been deprecated. I have tried using Queries::SelectorQuery instead of Query as shown below
session_options = Capybara.session_options
query = Capybara::Queries::SelectorQuery.new(*args, session_options: session_options)
But following assertions are failing
def content_xpath
unless #content_xpath
#content_xpath = "//td[#class='clsCenterButton' and ./label[contains(text(),'#{#label}')]]"
#content_xpath = "//td[#class='clsCenterButton' and ./label[#title='#{#label}']]" if page.all(#content_xpath, visible: true).count>1
end
#content_xpath
end
Unused parameters passed to Capybara::Queries::SelectorQuery : [{:visible=>true}] (ArgumentError)
using_wait_time 10 do
expect(page).to have_selector content_xpath
expect(page).to have_selector content_xpath, visible: !(#collapsed)
end
Unused parameters passed to Capybara::Queries::SelectorQuery : [{:visible=>true}] (ArgumentError)
Gemfile (before Upgrade)
source 'http://rubygems.org'
ruby '2.0.0'
gem 'cucumber', '2.0.0'
gem 'gherkin'
gem 'rspec-expectations', '3.2'
gem 'rspec'
gem 'capybara', '2.7.1'
gem 'selenium-webdriver', '2.53.4'
gem 'cuporter', '~>0.3.14'
gem 'nokogiri', '~>1.6.0'
gem 'savon', '~>2.1.0'
gem 'nori', '~>2.0.4'
gem 'chronic', '0.9.1'
gem 'json', '~>1.7.6'
gem 'rest-client', '~>1.6.7'
gem 'flog', '~>4.1.0'
gem 'flay', '~>2.3.0'
gem 'roodi', '~>2.1.0'
gem "require_all", "~> 1.3.2"
gem 'mongo', "~> 1.12.5"
gem 'bson_ext', "~> 1.12.5"
gem 'xml-simple', '~> 1.1.3'
gem 'roo', '~> 1.2.3'
gem "zip-zip", "~> 0.2"
gem 'rubyzip', '1.0.0'
gem 'tiny_tds', '0.7.0'
gem 'poltergeist', '1.10.0'
gem 'addressable', '2.4.0'
gem 'rack', '1.6.4'
gem 'cuke_sniffer'
gem 'rubocop'
gem 'net-ssh', '2.9.2'
gem 'sinatra'
gem 'cucumber_statistics'
gem 'activesupport', '4.2.5.2'
gem 'headless', '2.2.3'
gem 'colorize'
gem 'parallel'
gem 'parallel_tests'
Gemfile (after Upgrade)
source 'http://rubygems.org'
ruby '2.3.0'
gem 'cucumber', '2.2.0'
gem 'gherkin', '6.0.15'
gem 'rspec-expectations', '3.8.2'
gem 'rspec', '3.8.0'
gem 'capybara', '3.15.0'
gem 'selenium-webdriver', '3.141.0'
gem 'cuporter', '0.3.14'
gem 'nokogiri', '1.10.2'
gem 'savon', '2.12.0'
gem 'nori', '2.6.0'
gem 'chronic', '0.10.2'
gem 'json', '2.2.0'
gem 'rest-client', '2.0.2'
gem 'flog', '4.6.2'
gem 'flay', '2.12.0'
gem 'roodi', '5.0.0'
gem 'require_all', '1.5.0'
gem 'mongo', '2.8.0'
gem 'bson_ext', '1.5.1'
gem 'xml-simple', '1.1.5'
gem 'roo', '2.8.2'
gem "zip-zip", '0.3'
gem 'rubyzip', '1.2.2'
gem 'tiny_tds', '2.1.2'
gem 'poltergeist', '1.18.1'
gem 'addressable', '2.6.0'
gem 'rack', '2.0.6'
gem 'cuke_sniffer', '1.1.0'
gem 'rubocop', '0.66.0'
gem 'net-ssh', '5.2.0'
gem 'sinatra', '2.0.5'
gem 'cucumber_statistics', '2.3.0'
gem 'activesupport', '5.2.2.1'
gem 'headless', '2.3.1'
gem 'colorize', '0.8.1'
gem 'parallel', '1.16.0'
gem 'parallel_tests', '2.28.0'
gem 'geckodriver-helper', '0.23.0'
Any suggestions?
It looks like your all method was just trying to add waiting behavior to the Capybara built-in all method (and doing it in a very strange way that would break the flexibility of selector types too). That became the default behavior in Capybara 3 anyway, so I'd recommend just removing your all monkeypatch.

Bundler could not find compatible versions for gem "thor", but it doesn't make any sense

When I run bundle update yesterday, it run without any problems, but today I'm getting this error:
Bundler could not find compatible versions for gem "thor":
In Gemfile:
rails (~> 3.2.17) ruby depends on
railties (= 3.2.17) ruby depends on
thor (< 2.0, >= 0.14.6) ruby
jquery-rails (~> 2.1.4) ruby depends on
thor (0.14.0)
That would make sense, except that jquery-rails 2.1.4 doesn't depend on thor 0.14.0, it depends on >= 0.14: https://rubygems.org/gems/jquery-rails/versions/2.1.4
Any ideas what's going on? Why does bundle believe thor depends on 0.14.0. Even in my Gemfile.lock it says:
jquery-rails (2.1.4)
railties (>= 3.0, < 5.0)
thor (>= 0.14, < 2.0)
My Gemfile contains this:
source "http://rubygems.org"
gem "acts_as_list"
gem "acts_as_tree"
gem "action_texter"
gem "activeadmin", group: [:development, :staging, :production]
gem "activerecord-tableless"
gem "best_in_place"
gem "breach-mitigation-rails"
gem "braintree"
gem "bootstrap-sass", "= 3.2.0.1"
gem "bugsnag"
gem "cancan"
gem "carrierwave"
gem "compass-rails"
gem "daemons"
gem "dalli"
gem "delayed_job"
gem "delayed_job_active_record"
gem "encrypted-cookies"
gem "fog"
gem "formtastic", "~> 2.3.0.rc2"
gem "font-awesome-rails"
gem "gctools"
gem "geocoder"
gem "geoip"
gem "gibbon"
gem "kaminari"
gem "haml"
gem "haml-rails"
gem "html5shiv-rails"
gem "intercom-rails"
gem "jquery-rails", "~> 2.1.4"
gem "librato-rails"
gem "liquid"
gem "meta_search"
gem "mimemagic"
gem "multitenant", git: "git://github.com/watu/multitenant.git"
gem "omniauth"
gem "omniauth-twitter"
gem "omniauth-facebook"
gem "paper_trail"
gem "pg"
gem "phone"
gem "pidfile"
gem "psych", "~> 2.0.5"
gem "rails", "~> 3.2.17"
gem "rake"
gem "remotipart", git: "git://github.com/watu/remotipart.git"
gem "random_unique_id", "~> 0.2.1"
gem "respond-rails"
gem "rdiscount"
gem "rmagick", require: "RMagick"
gem "rsolr"
gem "sanitize"
gem "sass-rails"
gem "sendgrid_toolkit"
gem "simple_form"
gem "stringex"
gem "sorcery", "= 0.8.5"
gem "unf"
gem "useragent"
gem "uuid"
gem "validation_auditor"
gem "watu_table_builder", require: "table_builder"
group :assets do
gem "bootstrap-colorpicker-rails"
gem "coffee-rails"
gem "coffee-script-source"
gem "modernizr-rails"
gem "therubyracer"
gem "turbo-sprockets-rails3"
gem "uglifier"
end
# Production goodies.
gem "unicorn", group: [:staging, :production]
gem "unicorn-worker-killer", group: [:staging, :production]
gem "newrelic_rpm", group: [:staging, :production]
gem "rack-timeout", group: [:staging, :production] # We don't want timeouts while debugging.
group :test do
gem "assert_difference"
gem "capybara", "~> 1.1.2" # conflict?
gem "minitest" # conflict?
gem "minitest-reporters" # conflict?
gem "minitest-rails" # conflict?
gem "mocha", require: "mocha/setup"
gem "simplecov", require: false
gem "ruby-prof" # conflict?
gem "shoulda-context"
gem "shoulda-matchers"
end
group :development do
gem "better_errors"
gem "binding_of_caller"
gem "capistrano", require: false
gem "capistrano-bundler", ">= 1.1.0", require: false # conflict?
gem "capistrano-rails", require: false # conflict?
gem "capistrano-rvm", require: false, github: "capistrano/rvm" # conflict?
gem "capistrano-maintenance", require: false, github: "capistrano/maintenance" # conflict?
gem "sqlite3", require: false # Required by taps to download db
gem "taps", require: false
gem "annotate"
gem "git", require: false
gem "quiet_assets"
gem "yard", require: false
gem "meta_request"
end
gem "bundler-audit", group: [:development, :test]
gem "timecop", group: [:development, :test]
gem "factory_girl", group: [:development, :staging, :test]
gem "factory_girl_rails", group: [:development, :staging, :test]
gem "mail_safe", group: [:development, :staging]
gem "pry-rails", group: :development
If I comment out the lines marked with # conflict? then running bundler update works, but I still haven't found the minimal set of gems that cause the error.
Adding:
gem "thor", "~> 0.19.1"
to my Gemfile solved the problem. I think there some sort of infinite loop as it took for ever to run bundle update when it was going to fail.

Bundle without -j4 on Heroku

Heroku seems to now default to parallel bundling with -j4 because I see in the push log:
Running: bundle install --without development:test:staging --path
vendor/bundle --binstubs vendor/bundle/bin -j4 --deployment
This throws an error which I can replicate locally with
bundle install -j4
The error locally is:
/Users/Emma/.rvm/rubies/ruby-2.0.0-p247/lib/ruby/2.0.0/thread.rb:72:in `sleep': No live threads left. Deadlock? from /Users/Emma/.rvm/rubies/ruby-2.0.0-p247/lib/ruby/2.0.0/thread.rb:72:in `block (2 levels) in wait'
The error when I attempt deployment is:
/tmp/build_a49f4fc2-73b3-4101-9b67-f795fa643429/vendor/ruby-2.0.0/lib/ruby/2.0.0/thread.rb:72:in `sleep': No live threads left. Deadlock? (fatal)
How can I force Heroku to stop attempting to bundle gems in parallel?
edit: gemfile
ruby '2.0.0'
source 'http://rubygems.org'
# Rails
gem "rails", "~> 3.2.13"
gem 'rake', '10.1.0'
gem 'rails_12factor', group: :production
# Basic libraries
gem "unicorn", "4.6.2"
gem 'jquery-rails', '2.1.4'
gem 'nokogiri'
gem 'bundler'
gem "activesupport"
gem 'aws-s3'
gem 'aws-sdk' #required in 3.1.3 to get rake to work -- taken out may 13 as conflicts with s3
gem 'hirefireapp'
gem "hirefire-resource"
gem 'newrelic_rpm', "~> 3.6.5.130"
gem 'modernizr-rails'
gem 'gocardless'
# Background processing
gem 'delayed_job_active_record' #required in 3.1.3 to get DJ to work
gem "SystemTimer", :require => "system_timer", :platforms => :ruby_18
gem "rack-timeout"
gem 'delayed_paperclip' , '2.4.5.2' # , :git => 'git://github.com/tommeier/delayed_paperclip', :branch => 'fix_312'
# Views
gem 'haml'
gem 'rdiscount', "~> 1.6.8" #manually included -- it's a dependency of simple tooltip
gem 'simple-tooltip', "~> 0.0.2"
gem 'will_paginate', '~>3.0'
gem 'will_paginate-bootstrap', '0.2.1'
gem 'gritter_notices', '~>0.3.4' #, :git => 'git#github.com:ck3g/gritter_notices.git'
gem "ariane"
gem 'bootstrap-wysihtml5-rails'
gem 'gingerice'
gem 'gvis', '>= 2.0.0'
gem "google_visualr", ">= 2.1"
gem "zendesk_api"
gem "oink"
gem 'rubyzip', '1.0.0'
gem "zip-zip"
gem 's3_swf_upload'
group :assets do
gem "less-rails" #Sprockets (what Rails 3.1 uses for its asset pipeline) supports LESS
gem 'less-rails-bootstrap'
gem 'less'
end
gem "twitter-bootstrap-rails" # don't put in assets group for some stupid reason.
gem 'font-awesome-rails'
gem 'rabl'
gem 'gon'
gem 'versioncake', :git => 'git://github.com/bwillis/versioncake.git', :branch => 'master'
gem "oauth-plugin", "~> 0.5.1"
# Authentication and authorisation
gem "cancan", '~> 1.6.7'
gem "devise" #, "~> 1.4.8"
gem 'devise_invitable', '~> 1.0.0'
# Barcodes
gem 'barby' #for generating barcodes
gem 'chunky_png' #for turning barcodes into png
# Forms
gem 'formtastic'
gem 'twitter_bootstrap_form_for'
gem 'client_side_validations', :git => "git://github.com/bcardarella/client_side_validations.git"
gem 'client_side_validations-formtastic'
gem 'cocoon' #adds link_to_add_association functionality in forms, so you can add nested fields using JS. https://github.com/nathanvda/cocoon
gem 'letsrate'
gem 'formtastic-bootstrap', " ~> 2.0.0"
gem 'active_link_to'
# Search
gem "ransack" #:git => "git://github.com/ernie/ransack.git"
gem 'pg_search', "0.7.0"
gem 'ancestry'
# IO
gem "activerecord-import" #used in one off class methods for importing. Provides the .import method.
gem "csv_builder"
gem 'pdfkit'
gem 'wkhtmltopdf'
gem "rmagick"
gem 'paperclip', '~> 2.3'
gem 'paperclip-meta' # extends function of paperclip gem: saves default thumbnail image size info in appropriate table
gem "googlebooks"
gem "amazon-ecs"
gem 'acts_as_xlsx'
gem "prawn", "~> 1.0.0.rc2"
gem 'activemodel-warnings'
gem "roo", "~> 1.11.2"
# Other
gem 'deep_cloneable', '~> 1.5.2'
gem "isbn"
gem 'wicked', '~> 0.5.0' #upgrade problem
gem "strip_attributes", "~> 1.2"
gem "microformats_helper"
gem "sanitize"
gem 'paper_trail', '~> 2'
gem "best_in_place"
gem 'shortener'
gem 'twitter'
gem 'acts-as-taggable-on', "~> 2.3.3" #upgrade problem
gem 'simple_calendar'
gem "yard" # yard server --reload for a server running on 8808
# Rails 3.1 - Asset Pipeline
gem 'json'
gem 'coffee-script'
gem 'sprockets-image_compressor', "~> 0.2.0"
group :assets do
gem 'sass-rails'
gem 'coffee-rails'
gem 'uglifier'
gem 'yui-compressor'
gem 'compass-rails'
end
# Rails 3.1 - Heroku
gem 'pg', "=0.16.0"
gem 'dalli'
gem 'memcachier'
gem 'seed_dump' # e.g. bundle exec rake db:seed:dump MODELS=ValidationTest,Book
gem "figaro"
group(:development, :test) do
gem 'simplecov', :require => false
gem 'ruby-prof'
gem 'annotate', :git => 'git://github.com/ctran/annotate_models.git' # run with bundle exec annotate
gem "rails-erd" # for creaating erd diagrams. Run with rake erd
gem 'autotest'
gem 'autotest-rails'
gem 'ZenTest', '4.5.0'
gem 'factory_girl', "~> 3.0.0"
gem 'factory_girl_rails'
gem 'faker', '0.3.1', :require => false
gem 'launchy'
gem 'rspec'
gem 'rspec-core', :require => 'rspec/core'
gem 'rspec-expectations', :require => 'rspec/expectations'
gem 'rspec-mocks', :require => 'rspec/mocks'
gem 'rspec-rails'
gem 'selenium-webdriver', '2.5.0'
gem 'capybara'
gem "fakes3"
end
gem 'lazy_high_charts'
gem 'bullet', group: :development
Some gems have problem installing in parallel, these should be reported to bundler/bundler like this one https://github.com/bundler/bundler/issues/2813
In this Gemfile this is the problem line:
gem 'formtastic-bootstrap', " ~> 2.0.0"
Change to
gem 'formtastic-bootstrap', "2.1.3"
And it works. This is how I found it:
Install bundler latest $ gem install bundler
Then run $ bundle install -j4 this will try to install up to 4 gems in parallel.
When it fails with this error message
Unfortunately, a fatal error has occurred. Please see the Bundler troubleshooting documentation at http://bit.ly/bundler-issues. Thanks!
/Users/schneems/.rbenv/versions/2.1.0/lib/ruby/gems/2.1.0/gems/bundler-1.5.1/lib/bundler/parallel_workers/worker.rb:33:in `pop': No live threads left. Deadlock? (fatal)
Find a Gem not checked out by running
$ bundle list
Could not find gem 'formtastic-bootstrap (~> 2.0.0) ruby' in the gems available on this machine.
Comment out that line in your Gemfile and repeat until your whole Gemfile installs. Once it installs gradually add back in the ones you commented. Likely a later version of a Gem will be able to fix the problem.

jruby Bundler could not find compatible versions json

New to jruby. I am getting error when trying to run
jruby -S bundle exec rake assets:precompile
Bundler could not find compatible versions for gem "json":
In snapshot (Gemfile.lock):
json (1.8.1)
In Gemfile:
carrierwave (>= 0) ruby depends on
json (>= 1.7) ruby
I have tried removing Gemfile.lock and run "jruby -S bundle install", did not help.
I am using jruby 1.7.3 and ruby 1.8.7 on a Mac. I have successfully run precompile before and have not made any changes to the Gemfile.
My Gemfile (has not been changed since last Oct., used to work):
source 'https://rubygems.org'
gem 'rails', '3.2.13'
# Bundle edge Rails instead:
# gem 'rails', :git => 'git://github.com/rails/rails.git'
gem 'activerecord-jdbcmysql-adapter'
gem 'jruby-openssl'
gem 'mini_magick'
gem 'carrierwave'
# Gems used only for assets and not required
# in production environments by default.
group :assets do
gem 'sass-rails', '~> 3.2.3'
gem 'bourbon'
#gem 'coffee-rails', '~> 3.2.1'
# See https://github.com/sstephenson/execjs#readme for more supported runtimes
gem 'therubyrhino'
gem 'uglifier', '>= 1.0.3'
end
gem 'uuidtools'
gem 'amazon-ses-mailer'
gem 'jquery-rails'
# 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 'debugger'
Thanks
This looks like a bundler issue. Update Bundler to 1.5.2 and trying again:
jruby -S gem install bundler

JRuby 1.6.3 upgrade to Rails 3.1 has broken migrations

I have recently upgraded my gemfile to try and get Rails 3.1 working with Jruby 3.1.
Here is my Gemfile:
source 'http://rubygems.org'
source 'http://gems.engineyard.com'
gem 'rails', '~> 3.1.0.rc4'
gem 'sass-rails'
gem 'compass', :git => 'https://github.com/chriseppstein/compass.git', :branch => 'rails31'
gem 'fancy-buttons'
gem 'haml'
gem 'authlogic', :git => 'https://github.com/AndreasWurm/authlogic.git'#, :branch => 'rails3'
gem 'nokogiri'
gem 'bundler'
gem 'resque'
gem 'resque-meta'
gem 'jquery-rails'
gem 'rake'#, '~> 0.8.7'
gem 'eventmachine'
gem 'em-websocket'
gem 'json'
gem 'coffee-script'
gem 'uglifier'
platforms :jruby do
gem 'activerecord-jdbc-adapter'
gem 'activerecord-jdbcsqlite3-adapter'
gem 'jruby-openssl'
gem 'jdbc-mysql'
gem 'jruby-rack'
gem 'warbler'
#gem 'glassfish', '1.0.3.dev'
end
group :test, :development do
platforms :jruby do
gem 'jdbc-sqlite3', :require => false
gem 'fastercsv'
gem 'ruby-debug'
end
platforms :ruby do
gem 'sqlite3-ruby', :require => 'sqlite3'
end
gem 'mocha'
gem 'factory_girl'
gem 'fakeweb'
gem 'shoulda', :require => 'shoulda'
end
The problem is that when I run rake db:migrate, I get the following error message:
rake aborted! An error has occurred, this and all later migrations
canceled:
undefined method `rows' for nil:NilClass
Has anyone else experienced this.
Upgrading to rails 5 enabled my migrations to build from jruby 1.6.3 anyway:
source 'http://rubygems.org'
source 'http://gems.engineyard.com'
gem 'rails', '~> 3.1.0.rc5'
gem 'sass-rails'
gem 'compass', git: 'https://github.com/chriseppstein/compass.git',branch: 'rails31'
gem 'fancy-buttons'
gem 'haml'
gem 'authlogic', :git => 'https://github.com/AndreasWurm/authlogic.git'#, :branch => 'rails3'
gem 'nokogiri'
gem 'bundler'
gem 'resque'
gem 'resque-meta'
gem 'jquery-rails'
gem 'rake'#, '~> 0.8.7'
gem 'eventmachine'
gem 'em-websocket'
gem 'json'
gem 'coffee-script'
gem 'uglifier'
platforms :jruby do
gem 'activerecord-jdbc-adapter'
gem 'activerecord-jdbcsqlite3-adapter'
gem 'jruby-openssl'
gem 'jdbc-mysql'
gem 'jruby-rack'
gem 'warbler'
#gem 'glassfish', '1.0.3.dev'
end

Resources