diff options
-rw-r--r-- | lib/rubygems/requirement.rb | 40 |
1 files changed, 34 insertions, 6 deletions
@@ -1,11 +1,24 @@ -###################################################################### -# This file is imported from the rubygems project. -# DO NOT make modifications in this repo. They _will_ be reverted! -# File a instead and assign it to Ryan Davis or Eric Hodel. -###################################################################### - require "rubygems/version" ## # A Requirement is a set of one or more version restrictions. It supports a # few (<tt>=, !=, >, <, >=, <=, ~></tt>) different restriction operators. @@ -116,11 +129,15 @@ class Gem::Requirement end def marshal_dump # :nodoc: [@requirements] end def marshal_load array # :nodoc: @requirements = array[0] end def prerelease? @@ -160,6 +177,17 @@ class Gem::Requirement def <=> other # :nodoc: to_s <=> other.to_s end end # :stopdoc: |