Remarkable-rails framework requirements - ruby-on-rails-3

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

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

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

rails -v shows wrong version when using rvm

I've just tried to update to Rails 3.1.3 using RVM with the following commands:
rvm install ruby-1.9.3-p0
rvm --default use ruby-1.9.3-p0
If I query the current version or ruby:
ruby -v
I get the correct version: ruby 1.9.3p0 (2011-10-30 revision 33570) [x86_64-darwin10.8.0]
Then to update the gems:
gem update --system
This gives me version 1.8.24
I then create my gemset and set it as my default:
rvm ruby-1.9.3-p0#rails313 --create --default
and finally install the Rails gem:
gem install rails
When I query the version of rails:
rails -v
I get Rails 3.0.11 ... my old version of Rails
If I try to start my Rails server
rails s
I get a huge error:
.rvm/gems/ruby-1.9.3-p0#rails313/gems/activesupport-3.0.11/lib/active_support dependencies.rb:239:in `require': dlopen(/Users/lss_dev/.rvm/gems/ruby-1.9.3-p0#rails313/gems/ruby-debug-base19-0.11.25/lib/ruby_debug.bundle, 9): Symbol not found: _ruby_current_thread (LoadError)
With a lot of complaints about dependencies.
My gemfile.lock does contain the following block:
rails (3.0.11)
actionmailer (= 3.0.11)
actionpack (= 3.0.11)
activerecord (= 3.0.11)
activeresource (= 3.0.11)
activesupport (= 3.0.11)
bundler (~> 1.0)
railties (= 3.0.11)
Does this have something to do with it or should I even be touching the gemfile.lock file??
I'm using rvm version 1.10.0, any help would be appreciated
To answer my own (extended) question...
Trashing the gemfile.lock file allowed me to just run
bundle install
ensuring that I had my Rails gem set to the correct version (3.1.3), which worked. The issue that I was running into then was when I started my rails server I got the following browser error
undefined method `consider_all_requests_local' for ActionController::Base:Class
Initially I thought this was due to some routing changes in Rails 3.1.* As it turned out in my application_controller.rb file I was dealing with 404 errors and had the following block:
unless ActionController::Base.consider_all_requests_local
rescue_from Exception, :with => :render_404
end
ActionController::Base.consider_all_requests_local
Is now deprecated and substituting in:
Rails.application.config.consider_all_requests_local
Did the trick.
Thank you for your help and I hope this helps someone in the future
You may have to swap the version of rvm / ruby and then install.
This may be of use: https://rvm.io/gemsets/basics/

Rails 3.1: Devise_invitable requires Rails 3.0.0?

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.

bundle install and rbx-require-relative

After following railstutorial.orgI am trying to run bundle install. It list use of gem like :
Using railties (3.0.7)
Using rails (3.0.7)
Using sass (3.1.3)
And this error :
Installing rbx-require-relative (0.0.5) /home/canard/.rvm/rubies/ruby-1.9.2-p180/lib/ruby/site_ruby/1.9.1/rubygems/installer.rb:364:in `ensure_required_ruby_version_met': rbx-require-relative requires Ruby version ~> 1.8.7. (Gem::InstallError)
from /home/canard/.rvm/rubies/ruby-1.9.2-p180/lib/ruby/site_ruby/1.9.1/rubygems/installer.rb:135:in `install'
...
I understand ruby 1.9.2 needs rbx-require-relative, but why it doesn't want to install it. It demand ruby ruby 1.8.7. I am little lost.
Further more after this error it stop, and my gem in my Gemfile are never read or installed...
I'm using ruby 1.9.2p180 and rails 3.0.7
Thanks for your help
rbx-require-relative is a port of Ruby 1.9’s relative_relative for Rubinus and MRI 1.8
If you're running ruby1.9 then you don't need it. Remove it from your Gemfile.
Don't require ruby-debug in your Gemfile as it has rbx-require-relative as a dependency.
Add gem 'ruby-debug19' instead
You might try to install the the ruby-debug19 gem for ruby 1.9.2.
Here is the gem info:
http://rubygems.org/gems/ruby-debug19
Here is the bundler line:
gem 'ruby-debug19'
Replacing
gem 'ruby-debug'
with
gem 'ruby-debug', :platforms => :ruby_18
gem 'ruby-debug19', :platforms => :ruby_19
in my Gemfile solved this problem for me, working on both Ruby 1.8 and 1.9.