Railties dependency issues when upgrading to rails 3.1 - ruby-on-rails-3.1

I have the following gemfile:
source 'http://rubygems.org'
source 'http://gems.engineyard.com'
gem 'rails', '~> 3.1.0.rc4'
gem 'sass-rails', :git => 'https://github.com/rails/sass-rails.git'
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'
Whenever I run bundle install, I get the following error:
Bundler could not find compatible versions for gem "railties":
In Gemfile:
sass-rails depends on
railties (~> 3.2.0.beta)
rails (~> 3.1.0.rc4) depends on
railties (3.1.0.rc4)
Can anyone suggest a solution?

Remove, or comment out, the following:
# , :git => 'https://github.com/rails/sass-rails.git'
Explanation: it has been a while since the last release candidate of Rails 3.1 has been released, a sass-rails gem has been released that works with 3.1 so no need to pull sass-rails from git, and sass-rails master is now looking forward towards Rails 3.2.

try bundle update, that worked for me... Maybe delete all gems, and update rails first, then put gems back and run bundle update again?

Related

Bundle install requiring gem not in gemfile

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

Ruby gem dependency issue

Can anyone help me solve this Ruby gem dependency issue??
I'm trying to install this library described here
http://datagraph.rubyforge.org/sinatra-linkeddata/#Dependencies
Bundler gives me the following error. (Does it seem like there is an incompatibility between the 'linkeddata' gem and the 'sinatra-linkeddata' gem I'm trying to install.
Bundler could not find compatible versions for gem "linkeddata":
In Gemfile:
sinatra-linkeddata (>= 0) ruby depends on
linkeddata (~> 0.2.0) ruby
linkeddata (1.1.1)
My gem file looks like this: how should I modify it.
source 'https://rubygems.org'
gem "nokogiri"
gem 'sinatra'
gem 'rdf'
gem 'sparql'
gem 'linkeddata'
gem 'sass'
gem 'tilt', '>= 1.3.4', '~> 1.3'
gem 'thin'
gem 'sinatra-linkeddata'
Try running bundle update. If that doesn't work you can modify gem 'linkeddata' to gem 'linkeddata', '~> 0.2.0' in order to match the dependency of sinatra-linkeddata and then run bundle update linkeddata

Ramaze app won't load due to Rack version conflicts

When I run ramaze start I get this.
C:/mowes/ruby/lib/ruby/site_ruby/1.9.1/rubygems/specification.rb:1990:in `raise_
if_conflicts': Unable to activate innate-2012.03, because rack-1.5.2 conflicts w
ith rack (~> 1.4.1) (Gem::LoadError)
Here's my gemfile
source 'http://rubygems.org'
ruby '1.9.3'
gem 'ramaze', "<= 2012.04.14" #old version
gem "innate", ">= 2012.03", "< 2012.11" #old version
gem 'sequel'
if defined? ENV['RACK_ENV'] == 'production' then gem 'pg' else gem 'sqlite3' end
gem "sentry-raven", :git => "https://github.com/coderanger/raven-ruby.git"
gem 'bcrypt-ruby'
gem 'rdiscount'
gem 'redcarpet'
gem 'pony'
gem 'bacon'
gem 'koala'
#source 'http://mirror1.prod.rhcloud.com/mirror/ruby/'
#gem 'nokogiri'
#gem 'capybara'
I'm using an outdated version of Ramaze and gem list says rack (1.5.2, 1.4.1)
How do I fix this?
Removing rack 1.5.2 should solve it.

can't install gem dm-adapter-simpledb

any idea what should I do? this is error message from bundler
$ bundle install
Fetching gem metadata from http://rubygems.org/........
Fetching gem metadata from http://rubygems.org/..
Bundler could not find compatible versions for gem "dm-core":
In Gemfile:
dm-adapter-simpledb (>= 0) ruby depends on
dm-core (~> 0.10.0) ruby
dm-core (1.2.0)
here is my Gemfile
source 'http://rubygems.org'
gem 'sinatra'
gem 'json'
gem 'prawn'
gem 'prawn-graph'
gem 'prawn-layout'
gem 'prawn-fast-png'
gem 'prawn-qrcode'
gem 'data_mapper'
gem 'dm-core'
gem 'dm-mysql-adapter'
gem 'dm-postgres-adapter'
gem 'dm-migrations'
gem 'dm-adapter-simpledb'
gem 'aws-sdk', '~> 1.3.4'
gem 'dm-paperclip'
gem 'savon'
gem 'rmagick'
gem 'SystemTimer', :require => "system_timer", :platforms => :ruby_18
gem 'rack-timeout'
gem 'rufus-scheduler'
gem 'mail'
Try to remove dm-core gem from the Gemfile. You don't need it anyway - dm-adapter-simpledb requires it.
If you absolutely must include dm-core gem in the Gemfile, set it to the version required by dm-adapter-simpledb in Gemfile.lock.
dm-adapter-simpledb in your gemfile depends on dm-core version 0.10.0, the one you have is 1.2.0. either remove it as Lukas suggested or update your gemfile: `dm-core', '~> 0.10.0'

Could not find sprockets-2.0.0.beta.10 in any of the sources

I am specifically intertested in #270. You can see it here: http://railscasts.com/episodes/270-authentication-in-rails-3-1
I've downloaded the code, unzipped it and I'm in the auth-before directory.
I run bundle install and I get
Fetching source index for http://rubygems.org/
Could not find sprockets-2.0.0.beta.10 in any of the sources
I've tried fixing it my self and I've gotten this:
Bundler could not find compatible versions for gem "sprockets":
In Gemfile:
sprockets (~> 2.0) ruby
sass-rails (~> 3.1.0.rc) ruby depends on
sprockets (2.0.0.beta.10)
My gem file looks like this:
source 'http://rubygems.org'
gem 'rails', '3.1.0.rc4'
# Bundle edge Rails instead:
# gem 'rails', :git => 'git://github.com/rails/rails.git'
gem 'sqlite3'
# Asset template engines
gem 'sass-rails', "~> 3.1.0.rc"
gem 'coffee-script'
gem 'uglifier'
gem 'jquery-rails'
# Use unicorn as the web server
# gem 'unicorn'
# Deploy with Capistrano
# gem 'capistrano'
# To use debugger
# gem 'ruby-debug19', :require => 'ruby-debug'
group :test do
# Pretty printed test output
gem 'turn', :require => false
end
What should I do to resolve this?
update:
I followed the suggestion below and removed the version number from sass-rails. When I run the update command I get the following:
Bundler could not find compatible versions for gem "railties":
In Gemfile:
sass-rails (>= 0) ruby depends on
railties (~> 3.1.0) ruby
rails (= 3.1.0.rc4) ruby depends on
railties (3.1.0.rc4
Remove the version limitation on sass-rails from your Gemfile, then run
bundle update sprockets sass-rails
Both sass-rails and sprockets have a stable release now.

Resources