Skip to content

Commit

Permalink
Merge pull request #241 from steveklabnik/remove_requirement_compatab…
Browse files Browse the repository at this point in the history
…ility

+ Removed Gem::Version::Requirement... long since deprecated. (steveklabnik)
  • Loading branch information
zenspider committed Dec 23, 2011
2 parents fb95804 + b538671 commit 9c892e7
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 15 deletions.
10 changes: 0 additions & 10 deletions lib/rubygems/requirement.rb
Expand Up @@ -220,13 +220,3 @@ def fix_syck_default_key_in_requirements
end
end
end

# :stopdoc:
# FIX:
# Gem::Version::Requirement is used in a lot of old YAML specs. It's aliased
# here for backwards compatibility. I'd like to remove this, maybe in RubyGems
# 2.0.

::Gem::Version::Requirement = ::Gem::Requirement
# :startdoc:

5 changes: 0 additions & 5 deletions test/rubygems/test_gem_requirement.rb
Expand Up @@ -21,11 +21,6 @@ def test_initialize
assert_requirement_equal "= 2", v(2)
end

def test_class_available_as_gem_version_requirement
assert_same Gem::Requirement, Gem::Version::Requirement,
"Gem::Version::Requirement is aliased for old YAML compatibility."
end

def test_parse
assert_equal ['=', Gem::Version.new(1)], Gem::Requirement.parse(' 1')
assert_equal ['=', Gem::Version.new(1)], Gem::Requirement.parse('= 1')
Expand Down

0 comments on commit 9c892e7

Please sign in to comment.