Steve B.
Steve B.

Reputation: 57333

Where is ruby gem specifying the ruby version?

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)

Upvotes: 3

Views: 367

Answers (1)

photoionized
photoionized

Reputation: 5232

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"

Upvotes: 1

Related Questions