rubygems-update 2.5.1 → 2.5.2

Sign up to get free protection for your applications and to get access to all the features.

Potentially problematic release.


This version of rubygems-update might be problematic. Click here for more details.

Files changed (322) hide show
  1. checksums.yaml +4 -4
  2. data/.travis.yml +46 -0
  3. data/CONTRIBUTING.rdoc +98 -27
  4. data/History.txt +44 -1
  5. data/MAINTAINERS.md +4 -0
  6. data/Manifest.txt +4 -0
  7. data/POLICIES.rdoc +61 -0
  8. data/appveyor.yml +6 -1
  9. data/lib/gauntlet_rubygems.rb +1 -0
  10. data/lib/rubygems.rb +3 -2
  11. data/lib/rubygems/available_set.rb +1 -0
  12. data/lib/rubygems/basic_specification.rb +4 -4
  13. data/lib/rubygems/command.rb +7 -2
  14. data/lib/rubygems/command_manager.rb +1 -0
  15. data/lib/rubygems/commands/build_command.rb +5 -0
  16. data/lib/rubygems/commands/cert_command.rb +1 -0
  17. data/lib/rubygems/commands/check_command.rb +1 -0
  18. data/lib/rubygems/commands/cleanup_command.rb +1 -0
  19. data/lib/rubygems/commands/contents_command.rb +1 -0
  20. data/lib/rubygems/commands/dependency_command.rb +3 -2
  21. data/lib/rubygems/commands/environment_command.rb +3 -3
  22. data/lib/rubygems/commands/fetch_command.rb +1 -0
  23. data/lib/rubygems/commands/generate_index_command.rb +1 -0
  24. data/lib/rubygems/commands/help_command.rb +1 -0
  25. data/lib/rubygems/commands/install_command.rb +1 -0
  26. data/lib/rubygems/commands/list_command.rb +1 -0
  27. data/lib/rubygems/commands/lock_command.rb +1 -0
  28. data/lib/rubygems/commands/mirror_command.rb +1 -0
  29. data/lib/rubygems/commands/open_command.rb +1 -0
  30. data/lib/rubygems/commands/outdated_command.rb +1 -0
  31. data/lib/rubygems/commands/owner_command.rb +1 -0
  32. data/lib/rubygems/commands/pristine_command.rb +1 -0
  33. data/lib/rubygems/commands/push_command.rb +1 -0
  34. data/lib/rubygems/commands/query_command.rb +12 -5
  35. data/lib/rubygems/commands/rdoc_command.rb +1 -0
  36. data/lib/rubygems/commands/search_command.rb +1 -0
  37. data/lib/rubygems/commands/server_command.rb +1 -0
  38. data/lib/rubygems/commands/setup_command.rb +1 -0
  39. data/lib/rubygems/commands/sources_command.rb +1 -0
  40. data/lib/rubygems/commands/specification_command.rb +1 -0
  41. data/lib/rubygems/commands/stale_command.rb +1 -0
  42. data/lib/rubygems/commands/uninstall_command.rb +1 -0
  43. data/lib/rubygems/commands/unpack_command.rb +1 -0
  44. data/lib/rubygems/commands/update_command.rb +1 -0
  45. data/lib/rubygems/commands/which_command.rb +1 -0
  46. data/lib/rubygems/commands/yank_command.rb +11 -15
  47. data/lib/rubygems/compatibility.rb +1 -0
  48. data/lib/rubygems/config_file.rb +6 -4
  49. data/lib/rubygems/core_ext/kernel_gem.rb +1 -0
  50. data/lib/rubygems/core_ext/kernel_require.rb +1 -0
  51. data/lib/rubygems/defaults.rb +1 -0
  52. data/lib/rubygems/dependency.rb +3 -2
  53. data/lib/rubygems/dependency_installer.rb +1 -0
  54. data/lib/rubygems/dependency_list.rb +1 -0
  55. data/lib/rubygems/deprecate.rb +1 -0
  56. data/lib/rubygems/doctor.rb +1 -0
  57. data/lib/rubygems/errors.rb +1 -0
  58. data/lib/rubygems/exceptions.rb +2 -2
  59. data/lib/rubygems/ext.rb +1 -0
  60. data/lib/rubygems/ext/build_error.rb +1 -0
  61. data/lib/rubygems/ext/builder.rb +1 -0
  62. data/lib/rubygems/ext/cmake_builder.rb +1 -0
  63. data/lib/rubygems/ext/configure_builder.rb +1 -0
  64. data/lib/rubygems/ext/ext_conf_builder.rb +15 -4
  65. data/lib/rubygems/ext/rake_builder.rb +1 -0
  66. data/lib/rubygems/gem_runner.rb +1 -0
  67. data/lib/rubygems/gemcutter_utilities.rb +9 -3
  68. data/lib/rubygems/indexer.rb +1 -0
  69. data/lib/rubygems/install_default_message.rb +1 -0
  70. data/lib/rubygems/install_message.rb +1 -0
  71. data/lib/rubygems/install_update_options.rb +6 -0
  72. data/lib/rubygems/installer.rb +12 -5
  73. data/lib/rubygems/installer_test_case.rb +1 -0
  74. data/lib/rubygems/local_remote_options.rb +2 -1
  75. data/lib/rubygems/mock_gem_ui.rb +1 -0
  76. data/lib/rubygems/name_tuple.rb +2 -1
  77. data/lib/rubygems/package.rb +3 -2
  78. data/lib/rubygems/package/digest_io.rb +1 -0
  79. data/lib/rubygems/package/file_source.rb +1 -0
  80. data/lib/rubygems/package/io_source.rb +1 -0
  81. data/lib/rubygems/package/old.rb +4 -4
  82. data/lib/rubygems/package/source.rb +1 -0
  83. data/lib/rubygems/package/tar_header.rb +1 -0
  84. data/lib/rubygems/package/tar_reader.rb +1 -0
  85. data/lib/rubygems/package/tar_reader/entry.rb +1 -0
  86. data/lib/rubygems/package/tar_test_case.rb +1 -0
  87. data/lib/rubygems/package/tar_writer.rb +1 -0
  88. data/lib/rubygems/package_task.rb +1 -0
  89. data/lib/rubygems/path_support.rb +15 -5
  90. data/lib/rubygems/platform.rb +1 -0
  91. data/lib/rubygems/psych_additions.rb +1 -0
  92. data/lib/rubygems/psych_tree.rb +1 -0
  93. data/lib/rubygems/rdoc.rb +1 -0
  94. data/lib/rubygems/remote_fetcher.rb +1 -0
  95. data/lib/rubygems/request.rb +3 -2
  96. data/lib/rubygems/request/connection_pools.rb +1 -0
  97. data/lib/rubygems/request/http_pool.rb +1 -0
  98. data/lib/rubygems/request/https_pool.rb +1 -0
  99. data/lib/rubygems/request_set.rb +14 -8
  100. data/lib/rubygems/request_set/gem_dependency_api.rb +54 -6
  101. data/lib/rubygems/request_set/lockfile.rb +3 -3
  102. data/lib/rubygems/request_set/lockfile/parser.rb +18 -9
  103. data/lib/rubygems/request_set/lockfile/tokenizer.rb +1 -0
  104. data/lib/rubygems/requirement.rb +1 -0
  105. data/lib/rubygems/resolver.rb +2 -0
  106. data/lib/rubygems/resolver/activation_request.rb +18 -5
  107. data/lib/rubygems/resolver/api_set.rb +1 -0
  108. data/lib/rubygems/resolver/api_specification.rb +1 -0
  109. data/lib/rubygems/resolver/best_set.rb +1 -0
  110. data/lib/rubygems/resolver/composed_set.rb +1 -0
  111. data/lib/rubygems/resolver/conflict.rb +1 -0
  112. data/lib/rubygems/resolver/current_set.rb +1 -0
  113. data/lib/rubygems/resolver/dependency_request.rb +1 -0
  114. data/lib/rubygems/resolver/git_set.rb +1 -0
  115. data/lib/rubygems/resolver/git_specification.rb +1 -0
  116. data/lib/rubygems/resolver/index_set.rb +1 -0
  117. data/lib/rubygems/resolver/index_specification.rb +1 -0
  118. data/lib/rubygems/resolver/installed_specification.rb +1 -0
  119. data/lib/rubygems/resolver/installer_set.rb +1 -0
  120. data/lib/rubygems/resolver/local_specification.rb +1 -0
  121. data/lib/rubygems/resolver/lock_set.rb +4 -5
  122. data/lib/rubygems/resolver/lock_specification.rb +6 -2
  123. data/lib/rubygems/resolver/molinillo.rb +1 -0
  124. data/lib/rubygems/resolver/molinillo/lib/molinillo.rb +5 -0
  125. data/lib/rubygems/resolver/molinillo/lib/molinillo/dependency_graph.rb +10 -0
  126. data/lib/rubygems/resolver/molinillo/lib/molinillo/errors.rb +6 -0
  127. data/lib/rubygems/resolver/molinillo/lib/molinillo/gem_metadata.rb +3 -1
  128. data/lib/rubygems/resolver/molinillo/lib/molinillo/modules/specification_provider.rb +1 -0
  129. data/lib/rubygems/resolver/molinillo/lib/molinillo/modules/ui.rb +1 -0
  130. data/lib/rubygems/resolver/molinillo/lib/molinillo/resolution.rb +2 -0
  131. data/lib/rubygems/resolver/molinillo/lib/molinillo/resolver.rb +3 -1
  132. data/lib/rubygems/resolver/molinillo/lib/molinillo/state.rb +8 -7
  133. data/lib/rubygems/resolver/requirement_list.rb +1 -0
  134. data/lib/rubygems/resolver/set.rb +1 -0
  135. data/lib/rubygems/resolver/source_set.rb +48 -0
  136. data/lib/rubygems/resolver/spec_specification.rb +1 -0
  137. data/lib/rubygems/resolver/specification.rb +1 -0
  138. data/lib/rubygems/resolver/stats.rb +1 -0
  139. data/lib/rubygems/resolver/vendor_set.rb +1 -0
  140. data/lib/rubygems/resolver/vendor_specification.rb +1 -0
  141. data/lib/rubygems/security.rb +3 -2
  142. data/lib/rubygems/security/policies.rb +1 -0
  143. data/lib/rubygems/security/policy.rb +2 -2
  144. data/lib/rubygems/security/signer.rb +1 -0
  145. data/lib/rubygems/security/trust_dir.rb +1 -0
  146. data/lib/rubygems/server.rb +1 -0
  147. data/lib/rubygems/source.rb +1 -0
  148. data/lib/rubygems/source/git.rb +1 -0
  149. data/lib/rubygems/source/installed.rb +1 -0
  150. data/lib/rubygems/source/local.rb +1 -0
  151. data/lib/rubygems/source/lock.rb +1 -0
  152. data/lib/rubygems/source/specific_file.rb +1 -0
  153. data/lib/rubygems/source/vendor.rb +1 -0
  154. data/lib/rubygems/source_list.rb +2 -1
  155. data/lib/rubygems/source_local.rb +1 -0
  156. data/lib/rubygems/source_specific_file.rb +1 -0
  157. data/lib/rubygems/spec_fetcher.rb +1 -0
  158. data/lib/rubygems/specification.rb +11 -6
  159. data/lib/rubygems/stub_specification.rb +1 -0
  160. data/lib/rubygems/syck_hack.rb +1 -0
  161. data/lib/rubygems/test_case.rb +15 -3
  162. data/lib/rubygems/test_utilities.rb +1 -0
  163. data/lib/rubygems/text.rb +1 -1
  164. data/lib/rubygems/uninstaller.rb +1 -0
  165. data/lib/rubygems/uri_formatter.rb +1 -0
  166. data/lib/rubygems/user_interaction.rb +1 -0
  167. data/lib/rubygems/util.rb +2 -1
  168. data/lib/rubygems/util/licenses.rb +14 -0
  169. data/lib/rubygems/util/list.rb +1 -0
  170. data/lib/rubygems/validator.rb +1 -0
  171. data/lib/rubygems/version.rb +5 -1
  172. data/lib/rubygems/version_option.rb +1 -0
  173. data/lib/ubygems.rb +1 -0
  174. data/setup.rb +1 -0
  175. data/test/rubygems/bad_rake.rb +1 -0
  176. data/test/rubygems/bogussources.rb +1 -0
  177. data/test/rubygems/fake_certlib/openssl.rb +1 -0
  178. data/test/rubygems/fix_openssl_warnings.rb +1 -0
  179. data/test/rubygems/foo/discover.rb +1 -0
  180. data/test/rubygems/good_rake.rb +1 -0
  181. data/test/rubygems/plugin/exception/rubygems_plugin.rb +1 -0
  182. data/test/rubygems/plugin/load/rubygems_plugin.rb +1 -0
  183. data/test/rubygems/plugin/standarderror/rubygems_plugin.rb +1 -0
  184. data/test/rubygems/rubygems/commands/crash_command.rb +1 -0
  185. data/test/rubygems/rubygems_plugin.rb +1 -0
  186. data/test/rubygems/sff/discover.rb +1 -0
  187. data/test/rubygems/simple_gem.rb +1 -0
  188. data/test/rubygems/test_bundled_ca.rb +39 -40
  189. data/test/rubygems/test_config.rb +1 -0
  190. data/test/rubygems/test_deprecate.rb +1 -0
  191. data/test/rubygems/test_gem.rb +1 -1
  192. data/test/rubygems/test_gem_available_set.rb +1 -0
  193. data/test/rubygems/test_gem_command.rb +1 -0
  194. data/test/rubygems/test_gem_command_manager.rb +1 -0
  195. data/test/rubygems/test_gem_commands_build_command.rb +11 -0
  196. data/test/rubygems/test_gem_commands_cert_command.rb +1 -0
  197. data/test/rubygems/test_gem_commands_check_command.rb +1 -0
  198. data/test/rubygems/test_gem_commands_cleanup_command.rb +1 -0
  199. data/test/rubygems/test_gem_commands_contents_command.rb +1 -0
  200. data/test/rubygems/test_gem_commands_dependency_command.rb +1 -0
  201. data/test/rubygems/test_gem_commands_environment_command.rb +1 -0
  202. data/test/rubygems/test_gem_commands_fetch_command.rb +1 -0
  203. data/test/rubygems/test_gem_commands_generate_index_command.rb +1 -0
  204. data/test/rubygems/test_gem_commands_help_command.rb +1 -0
  205. data/test/rubygems/test_gem_commands_install_command.rb +1 -0
  206. data/test/rubygems/test_gem_commands_list_command.rb +1 -0
  207. data/test/rubygems/test_gem_commands_lock_command.rb +1 -0
  208. data/test/rubygems/test_gem_commands_mirror.rb +1 -0
  209. data/test/rubygems/test_gem_commands_open_command.rb +1 -0
  210. data/test/rubygems/test_gem_commands_outdated_command.rb +1 -0
  211. data/test/rubygems/test_gem_commands_owner_command.rb +1 -0
  212. data/test/rubygems/test_gem_commands_pristine_command.rb +1 -0
  213. data/test/rubygems/test_gem_commands_push_command.rb +28 -0
  214. data/test/rubygems/test_gem_commands_query_command.rb +24 -0
  215. data/test/rubygems/test_gem_commands_search_command.rb +1 -0
  216. data/test/rubygems/test_gem_commands_server_command.rb +1 -0
  217. data/test/rubygems/test_gem_commands_setup_command.rb +1 -1
  218. data/test/rubygems/test_gem_commands_sources_command.rb +1 -0
  219. data/test/rubygems/test_gem_commands_specification_command.rb +1 -0
  220. data/test/rubygems/test_gem_commands_stale_command.rb +1 -0
  221. data/test/rubygems/test_gem_commands_uninstall_command.rb +1 -0
  222. data/test/rubygems/test_gem_commands_unpack_command.rb +1 -0
  223. data/test/rubygems/test_gem_commands_update_command.rb +1 -0
  224. data/test/rubygems/test_gem_commands_which_command.rb +1 -0
  225. data/test/rubygems/test_gem_commands_yank_command.rb +13 -10
  226. data/test/rubygems/test_gem_config_file.rb +24 -0
  227. data/test/rubygems/test_gem_dependency.rb +1 -0
  228. data/test/rubygems/test_gem_dependency_installer.rb +1 -0
  229. data/test/rubygems/test_gem_dependency_list.rb +1 -0
  230. data/test/rubygems/test_gem_dependency_resolution_error.rb +1 -0
  231. data/test/rubygems/test_gem_doctor.rb +1 -0
  232. data/test/rubygems/test_gem_ext_builder.rb +6 -1
  233. data/test/rubygems/test_gem_ext_cmake_builder.rb +1 -0
  234. data/test/rubygems/test_gem_ext_configure_builder.rb +1 -0
  235. data/test/rubygems/test_gem_ext_ext_conf_builder.rb +1 -0
  236. data/test/rubygems/test_gem_ext_rake_builder.rb +1 -0
  237. data/test/rubygems/test_gem_gem_runner.rb +1 -0
  238. data/test/rubygems/test_gem_gemcutter_utilities.rb +1 -0
  239. data/test/rubygems/test_gem_impossible_dependencies_error.rb +1 -0
  240. data/test/rubygems/test_gem_indexer.rb +1 -0
  241. data/test/rubygems/test_gem_install_update_options.rb +13 -0
  242. data/test/rubygems/test_gem_installer.rb +17 -4
  243. data/test/rubygems/test_gem_local_remote_options.rb +1 -0
  244. data/test/rubygems/test_gem_name_tuple.rb +1 -0
  245. data/test/rubygems/test_gem_package.rb +16 -9
  246. data/test/rubygems/test_gem_package_old.rb +1 -0
  247. data/test/rubygems/test_gem_package_tar_header.rb +1 -0
  248. data/test/rubygems/test_gem_package_tar_reader.rb +1 -0
  249. data/test/rubygems/test_gem_package_tar_reader_entry.rb +2 -1
  250. data/test/rubygems/test_gem_package_tar_writer.rb +1 -0
  251. data/test/rubygems/test_gem_package_task.rb +1 -0
  252. data/test/rubygems/test_gem_path_support.rb +1 -0
  253. data/test/rubygems/test_gem_platform.rb +1 -0
  254. data/test/rubygems/test_gem_rdoc.rb +1 -0
  255. data/test/rubygems/test_gem_remote_fetcher.rb +1 -0
  256. data/test/rubygems/test_gem_request.rb +1 -0
  257. data/test/rubygems/test_gem_request_connection_pools.rb +1 -0
  258. data/test/rubygems/test_gem_request_set.rb +3 -2
  259. data/test/rubygems/test_gem_request_set_gem_dependency_api.rb +34 -45
  260. data/test/rubygems/test_gem_request_set_lockfile.rb +1 -0
  261. data/test/rubygems/test_gem_request_set_lockfile_parser.rb +9 -3
  262. data/test/rubygems/test_gem_request_set_lockfile_tokenizer.rb +1 -0
  263. data/test/rubygems/test_gem_requirement.rb +1 -0
  264. data/test/rubygems/test_gem_resolver.rb +1 -0
  265. data/test/rubygems/test_gem_resolver_activation_request.rb +1 -0
  266. data/test/rubygems/test_gem_resolver_api_set.rb +1 -0
  267. data/test/rubygems/test_gem_resolver_api_specification.rb +1 -0
  268. data/test/rubygems/test_gem_resolver_best_set.rb +1 -0
  269. data/test/rubygems/test_gem_resolver_composed_set.rb +1 -0
  270. data/test/rubygems/test_gem_resolver_conflict.rb +1 -0
  271. data/test/rubygems/test_gem_resolver_dependency_request.rb +1 -0
  272. data/test/rubygems/test_gem_resolver_git_set.rb +1 -0
  273. data/test/rubygems/test_gem_resolver_git_specification.rb +1 -0
  274. data/test/rubygems/test_gem_resolver_index_set.rb +1 -0
  275. data/test/rubygems/test_gem_resolver_index_specification.rb +1 -0
  276. data/test/rubygems/test_gem_resolver_installed_specification.rb +1 -0
  277. data/test/rubygems/test_gem_resolver_installer_set.rb +1 -0
  278. data/test/rubygems/test_gem_resolver_local_specification.rb +1 -0
  279. data/test/rubygems/test_gem_resolver_lock_set.rb +1 -0
  280. data/test/rubygems/test_gem_resolver_lock_specification.rb +7 -6
  281. data/test/rubygems/test_gem_resolver_requirement_list.rb +1 -0
  282. data/test/rubygems/test_gem_resolver_specification.rb +1 -0
  283. data/test/rubygems/test_gem_resolver_vendor_set.rb +1 -0
  284. data/test/rubygems/test_gem_resolver_vendor_specification.rb +1 -0
  285. data/test/rubygems/test_gem_security.rb +1 -0
  286. data/test/rubygems/test_gem_security_policy.rb +1 -0
  287. data/test/rubygems/test_gem_security_signer.rb +1 -0
  288. data/test/rubygems/test_gem_security_trust_dir.rb +1 -0
  289. data/test/rubygems/test_gem_server.rb +1 -0
  290. data/test/rubygems/test_gem_silent_ui.rb +1 -0
  291. data/test/rubygems/test_gem_source.rb +1 -0
  292. data/test/rubygems/test_gem_source_fetch_problem.rb +1 -0
  293. data/test/rubygems/test_gem_source_git.rb +1 -0
  294. data/test/rubygems/test_gem_source_installed.rb +1 -0
  295. data/test/rubygems/test_gem_source_list.rb +1 -0
  296. data/test/rubygems/test_gem_source_local.rb +1 -0
  297. data/test/rubygems/test_gem_source_lock.rb +1 -0
  298. data/test/rubygems/test_gem_source_specific_file.rb +1 -0
  299. data/test/rubygems/test_gem_source_vendor.rb +1 -0
  300. data/test/rubygems/test_gem_spec_fetcher.rb +1 -0
  301. data/test/rubygems/test_gem_specification.rb +80 -64
  302. data/test/rubygems/test_gem_stream_ui.rb +1 -0
  303. data/test/rubygems/test_gem_stub_specification.rb +1 -0
  304. data/test/rubygems/test_gem_text.rb +1 -0
  305. data/test/rubygems/test_gem_uninstaller.rb +1 -0
  306. data/test/rubygems/test_gem_unsatisfiable_dependency_error.rb +1 -0
  307. data/test/rubygems/test_gem_uri_formatter.rb +1 -0
  308. data/test/rubygems/test_gem_util.rb +1 -0
  309. data/test/rubygems/test_gem_validator.rb +1 -0
  310. data/test/rubygems/test_gem_version.rb +1 -0
  311. data/test/rubygems/test_gem_version_option.rb +1 -0
  312. data/test/rubygems/test_kernel.rb +1 -0
  313. data/test/rubygems/test_require.rb +2 -1
  314. data/util/create_certs.rb +1 -0
  315. data/util/create_encrypted_key.rb +1 -0
  316. data/util/generate_spdx_license_list.rb +15 -0
  317. data/util/update_bundled_ca_certificates.rb +1 -1
  318. metadata +12 -28
  319. checksums.yaml.gz.sig +0 -0
  320. data.tar.gz.sig +0 -0
  321. data/.gemtest +0 -0
  322. metadata.gz.sig +0 -2
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 2a8f0806e772b0fd07258556709de623f75d0614
4
- data.tar.gz: 08f55fd0671659873c7af22435ecfa9e852636ca
3
+ metadata.gz: c7a47cbfb82b12348825937adf26e751760d82c5
4
+ data.tar.gz: 9af93cb24d58f63dcf049af89ec9f8a4f2b50501
5
5
  SHA512:
6
- metadata.gz: de055f8e3f751b3ab5b3b138a488089df9891df5dc8e97f5cf5a11df67d120cb9e7e2d348a699e1de43bb940484f76dbe76116da02f357355f2c9d9283ddfb14
7
- data.tar.gz: a2fdc146da6f5f44eecfffe93a2412d04eb7423b96a2cd4fe0983b66f8ca6e7e8ee6c4707d673d7fa87ea607e8bc5102a4d1d52be71d163f7bf1ae21fff1c1da
6
+ metadata.gz: b2b09e3eb5ebb5c45221f0276d9d027a9eab4ab6ed4b57cb8482a846f508adbc19e423d7a63104a3eabd23affc49570d64380f8884354bbf6fff5e7daf9b249e
7
+ data.tar.gz: 701530716e4a95ab496ec65d22b2b38f74e43a6ebe022be5183aefcc2ec075b926628c0a931c52d0262f4f35ad3d96fb6c1d081a2133bbdcaced4f71df204d0c
@@ -0,0 +1,46 @@
1
+ ---
2
+ after_script:
3
+ - rake travis:after -t
4
+ before_script:
5
+ - gem uninstall executable-hooks gem-wrappers -x --force -i `gem env home`@global
6
+ - gem install rake --no-document
7
+ - gem install hoe-travis --no-document
8
+ - gem install minitest -v '~> 4.7' --no-document
9
+ - rake travis:before -t
10
+ - gem list --details
11
+ - gem env
12
+ language: ruby
13
+ notifications:
14
+ email:
15
+ - drbrain@segment7.net
16
+ - evan+notify@phx.io
17
+ rvm:
18
+ - 1.8.7
19
+ - 1.9.2
20
+ - 1.9.3
21
+ - 2.0.0
22
+ - 2.1.7
23
+ - 2.2.3
24
+ - 2.3.0
25
+ - ruby-head
26
+ env:
27
+ - "YAML=syck"
28
+ - "YAML=psych"
29
+ script: rake travis
30
+ matrix:
31
+ exclude:
32
+ - rvm: 1.8.7
33
+ env: "YAML=psych"
34
+ - rvm: 2.0.0
35
+ env: "YAML=syck"
36
+ - rvm: 2.1.7
37
+ env: "YAML=syck"
38
+ - rvm: 2.2.3
39
+ env: "YAML=syck"
40
+ - rvm: 2.3.0
41
+ env: "YAML=syck"
42
+ - rvm: ruby-head
43
+ env: "YAML=syck"
44
+ allow_failures:
45
+ - rvm: ruby-head
46
+ sudo: false
@@ -23,36 +23,107 @@ here: http://guides.rubygems.org/contributing/
23
23
 
24
24
  == Getting Started
25
25
 
26
- Run:
27
-
28
26
  $ gem install hoe
29
27
  $ rake newb
30
28
 
31
- After `rake newb` finishes you can run `rake` to run the tests.
32
-
33
- == Issues
34
-
35
- RubyGems uses milestones and labels to track issues and pull requests.
29
+ To run commands like `gem install` from the repo:
36
30
 
37
- A new milestone is created for each feature release. New features will be
38
- merged (for a pull request) or implemented when "enough" have accumulated.
39
- Upon release the milestone will be closed. Bug fixes are added to the next
40
- feature release milestone and merged or fixed and released as-needed. Bug fix
41
- releases use the previous feature release minor version number.
31
+ $ ruby -Ilib bin/gem install
42
32
 
43
- Issues in the "Unfulfilled Promises and Broken Dreams" milestone are looking
44
- for implementors. It is highly unlikely they will be implemented by RubyGems
45
- committers. They may be closed after one year.
46
-
47
- Issues in the "Future" milestone are more likely to be implemented by RubyGems
48
- committers. They are triaged with each new feature release and either move to
49
- the new version numbered milestone, left in "Future" or moved to "Unfulfilled
50
- Promises and Broken Dreams". They may be closed after one year.
51
-
52
- Issues with accepted status in a feature release milestone have been reviewed
53
- and triaged and are scheduled for a fix or implementation.
54
-
55
- Issues with the feedback status may be closed one week after a request for more
56
- information from a collaborator. They will be reopened when more information
57
- becomes available.
33
+ == Issues
58
34
 
35
+ RubyGems uses labels to track all issues and pull requests. In order to provide
36
+ guidance to the community this is documentation of how labels are used in the
37
+ rubygems repository.
38
+
39
+ === Type
40
+
41
+ Most Issues or pull requests will have one of these labels, which describes the
42
+ type of the issue or pull request.
43
+
44
+ * <b>bug report</b> - An issue describing a bug in rubygems. This would be something
45
+ that is broken, confusing, unexpected behavior etc.
46
+ * <b>bugfix</b> - A pull request that fixes a bug report.
47
+ * <b>feature request</b> - An issue describing a request for a new feature or
48
+ enhancement.
49
+ * <b>feature implementation</b> - A pull request implementing a feature request.
50
+ * <b>question</b> - An issue that is a more of a question than a call for specific
51
+ changes in the codebase.
52
+ * <b>cleanup</b> - Generally for a pull request that improves the code base without
53
+ fixing a bug or implementing a feature.
54
+ * <b>major bump</b> - This issue or pull request requires a major version bump
55
+ * <b>administrative</b> - This issue relates to adminstrative tasks that need to
56
+ take place as it relates to rubygems
57
+
58
+ Bug report and Bugfix have the same color. And feature implementation and
59
+ feature request have the same color since they are related labels.
60
+
61
+ === Workflow
62
+
63
+ These are labels that indicate the state of an issue, where it is in the process
64
+ from being submitted to being closed. These are listed in rough progression
65
+ order from submitted to closed.
66
+
67
+ * <b>triage</b> - This is an issue or pull request that needs to be properly
68
+ labeled by by a maintainer.
69
+ * <b>accepted</b> - This issue / pull request has been accepted as valid and
70
+ will be worked on by someone.
71
+ * <b>ready for work</b> - An issue that is available for collaboration. This issue
72
+ should have existing discussion on the problem, and a description of how to go
73
+ about solving it. This label should be removed once someone has said they are
74
+ going to work on it.
75
+ * <b>claimed</b> - An issue that is claimed by a member of the community and is
76
+ working on it. If the member can be assigned to the issue, they should be.
77
+ * <b>feedback</b>- This issue/pull request is waiting on feedback from
78
+ one ore more of the folks involved in the issue. Generally their should be an
79
+ <tt>@username/team</tt> in the issue indicating who should respond.
80
+ * <b>blocked</b> - the issue/pull request is currently unable to move forward because
81
+ of some specific reason, generally this will be a reason that is outside
82
+ RubyGems or needs feedback from some specific individual or group, and it may
83
+ be a while before something it is resolved.
84
+
85
+ Feedback and blocked all have the same color since they are all waiting on
86
+ someone in particular to do something.
87
+
88
+ === Inactive Reason
89
+
90
+ Reasons are why an issue / pull request was closed without being worked on or
91
+ accepted. There should also be more detailed information in the comments.
92
+
93
+ * *duplicate* - This is a duplicate of an existing bug. The comments must
94
+ reference the existing issue.
95
+ * *abandonded* - This is an issue/pull request that has aged off, is no longer
96
+ applicable or similar.
97
+ * *declined* - An issue that won't be fixed/implemented or a pull request that
98
+ is not accepted.
99
+ * *deprecated* - An issue/pull request that no longer applies to the actively
100
+ maintained codebase.
101
+
102
+ All the reason labels are the same maroon color.
103
+
104
+ === Categories
105
+
106
+ These are aspects of the codebase, or what general area the issue or pull
107
+ request pertains too. Not all issues will have a category.
108
+
109
+ * <b>gemspec</b> - related to the gem specification itself
110
+ * <b>API</b> - related to the public supported rubygems API. This is the code api,
111
+ not a network related API.
112
+ * <b>command</b> - related to something in <tt>Gem::Commands</tt>
113
+ * <b>install</b> - related to gem installations
114
+ * <b>documentation</b> - related to updating / fixing / clarifiying documentation or
115
+ guides
116
+
117
+ All category labels are the same blue color.
118
+
119
+ === Platforms
120
+
121
+ If an issue or pull request pertains to only one platform, then it should have
122
+ an appropriate platform tag.
123
+
124
+ * *windows*
125
+ * *java*
126
+ * *osx*
127
+ * *linux*
128
+
129
+ All platform tags are the same purple color.
@@ -1,5 +1,48 @@
1
1
  # coding: UTF-8
2
2
 
3
+ === 2.5.2 / 2016-01-31
4
+
5
+ Bug fixes:
6
+
7
+ * Fix memoization of Gem::Version#prerelease? Pull request #1125 by Matijs van
8
+ Zuijlen.
9
+ * Handle trailing colons in GEM_PATH, by Damien Robert.
10
+ * Improve the Gemfile `gemspec` method, fixing #1204 and #1033. Pull request
11
+ #1276 by Michael Papis.
12
+ * Warn only once when a gemspec license is invalid. Pull request #1414 by Samuel
13
+ E. Giddins.
14
+ * Check for exact constants before using them, fixing Ruby bug #11940. Pull
15
+ request #1438 by Nobuyoshi Nakada.
16
+ * Fix building C extensions on Ruby 1.9.x on Windows. Pull request #1453 by Marie
17
+ Markwell.
18
+ * Handle symlinks containing ".." correctly. Pull request #1457 by Samuel E.
19
+ Giddins.
20
+
21
+ Minor enhancements:
22
+
23
+ * Add `--no-rc` flag, which skips loading `.gemrc`. Pull request #1329 by Luis
24
+ Sagastume.
25
+ * Allow basic auth to be excluded from `allowed_push_host`. By Josh Lane.
26
+ * Add `gem list --exact`, which finds gems by string match instead of regex. Pull
27
+ request #1344 by Luis Sagastume.
28
+ * Suggest alternatives when gem license is unknown. Pull request #1443 by Samuel
29
+ E. Giddins.
30
+ * Print a useful error if a binstub expects a newer version of a gem than is
31
+ installed. Pull request #1407 by Samuel E. Giddins.
32
+ * Allow the (supported) s3:// scheme to be used with `--source`. Pull request
33
+ #1416 by Dave Adams.
34
+ * Add `--[no-]post-install-message` to `install` and `update`. Pull request #1162
35
+ by Josef Šimánek.
36
+ * Add `--host` option to `yank`, providing symmetry with `pull`. Pull request
37
+ #1361 by Mike Virata-Stone.
38
+ * Update bundled Molinillo to 0.4.1. Pull request #1452 by Samuel E. Giddins.
39
+ * Allow calling `build` without '.gemspec'. Pull request #1454 by Stephen
40
+ Blackstone.
41
+ * Add support for `source` option on gems in Gemfile. Pull request #1355 by
42
+ Michael Papis.
43
+ * Function correctly when string literals are frozen on Ruby 2.3. Pull request
44
+ #1408 by Samuel E. Giddins.
45
+
3
46
  === 2.5.1 / 2015-12-10
4
47
 
5
48
  Bug fixes:
@@ -14,7 +57,7 @@ Bug fixes:
14
57
  request #1314 by Samuel E. Giddins.
15
58
  * Updated bundled Molinillo to 0.4.0. Pull request #1322, #1396 by Samuel E.
16
59
  Giddins.
17
- * Improved performance of spec loading by reducing likelihood of loading he
60
+ * Improved performance of spec loading by reducing likelihood of loading the
18
61
  complete specification. Pull request #1373 by Aaron Patterson.
19
62
  * Improved caching of requirable files Pull request #1377 by Aaron Patterson.
20
63
  * Fixed activation of gems with development dependencies. Pull request #1388
@@ -0,0 +1,4 @@
1
+ André Arko <andre@arko.net> (@indirect)
2
+ Jeremy Hinegardner <jeremy@copiousfreetime.org> (@copiousfreetime)
3
+ Kurtis Rainbolt-Greene <me@kurtisrainboltgreene.name> (@krainboltgreene)
4
+ Samuel Giddins <segiddins@segiddins.me> (@segiddins)
@@ -1,5 +1,6 @@
1
1
  .autotest
2
2
  .document
3
+ .travis.yml
3
4
  CODE_OF_CONDUCT.md
4
5
  CONTRIBUTING.rdoc
5
6
  CVE-2013-4287.txt
@@ -7,8 +8,10 @@ CVE-2013-4363.txt
7
8
  CVE-2015-3900.txt
8
9
  History.txt
9
10
  LICENSE.txt
11
+ MAINTAINERS.md
10
12
  MIT.txt
11
13
  Manifest.txt
14
+ POLICIES.rdoc
12
15
  README.rdoc
13
16
  Rakefile
14
17
  UPGRADING.rdoc
@@ -142,6 +145,7 @@ lib/rubygems/resolver/molinillo/lib/molinillo/resolver.rb
142
145
  lib/rubygems/resolver/molinillo/lib/molinillo/state.rb
143
146
  lib/rubygems/resolver/requirement_list.rb
144
147
  lib/rubygems/resolver/set.rb
148
+ lib/rubygems/resolver/source_set.rb
145
149
  lib/rubygems/resolver/spec_specification.rb
146
150
  lib/rubygems/resolver/specification.rb
147
151
  lib/rubygems/resolver/stats.rb
@@ -0,0 +1,61 @@
1
+ == Long-Term Support
2
+
3
+ RubyGems long-term support policy will be similar to and follow the Ruby
4
+ long-term support policy.
5
+
6
+ When a Ruby version reaches end-of-life, the RubyGems version included in that
7
+ release will also reach end-of-life. After that date no security releases will
8
+ be made for RubyGems releases up to the version shipped in the next release of
9
+ Ruby.
10
+
11
+ For example, Ruby 1.9.3 reached end-of-life on 23 February 2015. RubyGems
12
+ version 2.0.0 shipped with Ruby 2.0.0, so no RubyGems versions earlier than
13
+ 2.0.0 will receive any updates. Ruby 2.1.0 shipped with RubyGems 2.2.0. When
14
+ Ruby 2.0.0 reaches end-of-life no RubyGems versions earlier than 2.2.0 will
15
+ receive any updates.
16
+
17
+ === Security Fixes
18
+
19
+ Security releases will be made for RubyGems version series that were included
20
+ in a Ruby release.
21
+
22
+ For example, RubyGems 2.0.x will recieve security fixes until Ruby 2.0.0
23
+ reaches end-of-life.
24
+
25
+ == Release Policies
26
+
27
+ RubyGems primarily makes bug fix releases off of the master branch. We may mix
28
+ bug fixes and new features in the same release. RubyGems does not guarantee
29
+ it will make bug fix releases for earlier versions.
30
+
31
+ For example, RubyGems 2.5.0 was recently released. RubyGems does not
32
+ guarantee any non-security bugfix releases will be made upon the 2.4.x series,
33
+ or any earlier series, of releases.
34
+
35
+ Additionally, when a Ruby version reaches end-of-life the following release of
36
+ RubyGems will no longer be required to maintain backwards compatibility with
37
+ that Ruby version. This may result in a major version change.
38
+
39
+ For example, since Ruby 1.9.3 has reached end-of-life, RubyGems may use
40
+ features of ruby that only exist in Ruby 2.0 and later. As of this writing
41
+ RubyGems is 2.5.x, so the RubyGems version would become 3.x if it used
42
+ features only available in Ruby 2.0 and later.
43
+
44
+ == Committer Access
45
+
46
+ RubyGems committers may lose their commit privileges if they are inactive for
47
+ longer than 12 months. Committer permission may be restored upon request by
48
+ having a pull request merged.
49
+
50
+ This is designed to improve the maintainability of RubyGems by requiring
51
+ committers to maintain familiarity with RubyGems activity and to improve the
52
+ security of RubyGems by preventing idle committers from having their commit
53
+ permissions compromised or exposed.
54
+
55
+ == Changing These Policies
56
+
57
+ These policies were set in order to reduce the burden of maintenance and to
58
+ keep committers current with existing development and policies. RubyGems work
59
+ is primarily volunteer-driven which limits the ability to provide long-term
60
+ support. By funding RubyTogether you can help extend support for older
61
+ RubyGems versions.
@@ -6,6 +6,7 @@ branches:
6
6
  clone_depth: 10
7
7
  install:
8
8
  - SET PATH=C:\Ruby%ruby_version%\bin;%PATH%
9
+ - SET GEM_HOME=%APPDATA%\.gem
9
10
  - ruby --version
10
11
  - gem --version
11
12
  - gem install rake --no-rdoc --no-ri
@@ -24,8 +25,12 @@ after_test:
24
25
 
25
26
  environment:
26
27
  matrix:
27
- - ruby_version: "193"
28
+ # FIXME: Tests don't even run on Ruby 1.9.3 on Windows on Appveyor.
29
+ # See: https://github.com/rubygems/rubygems/issues/1270
30
+ #- ruby_version: "193"
28
31
  - ruby_version: "200"
29
32
  - ruby_version: "200-x64"
30
33
  - ruby_version: "21"
31
34
  - ruby_version: "21-x64"
35
+ - ruby_version: "22"
36
+ - ruby_version: "22-x64"
@@ -1,3 +1,4 @@
1
+ # frozen_string_literal: true
1
2
  require 'rubygems'
2
3
  require 'gauntlet'
3
4
 
@@ -1,3 +1,4 @@
1
+ # frozen_string_literal: true
1
2
  # -*- ruby -*-
2
3
  #--
3
4
  # Copyright 2006 by Chad Fowler, Rich Kilmer, Jim Weirich and others.
@@ -9,7 +10,7 @@ require 'rbconfig'
9
10
  require 'thread'
10
11
 
11
12
  module Gem
12
- VERSION = '2.5.1'
13
+ VERSION = '2.5.2'
13
14
  end
14
15
 
15
16
  # Must be first since it unloads the prelude from 1.9.2
@@ -238,7 +239,7 @@ module Gem
238
239
  specs = dep.matching_specs(true)
239
240
 
240
241
  raise Gem::GemNotFoundException,
241
- "can't find gem #{name} (#{requirements})" if specs.empty?
242
+ "can't find gem #{dep}" if specs.empty?
242
243
 
243
244
  specs = specs.find_all { |spec|
244
245
  spec.executables.include? exec_name
@@ -1,3 +1,4 @@
1
+ # frozen_string_literal: true
1
2
  class Gem::AvailableSet
2
3
 
3
4
  include Enumerable
@@ -1,3 +1,4 @@
1
+ # frozen_string_literal: true
1
2
  ##
2
3
  # BasicSpecification is an abstract class which implements some common code
3
4
  # used by both Specification and StubSpecification.
@@ -124,9 +125,9 @@ class Gem::BasicSpecification
124
125
 
125
126
  def full_name
126
127
  if platform == Gem::Platform::RUBY or platform.nil? then
127
- "#{name}-#{version}".untaint
128
+ "#{name}-#{version}".dup.untaint
128
129
  else
129
- "#{name}-#{version}-#{platform}".untaint
130
+ "#{name}-#{version}-#{platform}".dup.untaint
130
131
  end
131
132
  end
132
133
 
@@ -281,7 +282,7 @@ class Gem::BasicSpecification
281
282
  self.require_paths.first
282
283
  end
283
284
 
284
- "#{self.full_gem_path}/#{dirs}".untaint
285
+ "#{self.full_gem_path}/#{dirs}".dup.untaint
285
286
  end
286
287
 
287
288
  ##
@@ -325,4 +326,3 @@ class Gem::BasicSpecification
325
326
  end
326
327
 
327
328
  end
328
-
@@ -1,3 +1,4 @@
1
+ # frozen_string_literal: true
1
2
  #--
2
3
  # Copyright 2006 by Chad Fowler, Rich Kilmer, Jim Weirich and others.
3
4
  # All rights reserved.
@@ -153,7 +154,7 @@ class Gem::Command
153
154
 
154
155
  def show_lookup_failure(gem_name, version, errors, domain)
155
156
  if errors and !errors.empty?
156
- msg = "Could not find a valid gem '#{gem_name}' (#{version}), here is why:\n"
157
+ msg = "Could not find a valid gem '#{gem_name}' (#{version}), here is why:\n".dup
157
158
  errors.each { |x| msg << " #{x.wordy}\n" }
158
159
  alert_error msg
159
160
  else
@@ -539,6 +540,11 @@ class Gem::Command
539
540
  'Turn on Ruby debugging') do
540
541
  end
541
542
 
543
+ add_common_option('--norc',
544
+ 'Avoid loading any .gemrc file') do
545
+ end
546
+
547
+
542
548
  # :stopdoc:
543
549
 
544
550
  HELP = <<-HELP
@@ -579,4 +585,3 @@ end
579
585
 
580
586
  module Gem::Commands
581
587
  end
582
-