Permalink
Browse files

Cleaned up yank command, and altered validate_gem_and_version to incl…

…ude platform as part of slug if its not empty.
  • Loading branch information...
zenom authored and qrush committed Oct 9, 2010
1 parent c115c51 commit 3e7908cae3fa208bc5f49be7ec0e4add1fae18d7
Showing with 1 addition and 5 deletions.
  1. +1 −5 lib/rubygems/commands/yank_command.rb
@@ -73,10 +73,6 @@ def get_version_from_requirements(requirements)
end
def get_platform_from_requirements(requirements)
- begin
- requirements[:added_platform].nil? ? nil : Gem.platforms[1]
- rescue
- nil
- end
+ Gem.platforms[1] if requirements.key? :added_platform
end
end

0 comments on commit 3e7908c

Please sign in to comment.