Permalink
Browse files

Show prerelease in Dependency#inspect

  • Loading branch information...
1 parent 7f27b92 commit 5ff048e1b079a109a87a3a54507012c9440bb846 @evanphx evanphx committed Oct 9, 2012
Showing with 7 additions and 2 deletions.
  1. +7 −2 lib/rubygems/dependency.rb
@@ -69,8 +69,13 @@ def hash # :nodoc:
end
def inspect # :nodoc:
- "<%s type=%p name=%p requirements=%p>" %
- [self.class, self.type, self.name, requirement.to_s]
+ if @prerelease
+ "<%s type=%p name=%p requirements=%p prerelease=ok>" %
+ [self.class, self.type, self.name, requirement.to_s]
+ else
+ "<%s type=%p name=%p requirements=%p>" %
+ [self.class, self.type, self.name, requirement.to_s]
+ end
end
##

0 comments on commit 5ff048e

Please sign in to comment.