Rails 3.1: Devise_invitable requires Rails 3.0.0? - ruby-on-rails-3

When adding devise_invitable to my Gemfile, I get this error when doing bundle install.
$ bundle install
Fetching source index for http://rubygems.org/
Bundler could not find compatible versions for gem "rails":
In Gemfile:
devise_invitable (~> 0.4.0) depends on
rails (~> 3.0.0)
rails (3.1.0)

In your Gemfile, update devise_invitable to use a newer version (current is 0.5.4) instead of 0.4.0; 0.5.4 supports Rails 3.1.

Related

generates simple_form with Bootstrap4 don't work's

I'm generating simple_form with bootstrap4 on Rails 5.1, so I search in the web and try these ways:
rails generate simple_form:install --bootstrap
rails generate simple_form:install --bootstrap4
rails generate simple_form:install --bootstrap4 --force
And no one of that generates the file configured like: config/initializers/simple_form_bootstrap.rb
I watch with version is installed and is the version of simple_form 1.4.1. I try to put the new version 3.2.1 but I have errors when run the bundle update command.
And I have these errors:
Bundler could not find compatible versions for gem "actionpack":
In Gemfile:
rails (~> 5.1.0) was resolved to 5.1.0, which depends on
actionpack (= 5.1.0)
rails (~> 5.1.0) was resolved to 5.1.0, which depends on
actionpack (= 5.1.0)
rails (~> 5.1.0) was resolved to 5.1.0, which depends on
actionpack (= 5.1.0)
rspec-rails (~> 3.5) was resolved to 3.6.0, which depends on
actionpack (>= 3.0)
simple_form (~> 3.2.1) was resolved to 3.2.1, which depends on
actionpack (< 5.1, > 4)
I'm trying to do an application with the new version rails 5.1. Anyone could help me I will appreciate!
I just see the version of rails 5.1 isn't compatible with this gem actually!
If someone want to see here: https://github.com/plataformatec/simple_form/commit/8d15b7ebc8096348b611e9f2905a2576a5bce508

ruby gem - rally_api dependency

If I use gem 'rally_api' it will use version 0.9.8, which will failed to login rally with api_key
If I use gem 'rally_api', '~> 1.2', '>= 1.2.1' to install latest version 1.2.1(I mannully install in my local machine), the rake task can work, but I'll get compatible version error:
Bundler could not find compatible versions for gem "httpclient":
In Gemfile:
berkshelf (~> 4.3.5) was resolved to 4.3.5, which depends on
httpclient (~> 2.7)
rally_api (>= 1.2.1, ~> 1.2) was resolved to 1.2.1, which depends on
httpclient (= 2.6.0.1)

Bundle exec doesn't work

I am trying to use rails-erd. The last time I used it was in February and worked fine
I tried using erd and bundle exec erd
I am getting this error.. I have rails 4 in another project, but in this project I use rails 3.2.15 in the gem file
Loading application in 'my_app'...
WARN: Unresolved specs during Gem::Specification.reset:
activerecord (>= 3.0)
i18n (>= 0.6.4, ~> 0.6)
multi_json (~> 1.3)
tzinfo (~> 0.3.37)
WARN: Clearing out unresolved specs.
Please report a bug if this causes problems.
Failed: Gem::LoadError: You have already activated activesupport 4.0.0, but your Gemfile requires activesupport 3.2.15. Using bundle exec may solve this.
What does this mean and how do I solve this?
The error shows that you have already activated activesupport 4.0.0 but in your gemfile.lock file the version of the activesupport is 3.2.15.
So simply delete the gemfile.lock file and again bundle install
It will take the latest version of activesupportor, or either you can change the version manually.
In the Gemfile of the app specify the version of Rails if you haven't done so:
gem 'rails', '3.2.15'
Run bundle install then try running the script again using bundle exec.
If it still doesn't work try uninstalling rails 4 and then running it.
gem uninstall rails
Ideally if you're executing your script with bundle exec it always execute the script in the context of the current bundle using the Gemfile.

Remarkable-rails framework requirements

I have those :
1. rspec (2.11.0)
2. rvm (1.11.3.5)
3. rspec-rails (2.12.0)
4. remarkable (4.0.0.alpha4, 3.1.13)
5. remarkable_activemodel (4.0.0.alpha4)
6. remarkable_activerecord (4.0.0.alpha4, 3.1.13)
7. rails (3.2.3)
My remarkable gem for rspec should work or not with those gems ?
Looking at the Runtime Dependencies for remarkable_rails gem 3.1.13 version, I would venture that it should work.
According to that page, the dependencies are:
remarkable ~> 3.1.13
remarkable_activerecord ~> 3.1.13
rspec >= 1.2.0
rspec-rails >= 1.2.0

rails gem incompatibility clearance & railties, what should I do?

I have rails 3.017, and clearance 1.0.0.rc2 and trying to install gem 'jquery-rails', '~> 2.1'
Do I need an older version of jquery-rails? If so, how can I figure this out?
thanks
Joel
Bundler could not find compatible versions for gem "railties":
In Gemfile:
jquery-rails (~> 2.1) ruby depends on
railties (< 5.0, >= 3.1.0) ruby
clearance (= 1.0.0.rc2) ruby depends on
railties (3.0.17)
Yes, you need an older version of this gem. If you don't specify a certain version of jquery-rails in your Gemfile, Bundler will find the matching version for you, if you run bundle install.
You can find out the dependencies of a gem with the gem manager:
$ gem dependency jquery-rails -v 2.1.3