Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Hide non-rubygems-owned bugfix monkey patches from RDoc

  • Loading branch information...
commit ca866f1ed8822ef5de8b390fa78ecb599a316e63 1 parent f01083f
@drbrain drbrain authored
View
2  lib/rubygems.rb
@@ -1211,7 +1211,7 @@ def gem(gem_name, *requirements) # :doc:
# Otherwise return a path to the share area as define by
# "#{ConfigMap[:datadir]}/#{package_name}".
-def RbConfig.datadir(package_name)
+def RbConfig.datadir(package_name) # :nodoc:
warn "#{Gem.location_of_caller.join ':'}:Warning: " \
"RbConfig.datadir is deprecated and will be removed on or after " \
"August 2011. " \
View
8 lib/rubygems/gem_openssl.rb
@@ -36,6 +36,8 @@ def ensure_ssl_available
end
end
+# :stopdoc:
+
begin
require 'openssl'
@@ -44,7 +46,7 @@ def ensure_ssl_available
Gem.ssl_available = !!OpenSSL::Digest::SHA1
- class OpenSSL::X509::Certificate # :nodoc:
+ class OpenSSL::X509::Certificate
# Check the validity of this certificate.
def check_validity(issuer_cert = nil, time = Time.now)
ret = if @not_before && @not_before > time
@@ -66,8 +68,6 @@ def check_validity(issuer_cert = nil, time = Time.now)
Gem.ssl_available = false
end
-# :stopdoc:
-
module Gem::SSL
# We make our own versions of the constants here. This allows us
@@ -88,5 +88,3 @@ module Gem::SSL
end
-# :startdoc:
-
View
4 lib/rubygems/requirement.rb
@@ -1,5 +1,7 @@
require "rubygems/version"
+# :stopdoc:
+
# Hack to handle syck's DefaultKey bug with psych
#
# Quick note! If/when psych loads in 1.9, it will redefine
@@ -19,6 +21,8 @@ class DefaultKey
end
end
+# :startdoc:
+
##
# A Requirement is a set of one or more version restrictions. It supports a
# few (<tt>=, !=, >, <, >=, <=, ~></tt>) different restriction operators.
View
2  lib/rubygems/test_utilities.rb
@@ -139,6 +139,8 @@ def self.fetcher=(fetcher)
##
# A StringIO duck-typed class that uses Tempfile instead of String as the
# backing store.
+#
+# This is available when rubygems/test_utilities is required.
#--
# This class was added to flush out problems in Rubinius' IO implementation.

0 comments on commit ca866f1

Please sign in to comment.
Something went wrong with that request. Please try again.