Resolving dependencies.. issue for actionpack - ruby-on-rails

When i try bundle update command retrieve this error
Resolving dependencies....
Bundler could not find compatible versions for gem "actionpack":
In Gemfile:
twitter-bootstrap-rails was resolved to 3.2.2, which depends on
less-rails (>= 2.5.0) was resolved to 3.0.0, which depends on
actionpack (>= 4.0)
rails (= 4.2.5.1) was resolved to 4.2.5.1, which depends on
actionpack (= 4.2.5.1)
twitter-bootstrap-rails was resolved to 3.2.2, which depends on
actionpack (>= 3.1)
In the first gem "actionpack" i have a compatible version for rails but still getting the dependency error
I was looking in rubygems.org and the versions matches in almost all log report cases. Bundle interprets that '>=' matches with the gem which depends?
Gemfile.
source 'https://rubygems.org'
ruby "2.2.4"
gem 'rails', '4.2.5.1'
gem 'sass-rails', '~> 5.0'
gem 'uglifier', '>= 1.3.0'
gem 'coffee-rails', '~> 4.1.0'
gem 'jquery-rails'
gem 'turbolinks'
gem 'jbuilder', '~> 2.0'
gem 'sdoc', '~> 0.4.0', group: :doc
gem 'puma'
gem 'puma_worker_killer'
gem 'rack-handlers'
group :development, :test do
gem 'byebug'
end
group :development do
gem 'web-console', '~> 2.0'
gem 'spring'
gem 'xray-rails'
end
group :production do
gem 'unf'
gem 'rails_12factor'
gem 'sprockets', '3.7.2'
end
gem 'spree', git: 'https://github.com/spree/spree.git', branch: '3-0-stable'
gem 'spree_gateway', github: 'spree/spree_gateway', branch: '3-0-stable'
gem 'pg'
gem 'rest-client'
gem 'spree_auth_devise', github: 'spree/spree_auth_devise', branch: '3-0-stable'
git "https://#{ENV['BITBUCKET_USERNAME']}:#{ENV['BITBUCKET_PASSWORD']}#bitbucket.org/Gothmogh/spree_gems.git" do
gem 'spree_i18n'
gem 'spree_social'
gem 'spree_reviews'
gem 'spree_product_zoom'
gem 'spree_social_products'
gem 'spree_recently_viewed'
gem 'spree_zaez_banner'
gem 'spree_product_assembly'
gem 'spree_asset_variant_options'
end
git "https://#{ENV['BITBUCKET_USERNAME']}:#{ENV['BITBUCKET_PASSWORD']}#bitbucket.org/Gothmogh/spree_custom_extensions.git" do
gem 'spree_product_pre_posting'
end
gem 'less-rails'
gem 'therubyracer'
gem 'twitter-bootstrap-rails'
gem 'browser'
gem 'aws-sdk', '< 2.0'
gem 'spree_html_invoice', git: 'https://github.com/vinsol-spree-contrib/spree-html-invoice', branch: '3-0-stable'

Related

Upgrading rails4 to 5.0.0 and getting dependency error for actionpack, activemodel

I am upgrading my rails app from rails 4 to rails 5.0.0
I have fixed most dependency issues except the following:
Bundler could not find compatible versions for gem "actionpack":
In Gemfile:
actionpack
rails (= 5.0.0) was resolved to 5.0.0, which depends on
actionpack (= 5.0.0)
rails-controller-testing was resolved to 1.0.1, which depends on
actionpack (~> 5.x)
responders (~> 2.0) was resolved to 2.4.1, which depends on
actionpack (< 6.0, >= 4.2.0)
rspec-rails (~> 3.6) was resolved to 3.8.2, which depends on
actionpack (>= 3.0)
Bundler could not find compatible versions for gem "activemodel":
In Gemfile:
activemodel
activeresource was resolved to 5.1.0, which depends on
activemodel (< 7, >= 5.0)
protected_attributes was resolved to 1.0.2, which depends on
activemodel (< 5.0, >= 4.0.0.beta)
rails (= 5.0.0) was resolved to 5.0.0, which depends on
activemodel (= 5.0.0)
I deleted the Gemfile.lock and did bundle install again.
I also did gem install actionpack and gem install activemodel
My Gemfile:
source 'https://rubygems.org'
ruby "2.3.8"
gem 'rails', '5.0.0'
gem 'actionpack' #, '~> 5.0.0'
gem 'activemodel'#, '~> 5.0.0'
gem 'bootstrap-sass', '3.1.1.0'
gem 'bcrypt-ruby', '3.1.2'
gem 'faker', '1.0.1'
gem 'will_paginate', '~> 3.0.5'
gem 'bootstrap-will_paginate', '0.0.10'
# gem 'will_paginate-bootstrap'
gem 'aws-sdk', '~> 2'
gem 'aws-sdk-v1'
gem "jquery-fileupload-rails"
gem 'textacular', '~> 3.0'
# gem 'lazy_high_charts'
gem "highcharts-rails", "~> 3.0.0"
gem 'pivot_table'
gem 'bootstrap-table-rails'
gem 'newrelic_rpm'
gem 'resque', "~> 1.22.0", require: "resque/server"
gem 'resque_mailer'
gem 'holidays'
gem 'wicked_pdf'
gem 'puma'
gem 'rest-client'
gem 'mocha'
gem 'turbolinks', '~> 5.2.0'
#
# for api
gem 'jwt'
gem 'responders', '~> 2.0'
gem 'phantomjs', :require => 'phantomjs/poltergeist'
# for text notifications
gem 'twilio-ruby'
# Bundle edge Rails instead:
# gem 'rails', :git => 'git://github.com/rails/rails.git'
group :development do
gem 'pg','~> 0.18'
gem 'annotate'
gem 'letter_opener'
gem 'wkhtmltopdf-binary'
gem 'spring-commands-rspec'
end
group :test do
# gem 'pg'
gem 'sqlite3', '1.3.10'
gem 'rspec-rails', '~> 3.6'
gem 'rspec-its'
gem 'capybara', '~> 2.4.0'
gem 'poltergeist'
gem 'factory_bot_rails'
gem 'minitest'
gem 'test-unit'
gem 'shoulda-matchers'
gem 'rails-controller-testing'
gem 'shoulda-callback-matchers'
gem 'database_cleaner'
gem 'selenium-webdriver', '~>3.6.0'
end
gem 'sass-rails', '~> 4.0.2'
gem 'coffee-rails', '4.0.0'
gem 'uglifier', '1.3.0'
gem 'chosen-rails'
gem 'jquery-rails'
gem 'jquery-ui-rails'
group :production do
gem 'pg','~> 0.18'
gem 'wkhtmltopdf-heroku'
end
gem 'rack-mini-profiler'
gem "bullet", :group => "development"
# Rails 4 Transition
gem 'protected_attributes'
gem 'activeresource'

Gem dependency issues: Bundler could not find compatible versions for gem "activemodel"

I'm trying to set up MongoDB on a Rails app in Cloud9.
I've installed Rails 5.0.1 and MongoDB, but problems are arrising with my gemfile.
This is my gem file:
source 'https://rubygems.org'
gem 'rails', '5.0.1'
gem 'puma', '3.4.0'
gem 'sass-rails', '5.0.6'
gem 'uglifier', '3.0.0'
gem 'coffee-rails', '4.2.1'
gem 'jquery-rails', '4.1.1'
gem 'turbolinks', '5.0.1'
gem 'jbuilder', '2.4.1'
group :development, :test do
gem 'mongoid', '~> 5.1', '>= 5.1.3'
gem 'byebug', '9.0.0', platform: :mri
end
group :development do
gem 'web-console', '3.1.1'
gem 'listen', '3.0.8'
gem 'spring', '1.7.2'
gem 'spring-watcher-listen', '2.0.0'
end
group :test do
gem 'rails-controller-testing', '0.1.1'
gem 'minitest-reporters', '1.1.9'
gem 'guard', '2.13.0'
gem 'guard-minitest', '2.4.4'
end
group :production do
gem 'pg', '0.18.4'
end
# Windows does not include zoneinfo files, so bundle the tzinfo-data gem
gem 'tzinfo-data', platforms: [:mingw, :mswin, :x64_mingw, :jruby]
When I run 'bundle install' I get the following error:
Bundler could not find compatible versions for gem "activemodel":
In Gemfile:
mongoid (>= 5.1.3, ~> 5.1) was resolved to 5.1.3, which depends on
activemodel (~> 4.0)
rails (= 5.0.1) was resolved to 5.0.1, which depends on
activemodel (= 5.0.1)
rails (= 5.0.1) was resolved to 5.0.1, which depends on
activemodel (= 5.0.1)

Installing rubygem d3js into a Rails 5 app, receiving railties compatibility issues

Has anyone successfully installed the D3js gem for rails.
I have the recent version, gem 'd3js-rails', '~> 3.1', '>= 3.1.6'
When I bundle install I receive a message saying bundler cannot find compatible versions:
Fetching gem metadata from https://rubygems.org/
Fetching version metadata from https://rubygems.org/
Fetching dependency metadata from https://rubygems.org/
Resolving dependencies.........
Bundler could not find compatible versions for gem "railties":
In Gemfile:
coffee-rails (~> 4.2) was resolved to 4.2.1, which depends on
railties (< 5.2.x, >= 4.0.0)
d3js-rails (>= 3.1.6, ~> 3.1) was resolved to 3.1.6, which depends on
railties (< 5.0, >= 3.0)
rails (>= 5.0.0.1, ~> 5.0.0) was resolved to 5.0.0.1, which depends on
railties (= 5.0.0.1)
react-rails (>= 1.7.1, ~> 1.7) was resolved to 1.9.0, which depends on
railties (>= 3.2)
sass-rails (~> 5.0) was resolved to 5.0.6, which depends on
railties (< 6, >= 4.0.0)
My gem file looks like this:
source 'https://rubygems.org'
gem 'rails', '~> 5.0.0', '>= 5.0.0.1'
gem 'puma', '~> 3.0'
gem 'sass-rails', '~> 5.0'
gem 'uglifier', '>= 1.3.0'
gem 'coffee-rails', '~> 4.2'
gem 'pg', '~> 0.18.4'
gem 'react-rails', '~> 1.7', '>= 1.7.1'
gem 'jquery-rails'
gem 'turbolinks', '~> 5'
gem 'jbuilder', '~> 2.5'
gem 'devise'
gem 'd3js-rails', '~> 3.1', '>= 3.1.6'
gem 'bootstrap-sass'
gem 'yahoo-finance'
gem 'rails_12factor', group: :production
group :development, :test do
gem 'byebug', platform: :mri
gem 'pry-rails'
gem "better_errors"
end
group :development do
gem 'web-console'
gem 'listen', '~> 3.0.5'
gem 'spring'
gem 'spring-watcher-listen', '~> 2.0.0'
end
gem 'tzinfo-data', platforms: [:mingw, :mswin, :x64_mingw, :jruby]
What is the actual issue? Has anyone had similar problems with installing d3js-rails?
Successfully installed found no issues.
Suggestion: Try to update your rubygem manager, rails & installed gems if they are not up to date. It seems you are having compatibility issues with your gems.
gem update --system && gem update
Otherwise:
use
gem 'rails', '~> 4.2', '>= 4.2.7.1'
gem 'sass-rails', '~> 4.0', '>= 4.0.5'
gem 'coffee-rails', '~> 4.0', '>= 4.0.1'
gem 'react-rails', '~> 1.8', '>= 1.8.2'
instead of your current version then use
bundle update
and then
bundle install.
Hope this will work.
Good Luck!

Railties compatibility issues when deploying to heroku

I tried putting sass-rails before rails suggested in the post Bundler gem compatibility issues when deploying to heroku. but it didn't work.
Heroku Error Message
Bundler could not find compatible versions for gem "railties":
In Gemfile:
rails (= 4.0.0) ruby depends on
railties (= 4.0.0) ruby
sass-rails (= 4.0.0) ruby depends on
railties (4.0.1.rc1)
Failed to install gems via Bundler.
Gemfile
source 'https://rubygems.org'
ruby '2.0.0'
gem 'sass-rails', '4.0.0'
gem 'rails', '4.0.0'
gem 'pg', '0.15.1'
gem 'bcrypt-ruby', '3.0.1'
group :development, :test do
gem 'rspec-rails', '2.13.1'
end
group :test do
gem 'selenium-webdriver', '2.35.1'
gem 'capybara', '2.1.0'
gem 'factory_girl_rails', '4.2.1'
end
gem 'uglifier', '2.1.1'
gem 'coffee-rails', '4.0.0'
gem 'jquery-rails', '3.0.4'
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 'rails_12factor', '0.0.2'
end
Change the sass entry to :
gem 'sass-rails', '~> 4.0.0'
Then run bundle update, commit and redeploy

Bundler gem compatibility issues when deploying to heroku.

I receive the following error message is when deploying to heroku:
Bundler could not find compatible version for gem "railties":
In Gemfile:
rails (= 4.0.0) ruby depends on
railties (= 4.0.0) ruby
coffee-rails (= 4.0.0) ruby depends on
railties (4.0.1.rc1)
Failed to install gems via Bundler
Gemfile
source 'https://rubygems.org'
ruby '1.9.3'
gem 'rails', '4.0.0'
gem 'bcrypt-ruby', '3.0.1'
gem 'faker', '1.1.2'
gem 'will_paginate', '3.0.4'
gem 'will_paginate-bootstrap'
group :development, :test do
gem 'sqlite3', '1.3.7'
gem 'rspec-rails', '2.13.1'
end
group :test do
gem 'selenium-webdriver', '2.0.0'
gem 'capybara', '2.1.0'
gem 'factory_girl_rails', '4.2.1'
end
gem 'sass-rails', '4.0.0'
gem 'uglifier', '2.1.1'
gem 'coffee-rails', '4.0.0'
gem 'jquery-rails', '3.0.4'
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
I've tried many different things like running bundle update, changing gem versions etc. but so far nothing seems to work. I have been deploying to heroku for a while now without changing any of the gems, so how can this suddenly happen?
Is this caused by the release of rails 4.0.1.rc1?

Resources