RefineryCMS Issue for Rails 5.0.0.1 - ruby-on-rails

I am trying to make a new apps using RefineryCMS on Rails 5.
"rails new getjob -m http://refinerycms.com/t/3-0-stable -d mysql"
Resolving dependencies...
Bundler could not find compatible versions for gem "actionpack":
In Gemfile:
rails (>= 5.0.0.1, ~> 5.0.0) was resolved to 5.0.0.1, which depends on
actionpack (= 5.0.0.1)
rails (>= 5.0.0.1, ~> 5.0.0) was resolved to 5.0.0.1, which depends on
actionpack (= 5.0.0.1)
rails (>= 5.0.0.1, ~> 5.0.0) was resolved to 5.0.0.1, which depends on
actionpack (= 5.0.0.1)
refinerycms (~> 3.0) was resolved to 3.0.0, which depends on
refinerycms-core (= 3.0.0) was resolved to 3.0.0, which depends on
actionpack (< 5.0, >= 4.2.3)
rake db:create
Could not find gem 'refinerycms (~> 3.0)' in any of the gem sources listed in your Gemfile or available on this machine.
Run `bundle install` to install missing gems.
generate refinery:cms --fresh-installation new getjob -m http://refinerycms.com/t/3-0-stable -d mysql
Could not find gem 'refinerycms (~> 3.0)' in any of the gem sources listed in your Gemfile or available on this machine.
Run `bundle install` to install missing gems.
Your new Refinery CMS application is now installed and mounts at'/'
run bundle install
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 "actionpack":
In Gemfile:
rails (>= 5.0.0.1, ~> 5.0.0) was resolved to 5.0.0.1, which depends on
actionpack (= 5.0.0.1)
rails (>= 5.0.0.1, ~> 5.0.0) was resolved to 5.0.0.1, which depends on
actionpack (= 5.0.0.1)
rails (>= 5.0.0.1, ~> 5.0.0) was resolved to 5.0.0.1, which depends on
actionpack (= 5.0.0.1)
refinerycms (~> 3.0) was resolved to 3.0.0, which depends on
refinerycms-core (= 3.0.0) was resolved to 3.0.0, which depends on
actionpack (< 5.0, >= 4.2.3)
run bundle exec spring binstub --all
Could not find gem 'refinerycms (~> 3.0)' in any of the gem sources listed in your Gemfile or available on this machine.
Run `bundle install` to install missing gems.

Related

bundle install: Bundler could not find compatible versions for gem "activemodel"

I'm trying to run bundle install and getting the following error:
Bundler could not find compatible versions for gem "activemodel": In
Gemfile:
rails (= 5.1.5) was resolved to 5.1.5, which depends on
activemodel (= 5.1.5)
web-console (~> 2.0) was resolved to 2.0.0, which depends on
activemodel (~> 4.0)
I have tried updating ruby and the rails version

Bundler could not find compatible versions

I have multiple gems failing on my app. My bundler is not able to find compatible versions for all. I also do not have a 'Gemfile.lock' and it does not get created on bundle install. As follows:
Bundler could not find compatible versions for gem "actionpack":
In Gemfile:
draper was resolved to 2.1.0, which depends on
actionpack (>= 3.0)
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)
ransack was resolved to 1.8.10, which depends on
actionpack (< 5.2, >= 3.0)
redis-rails was resolved to 5.0.2, which depends on
redis-actionpack (< 6, >= 5.0) was resolved to 5.1.0, which depends on
actionpack (< 7, >= 4.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 (>= 1.0.0.beta, < 2.0) 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:
activerecord-postgres-hstore was resolved to 0.7.8, which depends on
activerecord (>= 3.1)
audited (~> 4.7) was resolved to 4.8.0, which depends on
activerecord (< 5.3, >= 4.0)
rails (= 4.1.6) was resolved to 4.1.6, which depends on
activerecord (= 4.1.6)
I am trying it again with the following specifications and getting the same result.
bundler: 1.16.6
rails: 4.1.6
ruby: 2.3.8
ubuntu: 18.04
I can see my gems when I do gem list but it still says bundler is not able to find anything for rails 4.1.6.
Add source in your Gemfile like below:
Gemfile
source 'https://rubygems.org'
delete everything form your Gemfile.lock and run bundle install

Unable to run `bundle install` and restore my gemlock file

I deleted my gemlock file, then I ran bundle install but got these errors
Bundler could not find compatible versions for gem "railties"
gem list in Gemfile:
coffee-rails (~> 4.2) was resolved to 4.2.2, which depends on railties (>= 4.0.0)
jquery-rails (>= 4.3.1, ~> 4.3) was resolved to 4.3.1, which depends on railties (>= 4.2.0)
material-ui (~> 0.7.3.2) was resolved to 0.7.3.2, which depends on railties (~> 4.0)
rails (~> 5.1.2) was resolved to 5.1.2, which depends on railties (= 5.1.2)
sass-rails (~> 5.0) was resolved to 5.0.6, which depends on railties (< 6, >= 4.0.0)
web-console (>= 3.3.0) was resolved to 3.5.1, which depends on railties (>= 5.0)
I could get ruby version through ruby -v but couldn't even get my rails version through rails -v. What could be the problem?
Update your Gemfile’s rails entry:
- gem 'rails'
+ gem 'rails', '< 5.0'
Your Gemfile.lock was created before Rails5 era and hence open-ended dependency was fine. Now it’s resolved to Rails5, enforcing railties = 5.1.2, which all your other gems are not ready for.

Rails 5.1.0.beta1 "bundle update rails" has gem conflict

I just cant upgrade rails beta version.
My current rails version is 5.0.2 and would like to upgrade to 5.1.0.beta1 version.
ruby -v
ruby 2.3.0p0 (2015-12-25 revision 53290) [x86_64-linux]
bundle update rails
Fetching gem metadata from http://rubygems.org/........
Fetching version metadata from http://rubygems.org/..`
Fetching dependency metadata from http://rubygems.org/.
Resolving dependencies...
Bundler could not find compatible versions for gem "railties":
In Gemfile:
coffee-rails (~> 4.1.0) was resolved to 4.1.1, which depends on
railties (< 5.1.x, >= 4.0.0)
rails (~> 5.1.0.beta1) was resolved to 5.1.0.beta1, which depends on
railties (= 5.1.0.beta1)
sass-rails (~> 5.0) was resolved to 5.0.6, which depends on
railties (< 6, >= 4.0.0)
bundle update
Fetching https://github.com/megetron/active_merchant_tranzila.git
Fetching https://github.com/megetron/active_shipping.git
Fetching gem metadata from http://rubygems.org/........
Fetching version metadata from http://rubygems.org/..
Fetching dependency metadata from http://rubygems.org/.
Resolving dependencies...
Bundler could not find compatible versions for gem "railties":
In Gemfile:
coffee-rails (~> 4.1.0) was resolved to 4.1.0, which depends on
railties (< 5.0, >= 4.0.0)
devise was resolved to 4.2.0, which depends on
railties (< 5.1, >= 4.1.0)
rails (~> 5.1.0.beta1) was resolved to 5.1.0.beta1, which depends on
railties (= 5.1.0.beta1)
sass-rails (~> 5.0) was resolved to 5.0.6, which depends on
railties (< 6, >= 4.0.0)
web-console (~> 2.0) was resolved to 2.3.0, which depends on
railties (>= 4.0)
If I'm reading this correctly, you need to remove the version constraint of coffee-rails in your Gemfile because it is incompatible with Rails 5.1.x.
Do this in your terminal
gem update rails
bundle update
Try to use the devise gem from the repository as they have not released a rails 5.1 version yet (it will probably happen very soon).
In your Gemfile replace the devise line with the following:
gem 'devise', github: 'plataformatec/devise'

Bundler could not find compatible versions for gem "actionpack":

Pardon my lack of knowledge as I am learning RoR.
when I run bundle update I get this error.
Bundler could not find compatible versions for gem "actionpack":
In Gemfile:
rails (= 4.2.2) x64-mingw32 was resolved to 4.2.2, which depends on
railties (= 4.2.2) x64-mingw32 was resolved to 4.2.2, which depends on
actionpack (= 4.2.2) x64-mingw32
rails (= 4.2.2) x64-mingw32 was resolved to 4.2.2, which depends on
railties (= 4.2.2) x64-mingw32 was resolved to 4.2.2, which depends on
actionpack (= 4.2.2) x64-mingw32
rails (= 4.2.2) x64-mingw32 was resolved to 4.2.2, which depends on
railties (= 4.2.2) x64-mingw32 was resolved to 4.2.2, which depends on
actionpack (= 4.2.2) x64-mingw32
refinerycms (~> 3.0) x64-mingw32 was resolved to 3.0.0, which depends on
refinerycms-core (= 3.0.0) x64-mingw32 was resolved to 3.0.0, which
depends on
actionpack (< 5.0, >= 4.2.3) x64-mingw32
C:\Ruby200-x64\my_new_application>ruby --v
ruby: invalid option --v (-h will show valid options) (RuntimeError)
Here is my ruby version
ruby 2.0.0p648 (2015-12-16) [x64-mingw32]
actually rails was working perfectly until I decided to install refinerycms from here. following the guideline posted on that page.
I searched this error and people suggested bundle update or bundle install but neither of them worked.
The problem is that you're using Rails 4.2.2 which uses ActionPack 4.2.2 while Refinery CMS wants at least 4.2.3. If you update Rails (probably need to adapt your Gemfile to use a newer version, like ~> 4.2.3), everything should be fine.
I think the version of refinerycms you are using depends on Rails 4.2.3 and you are using 4.2.2. Can you try either upgrading Rails to 4.2.3 or downgrading Refinerycms to one that supports 4.2.2?

Resources