rubygems-update 3.5.5 → 3.5.7

Sign up to get free protection for your applications and to get access to all the features.
Files changed (192) hide show
  1. checksums.yaml +4 -4
  2. data/CHANGELOG.md +54 -0
  3. data/Manifest.txt +81 -64
  4. data/bundler/CHANGELOG.md +33 -0
  5. data/bundler/lib/bundler/build_metadata.rb +2 -2
  6. data/bundler/lib/bundler/cli/binstubs.rb +1 -1
  7. data/bundler/lib/bundler/cli/gem.rb +1 -1
  8. data/bundler/lib/bundler/cli/lock.rb +5 -4
  9. data/bundler/lib/bundler/cli/plugin.rb +2 -2
  10. data/bundler/lib/bundler/cli.rb +2 -2
  11. data/bundler/lib/bundler/definition.rb +54 -28
  12. data/bundler/lib/bundler/dsl.rb +16 -1
  13. data/bundler/lib/bundler/environment_preserver.rb +3 -3
  14. data/bundler/lib/bundler/fetcher/downloader.rb +1 -1
  15. data/bundler/lib/bundler/fetcher.rb +2 -2
  16. data/bundler/lib/bundler/injector.rb +1 -1
  17. data/bundler/lib/bundler/installer.rb +2 -2
  18. data/bundler/lib/bundler/man/bundle-add.1 +1 -1
  19. data/bundler/lib/bundler/man/bundle-binstubs.1 +1 -1
  20. data/bundler/lib/bundler/man/bundle-cache.1 +1 -1
  21. data/bundler/lib/bundler/man/bundle-check.1 +1 -1
  22. data/bundler/lib/bundler/man/bundle-clean.1 +1 -1
  23. data/bundler/lib/bundler/man/bundle-config.1 +1 -1
  24. data/bundler/lib/bundler/man/bundle-console.1 +1 -1
  25. data/bundler/lib/bundler/man/bundle-doctor.1 +1 -1
  26. data/bundler/lib/bundler/man/bundle-exec.1 +1 -1
  27. data/bundler/lib/bundler/man/bundle-gem.1 +1 -1
  28. data/bundler/lib/bundler/man/bundle-help.1 +1 -1
  29. data/bundler/lib/bundler/man/bundle-info.1 +1 -1
  30. data/bundler/lib/bundler/man/bundle-init.1 +1 -1
  31. data/bundler/lib/bundler/man/bundle-inject.1 +1 -1
  32. data/bundler/lib/bundler/man/bundle-install.1 +3 -3
  33. data/bundler/lib/bundler/man/bundle-install.1.ronn +2 -2
  34. data/bundler/lib/bundler/man/bundle-list.1 +1 -1
  35. data/bundler/lib/bundler/man/bundle-lock.1 +1 -1
  36. data/bundler/lib/bundler/man/bundle-open.1 +1 -1
  37. data/bundler/lib/bundler/man/bundle-outdated.1 +1 -1
  38. data/bundler/lib/bundler/man/bundle-platform.1 +1 -1
  39. data/bundler/lib/bundler/man/bundle-plugin.1 +4 -4
  40. data/bundler/lib/bundler/man/bundle-plugin.1.ronn +3 -3
  41. data/bundler/lib/bundler/man/bundle-pristine.1 +1 -1
  42. data/bundler/lib/bundler/man/bundle-remove.1 +1 -1
  43. data/bundler/lib/bundler/man/bundle-show.1 +1 -1
  44. data/bundler/lib/bundler/man/bundle-update.1 +1 -1
  45. data/bundler/lib/bundler/man/bundle-version.1 +1 -1
  46. data/bundler/lib/bundler/man/bundle-viz.1 +1 -1
  47. data/bundler/lib/bundler/man/bundle.1 +1 -1
  48. data/bundler/lib/bundler/man/gemfile.5 +3 -3
  49. data/bundler/lib/bundler/man/gemfile.5.ronn +2 -2
  50. data/bundler/lib/bundler/mirror.rb +3 -3
  51. data/bundler/lib/bundler/plugin/api/source.rb +2 -2
  52. data/bundler/lib/bundler/plugin/installer.rb +5 -9
  53. data/bundler/lib/bundler/runtime.rb +1 -1
  54. data/bundler/lib/bundler/settings.rb +14 -11
  55. data/bundler/lib/bundler/source/git/git_proxy.rb +1 -1
  56. data/bundler/lib/bundler/source/git.rb +1 -1
  57. data/bundler/lib/bundler/source/rubygems/remote.rb +1 -1
  58. data/bundler/lib/bundler/source/rubygems.rb +2 -2
  59. data/bundler/lib/bundler/spec_set.rb +1 -1
  60. data/bundler/lib/bundler/templates/newgem/newgem.gemspec.tt +4 -3
  61. data/bundler/lib/bundler/templates/newgem/rubocop.yml.tt +0 -5
  62. data/bundler/lib/bundler/uri_credentials_filter.rb +2 -2
  63. data/bundler/lib/bundler/vendor/net-http-persistent/lib/net/http/persistent.rb +22 -22
  64. data/bundler/lib/bundler/vendor/pub_grub/lib/pub_grub/static_package_source.rb +1 -0
  65. data/bundler/lib/bundler/vendored_net_http.rb +7 -3
  66. data/bundler/lib/bundler/vendored_timeout.rb +7 -3
  67. data/bundler/lib/bundler/vendored_uri.rb +18 -1
  68. data/bundler/lib/bundler/version.rb +1 -1
  69. data/bundler/lib/bundler/yaml_serializer.rb +12 -0
  70. data/bundler/lib/bundler.rb +3 -2
  71. data/lib/rubygems/command.rb +1 -1
  72. data/lib/rubygems/command_manager.rb +1 -1
  73. data/lib/rubygems/commands/help_command.rb +2 -2
  74. data/lib/rubygems/commands/rdoc_command.rb +1 -8
  75. data/lib/rubygems/commands/sources_command.rb +2 -2
  76. data/lib/rubygems/defaults.rb +4 -4
  77. data/lib/rubygems/dependency.rb +2 -2
  78. data/lib/rubygems/dependency_list.rb +1 -1
  79. data/lib/rubygems/ext/cargo_builder.rb +1 -1
  80. data/lib/rubygems/gemcutter_utilities/webauthn_listener.rb +1 -1
  81. data/lib/rubygems/gemcutter_utilities.rb +40 -23
  82. data/lib/rubygems/local_remote_options.rb +6 -6
  83. data/lib/rubygems/remote_fetcher.rb +3 -3
  84. data/lib/rubygems/request.rb +5 -5
  85. data/lib/rubygems/request_set.rb +1 -1
  86. data/lib/rubygems/requirement.rb +5 -0
  87. data/lib/rubygems/resolver/api_set.rb +1 -1
  88. data/lib/rubygems/resolver/best_set.rb +1 -1
  89. data/lib/rubygems/resolver.rb +5 -5
  90. data/lib/rubygems/s3_uri_signer.rb +3 -3
  91. data/lib/rubygems/safe_yaml.rb +10 -1
  92. data/lib/rubygems/security.rb +1 -1
  93. data/lib/rubygems/source/git.rb +2 -2
  94. data/lib/rubygems/source_list.rb +1 -1
  95. data/lib/rubygems/specification.rb +6 -6
  96. data/lib/rubygems/specification_policy.rb +15 -7
  97. data/lib/rubygems/uri.rb +6 -6
  98. data/lib/rubygems/util/licenses.rb +43 -0
  99. data/lib/rubygems/util.rb +1 -1
  100. data/lib/rubygems/vendor/molinillo/lib/molinillo/delegates/resolution_state.rb +57 -0
  101. data/lib/rubygems/{resolver → vendor}/molinillo/lib/molinillo/delegates/specification_provider.rb +11 -11
  102. data/lib/rubygems/{resolver → vendor}/molinillo/lib/molinillo/dependency_graph/action.rb +1 -1
  103. data/lib/rubygems/{resolver → vendor}/molinillo/lib/molinillo/dependency_graph/add_edge_no_circular.rb +1 -1
  104. data/lib/rubygems/{resolver → vendor}/molinillo/lib/molinillo/dependency_graph/add_vertex.rb +1 -1
  105. data/lib/rubygems/{resolver → vendor}/molinillo/lib/molinillo/dependency_graph/delete_edge.rb +1 -1
  106. data/lib/rubygems/{resolver → vendor}/molinillo/lib/molinillo/dependency_graph/detach_vertex_named.rb +1 -1
  107. data/lib/rubygems/{resolver → vendor}/molinillo/lib/molinillo/dependency_graph/log.rb +1 -1
  108. data/lib/rubygems/{resolver → vendor}/molinillo/lib/molinillo/dependency_graph/set_payload.rb +1 -1
  109. data/lib/rubygems/{resolver → vendor}/molinillo/lib/molinillo/dependency_graph/tag.rb +1 -1
  110. data/lib/rubygems/{resolver → vendor}/molinillo/lib/molinillo/dependency_graph/vertex.rb +1 -1
  111. data/lib/rubygems/{resolver → vendor}/molinillo/lib/molinillo/dependency_graph.rb +2 -2
  112. data/lib/rubygems/{resolver → vendor}/molinillo/lib/molinillo/errors.rb +1 -1
  113. data/lib/rubygems/vendor/molinillo/lib/molinillo/gem_metadata.rb +6 -0
  114. data/lib/rubygems/{resolver → vendor}/molinillo/lib/molinillo/modules/specification_provider.rb +2 -2
  115. data/lib/rubygems/{resolver → vendor}/molinillo/lib/molinillo/modules/ui.rb +1 -1
  116. data/lib/rubygems/{resolver → vendor}/molinillo/lib/molinillo/resolution.rb +3 -3
  117. data/lib/rubygems/{resolver → vendor}/molinillo/lib/molinillo/resolver.rb +1 -1
  118. data/lib/rubygems/{resolver → vendor}/molinillo/lib/molinillo/state.rb +1 -1
  119. data/lib/rubygems/{resolver → vendor}/molinillo/lib/molinillo.rb +2 -2
  120. data/lib/rubygems/{net-http → vendor/net-http}/lib/net/http/generic_request.rb +9 -9
  121. data/lib/rubygems/{net-http → vendor/net-http}/lib/net/http/header.rb +2 -2
  122. data/lib/rubygems/{net-http → vendor/net-http}/lib/net/http/request.rb +3 -3
  123. data/lib/rubygems/{net-http → vendor/net-http}/lib/net/http/requests.rb +30 -30
  124. data/lib/rubygems/{net-http → vendor/net-http}/lib/net/http/response.rb +2 -2
  125. data/lib/rubygems/{net-http → vendor/net-http}/lib/net/http/responses.rb +6 -6
  126. data/lib/rubygems/{net-http → vendor/net-http}/lib/net/http/status.rb +1 -1
  127. data/lib/rubygems/{net-http → vendor/net-http}/lib/net/http.rb +15 -15
  128. data/lib/rubygems/{net-http → vendor/net-http}/lib/net/https.rb +1 -1
  129. data/lib/rubygems/vendor/optparse/lib/optparse/uri.rb +7 -0
  130. data/lib/rubygems/{optparse → vendor/optparse}/lib/optparse.rb +11 -11
  131. data/lib/rubygems/{timeout → vendor/timeout}/lib/timeout.rb +1 -1
  132. data/lib/rubygems/{tsort → vendor/tsort}/lib/tsort.rb +2 -2
  133. data/lib/rubygems/vendor/uri/.document +1 -0
  134. data/lib/rubygems/vendor/uri/LICENSE.txt +22 -0
  135. data/lib/rubygems/vendor/uri/lib/uri/common.rb +853 -0
  136. data/lib/rubygems/vendor/uri/lib/uri/file.rb +100 -0
  137. data/lib/rubygems/vendor/uri/lib/uri/ftp.rb +267 -0
  138. data/lib/rubygems/vendor/uri/lib/uri/generic.rb +1588 -0
  139. data/lib/rubygems/vendor/uri/lib/uri/http.rb +125 -0
  140. data/lib/rubygems/vendor/uri/lib/uri/https.rb +23 -0
  141. data/lib/rubygems/vendor/uri/lib/uri/ldap.rb +261 -0
  142. data/lib/rubygems/vendor/uri/lib/uri/ldaps.rb +22 -0
  143. data/lib/rubygems/vendor/uri/lib/uri/mailto.rb +293 -0
  144. data/lib/rubygems/vendor/uri/lib/uri/rfc2396_parser.rb +539 -0
  145. data/lib/rubygems/vendor/uri/lib/uri/rfc3986_parser.rb +183 -0
  146. data/lib/rubygems/vendor/uri/lib/uri/version.rb +6 -0
  147. data/lib/rubygems/vendor/uri/lib/uri/ws.rb +83 -0
  148. data/lib/rubygems/vendor/uri/lib/uri/wss.rb +23 -0
  149. data/lib/rubygems/vendor/uri/lib/uri.rb +104 -0
  150. data/lib/rubygems/vendored_molinillo.rb +3 -0
  151. data/lib/rubygems/vendored_net_http.rb +5 -0
  152. data/lib/rubygems/vendored_optparse.rb +3 -0
  153. data/lib/rubygems/vendored_timeout.rb +5 -0
  154. data/lib/rubygems/vendored_tsort.rb +3 -0
  155. data/lib/rubygems/yaml_serializer.rb +12 -0
  156. data/lib/rubygems.rb +2 -2
  157. data/rubygems-update.gemspec +7 -2
  158. metadata +87 -67
  159. data/lib/rubygems/net/http.rb +0 -3
  160. data/lib/rubygems/optparse/lib/optparse/uri.rb +0 -7
  161. data/lib/rubygems/optparse.rb +0 -3
  162. data/lib/rubygems/resolver/molinillo/lib/molinillo/delegates/resolution_state.rb +0 -57
  163. data/lib/rubygems/resolver/molinillo/lib/molinillo/gem_metadata.rb +0 -6
  164. data/lib/rubygems/resolver/molinillo.rb +0 -3
  165. data/lib/rubygems/timeout.rb +0 -3
  166. data/lib/rubygems/tsort.rb +0 -3
  167. /data/lib/rubygems/{net-http → vendor/molinillo}/.document +0 -0
  168. /data/lib/rubygems/{resolver → vendor}/molinillo/LICENSE +0 -0
  169. /data/lib/rubygems/{net-protocol → vendor/net-http}/.document +0 -0
  170. /data/lib/rubygems/{net-http → vendor/net-http}/LICENSE.txt +0 -0
  171. /data/lib/rubygems/{net-http → vendor/net-http}/lib/net/http/backward.rb +0 -0
  172. /data/lib/rubygems/{net-http → vendor/net-http}/lib/net/http/exceptions.rb +0 -0
  173. /data/lib/rubygems/{net-http → vendor/net-http}/lib/net/http/proxy_delta.rb +0 -0
  174. /data/lib/rubygems/{optparse → vendor/net-protocol}/.document +0 -0
  175. /data/lib/rubygems/{net-protocol → vendor/net-protocol}/LICENSE.txt +0 -0
  176. /data/lib/rubygems/{net-protocol → vendor/net-protocol}/lib/net/protocol.rb +0 -0
  177. /data/lib/rubygems/{resolv → vendor/optparse}/.document +0 -0
  178. /data/lib/rubygems/{optparse → vendor/optparse}/COPYING +0 -0
  179. /data/lib/rubygems/{optparse → vendor/optparse}/lib/optionparser.rb +0 -0
  180. /data/lib/rubygems/{optparse → vendor/optparse}/lib/optparse/ac.rb +0 -0
  181. /data/lib/rubygems/{optparse → vendor/optparse}/lib/optparse/date.rb +0 -0
  182. /data/lib/rubygems/{optparse → vendor/optparse}/lib/optparse/kwargs.rb +0 -0
  183. /data/lib/rubygems/{optparse → vendor/optparse}/lib/optparse/shellwords.rb +0 -0
  184. /data/lib/rubygems/{optparse → vendor/optparse}/lib/optparse/time.rb +0 -0
  185. /data/lib/rubygems/{optparse → vendor/optparse}/lib/optparse/version.rb +0 -0
  186. /data/lib/rubygems/{resolver/molinillo → vendor/resolv}/.document +0 -0
  187. /data/lib/rubygems/{resolv → vendor/resolv}/LICENSE.txt +0 -0
  188. /data/lib/rubygems/{resolv → vendor/resolv}/lib/resolv.rb +0 -0
  189. /data/lib/rubygems/{timeout → vendor/timeout}/.document +0 -0
  190. /data/lib/rubygems/{timeout → vendor/timeout}/LICENSE.txt +0 -0
  191. /data/lib/rubygems/{tsort → vendor/tsort}/.document +0 -0
  192. /data/lib/rubygems/{tsort → vendor/tsort}/LICENSE.txt +0 -0
@@ -21,7 +21,7 @@
21
21
  #
22
22
 
23
23
  require_relative '../../../net-protocol/lib/net/protocol'
24
- require 'uri'
24
+ require_relative '../../../uri/lib/uri'
25
25
  require_relative '../../../resolv/lib/resolv'
26
26
  autoload :OpenSSL, 'openssl'
27
27
 
@@ -106,20 +106,20 @@ module Gem::Net #:nodoc:
106
106
  # It consists of some or all of: scheme, hostname, path, query, and fragment;
107
107
  # see {URI syntax}[https://en.wikipedia.org/wiki/Uniform_Resource_Identifier#Syntax].
108
108
  #
109
- # A Ruby {URI::Generic}[https://docs.ruby-lang.org/en/master/URI/Generic.html] object
109
+ # A Ruby {Gem::URI::Generic}[https://docs.ruby-lang.org/en/master/Gem/URI/Generic.html] object
110
110
  # represents an internet URI.
111
111
  # It provides, among others, methods
112
112
  # +scheme+, +hostname+, +path+, +query+, and +fragment+.
113
113
  #
114
114
  # === Schemes
115
115
  #
116
- # An internet \URI has
116
+ # An internet \Gem::URI has
117
117
  # a {scheme}[https://en.wikipedia.org/wiki/List_of_URI_schemes].
118
118
  #
119
119
  # The two schemes supported in \Gem::Net::HTTP are <tt>'https'</tt> and <tt>'http'</tt>:
120
120
  #
121
121
  # uri.scheme # => "https"
122
- # URI('http://example.com').scheme # => "http"
122
+ # Gem::URI('http://example.com').scheme # => "http"
123
123
  #
124
124
  # === Hostnames
125
125
  #
@@ -146,8 +146,8 @@ module Gem::Net #:nodoc:
146
146
  #
147
147
  # _uri = uri.dup
148
148
  # params = {userId: 1, completed: false}
149
- # _uri.query = URI.encode_www_form(params)
150
- # _uri # => #<URI::HTTPS https://jsonplaceholder.typicode.com?userId=1&completed=false>
149
+ # _uri.query = Gem::URI.encode_www_form(params)
150
+ # _uri # => #<Gem::URI::HTTPS https://jsonplaceholder.typicode.com?userId=1&completed=false>
151
151
  # Gem::Net::HTTP.get(_uri)
152
152
  #
153
153
  # === Fragments
@@ -273,7 +273,7 @@ module Gem::Net #:nodoc:
273
273
  # # You should choose a better exception.
274
274
  # raise ArgumentError, 'Too many HTTP redirects' if limit == 0
275
275
  #
276
- # res = Gem::Net::HTTP.get_response(URI(uri))
276
+ # res = Gem::Net::HTTP.get_response(Gem::URI(uri))
277
277
  # case res
278
278
  # when Gem::Net::HTTPSuccess # Any success class.
279
279
  # res
@@ -327,9 +327,9 @@ module Gem::Net #:nodoc:
327
327
  #
328
328
  # Or if you simply want to make a GET request, you may pass in a URI
329
329
  # object that has an \HTTPS URL. \Gem::Net::HTTP automatically turns on TLS
330
- # verification if the URI object has a 'https' URI scheme:
330
+ # verification if the URI object has a 'https' :URI scheme:
331
331
  #
332
- # uri # => #<URI::HTTPS https://jsonplaceholder.typicode.com/>
332
+ # uri # => #<Gem::URI::HTTPS https://jsonplaceholder.typicode.com/>
333
333
  # Gem::Net::HTTP.get(uri)
334
334
  #
335
335
  # == Proxy Server
@@ -371,9 +371,9 @@ module Gem::Net #:nodoc:
371
371
  # === Proxy Using '<tt>ENV['http_proxy']</tt>'
372
372
  #
373
373
  # When environment variable <tt>'http_proxy'</tt>
374
- # is set to a \URI string,
374
+ # is set to a \Gem::URI string,
375
375
  # the returned +http+ will have the server at that URI as its proxy;
376
- # note that the \URI string must have a protocol
376
+ # note that the \Gem::URI string must have a protocol
377
377
  # such as <tt>'http'</tt> or <tt>'https'</tt>:
378
378
  #
379
379
  # ENV['http_proxy'] = 'http://example.com'
@@ -386,7 +386,7 @@ module Gem::Net #:nodoc:
386
386
  # http.proxy_user # => nil
387
387
  # http.proxy_pass # => nil
388
388
  #
389
- # The \URI string may include proxy username, password, and port number:
389
+ # The \Gem::URI string may include proxy username, password, and port number:
390
390
  #
391
391
  # ENV['http_proxy'] = 'http://pname:ppass@example.com:8000'
392
392
  # http = Gem::Net::HTTP.new(hostname)
@@ -790,7 +790,7 @@ module Gem::Net #:nodoc:
790
790
  #
791
791
  # With URI object +uri+ and optional hash argument +headers+:
792
792
  #
793
- # uri = URI('https://jsonplaceholder.typicode.com/todos/1')
793
+ # uri = Gem::URI('https://jsonplaceholder.typicode.com/todos/1')
794
794
  # headers = {'Content-type' => 'application/json; charset=UTF-8'}
795
795
  # Gem::Net::HTTP.get(uri, headers)
796
796
  #
@@ -1074,7 +1074,7 @@ module Gem::Net #:nodoc:
1074
1074
  elsif p_addr == :ENV then
1075
1075
  http.proxy_from_env = true
1076
1076
  else
1077
- if p_addr && p_no_proxy && !URI::Generic.use_proxy?(address, address, port, p_no_proxy)
1077
+ if p_addr && p_no_proxy && !Gem::URI::Generic.use_proxy?(address, address, port, p_no_proxy)
1078
1078
  p_addr = nil
1079
1079
  p_port = nil
1080
1080
  end
@@ -1796,7 +1796,7 @@ module Gem::Net #:nodoc:
1796
1796
  # The proxy URI determined from the environment for this connection.
1797
1797
  def proxy_uri # :nodoc:
1798
1798
  return if @proxy_uri == false
1799
- @proxy_uri ||= URI::HTTP.new(
1799
+ @proxy_uri ||= Gem::URI::HTTP.new(
1800
1800
  "http", nil, address, port, nil, nil, nil, nil, nil
1801
1801
  ).find_proxy || false
1802
1802
  @proxy_uri || nil
@@ -4,7 +4,7 @@
4
4
  = net/https -- SSL/TLS enhancement for Gem::Net::HTTP.
5
5
 
6
6
  This file has been merged with net/http. There is no longer any need to
7
- require 'rubygems/net-http/lib/net/https' to use HTTPS.
7
+ require 'rubygems/vendor/net-http/lib/net/https' to use HTTPS.
8
8
 
9
9
  See Gem::Net::HTTP for details on how to make HTTPS connections.
10
10
 
@@ -0,0 +1,7 @@
1
+ # frozen_string_literal: false
2
+ # -*- ruby -*-
3
+
4
+ require_relative '../optparse'
5
+ require_relative '../../../uri/lib/uri'
6
+
7
+ Gem::OptionParser.accept(Gem::URI) {|s,| Gem::URI.parse(s) if s}
@@ -73,7 +73,7 @@
73
73
  #
74
74
  # === Minimal example
75
75
  #
76
- # require 'rubygems/optparse/lib/optparse'
76
+ # require 'rubygems/vendor/optparse/lib/optparse'
77
77
  #
78
78
  # options = {}
79
79
  # Gem::OptionParser.new do |parser|
@@ -92,7 +92,7 @@
92
92
  # Gem::OptionParser can be used to automatically generate help for the commands you
93
93
  # write:
94
94
  #
95
- # require 'rubygems/optparse/lib/optparse'
95
+ # require 'rubygems/vendor/optparse/lib/optparse'
96
96
  #
97
97
  # Options = Struct.new(:name)
98
98
  #
@@ -130,7 +130,7 @@
130
130
  # option name in all caps. If an option is used without the required argument,
131
131
  # an exception will be raised.
132
132
  #
133
- # require 'rubygems/optparse/lib/optparse'
133
+ # require 'rubygems/vendor/optparse/lib/optparse'
134
134
  #
135
135
  # options = {}
136
136
  # Gem::OptionParser.new do |parser|
@@ -158,7 +158,7 @@
158
158
  # - Date -- Anything accepted by +Date.parse+ (need to require +optparse/date+)
159
159
  # - DateTime -- Anything accepted by +DateTime.parse+ (need to require +optparse/date+)
160
160
  # - Time -- Anything accepted by +Time.httpdate+ or +Time.parse+ (need to require +optparse/time+)
161
- # - URI -- Anything accepted by +URI.parse+ (need to require +optparse/uri+)
161
+ # - URI -- Anything accepted by +Gem::URI.parse+ (need to require +optparse/uri+)
162
162
  # - Shellwords -- Anything accepted by +Shellwords.shellwords+ (need to require +optparse/shellwords+)
163
163
  # - String -- Any non-empty string
164
164
  # - Integer -- Any integer. Will convert octal. (e.g. 124, -3, 040)
@@ -183,8 +183,8 @@
183
183
  # as a +Time+. If it succeeds, that time will be passed to the
184
184
  # handler block. Otherwise, an exception will be raised.
185
185
  #
186
- # require 'rubygems/optparse/lib/optparse'
187
- # require 'rubygems/optparse/lib/optparse/time'
186
+ # require 'rubygems/vendor/optparse/lib/optparse'
187
+ # require 'rubygems/vendor/optparse/lib/optparse/time'
188
188
  # Gem::OptionParser.new do |parser|
189
189
  # parser.on("-t", "--time [TIME]", Time, "Begin execution at given time") do |time|
190
190
  # p time
@@ -206,7 +206,7 @@
206
206
  # It specifies which conversion block to call whenever a class is specified.
207
207
  # The example below uses it to fetch a +User+ object before the +on+ handler receives it.
208
208
  #
209
- # require 'rubygems/optparse/lib/optparse'
209
+ # require 'rubygems/vendor/optparse/lib/optparse'
210
210
  #
211
211
  # User = Struct.new(:id, :name)
212
212
  #
@@ -242,7 +242,7 @@
242
242
  #
243
243
  # The +into+ option of +order+, +parse+ and so on methods stores command line options into a Hash.
244
244
  #
245
- # require 'rubygems/optparse/lib/optparse'
245
+ # require 'rubygems/vendor/optparse/lib/optparse'
246
246
  #
247
247
  # options = {}
248
248
  # Gem::OptionParser.new do |parser|
@@ -268,8 +268,8 @@
268
268
  # effect of specifying various options. This is probably the best way to learn
269
269
  # the features of +optparse+.
270
270
  #
271
- # require 'rubygems/optparse/lib/optparse'
272
- # require 'rubygems/optparse/lib/optparse/time'
271
+ # require 'rubygems/vendor/optparse/lib/optparse'
272
+ # require 'rubygems/vendor/optparse/lib/optparse/time'
273
273
  # require 'ostruct'
274
274
  # require 'pp'
275
275
  #
@@ -1084,7 +1084,7 @@ XXX
1084
1084
  Switch::OptionalArgument.new do |pkg|
1085
1085
  if pkg
1086
1086
  begin
1087
- require 'rubygems/optparse/lib/optparse/version'
1087
+ require 'rubygems/vendor/optparse/lib/optparse/version'
1088
1088
  rescue LoadError
1089
1089
  else
1090
1090
  show_version(*pkg.split(/,/)) or
@@ -3,7 +3,7 @@
3
3
  #
4
4
  # == Synopsis
5
5
  #
6
- # require 'rubygems/timeout/lib/timeout'
6
+ # require 'rubygems/vendor/timeout/lib/timeout'
7
7
  # status = Gem::Timeout::timeout(5) {
8
8
  # # Something that should be interrupted if it takes more than 5 seconds...
9
9
  # }
@@ -32,7 +32,7 @@
32
32
  # method, which fetches the array of child nodes and then iterates over that
33
33
  # array using the user-supplied block.
34
34
  #
35
- # require 'rubygems/tsort/lib/tsort'
35
+ # require 'rubygems/vendor/tsort/lib/tsort'
36
36
  #
37
37
  # class Hash
38
38
  # include Gem::TSort
@@ -52,7 +52,7 @@
52
52
  #
53
53
  # A very simple `make' like tool can be implemented as follows:
54
54
  #
55
- # require 'rubygems/tsort/lib/tsort'
55
+ # require 'rubygems/vendor/tsort/lib/tsort'
56
56
  #
57
57
  # class Make
58
58
  # def initialize
@@ -0,0 +1 @@
1
+ # Vendored files do not need to be documented
@@ -0,0 +1,22 @@
1
+ Copyright (C) 1993-2013 Yukihiro Matsumoto. All rights reserved.
2
+
3
+ Redistribution and use in source and binary forms, with or without
4
+ modification, are permitted provided that the following conditions
5
+ are met:
6
+ 1. Redistributions of source code must retain the above copyright
7
+ notice, this list of conditions and the following disclaimer.
8
+ 2. Redistributions in binary form must reproduce the above copyright
9
+ notice, this list of conditions and the following disclaimer in the
10
+ documentation and/or other materials provided with the distribution.
11
+
12
+ THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS ``AS IS'' AND
13
+ ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
14
+ IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
15
+ ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE
16
+ FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
17
+ DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
18
+ OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
19
+ HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
20
+ LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
21
+ OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
22
+ SUCH DAMAGE.