Bundler couldn't find compatable versions on bundle install in rails - ruby-on-rails

I have cloned an existing project and trying to run it in my system.
Since this is the first time I don't have any Gemfile.lock file in my directory.
I tried running bundle install and the following errors occur:
Bundler could not find compatible versions for gem "actionmailer":
In Gemfile:
liquid_markdown (= 0.2.2) was resolved to 0.2.2, which depends on
actionmailer (>= 4.0)
rails (= 4.1.6) was resolved to 4.1.6, which depends on
actionmailer (= 4.1.6)
Bundler could not find compatible versions for gem "actionpack":
In Gemfile:
gon (= 6.4.0) was resolved to 6.4.0, which depends on
actionpack (>= 3.0.20)
jquery-datatables-rails (= 3.3.0) was resolved to 3.3.0, which depends on
actionpack (>= 3.1)
rails (= 4.1.6) was resolved to 4.1.6, which depends on
actionpack (= 4.1.6)
rails-api was resolved to 0.4.1, which depends on
actionpack (>= 3.2.11)
redis-rails (= 5.0.2) was resolved to 5.0.2, which depends on
redis-actionpack (>= 5.0, < 6) was resolved to 5.1.0, which depends on
actionpack (>= 4.0, < 7)
rails (= 4.1.6) was resolved to 4.1.6, which depends on
sprockets-rails (~> 2.0) was resolved to 2.3.3, which depends on
actionpack (>= 3.0)
Bundler could not find compatible versions for gem "actionview":
In Gemfile:
liquid_markdown (= 0.2.2) was resolved to 0.2.2, which depends on
actionview (>= 4.0)
rails (= 4.1.6) was resolved to 4.1.6, which depends on
actionview (= 4.1.6)
Bundler could not find compatible versions for gem "activemodel":
In Gemfile:
acts_as_api (= 1.0.1) was resolved to 1.0.1, which depends on
activemodel (>= 3.0.0)
carrierwave was resolved to 1.3.2, which depends on
activemodel (>= 4.0.0)
paperclip (~> 4.3.2) was resolved to 4.3.7, which depends on
activemodel (>= 3.2.0)
rails (= 4.1.6) was resolved to 4.1.6, which depends on
activemodel (= 4.1.6)
Bundler could not find compatible versions for gem "activerecord":
In Gemfile:
audited (= 4.8.0) was resolved to 4.8.0, which depends on
activerecord (>= 4.0, < 5.3)
rails (= 4.1.6) was resolved to 4.1.6, which depends on
activerecord (= 4.1.6)
squeel was resolved to 1.2.3, which depends on
activerecord (>= 3.0)
Bundler could not find compatible versions for gem "activesupport":
In Gemfile:
acts_as_api (= 1.0.1) was resolved to 1.0.1, which depends on
activesupport (>= 3.0.0)
carrierwave was resolved to 1.3.2, which depends on
activesupport (>= 4.0.0)
paperclip (~> 4.3.2) was resolved to 4.3.7, which depends on
activesupport (>= 3.2.0)
rails (= 4.1.6) was resolved to 4.1.6, which depends on
activesupport (= 4.1.6)
redis-rails (= 5.0.2) was resolved to 5.0.2, which depends on
redis-activesupport (>= 5.0, < 6) was resolved to 5.2.0, which depends on
activesupport (>= 3, < 7)
Bundler could not find compatible versions for gem "coffee-rails":
In Gemfile:
coffee-rails (~> 4.0.0)
chosen-rails was resolved to 1.9.0, which depends on
coffee-rails (>= 3.2)
Bundler could not find compatible versions for gem "i18n":
In Gemfile:
rails (= 4.1.6) was resolved to 4.1.6, which depends on
activesupport (= 4.1.6) was resolved to 4.1.6, which depends on
i18n (~> 0.6, >= 0.6.9)
gon (= 6.4.0) was resolved to 6.4.0, which depends on
i18n (>= 0.7)
Bundler could not find compatible versions for gem "mime-types":
In Gemfile:
carrierwave was resolved to 1.3.2, which depends on
mime-types (>= 1.16)
paperclip (~> 4.3.2) was resolved to 4.3.7, which depends on
mime-types
rest-client (~> 1.7.2) was resolved to 1.7.3, which depends on
mime-types (>= 1.16, < 3.0)
Bundler could not find compatible versions for gem "mimemagic":
In Gemfile:
paperclip (~> 4.3.2) was resolved to 4.3.7, which depends on
mimemagic (= 0.3.0)
Could not find gem 'mimemagic (= 0.3.0)', which is required by gem 'paperclip (~> 4.3.2)', in
any of the sources.
Bundler could not find compatible versions for gem "rack":
In Gemfile:
rails (= 4.1.6) was resolved to 4.1.6, which depends on
actionpack (= 4.1.6) was resolved to 4.1.6, which depends on
rack (~> 1.5.2)
acts_as_api (= 1.0.1) was resolved to 1.0.1, which depends on
rack (>= 1.1.0)
resque-scheduler was resolved to 4.4.0, which depends on
resque (>= 1.26) was resolved to 1.27.4, which depends on
sinatra (>= 0.9.2) was resolved to 1.4.8, which depends on
rack-protection (~> 1.4) was resolved to 1.5.5, which depends on
rack
redis-rails (= 5.0.2) was resolved to 5.0.2, which depends on
redis-actionpack (>= 5.0, < 6) was resolved to 5.1.0, which depends on
redis-rack (>= 1, < 3) was resolved to 2.0.6, which depends on
rack (>= 1.5, < 3)
request_store (= 1.4.1) was resolved to 1.4.1, which depends on
rack (>= 1.4)
resque-scheduler was resolved to 4.4.0, which depends on
resque (>= 1.26) was resolved to 1.27.4, which depends on
sinatra (>= 0.9.2) was resolved to 1.4.8, which depends on
rack (~> 1.5)
sass-rails (= 5.0.6) was resolved to 5.0.6, which depends on
sprockets (>= 2.8, < 4.0) was resolved to 3.7.2, which depends on
rack (> 1, < 3)
devise was resolved to 4.7.3, which depends on
warden (~> 1.2.3) was resolved to 1.2.7, which depends on
rack (>= 1.0)
Bundler could not find compatible versions for gem "rails":
In Gemfile:
rails (= 4.1.6)
bootstrap-tooltip-rails was resolved to 0.1, which depends on
rails (>= 3.1)
has_magic_fields (= 0.2.1) was resolved to 0.2.1, which depends on
rails (>= 4.0.0)
Bundler could not find compatible versions for gem "railties":
In Gemfile:
bootstrap-daterangepicker-rails (= 0.1.5) was resolved to 0.1.5, which depends on
railties (>= 4.0, < 5.1)
bootstrap-slider-rails (= 9.2.0) was resolved to 9.2.0, which depends on
railties (>= 3.2, < 6.0)
coffee-rails (~> 4.0.0) was resolved to 4.0.1, which depends on
railties (>= 4.0.0, < 5.0)
data-confirm-modal (= 1.2.0) was resolved to 1.2.0, which depends on
railties (>= 3.0)
devise was resolved to 4.7.3, which depends on
railties (>= 4.1.0)
font-awesome-rails was resolved to 4.7.0.7, which depends on
railties (>= 3.2, < 7)
jquery-datatables-rails (= 3.3.0) was resolved to 3.3.0, which depends on
jquery-rails was resolved to 3.1.5, which depends on
railties (>= 3.0, < 5.0)
jquery-tablesorter was resolved to 1.27.2, which depends on
railties (>= 3.2)
momentjs-rails (= 2.15.1) was resolved to 2.15.1, which depends on
railties (>= 3.1)
rails (= 4.1.6) was resolved to 4.1.6, which depends on
railties (= 4.1.6)
rails-api was resolved to 0.4.1, which depends on
railties (>= 3.2.11)
sass-rails (= 5.0.6) was resolved to 5.0.6, which depends on
railties (>= 4.0.0, < 6)
chosen-rails was resolved to 1.9.0, which depends on
sassc-rails (>= 2.1.2) was resolved to 2.1.2, which depends on
railties (>= 4.0.0)
Bundler could not find compatible versions for gem "redis":
In Gemfile:
redis-namespace (= 1.5.3) was resolved to 1.5.3, which depends on
redis (~> 3.0, >= 3.0.4)
redis-rails (= 5.0.2) was resolved to 5.0.2, which depends on
redis-store (>= 1.2, < 2) was resolved to 1.6.0, which depends on
redis (>= 2.2, < 5)
resque-scheduler was resolved to 4.4.0, which depends on
redis (>= 3.3)
Bundler could not find compatible versions for gem "redis-namespace":
In Gemfile:
redis-namespace (= 1.5.3)
resque-scheduler was resolved to 4.4.0, which depends on
resque (>= 1.26) was resolved to 1.27.4, which depends on
redis-namespace (~> 1.3)
Bundler could not find compatible versions for gem "redis-store":
In Gemfile:
redis-rails (= 5.0.2) was resolved to 5.0.2, which depends on
redis-actionpack (>= 5.0, < 6) was resolved to 5.1.0, which depends on
redis-store (>= 1.1.0, < 2)
redis-rails (= 5.0.2) was resolved to 5.0.2, which depends on
redis-activesupport (>= 5.0, < 6) was resolved to 5.2.0, which depends on
redis-store (>= 1.3, < 2)
redis-rails (= 5.0.2) was resolved to 5.0.2, which depends on
redis-store (>= 1.2, < 2)
Bundler could not find compatible versions for gem "resque":
In Gemfile:
resque
resque-scheduler was resolved to 4.4.0, which depends on
resque (>= 1.26)
Bundler could not find compatible versions for gem "ruby":
In Gemfile:
ruby
bootstrap (~> 4.4.1) was resolved to 4.4.1, which depends on
ruby (>= 2.3.3)
rails (= 4.1.6) was resolved to 4.1.6, which depends on
bundler (>= 1.3.0, < 2.0) was resolved to 1.17.3, which depends on
ruby (>= 1.8.7)
byebug (= 11.0.1) was resolved to 11.0.1, which depends on
ruby (>= 2.3.0)
devise was resolved to 4.7.3, which depends on
ruby (>= 2.1.0)
gon (= 6.4.0) was resolved to 6.4.0, which depends on
ruby (>= 2.2.0)
rails (= 4.1.6) was resolved to 4.1.6, which depends on
activesupport (= 4.1.6) was resolved to 4.1.6, which depends on
minitest (~> 5.1) was resolved to 5.14.4, which depends on
ruby (>= 2.2, < 4.0)
aws-sdk (< 2.0) was resolved to 1.67.0, which depends on
aws-sdk-v1 (= 1.67.0) was resolved to 1.67.0, which depends on
nokogiri (~> 1) was resolved to 1.11.3, which depends on
ruby (>= 2.5.0)
pg (= 0.21.0) was resolved to 0.21.0, which depends on
ruby (>= 2.0.0)
rails (= 4.1.6) was resolved to 4.1.6, which depends on
ruby (>= 1.9.3)
rest-client (~> 1.7.2) was resolved to 1.7.3, which depends on
ruby (>= 1.9.2)
sentry-raven (= 2.6.0) was resolved to 2.6.0, which depends on
ruby (>= 1.9.0)
Bundler could not find compatible versions for gem "sass-rails":
In Gemfile:
sass-rails (= 5.0.6)
jquery-datatables-rails (= 3.3.0) was resolved to 3.3.0, which depends on
sass-rails
Bundler could not find compatible versions for gem "sprockets":
In Gemfile:
sass-rails (= 5.0.6) was resolved to 5.0.6, which depends on
sprockets (>= 2.8, < 4.0)
chosen-rails was resolved to 1.9.0, which depends on
sassc-rails (>= 2.1.2) was resolved to 2.1.2, which depends on
sprockets (> 3.0)
Bundler could not find compatible versions for gem "sprockets-rails":
In Gemfile:
rails (= 4.1.6) was resolved to 4.1.6, which depends on
sprockets-rails (~> 2.0)
sass-rails (= 5.0.6) was resolved to 5.0.6, which depends on
sprockets-rails (>= 2.0, < 4.0)
chosen-rails was resolved to 1.9.0, which depends on
sassc-rails (>= 2.1.2) was resolved to 2.1.2, which depends on
sprockets-rails
Bundler could not find compatible versions for gem "tzinfo":
In Gemfile:
rails (= 4.1.6) was resolved to 4.1.6, which depends on
activesupport (= 4.1.6) was resolved to 4.1.6, which depends on
tzinfo (~> 1.1)
resque-scheduler was resolved to 4.4.0, which depends on
rufus-scheduler (~> 3.2) was resolved to 3.7.0, which depends on
fugit (~> 1.1, >= 1.1.6) was resolved to 1.4.4, which depends on
et-orbi (~> 1.1, >= 1.1.8) was resolved to 1.2.4, which depends on
tzinfo
Gemfile:
source 'https://rubygems.org'
# Bundle edge Rails instead: gem 'rails', github: 'rails/rails'
gem 'rails', '4.1.6'
# Use mysql as the database for Active Record
gem 'pg', '0.21.0'
gem 'pushpad', '0.12.0'
gem 'gon', '6.4.0'
source 'https://rails-assets.org' do
gem 'rails-assets-datetimepicker'
end
gem 'sass-rails', '5.0.6'
# 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'
# Use jquery as the JavaScript library
gem 'jquery-rails'
gem 'has_magic_fields', '0.2.1'
gem 'bootstrap-tooltip-rails'
gem 'bootstrap-multiselect-rails'
gem 'bootstrap-datepicker-rails'
gem 'multi-select-rails'
gem 'remotipart', '~> 1.2'
gem 'request_store', '1.4.1'
gem 'plyr-rails'
gem "audited", '4.8.0'
gem 'jquery-datatables', '1.10.20'
gem 'telephone_number', '1.3.4'
# See https://github.com/sstephenson/execjs#readme for more supported runtimes
gem 'mini_racer'
gem 'acts_as_api', '1.0.1'
gem 'clipboard-rails'
gem 'bson_ext'
gem 'squeel'
gem 'workflow'
gem 'devise'
gem 'rack-cors', :require => 'rack/cors'
gem 'rest-client', '~> 1.7.2'
gem 'httpclient'
gem 'will_paginate', '~> 3.1.0'
gem 'rails-api'
gem 'bootstrap', '~> 4.4.1'
gem 'bootstrap_form', '2.7.0'
gem "cocoon"
gem 'chartkick', '2.2.4'
gem 'redis-rails', '5.0.2'
gem 'redis-namespace', "1.5.3"
gem "font-awesome-rails"
gem 'chosen-rails'
gem "cancan", "1.6.10"
gem "figaro"
gem 'jquery-tablesorter'
gem 'geocoder'
gem 'icheck-rails', '1.0.2.2'
gem 'bootstrap-slider-rails', '9.2.0'
gem 'haml', '4.0.7'
gem 'data-confirm-modal', "1.2.0"
gem "momentjs-rails", "2.15.1"
gem "bootstrap-daterangepicker-rails", "0.1.5"
gem "paperclip", "~> 4.3.2"
gem "underscore-rails"
gem "gmaps4rails"
gem "jquery-datatables-rails", "3.3.0"
gem 'carrierwave'
gem 'resque'
gem 'resque-scheduler'
gem 'liquid_markdown', '0.2.2'
gem 'aws-sdk', '< 2.0'
group :production do
gem 'zip'
gem "sentry-raven", "2.6.0"
end
group :test, :development do
gem 'byebug', '11.0.1'
end
rvm list:
=* ruby-2.3.3 [ x86_64 ]
# => - current
# =* - current && default
# * - default
gem env:
RubyGems Environment:
- RUBYGEMS VERSION: 3.0.8
- RUBY VERSION: 2.3.3 (2016-11-21 patchlevel 222) [x86_64-linux]
- INSTALLATION DIRECTORY: /home/bala/.rvm/gems/ruby-2.3.3
- USER INSTALLATION DIRECTORY: /home/bala/.gem/ruby/2.3.0
- RUBY EXECUTABLE: /usr/share/rvm/rubies/ruby-2.3.3/bin/ruby
- GIT EXECUTABLE: /usr/bin/git
- EXECUTABLE DIRECTORY: /home/bala/.rvm/gems/ruby-2.3.3/bin
- SPEC CACHE DIRECTORY: /home/bala/.gem/specs
- SYSTEM CONFIGURATION DIRECTORY: /etc
- RUBYGEMS PLATFORMS:
- ruby
- x86_64-linux
- GEM PATHS:
- /home/bala/.rvm/gems/ruby-2.3.3
- /usr/share/rvm/rubies/ruby-2.3.3/lib/ruby/gems/2.3.0
- GEM CONFIGURATION:
- :update_sources => true
- :verbose => true
- :backtrace => false
- :bulk_threshold => 1000
- REMOTE SOURCES:
- https://rubygems.org/
- SHELL PATH:
- /home/bala/.rvm/gems/ruby-2.3.3/bin
- /home/bala/.rvm/gems/ruby-2.3.3#global/bin
- /usr/share/rvm/rubies/ruby-2.3.3/bin
- /usr/share/rvm/bin
- /home/bala/.local/bin
- /home/bala/anaconda3/condabin
- /home/bala/.local/bin
- /usr/local/sbin
- /usr/local/bin
- /usr/sbin
- /usr/bin
- /sbin
- /bin
- /usr/games
- /usr/local/games
- /snap/bin
- /home/bala/.rvm/bin
- /home/bala/.rvm/bin
- /home/bala/.rvm/bin
bundler --version:
Bundler version 1.17.3
can someOne help me, I came to know that I have to use bundle version 1.17.3 (so there is no problem with bundle version)

The issue is all to do with mimemagic. More specifically, this error:
Could not find gem 'mimemagic (= 0.3.0)', which is required by gem 'paperclip (~> 4.3.2)', in
any of the sources.
There was a big drama recently in the ruby community, as all old versions of this gem were suddenly yanked (hard-deleted) from rubygems, after the author became aware that the library had been incorrectly licensed as MIT, rather than GPLv2.
Multiple discussions about this easily findable on google (if you know what you're searching for, of course!) such as here, here and here.
An ideal fix would be to update whatever libraries are necessary to use the newer mimemagic version. (Perhaps it's just paperclip in your case?) I can't say for sure without seeing your full Gemfile.lock.
But if that's not feasible right now, and you just want to get an installation working with v0.3.0 of mimemagic, you could always look through the git history and pin that version's commit in your Gemfile:
gem 'mimemagic', git: 'https://github.com/mimemagicrb/mimemagic', ref: 'a4b038c6c1b9d76dac33d5711d28aaa9b4c42c66'
However, be aware that - as mentioned above - the old versions of this gem should really have been GPLv2 licensed, not MIT licensed. For local development that's definitely not an issue; but for production deployment it might be a legal issue. I Am Not A Lawyer.

In your project directory, try installing rails gem install rails -v 4.1.6 and removing the version from the failing gems like (liquid_markdown, gon, etc..) then try running bundle update then bundle clean --force
I think this might be an issue because all the version of these gems are locked inside your Gemfile

Related

Rails 4: Emails not going through after installing openid-connect gem

Installed openid_connect in a ruby '2.2.3' and rails '4.1.5' app. After that the existing email functionality has stopped working, none of the emails are going through without any exception.
In the Gemfile.lock the existing mail version is ~> 2.5.4
actionmailer (4.1.5)
actionpack (= 4.1.5)
actionview (= 4.1.5)
**mail (~> 2.5.4)**
Openid_connect installs a dependency validate_email which uses mail
openid_connect (1.3.1)
activemodel
attr_required (>= 1.0.0)
json-jwt (>= 1.5.0)
net-smtp
rack-oauth2 (>= 1.6.1)
swd (>= 1.0.0)
tzinfo
**validate_email**
validate_url
webfinger (>= 1.0.1)
validate_email (0.1.6)
activemodel (>= 3.0)
**mail (>= 2.2.5)**
Not sure how to debug further and to sync these gem versions. Any workaround on this?

bundle install gives me a lot of gems version errors

when I run bundle install I got this long error
bundle install
Fetching gem metadata from https://rails-assets.org/...
Fetching gem metadata from https://rubygems.org/.........
Fetching gem metadata from https://rails-assets.org/..
Fetching gem metadata from https://rubygems.org/.
Resolving dependencies......................
Bundler could not find compatible versions for gem "actionmailer":
In Gemfile:
mail_form was resolved to 1.7.1, which depends on
actionmailer (>= 3.2, < 6)
rails (= 4.2.11.1) was resolved to 4.2.11.1, which depends on
actionmailer (= 4.2.11.1)
Bundler could not find compatible versions for gem "actionpack":
In Gemfile:
activeadmin was resolved to 1.4.3, which depends on
formtastic (~> 3.1) was resolved to 3.1.5, which depends on
actionpack (>= 3.2.13)
activeadmin was resolved to 1.4.3, which depends on
inherited_resources (>= 1.9.0) was resolved to 1.9.0, which depends on
has_scope (~> 0.6) was resolved to 0.7.2, which depends on
actionpack (>= 4.1)
activeadmin was resolved to 1.4.3, which depends on
inherited_resources (>= 1.9.0) was resolved to 1.9.0, which depends on
actionpack (>= 4.2, < 5.3)
rails (= 4.2.11.1) was resolved to 4.2.11.1, which depends on
actionpack (= 4.2.11.1)
activeadmin was resolved to 1.4.3, which depends on
ransack (>= 1.8.7) was resolved to 1.8.10, which depends on
actionpack (>= 3.0, < 5.2)
Bundler could not find compatible versions for gem "activemodel":
In Gemfile:
mail_form was resolved to 1.7.1, which depends on
activemodel (>= 3.2, < 6)
paperclip (~> 4.3.1) was resolved to 4.3.7, which depends on
activemodel (>= 3.2.0)
rails (= 4.2.11.1) was resolved to 4.2.11.1, which depends on
activemodel (= 4.2.11.1)
web-console (~> 2.0) was resolved to 2.3.0, which depends on
activemodel (>= 4.0)
Bundler could not find compatible versions for gem "activerecord":
In Gemfile:
friendly_id (~> 5.4.0) was resolved to 5.4.2, which depends on
activerecord (>= 4.0.0)
rails (= 4.2.11.1) was resolved to 4.2.11.1, which depends on
activerecord (= 4.2.11.1)
rails-erd was resolved to 1.6.1, which depends on
activerecord (>= 4.2)
activeadmin was resolved to 1.4.3, which depends on
ransack (>= 1.8.7) was resolved to 1.8.10, which depends on
activerecord (>= 3.0, < 5.2)
Bundler could not find compatible versions for gem "activesupport":
In Gemfile:
activeadmin was resolved to 1.4.3, which depends on
arbre (>= 1.1.1) was resolved to 1.4.0, which depends on
activesupport (>= 3.0.0, < 6.2)
jbuilder (~> 2.0) was resolved to 2.9.1, which depends on
activesupport (>= 4.2.0)
activeadmin was resolved to 1.4.3, which depends on
kaminari (>= 0.15) was resolved to 1.2.1, which depends on
activesupport (>= 4.1.0)
paperclip (~> 4.3.1) was resolved to 4.3.7, which depends on
activesupport (>= 3.2.0)
rails (= 4.2.11.1) was resolved to 4.2.11.1, which depends on
activesupport (= 4.2.11.1)
activeadmin was resolved to 1.4.3, which depends on
ransack (>= 1.8.7) was resolved to 1.8.10, which depends on
activesupport (>= 3.0, < 5.2)
Bundler could not find compatible versions for gem "coffee-rails":
In Gemfile:
coffee-rails (~> 4.1.0)
activeadmin was resolved to 1.4.3, which depends on
coffee-rails
Bundler could not find compatible versions for gem "i18n":
In Gemfile:
rails (= 4.2.11.1) was resolved to 4.2.11.1, which depends on
activesupport (= 4.2.11.1) was resolved to 4.2.11.1, which depends on
i18n (~> 0.7)
activeadmin was resolved to 1.4.3, which depends on
ransack (>= 1.8.7) was resolved to 1.8.10, which depends on
i18n
Bundler could not find compatible versions for gem "json":
In Gemfile:
recaptcha was resolved to 5.8.1, which depends on
json
sdoc (~> 0.4.0) was resolved to 0.4.2, which depends on
json (~> 1.7, >= 1.7.7)
Bundler could not find compatible versions for gem "mimemagic":
In Gemfile:
paperclip (~> 4.3.1) was resolved to 4.3.7, which depends on
mimemagic (= 0.3.0)
Could not find gem 'mimemagic (= 0.3.0)', which is required by gem 'paperclip
(~> 4.3.1)', in any of the sources.
Bundler could not find compatible versions for gem "paperclip":
In Gemfile:
paperclip (~> 4.3.1)
paperclip-ffmpeg (~> 1.2.0) was resolved to 1.2.0, which depends on
paperclip (>= 2.5.2)
Bundler could not find compatible versions for gem "rack":
In Gemfile:
rails (= 4.2.11.1) was resolved to 4.2.11.1, which depends on
actionpack (= 4.2.11.1) was resolved to 4.2.11.1, which depends on
rack (~> 1.6)
omniauth-google-oauth2 was resolved to 1.0.0, which depends on
oauth2 (~> 1.1) was resolved to 1.4.7, which depends on
rack (>= 1.2, < 3)
omniauth-google-oauth2 was resolved to 1.0.0, which depends on
omniauth (~> 2.0) was resolved to 2.0.4, which depends on
rack (>= 1.6.2, < 3)
sass-rails (~> 5.0) was resolved to 5.0.7, which depends on
sprockets (>= 2.8, < 4.0) was resolved to 3.7.2, which depends on
rack (> 1, < 3)
devise was resolved to 4.8.0, which depends on
warden (~> 1.2.3) was resolved to 1.2.7, which depends on
rack (>= 1.0)
Bundler could not find compatible versions for gem "rails":
In Gemfile:
rails (= 4.2.11.1)
paperclip-ffmpeg (~> 1.2.0) was resolved to 1.2.0, which depends on
rails
Bundler could not find compatible versions for gem "railties":
In Gemfile:
activeadmin was resolved to 1.4.3, which depends on
railties (>= 4.2, < 5.3)
coffee-rails (~> 4.1.0) was resolved to 4.1.1, which depends on
railties (>= 4.0.0, < 5.1.x)
devise was resolved to 4.8.0, which depends on
railties (>= 4.1.0)
activeadmin was resolved to 1.4.3, which depends on
jquery-rails (>= 4.2.0) was resolved to 4.4.0, which depends on
railties (>= 4.2.0)
rails (= 4.2.11.1) was resolved to 4.2.11.1, which depends on
railties (= 4.2.11.1)
sass-rails (~> 5.0) was resolved to 5.0.7, which depends on
railties (>= 4.0.0, < 6)
web-console (~> 2.0) was resolved to 2.3.0, which depends on
railties (>= 4.0)
Bundler could not find compatible versions for gem "sprockets":
In Gemfile:
activeadmin was resolved to 1.4.3, which depends on
sprockets (< 4.1)
sass-rails (~> 5.0) was resolved to 5.0.7, which depends on
sprockets (>= 2.8, < 4.0)
Bundler could not find compatible versions for gem "thor":
In Gemfile:
thor (= 0.19.1)
activeadmin was resolved to 1.4.3, which depends on
jquery-rails (>= 4.2.0) was resolved to 4.4.0, which depends on
thor (>= 0.14, < 2.0)
rails (= 4.2.11.1) was resolved to 4.2.11.1, which depends on
railties (= 4.2.11.1) was resolved to 4.2.11.1, which depends on
thor (>= 0.18.1, < 2.0)
Here is my gemfile
source 'https://rubygems.org'
# Bundle edge Rails instead: gem 'rails', github: 'rails/rails'
gem 'rails', '4.2.11.1'
# Use postgresql as the database for Active Record
gem 'pg', '~> 0.20.0'
# Use SCSS for stylesheets
gem 'sass-rails', '~> 5.0'
# Use Uglifier as compressor for JavaScript assets
gem 'uglifier', '>= 1.3.0'
# Use CoffeeScript for .coffee assets and views
gem 'coffee-rails', '~> 4.1.0'
# See https://github.com/rails/execjs#readme for more supported runtimes
# gem 'therubyracer', platforms: :ruby
# Use jquery as the JavaScript library
gem 'jquery-rails'
# Turbolinks makes following links in your web application faster. Read more: https://github.com/rails/turbolinks
gem 'turbolinks'
# Build JSON APIs with ease. Read more: https://github.com/rails/jbuilder
gem 'jbuilder', '~> 2.0'
# bundle exec rake doc:rails generates the API under doc/api.
gem 'sdoc', '~> 0.4.0', group: :doc
# Use ActiveModel has_secure_password
# gem 'bcrypt', '~> 3.1.7'
# Use Unicorn as the app server
# gem 'unicorn'
# Use Capistrano for deployment
# gem 'capistrano-rails', group: :development
group :development do
# Access an IRB console on exception pages or by using <%= console %> in views
gem 'web-console', '~> 2.0'
# Spring speeds up development by keeping your application running in the background. Read more: https://github.com/rails/spring
gem 'spring'
end
gem 'devise'
group :development, :test do
gem "interactive_editor"
gem "hirb"
gem "awesome_print"
gem 'byebug'
end
group :production do
gem 'rails_12factor'
gem 'puma'
end
gem 'mail_form'
gem 'font-awesome-sass', '~> 5.12.0'
gem 'bootsnap', '>= 1.1.0', require: false
gem 'bootstrap-sass', '~>3.2.0'
gem 'paperclip', '~> 4.3.1'
gem 'aws-sdk-s3'
gem 'aws-sdk', '< 2.0'
gem 'thor', '0.19.1'
gem 'omniauth-google-oauth2'
gem "recaptcha", require: "recaptcha/rails"
gem 'friendly_id', '~> 5.4.0'
gem 'activeadmin'
gem 'rails-assets-sweetalert2', source: 'https://rails-assets.org'
gem 'sweet-alert2-rails'
gem 'sweet-alert-confirm'
gem 'cocoon'
gem 'bigdecimal', '1.3.5'
gem 'paperclip-av-transcoder'
gem "paperclip-ffmpeg", "~> 1.2.0"
gem "will_paginate", "~> 3.0.4"
gem 'rails-erd'
gem 'bundler', '1.17.3'
How can I fix it?
This error came after I changed the bundle version
It is as the error message says. The versions you specify in the gem file is not available. This happens because each bundle version only supports down to a certain version, for example it can download any version from 2 and up but version 1 is not available. I see your gems are outdated, and you should consider to just update them. Unless you have done something version specific you should not need these restrictions anymore for rails version 4.2. If not you have to roll back your bundle version.
The error is mimemagic, required by paperclip.
You'll have to upgrade or provide the mimemagic gem from source.
This happened to me and had to obtain the code from an old project in order to supply it.
For reference:
https://github.com/rails/rails/issues/41750

Bundler could not find compatible versions for gem "actionpack", compatible actionpack installed

I'm new to Ruby on Rails and trying to install rails 4.1.6 environment on macOS 11.5.2 Big Sur
When I run bundle install, I encounter this:
Bundler could not find compatible versions for gem "actionpack":
In Gemfile:
jquery-datatables-rails (~> 3.3.0) was resolved to 3.3.0, which depends on
actionpack (>= 3.1)
rails (= 4.1.6) was resolved to 4.1.6, which depends on
actionpack (= 4.1.6)
rails-api was resolved to 0.4.1, which depends on
actionpack (>= 3.2.11)
redis-rails was resolved to 5.0.2, which depends on
redis-actionpack (>= 5.0, < 6) was resolved to 5.1.0, which depends on
actionpack (>= 4.0, < 7)
rails (= 4.1.6) was resolved to 4.1.6, which depends on
sprockets-rails (~> 2.0) was resolved to 2.3.3, which depends on
actionpack (>= 3.0)
Bundler could not find compatible versions for gem "activemodel":
In Gemfile:
acts_as_api (= 1.0.1) was resolved to 1.0.1, which depends on
activemodel (>= 3.0.0)
carrierwave was resolved to 1.3.2, which depends on
activemodel (>= 4.0.0)
paperclip (~> 4.3.2) was resolved to 4.3.7, which depends on
activemodel (>= 3.2.0)
rails (= 4.1.6) was resolved to 4.1.6, which depends on
activemodel (= 4.1.6)
Bundler could not find compatible versions for gem "activerecord":
In Gemfile:
rails (= 4.1.6) was resolved to 4.1.6, which depends on
activerecord (= 4.1.6)
squeel was resolved to 1.2.3, which depends on
activerecord (>= 3.0)
Bundler could not find compatible versions for gem "activesupport":
In Gemfile:
acts_as_api (= 1.0.1) was resolved to 1.0.1, which depends on
activesupport (>= 3.0.0)
carrierwave was resolved to 1.3.2, which depends on
activesupport (>= 4.0.0)
paperclip (~> 4.3.2) was resolved to 4.3.7, which depends on
activesupport (>= 3.2.0)
rails (= 4.1.6) was resolved to 4.1.6, which depends on
activesupport (= 4.1.6)
redis-rails was resolved to 5.0.2, which depends on
redis-activesupport (>= 5.0, < 6) was resolved to 5.2.1, which depends on
activesupport (>= 3, < 7)
Bundler could not find compatible versions for gem "coffee-rails":
In Gemfile:
coffee-rails (~> 4.0.0)
chosen-rails was resolved to 1.9.0, which depends on
coffee-rails (>= 3.2)
Bundler could not find compatible versions for gem "faraday":
In Gemfile:
koala was resolved to 3.0.0, which depends on
faraday
sentry-raven (= 2.6.0) was resolved to 2.6.0, which depends on
faraday (>= 0.7.6, < 1.0)
Bundler could not find compatible versions for gem "json":
In Gemfile:
rails (= 4.1.6) was resolved to 4.1.6, which depends on
activesupport (= 4.1.6) was resolved to 4.1.6, which depends on
json (~> 1.7, >= 1.7.7)
koala was resolved to 3.0.0, which depends on
json (>= 1.8)
Bundler could not find compatible versions for gem "mime-types":
In Gemfile:
carrierwave was resolved to 1.3.2, which depends on
mime-types (>= 1.16)
paperclip (~> 4.3.2) was resolved to 4.3.7, which depends on
mime-types
rest-client (~> 1.7.2) was resolved to 1.7.3, which depends on
mime-types (>= 1.16, < 3.0)
Bundler could not find compatible versions for gem "mimemagic":
In Gemfile:
paperclip (~> 4.3.2) was resolved to 4.3.7, which depends on
mimemagic (= 0.3.0)
Could not find gem 'mimemagic (= 0.3.0)', which is required by gem 'paperclip (~> 4.3.2)', in any of the sources.
Bundler could not find compatible versions for gem "rack":
In Gemfile:
rails (= 4.1.6) was resolved to 4.1.6, which depends on
actionpack (= 4.1.6) was resolved to 4.1.6, which depends on
rack (~> 1.5.2)
acts_as_api (= 1.0.1) was resolved to 1.0.1, which depends on
rack (>= 1.1.0)
resque-scheduler was resolved to 4.4.0, which depends on
resque (>= 1.26) was resolved to 2.1.0, which depends on
sinatra (>= 0.9.2) was resolved to 1.4.8, which depends on
rack-protection (~> 1.4) was resolved to 1.5.5, which depends on
rack
redis-rails was resolved to 5.0.2, which depends on
redis-actionpack (>= 5.0, < 6) was resolved to 5.1.0, which depends on
redis-rack (>= 1, < 3) was resolved to 2.0.6, which depends on
rack (>= 1.5, < 3)
request_store (= 1.4.1) was resolved to 1.4.1, which depends on
rack (>= 1.4)
resque-scheduler was resolved to 4.4.0, which depends on
resque (>= 1.26) was resolved to 2.1.0, which depends on
sinatra (>= 0.9.2) was resolved to 1.4.8, which depends on
rack (~> 1.5)
sass-rails (= 5.0.6) was resolved to 5.0.6, which depends on
sprockets (>= 2.8, < 4.0) was resolved to 3.7.2, which depends on
rack (> 1, < 3)
devise was resolved to 4.8.0, which depends on
warden (~> 1.2.3) was resolved to 1.2.7, which depends on
rack (>= 1.0)
Bundler could not find compatible versions for gem "rails":
In Gemfile:
rails (= 4.1.6)
bootstrap-multiselect-rails was resolved to 0.9.9, which depends on
rails (>= 4.0.0)
bootstrap-tooltip-rails was resolved to 0.1, which depends on
rails (>= 3.1)
Bundler could not find compatible versions for gem "railties":
In Gemfile:
bootstrap-slider-rails (= 9.2.0) was resolved to 9.2.0, which depends on
railties (>= 3.2, < 6.0)
coffee-rails (~> 4.0.0) was resolved to 4.0.1, which depends on
railties (>= 4.0.0, < 5.0)
data-confirm-modal (= 1.2.0) was resolved to 1.2.0, which depends on
railties (>= 3.0)
devise was resolved to 4.8.0, which depends on
railties (>= 4.1.0)
font-awesome-rails was resolved to 4.7.0.7, which depends on
railties (>= 3.2, < 7)
jquery-datatables-rails (~> 3.3.0) was resolved to 3.3.0, which depends on
jquery-rails was resolved to 3.1.5, which depends on
railties (>= 3.0, < 5.0)
jquery-tablesorter was resolved to 1.27.2, which depends on
railties (>= 3.2)
momentjs-rails (= 2.15.1) was resolved to 2.15.1, which depends on
railties (>= 3.1)
rails (= 4.1.6) was resolved to 4.1.6, which depends on
railties (= 4.1.6)
rails-api was resolved to 0.4.1, which depends on
railties (>= 3.2.11)
sass-rails (= 5.0.6) was resolved to 5.0.6, which depends on
railties (>= 4.0.0, < 6)
chosen-rails was resolved to 1.9.0, which depends on
sassc-rails (>= 2.1.2) was resolved to 2.1.2, which depends on
railties (>= 4.0.0)
Bundler could not find compatible versions for gem "sass-rails":
In Gemfile:
sass-rails (= 5.0.6)
jquery-datatables-rails (~> 3.3.0) was resolved to 3.3.0, which depends on
sass-rails
Bundler could not find compatible versions for gem "sprockets":
In Gemfile:
sass-rails (= 5.0.6) was resolved to 5.0.6, which depends on
sprockets (>= 2.8, < 4.0)
chosen-rails was resolved to 1.9.0, which depends on
sassc-rails (>= 2.1.2) was resolved to 2.1.2, which depends on
sprockets (> 3.0)
Bundler could not find compatible versions for gem "sprockets-rails":
In Gemfile:
rails (= 4.1.6) was resolved to 4.1.6, which depends on
sprockets-rails (~> 2.0)
sass-rails (= 5.0.6) was resolved to 5.0.6, which depends on
sprockets-rails (>= 2.0, < 4.0)
chosen-rails was resolved to 1.9.0, which depends on
sassc-rails (>= 2.1.2) was resolved to 2.1.2, which depends on
sprockets-rails
Bundler could not find compatible versions for gem "tzinfo":
In Gemfile:
rails (= 4.1.6) was resolved to 4.1.6, which depends on
activesupport (= 4.1.6) was resolved to 4.1.6, which depends on
tzinfo (~> 1.1)
resque-scheduler was resolved to 4.4.0, which depends on
rufus-scheduler (~> 3.2) was resolved to 3.8.0, which depends on
fugit (~> 1.1, >= 1.1.6) was resolved to 1.5.1, which depends on
et-orbi (~> 1.1, >= 1.1.8) was resolved to 1.2.4, which depends on
tzinfo
I have all the gems installed in correct versions, here is the output of my gem list
*** LOCAL GEMS ***
actionmailer (4.1.6)
actionpack (6.1.4.1, 4.1.6)
actionview (6.1.4.1, 4.1.6)
activemodel (4.1.6)
activerecord (4.1.6)
activesupport (6.1.4.1, 4.1.6)
arel (5.0.1.20140414130214)
bigdecimal (default: 1.4.1)
builder (3.2.4)
bundler (default: 1.17.2)
CFPropertyList (2.3.6)
cmath (default: 1.0.0)
concurrent-ruby (1.1.9)
crass (1.0.6)
csv (default: 3.0.9)
date (default: 2.0.0)
dbm (default: 1.0.0)
did_you_mean (1.3.0)
e2mmap (default: 0.1.0)
erubi (1.10.0)
erubis (2.7.0)
etc (default: 1.0.1)
fcntl (default: 1.0.0)
ffi (1.15.3)
fiddle (default: 1.0.0)
fileutils (default: 1.1.0)
forwardable (default: 1.2.0)
i18n (1.8.10, 0.9.5)
io-console (default: 0.4.7)
ipaddr (default: 1.2.2)
irb (default: 1.0.0)
jquery-datatables-rails (3.3.0)
jquery-rails (3.1.5)
json (default: 2.1.0, 1.8.6)
libxml-ruby (3.1.0)
logger (default: 1.3.0)
loofah (2.12.0)
mail (2.7.1)
matrix (default: 0.1.0)
mini_mime (1.1.1)
mini_portile2 (2.4.0)
minitest (5.11.3)
mutex_m (default: 0.1.0)
net-telnet (0.2.0)
nokogiri (1.10.1)
openssl (default: 2.1.2)
ostruct (default: 0.1.0)
pg (1.2.3, 0.21.0)
power_assert (1.1.3)
prime (default: 0.1.0)
psych (default: 3.1.0)
rack (2.2.3, 1.5.5)
rack-test (0.6.3)
rails (4.1.6)
rails-api (0.4.1)
rails-dom-testing (2.0.3)
rails-html-sanitizer (1.4.2)
railties (4.1.6)
rake (12.3.2)
rdoc (default: 6.1.0)
redis (4.4.0)
redis-actionpack (5.2.0)
redis-activesupport (5.2.1)
redis-rack (2.1.3)
redis-rails (5.0.2)
redis-store (1.9.0)
rexml (default: 3.1.9)
rss (default: 0.2.7)
sass-rails (6.0.0)
sassc (2.4.0)
sassc-rails (2.1.2)
scanf (default: 1.0.0)
sdbm (default: 1.0.0)
shell (default: 0.7)
sprockets (3.7.2)
sprockets-rails (2.3.3)
sqlite3 (1.3.13)
stringio (default: 0.0.2)
strscan (default: 1.0.0)
sync (default: 0.5.0)
test-unit (3.2.9)
thor (1.1.0)
thread_safe (0.3.6)
thwait (default: 0.1.0)
tilt (2.0.10)
tracer (default: 0.1.0)
tzinfo (2.0.4, 1.2.9)
webrick (default: 1.4.2)
xmlrpc (0.3.0)
zeitwerk (2.4.2)
zlib (default: 1.0.0)
As per what I can figure out, action pack 4.1.6 will suffice to the conditions required by jquery-datatables-rails, rails, rails-api, redis-rails & sprockets-rails
Can someone help me figure out why I'm facing these issue? Everything was working perfectly until last week I did a brew update. Please help

Cannot find out what's causing Bundler could not find compatible versions for gem "actionpack":

It seems like the version of actionpack should be fine as it meets every requirement below.
The command I'm using is bundle update rails rspec-rails gon sprockets-rails carrierwave kaminari but I've also tried bundle update rails.
cpc upgrade % bundle update rails rspec-rails gon sprockets-rails carrierwave kaminari
Fetching gem metadata from https://rubygems.org/.......
Fetching gem metadata from https://rubygems.org/.
Resolving dependencies.......
Bundler could not find compatible versions for gem "actionpack":
In Gemfile:
actionpack
rails (~> 5.0.7) was resolved to 5.0.7, which depends on
actionpack (= 5.0.7)
rspec-rails (~> 3.0) was resolved to 3.8.2, which depends on
actionpack (>= 3.0)
sprockets-rails (~> 3.2.1) was resolved to 3.2.1, which depends on
actionpack (>= 4.0)
Bundler could not find compatible versions for gem "activemodel":
In Gemfile:
carrierwave (~> 1.2.2) was resolved to 1.2.3, which depends on
activemodel (>= 4.0.0)
email_validator was resolved to 1.4.0, which depends on
activemodel
rails (~> 5.0.7) was resolved to 5.0.7, which depends on
activemodel (= 5.0.7)
Bundler could not find compatible versions for gem "activerecord":
In Gemfile:
activerecord
apartment was resolved to 0.24.3, which depends on
activerecord (>= 3.1.2)
composite_primary_keys (~> 9.0.7) was resolved to 9.0.10, which depends on
activerecord (~> 5.0.0, >= 5.0.7)
ledermann-rails-settings was resolved to 2.2.0, which depends on
activerecord (>= 3.1)
rails (~> 5.0.7) was resolved to 5.0.7, which depends on
activerecord (= 5.0.7)
Bundler could not find compatible versions for gem "activesupport":
In Gemfile:
carrierwave (~> 1.2.2) was resolved to 1.2.3, which depends on
activesupport (>= 4.0.0)
kaminari was resolved to 1.1.1, which depends on
activesupport (>= 4.1.0)
rails (~> 5.0.7) was resolved to 5.0.7, which depends on
activesupport (= 5.0.7)
shoulda-callback-matchers (= 1.1.1) was resolved to 1.1.1, which depends on
activesupport (>= 3)
Bundler could not find compatible versions for gem "carrierwave":
In Gemfile:
carrierwave (~> 1.2.2)
carrierwave_direct was resolved to 0.0.15, which depends on
carrierwave
Bundler could not find compatible versions for gem "rails":
In Gemfile:
rails (~> 5.0.7)
carmen-rails was resolved to 1.0.0, which depends on
rails
Bundler could not find compatible versions for gem "railties":
In Gemfile:
bootstrap-slider-rails (~> 5.3.3) was resolved to 5.3.7, which depends on
railties (>= 3.2, < 5.0)
factory_girl_rails was resolved to 4.3.0, which depends on
railties (>= 3.0.0)
font-awesome-rails (>= 4.2.0.0) was resolved to 4.6.1.0, which depends on
railties (>= 3.2, < 5.1)
jquery-rails was resolved to 3.0.4, which depends on
railties (>= 3.0, < 5.0)
js-routes (~> 1.4.4) was resolved to 1.4.4, which depends on
railties (>= 3.2)
quiet_assets was resolved to 1.0.2, which depends on
railties (>= 3.1, < 5.0)
rails (~> 5.0.7) was resolved to 5.0.7, which depends on
railties (= 5.0.7)
roadie-rails (~> 1.3.0) was resolved to 1.3.0, which depends on
railties (>= 3.0, < 5.3)
sass-rails (~> 5.0.6) was resolved to 5.0.6, which depends on
railties (>= 4.0.0, < 6)
Bundler could not find compatible versions for gem "rake":
In Gemfile:
rake (~> 10.3.2)
annotate was resolved to 2.5.0, which depends on
rake
rails (~> 5.0.7) was resolved to 5.0.7, which depends on
railties (= 5.0.7) was resolved to 5.0.7, which depends on
rake (>= 0.8.7)
cpc upgrade %

Heroku buliid fails on Bundler version regardless of which is installed

I can't seem to configure my rails app properly. I had a perfectly working rails app deployed on Heroku. I added the datadog buildpack and then started getting the following build error:
remote: ! You must use Bundler 2 or greater with this lockfile.
After removing my Gemfile.lock and reinstalling and making sure bunder version was > 2.0, I then started getting another build error. This time it was that the bundler version my project needs is < 2:
remote: Bundler Output: Activating bundler (< 2) failed:
remote: Could not find 'bundler' (1.17.3) required by your /tmp/build_3b256cc6024c5dcfd1bd0d030688678a/Gemfile.lock.
remote: To update to the lastest version installed on your system, run `bundle update --bundler`.
remote: To install the missing version, run `gem install bundler:1.17.3`
remote: Checked in 'GEM_PATH=vendor/bundle/ruby/2.5.0', execute `gem env` for more information
remote:
remote: To install the version of bundler this project requires, run `gem install bundler -v '< 2'`
remote:
remote: !
remote: ! Failed to install gems via Bundler.
remote: !
remote: ! Push rejected, failed to compile Ruby app.
remote:
remote: ! Push failed
remote: Verifying deploy...
I'm not sure how to move forward debugging this error. I don't know how to access the /tmp/build folder and I'm not sure what I would do if I did.
Please any direction or suggestions would be greatly appreciated.
I've already tried pushing to heroku master with various versions of bundler. There is always a problem with the build. I feel like there are multiple areas where bundler is required in the build and in the actual project, and that they require different versions, but I don't know how to find them.
Here is my Gemfile:
git_source(:github) { |repo| "https://github.com/#{repo}.git" }
ruby '2.5.1'
# Bundle edge Rails instead: gem 'rails', github: 'rails/rails'
gem 'rails', '~> 5.2.1'
# Use sqlite3 as the database for Active Record
gem 'pg'
gem 'ffi', '~> 1.0.9'
# Use Puma as the app server
gem 'puma', '~> 3.11'
# Build JSON APIs with ease. Read more: https://github.com/rails/jbuilder
# gem 'jbuilder', '~> 2.5'
# Use Redis adapter to run Action Cable in production
# gem 'redis', '~> 4.0'
# Use ActiveModel has_secure_password
# gem 'bcrypt', '~> 3.1.7'
gem 'active_model_serializers'
# Use ActiveStorage variant
# gem 'mini_magick', '~> 4.8'
# Use Capistrano for deployment
# gem 'capistrano-rails', group: :development
# Reduces boot times through caching; required in config/boot.rb
# Use Rack CORS for handling Cross-Origin Resource Sharing (CORS), making cross-origin AJAX possible
gem 'rack-cors'
group :development, :test do
# Call 'byebug' anywhere in the code to stop execution and get a debugger console
gem 'byebug', platforms: [:mri, :mingw, :x64_mingw]
gem 'sqlite3', '~> 1.3.6'
end
group :development do
gem 'listen', '>= 3.0.5', '< 3.2'
# Spring speeds up development by keeping your application running in the background. Read more: https://github.com/rails/spring
gem 'spring'
gem 'spring-watcher-listen', '~> 2.0.0'
gem 'nokogiri', '~> 1.6', '>= 1.6.7'
end
# Windows does not include zoneinfo files, so bundle the tzinfo-data gem
gem 'tzinfo-data', platforms: [:mingw, :mswin, :x64_mingw, :jruby]
gem "aws-sdk-s3", require: false
and here is my Gemfile.lock
GEM
remote: https://rubygems.org/
specs:
actioncable (5.2.2)
actionpack (= 5.2.2)
nio4r (~> 2.0)
websocket-driver (>= 0.6.1)
actionmailer (5.2.2)
actionpack (= 5.2.2)
actionview (= 5.2.2)
activejob (= 5.2.2)
mail (~> 2.5, >= 2.5.4)
rails-dom-testing (~> 2.0)
actionpack (5.2.2)
actionview (= 5.2.2)
activesupport (= 5.2.2)
rack (~> 2.0)
rack-test (>= 0.6.3)
rails-dom-testing (~> 2.0)
rails-html-sanitizer (~> 1.0, >= 1.0.2)
actionview (5.2.2)
activesupport (= 5.2.2)
builder (~> 3.1)
erubi (~> 1.4)
rails-dom-testing (~> 2.0)
rails-html-sanitizer (~> 1.0, >= 1.0.3)
active_model_serializers (0.10.9)
actionpack (>= 4.1, < 6)
activemodel (>= 4.1, < 6)
case_transform (>= 0.2)
jsonapi-renderer (>= 0.1.1.beta1, < 0.3)
activejob (5.2.2)
activesupport (= 5.2.2)
globalid (>= 0.3.6)
activemodel (5.2.2)
activesupport (= 5.2.2)
activerecord (5.2.2)
activemodel (= 5.2.2)
activesupport (= 5.2.2)
arel (>= 9.0)
activestorage (5.2.2)
actionpack (= 5.2.2)
activerecord (= 5.2.2)
marcel (~> 0.3.1)
activesupport (5.2.2)
concurrent-ruby (~> 1.0, >= 1.0.2)
i18n (>= 0.7, < 2)
minitest (~> 5.1)
tzinfo (~> 1.1)
arel (9.0.0)
aws-eventstream (1.0.1)
aws-partitions (1.139.0)
aws-sdk-core (3.46.1)
aws-eventstream (~> 1.0)
aws-partitions (~> 1.0)
aws-sigv4 (~> 1.0)
jmespath (~> 1.0)
aws-sdk-kms (1.13.0)
aws-sdk-core (~> 3, >= 3.39.0)
aws-sigv4 (~> 1.0)
aws-sdk-s3 (1.30.1)
aws-sdk-core (~> 3, >= 3.39.0)
aws-sdk-kms (~> 1)
aws-sigv4 (~> 1.0)
aws-sigv4 (1.0.3)
builder (3.2.3)
byebug (11.0.0)
case_transform (0.2)
activesupport
concurrent-ruby (1.1.4)
crass (1.0.4)
erubi (1.8.0)
ffi (1.0.11)
globalid (0.4.2)
activesupport (>= 4.2.0)
i18n (1.5.3)
concurrent-ruby (~> 1.0)
jmespath (1.4.0)
jsonapi-renderer (0.2.0)
listen (3.1.5)
rb-fsevent (~> 0.9, >= 0.9.4)
rb-inotify (~> 0.9, >= 0.9.7)
ruby_dep (~> 1.2)
loofah (2.2.3)
crass (~> 1.0.2)
nokogiri (>= 1.5.9)
mail (2.7.1)
mini_mime (>= 0.1.1)
marcel (0.3.3)
mimemagic (~> 0.3.2)
method_source (0.9.2)
mimemagic (0.3.3)
mini_mime (1.0.1)
mini_portile2 (2.4.0)
minitest (5.11.3)
nio4r (2.3.1)
nokogiri (1.10.1)
mini_portile2 (~> 2.4.0)
pg (1.1.4)
puma (3.12.0)
rack (2.0.6)
rack-cors (1.0.2)
rack-test (1.1.0)
rack (>= 1.0, < 3)
rails (5.2.2)
actioncable (= 5.2.2)
actionmailer (= 5.2.2)
actionpack (= 5.2.2)
actionview (= 5.2.2)
activejob (= 5.2.2)
activemodel (= 5.2.2)
activerecord (= 5.2.2)
activestorage (= 5.2.2)
activesupport (= 5.2.2)
bundler (>= 1.3.0)
railties (= 5.2.2)
sprockets-rails (>= 2.0.0)
rails-dom-testing (2.0.3)
activesupport (>= 4.2.0)
nokogiri (>= 1.6)
rails-html-sanitizer (1.0.4)
loofah (~> 2.2, >= 2.2.2)
railties (5.2.2)
actionpack (= 5.2.2)
activesupport (= 5.2.2)
method_source
rake (>= 0.8.7)
thor (>= 0.19.0, < 2.0)
rake (12.3.2)
rb-fsevent (0.10.3)
rb-inotify (0.10.0)
ffi (~> 1.0)
ruby_dep (1.5.0)
spring (2.0.2)
activesupport (>= 4.2)
spring-watcher-listen (2.0.1)
listen (>= 2.7, < 4.0)
spring (>= 1.2, < 3.0)
sprockets (3.7.2)
concurrent-ruby (~> 1.0)
rack (> 1, < 3)
sprockets-rails (3.2.1)
actionpack (>= 4.0)
activesupport (>= 4.0)
sprockets (>= 3.0.0)
sqlite3 (1.3.13)
thor (0.20.3)
thread_safe (0.3.6)
tzinfo (1.2.5)
thread_safe (~> 0.1)
websocket-driver (0.7.0)
websocket-extensions (>= 0.1.0)
websocket-extensions (0.1.3)
PLATFORMS
ruby
DEPENDENCIES
active_model_serializers
aws-sdk-s3
byebug
ffi (~> 1.0.9)
listen (>= 3.0.5, < 3.2)
nokogiri (~> 1.6, >= 1.6.7)
pg
puma (~> 3.11)
rack-cors
rails (~> 5.2.1)
spring
spring-watcher-listen (~> 2.0.0)
sqlite3 (~> 1.3.6)
tzinfo-data
RUBY VERSION
ruby 2.5.1p57
BUNDLED WITH
2.0.1
I'd like to be able to find where the areas are in my code that are requiring different versions of bundler. Or be able to circumvent the issue with a different gem. If anyone can help me get the Heroku build to work I would be very grateful.

Resources