Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Where is ruby gem specifying the ruby version?

Tags:

ruby

rubygems

Building a simple gem, using echoe, just doing something like

rake manifest 
rake gem
gem install

There's nothing in the generated files (or anywhere in the project, for that matter) where I'm referencing or specifying a ruby version, but trying to install my gem gives me a "requires ruby >= 1.9" message.

So, where is the ruby version being derived? (the generated gemspec does contain the lines

s.required_rubygems_version = Gem::Requirement.new(">= 1.2") if ...
s.rubygems_version = %q{1.3.5}

if that's at all relevant - only references I could find with any version information at all)

like image 909
Steve B. Avatar asked Dec 08 '25 23:12

Steve B.


1 Answers

Check in gem itself. Looking at /usr/bin/gem on my machine gives me this on line 12.

required_version = Gem::Requirement.new ">= 1.8.6"
like image 178
photoionized Avatar answered Dec 11 '25 12:12

photoionized



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!