mirror of
https://github.com/ruby/ruby.git
synced 2025-09-15 08:33:58 +02:00
Update to RubyGems 1.3.7.pre.1
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@27441 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
d0e5a34ac7
commit
372dcece3f
64 changed files with 759 additions and 240 deletions
|
@ -93,9 +93,14 @@ class Gem::Requirement
|
|||
requirements.uniq!
|
||||
|
||||
requirements << ">= 0" if requirements.empty?
|
||||
@none = (requirements == ">= 0")
|
||||
@requirements = requirements.map! { |r| self.class.parse r }
|
||||
end
|
||||
|
||||
def none?
|
||||
@none ||= (to_s == ">= 0")
|
||||
end
|
||||
|
||||
def as_list # :nodoc:
|
||||
requirements.map { |op, version| "#{op} #{version}" }
|
||||
end
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue