Skip to content

Commit

Permalink
Fixed bug when requested remote version was not available. (relying o…
Browse files Browse the repository at this point in the history
…n #version method that no longer existed on Requirement class)

git-svn-id: http://rubygems.rubyforge.org/svn/trunk@281 3d4018f9-ac1a-0410-99e9-8a154d859a19
  • Loading branch information
chadfowler committed Jun 7, 2004
1 parent 9b22cf5 commit 11d942a
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
2 changes: 1 addition & 1 deletion rubygems/lib/rubygems/remote_installer.rb
Expand Up @@ -117,7 +117,7 @@ def find_latest_valid_package_in_caches(package_name,version_requirement,caches)
end
end
end
raise GemNotFoundException.new("Could not find #{package_name} (#{version_requirement.version}) in the repository") unless max_version > Version.new("0.0.0")
raise GemNotFoundException.new("Could not find #{package_name} (#{version_requirement}) in the repository") unless max_version > Version.new("0.0.0")
package
end

Expand Down
6 changes: 6 additions & 0 deletions rubygems/lib/rubygems/version.rb
Expand Up @@ -151,6 +151,12 @@ def initialize(reqs)
[op, Version.new(version_string)]
end
end

def to_s
@requirements.collect {|req|
req[1]
}.join(", ")
end

##
# Is the requirement satifised by +version+.
Expand Down

0 comments on commit 11d942a

Please sign in to comment.