Rubygems causes a warning on 1.9.3
I'm getting warnings in rubygems. The warning is this:
rubygems/gem_openssl.rb:45: warning: possibly useless use of :: in void context
Here is the patch I used to fix, but maybe a different patch would be better:
diff --git a/lib/rubygems/gem_openssl.rb b/lib/rubygems/gem_openssl.rb
index ade9564..029094d 100644
--- a/lib/rubygems/gem_openssl.rb
+++ b/lib/rubygems/gem_openssl.rb
@@ -42,7 +42,7 @@ begin
# Reference a constant defined in the .rb portion of ssl (just to
# make sure that part is loaded too).
- OpenSSL::Digest::SHA1
+ _ = OpenSSL::Digest::SHA1
Gem.ssl_available = true
Support Staff 2 Posted by Nick Quaranto on 16 Nov, 2010 03:24 AM
Added John to this discussion.
3 Posted by mtodd on 16 Nov, 2010 05:36 AM
Maybe:
Gem.ssl_available = !!OpenSSL::Digest::SHA1At the risk of being "too clever" (aka, dumb).
Support Staff 4 Posted by John Barnette on 17 Nov, 2010 07:25 AM
I'm on it.