rubygems-update 3.1.4 → 3.2.0.rc.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (343) hide show
  1. checksums.yaml +4 -4
  2. data/CODE_OF_CONDUCT.md +55 -19
  3. data/CONTRIBUTING.md +1 -2
  4. data/History.txt +130 -5
  5. data/Manifest.txt +10 -23
  6. data/POLICIES.md +2 -9
  7. data/README.md +1 -1
  8. data/Rakefile +30 -32
  9. data/bin/update_rubygems +1 -1
  10. data/bundler/CHANGELOG.md +806 -741
  11. data/bundler/README.md +6 -8
  12. data/bundler/UPGRADING.md +16 -30
  13. data/bundler/bundler.gemspec +3 -3
  14. data/bundler/exe/bundle +3 -0
  15. data/bundler/lib/bundler.rb +15 -4
  16. data/bundler/lib/bundler/build_metadata.rb +2 -2
  17. data/bundler/lib/bundler/cli.rb +32 -11
  18. data/bundler/lib/bundler/cli/console.rb +1 -1
  19. data/bundler/lib/bundler/cli/gem.rb +83 -10
  20. data/bundler/lib/bundler/cli/info.rb +13 -3
  21. data/bundler/lib/bundler/cli/init.rb +1 -1
  22. data/bundler/lib/bundler/cli/install.rb +5 -14
  23. data/bundler/lib/bundler/cli/issue.rb +2 -2
  24. data/bundler/lib/bundler/cli/list.rb +11 -9
  25. data/bundler/lib/bundler/cli/outdated.rb +88 -65
  26. data/bundler/lib/bundler/cli/plugin.rb +10 -0
  27. data/bundler/lib/bundler/cli/pristine.rb +5 -0
  28. data/bundler/lib/bundler/definition.rb +32 -32
  29. data/bundler/lib/bundler/dependency.rb +0 -9
  30. data/bundler/lib/bundler/dsl.rb +1 -5
  31. data/bundler/lib/bundler/environment_preserver.rb +26 -2
  32. data/bundler/lib/bundler/errors.rb +1 -0
  33. data/bundler/lib/bundler/feature_flag.rb +0 -2
  34. data/bundler/lib/bundler/fetcher.rb +1 -0
  35. data/bundler/lib/bundler/friendly_errors.rb +4 -10
  36. data/bundler/lib/bundler/gem_helper.rb +17 -10
  37. data/bundler/lib/bundler/gem_version_promoter.rb +1 -1
  38. data/bundler/lib/bundler/injector.rb +14 -3
  39. data/bundler/lib/bundler/inline.rb +1 -1
  40. data/bundler/lib/bundler/installer.rb +29 -28
  41. data/bundler/lib/bundler/installer/gem_installer.rb +2 -2
  42. data/bundler/lib/bundler/installer/parallel_installer.rb +9 -9
  43. data/bundler/lib/bundler/lazy_specification.rb +16 -3
  44. data/bundler/lib/bundler/plugin.rb +26 -0
  45. data/bundler/lib/bundler/plugin/index.rb +9 -0
  46. data/bundler/lib/bundler/psyched_yaml.rb +0 -15
  47. data/bundler/lib/bundler/remote_specification.rb +4 -1
  48. data/bundler/lib/bundler/resolver.rb +31 -8
  49. data/bundler/lib/bundler/resolver/spec_group.rb +26 -5
  50. data/bundler/lib/bundler/rubygems_ext.rb +7 -8
  51. data/bundler/lib/bundler/rubygems_gem_installer.rb +1 -7
  52. data/bundler/lib/bundler/rubygems_integration.rb +3 -48
  53. data/bundler/lib/bundler/runtime.rb +2 -12
  54. data/bundler/lib/bundler/settings.rb +0 -3
  55. data/bundler/lib/bundler/shared_helpers.rb +1 -1
  56. data/bundler/lib/bundler/source/git.rb +4 -4
  57. data/bundler/lib/bundler/source/git/git_proxy.rb +53 -58
  58. data/bundler/lib/bundler/source/path.rb +5 -1
  59. data/bundler/lib/bundler/source/path/installer.rb +7 -9
  60. data/bundler/lib/bundler/source/rubygems.rb +11 -14
  61. data/bundler/lib/bundler/stub_specification.rb +16 -4
  62. data/bundler/lib/bundler/templates/newgem/CODE_OF_CONDUCT.md.tt +57 -47
  63. data/bundler/lib/bundler/templates/newgem/Gemfile.tt +9 -1
  64. data/bundler/lib/bundler/templates/newgem/Rakefile.tt +19 -5
  65. data/bundler/lib/bundler/templates/newgem/bin/console.tt +2 -0
  66. data/bundler/lib/bundler/templates/newgem/circleci/config.yml.tt +13 -0
  67. data/bundler/lib/bundler/templates/newgem/ext/newgem/extconf.rb.tt +2 -0
  68. data/bundler/lib/bundler/templates/newgem/github/workflows/main.yml.tt +18 -0
  69. data/bundler/lib/bundler/templates/newgem/gitlab-ci.yml.tt +9 -0
  70. data/bundler/lib/bundler/templates/newgem/lib/newgem.rb.tt +2 -0
  71. data/bundler/lib/bundler/templates/newgem/lib/newgem/version.rb.tt +2 -0
  72. data/bundler/lib/bundler/templates/newgem/newgem.gemspec.tt +6 -4
  73. data/bundler/lib/bundler/templates/newgem/rubocop.yml.tt +10 -0
  74. data/bundler/lib/bundler/templates/newgem/spec/newgem_spec.rb.tt +2 -0
  75. data/bundler/lib/bundler/templates/newgem/spec/spec_helper.rb.tt +2 -0
  76. data/bundler/lib/bundler/templates/newgem/test/{newgem_test.rb.tt → minitest/newgem_test.rb.tt} +2 -0
  77. data/bundler/lib/bundler/templates/newgem/test/{test_helper.rb.tt → minitest/test_helper.rb.tt} +2 -0
  78. data/bundler/lib/bundler/templates/newgem/test/test-unit/newgem_test.rb.tt +15 -0
  79. data/bundler/lib/bundler/templates/newgem/test/test-unit/test_helper.rb.tt +6 -0
  80. data/bundler/lib/bundler/vendor/net-http-persistent/lib/net/http/persistent.rb +75 -189
  81. data/bundler/lib/bundler/vendor/thor/lib/thor.rb +0 -7
  82. data/bundler/lib/bundler/vendor/thor/lib/thor/actions/create_link.rb +2 -1
  83. data/bundler/lib/bundler/vendor/thor/lib/thor/base.rb +9 -0
  84. data/bundler/lib/bundler/vendor/thor/lib/thor/version.rb +1 -1
  85. data/bundler/lib/bundler/version.rb +1 -1
  86. data/bundler/man/bundle-add.1 +1 -1
  87. data/bundler/man/bundle-add.1.txt +15 -15
  88. data/bundler/man/bundle-binstubs.1 +1 -1
  89. data/bundler/man/bundle-binstubs.1.txt +10 -10
  90. data/bundler/man/bundle-cache.1 +1 -1
  91. data/bundler/man/bundle-cache.1.txt +15 -15
  92. data/bundler/man/bundle-check.1 +1 -1
  93. data/bundler/man/bundle-check.1.txt +8 -8
  94. data/bundler/man/bundle-clean.1 +1 -1
  95. data/bundler/man/bundle-clean.1.txt +6 -6
  96. data/bundler/man/bundle-config.1 +3 -9
  97. data/bundler/man/bundle-config.1.txt +271 -272
  98. data/bundler/man/bundle-config.ronn +5 -9
  99. data/bundler/man/bundle-doctor.1 +1 -1
  100. data/bundler/man/bundle-doctor.1.txt +9 -9
  101. data/bundler/man/bundle-exec.1 +1 -1
  102. data/bundler/man/bundle-exec.1.txt +84 -81
  103. data/bundler/man/bundle-gem.1 +25 -3
  104. data/bundler/man/bundle-gem.1.txt +65 -39
  105. data/bundler/man/bundle-gem.ronn +30 -7
  106. data/bundler/man/bundle-info.1 +1 -1
  107. data/bundler/man/bundle-info.1.txt +2 -2
  108. data/bundler/man/bundle-init.1 +1 -1
  109. data/bundler/man/bundle-init.1.txt +9 -9
  110. data/bundler/man/bundle-inject.1 +1 -1
  111. data/bundler/man/bundle-inject.1.txt +4 -4
  112. data/bundler/man/bundle-install.1 +1 -1
  113. data/bundler/man/bundle-install.1.txt +169 -169
  114. data/bundler/man/bundle-list.1 +7 -7
  115. data/bundler/man/bundle-list.1.txt +12 -11
  116. data/bundler/man/bundle-list.ronn +6 -6
  117. data/bundler/man/bundle-lock.1 +1 -1
  118. data/bundler/man/bundle-lock.1.txt +28 -28
  119. data/bundler/man/bundle-open.1 +1 -1
  120. data/bundler/man/bundle-open.1.txt +3 -3
  121. data/bundler/man/bundle-outdated.1 +1 -1
  122. data/bundler/man/bundle-outdated.1.txt +34 -34
  123. data/bundler/man/bundle-platform.1 +1 -1
  124. data/bundler/man/bundle-platform.1.txt +16 -16
  125. data/bundler/man/bundle-pristine.1 +1 -1
  126. data/bundler/man/bundle-pristine.1.txt +8 -8
  127. data/bundler/man/bundle-remove.1 +1 -1
  128. data/bundler/man/bundle-remove.1.txt +9 -9
  129. data/bundler/man/bundle-show.1 +1 -1
  130. data/bundler/man/bundle-show.1.txt +8 -8
  131. data/bundler/man/bundle-update.1 +1 -1
  132. data/bundler/man/bundle-update.1.txt +149 -148
  133. data/bundler/man/bundle-viz.1 +1 -1
  134. data/bundler/man/bundle-viz.1.txt +11 -11
  135. data/bundler/man/bundle.1 +1 -1
  136. data/bundler/man/bundle.1.txt +31 -31
  137. data/bundler/man/gemfile.5 +1 -1
  138. data/bundler/man/gemfile.5.txt +218 -216
  139. data/lib/rubygems.rb +80 -157
  140. data/lib/rubygems/available_set.rb +4 -4
  141. data/lib/rubygems/basic_specification.rb +11 -5
  142. data/lib/rubygems/bundler_version_finder.rb +14 -9
  143. data/lib/rubygems/command.rb +16 -14
  144. data/lib/rubygems/command_manager.rb +4 -3
  145. data/lib/rubygems/commands/cert_command.rb +1 -1
  146. data/lib/rubygems/commands/cleanup_command.rb +3 -3
  147. data/lib/rubygems/commands/contents_command.rb +4 -4
  148. data/lib/rubygems/commands/dependency_command.rb +6 -6
  149. data/lib/rubygems/commands/fetch_command.rb +2 -2
  150. data/lib/rubygems/commands/help_command.rb +1 -1
  151. data/lib/rubygems/commands/info_command.rb +9 -4
  152. data/lib/rubygems/commands/install_command.rb +3 -3
  153. data/lib/rubygems/commands/list_command.rb +9 -6
  154. data/lib/rubygems/commands/lock_command.rb +1 -1
  155. data/lib/rubygems/commands/open_command.rb +0 -2
  156. data/lib/rubygems/commands/pristine_command.rb +10 -2
  157. data/lib/rubygems/commands/push_command.rb +4 -42
  158. data/lib/rubygems/commands/query_command.rb +7 -352
  159. data/lib/rubygems/commands/search_command.rb +8 -6
  160. data/lib/rubygems/commands/setup_command.rb +128 -32
  161. data/lib/rubygems/commands/specification_command.rb +2 -2
  162. data/lib/rubygems/commands/stale_command.rb +1 -1
  163. data/lib/rubygems/commands/uninstall_command.rb +1 -1
  164. data/lib/rubygems/commands/unpack_command.rb +1 -1
  165. data/lib/rubygems/commands/update_command.rb +40 -10
  166. data/lib/rubygems/config_file.rb +11 -2
  167. data/lib/rubygems/core_ext/kernel_require.rb +26 -36
  168. data/lib/rubygems/defaults.rb +99 -5
  169. data/lib/rubygems/dependency.rb +2 -5
  170. data/lib/rubygems/dependency_installer.rb +1 -73
  171. data/lib/rubygems/dependency_list.rb +7 -7
  172. data/lib/rubygems/deprecate.rb +46 -1
  173. data/lib/rubygems/doctor.rb +4 -2
  174. data/lib/rubygems/errors.rb +3 -2
  175. data/lib/rubygems/exceptions.rb +2 -13
  176. data/lib/rubygems/ext.rb +6 -6
  177. data/lib/rubygems/ext/build_error.rb +2 -0
  178. data/lib/rubygems/ext/builder.rb +1 -1
  179. data/lib/rubygems/ext/cmake_builder.rb +1 -1
  180. data/lib/rubygems/ext/ext_conf_builder.rb +6 -7
  181. data/lib/rubygems/gem_runner.rb +3 -8
  182. data/lib/rubygems/gemcutter_utilities.rb +1 -1
  183. data/lib/rubygems/indexer.rb +1 -19
  184. data/lib/rubygems/install_update_options.rb +5 -5
  185. data/lib/rubygems/installer.rb +45 -42
  186. data/lib/rubygems/installer_test_case.rb +19 -2
  187. data/lib/rubygems/installer_uninstaller_utils.rb +24 -0
  188. data/lib/rubygems/local_remote_options.rb +1 -1
  189. data/lib/rubygems/name_tuple.rb +2 -4
  190. data/lib/rubygems/package.rb +8 -13
  191. data/lib/rubygems/package/old.rb +1 -1
  192. data/lib/rubygems/package/tar_header.rb +3 -3
  193. data/lib/rubygems/package/tar_reader.rb +0 -1
  194. data/lib/rubygems/package/tar_reader/entry.rb +0 -1
  195. data/lib/rubygems/package/tar_test_case.rb +1 -1
  196. data/lib/rubygems/package/tar_writer.rb +2 -6
  197. data/lib/rubygems/package_task.rb +1 -5
  198. data/lib/rubygems/path_support.rb +1 -1
  199. data/lib/rubygems/platform.rb +3 -3
  200. data/lib/rubygems/query_utils.rb +362 -0
  201. data/lib/rubygems/rdoc.rb +0 -12
  202. data/lib/rubygems/remote_fetcher.rb +5 -19
  203. data/lib/rubygems/request/connection_pools.rb +1 -1
  204. data/lib/rubygems/request_set.rb +5 -5
  205. data/lib/rubygems/request_set/gem_dependency_api.rb +1 -1
  206. data/lib/rubygems/request_set/lockfile.rb +8 -8
  207. data/lib/rubygems/request_set/lockfile/tokenizer.rb +1 -1
  208. data/lib/rubygems/requirement.rb +14 -15
  209. data/lib/rubygems/resolver.rb +7 -8
  210. data/lib/rubygems/resolver/api_set.rb +3 -3
  211. data/lib/rubygems/resolver/composed_set.rb +3 -3
  212. data/lib/rubygems/resolver/conflict.rb +1 -1
  213. data/lib/rubygems/resolver/index_set.rb +1 -1
  214. data/lib/rubygems/resolver/installer_set.rb +3 -3
  215. data/lib/rubygems/resolver/lock_set.rb +1 -1
  216. data/lib/rubygems/safe_yaml.rb +4 -4
  217. data/lib/rubygems/security.rb +25 -25
  218. data/lib/rubygems/security/policy.rb +3 -3
  219. data/lib/rubygems/security/signer.rb +4 -4
  220. data/lib/rubygems/security/trust_dir.rb +1 -1
  221. data/lib/rubygems/server.rb +8 -8
  222. data/lib/rubygems/source/git.rb +7 -6
  223. data/lib/rubygems/source/local.rb +2 -2
  224. data/lib/rubygems/source_list.rb +4 -5
  225. data/lib/rubygems/spec_fetcher.rb +18 -15
  226. data/lib/rubygems/specification.rb +79 -104
  227. data/lib/rubygems/specification_policy.rb +79 -27
  228. data/lib/rubygems/test_case.rb +64 -83
  229. data/lib/rubygems/test_utilities.rb +6 -6
  230. data/lib/rubygems/uninstaller.rb +35 -14
  231. data/lib/rubygems/user_interaction.rb +1 -10
  232. data/lib/rubygems/util.rb +10 -2
  233. data/lib/rubygems/util/licenses.rb +4 -4
  234. data/lib/rubygems/validator.rb +1 -1
  235. data/lib/rubygems/version.rb +4 -4
  236. data/rubygems-update.gemspec +2 -2
  237. data/setup.rb +2 -7
  238. data/test/rubygems/specifications/bar-0.0.2.gemspec +0 -2
  239. data/test/rubygems/specifications/rubyforge-0.0.1.gemspec +0 -2
  240. data/test/rubygems/test_bundled_ca.rb +1 -5
  241. data/test/rubygems/test_deprecate.rb +43 -4
  242. data/test/rubygems/test_gem.rb +79 -74
  243. data/test/rubygems/test_gem_available_set.rb +3 -3
  244. data/test/rubygems/test_gem_bundler_version_finder.rb +19 -1
  245. data/test/rubygems/test_gem_command.rb +24 -3
  246. data/test/rubygems/test_gem_command_manager.rb +37 -4
  247. data/test/rubygems/test_gem_commands_build_command.rb +7 -2
  248. data/test/rubygems/test_gem_commands_cert_command.rb +2 -2
  249. data/test/rubygems/test_gem_commands_cleanup_command.rb +1 -1
  250. data/test/rubygems/test_gem_commands_contents_command.rb +48 -15
  251. data/test/rubygems/test_gem_commands_environment_command.rb +21 -21
  252. data/test/rubygems/test_gem_commands_generate_index_command.rb +1 -5
  253. data/test/rubygems/test_gem_commands_info_command.rb +6 -6
  254. data/test/rubygems/test_gem_commands_install_command.rb +31 -31
  255. data/test/rubygems/test_gem_commands_mirror.rb +1 -1
  256. data/test/rubygems/test_gem_commands_open_command.rb +4 -4
  257. data/test/rubygems/test_gem_commands_owner_command.rb +11 -3
  258. data/test/rubygems/test_gem_commands_pristine_command.rb +41 -8
  259. data/test/rubygems/test_gem_commands_push_command.rb +7 -2
  260. data/test/rubygems/test_gem_commands_query_command.rb +9 -5
  261. data/test/rubygems/test_gem_commands_setup_command.rb +160 -108
  262. data/test/rubygems/test_gem_commands_signin_command.rb +6 -4
  263. data/test/rubygems/test_gem_commands_signout_command.rb +0 -5
  264. data/test/rubygems/test_gem_commands_specification_command.rb +18 -18
  265. data/test/rubygems/test_gem_commands_uninstall_command.rb +1 -1
  266. data/test/rubygems/test_gem_commands_update_command.rb +68 -5
  267. data/test/rubygems/test_gem_commands_which_command.rb +3 -3
  268. data/test/rubygems/test_gem_commands_yank_command.rb +14 -6
  269. data/test/rubygems/test_gem_config_file.rb +7 -10
  270. data/test/rubygems/test_gem_dependency_installer.rb +52 -189
  271. data/test/rubygems/test_gem_dependency_list.rb +8 -8
  272. data/test/rubygems/test_gem_dependency_resolution_error.rb +1 -1
  273. data/test/rubygems/test_gem_doctor.rb +28 -0
  274. data/test/rubygems/test_gem_ext_builder.rb +14 -25
  275. data/test/rubygems/test_gem_ext_cmake_builder.rb +13 -12
  276. data/test/rubygems/test_gem_ext_configure_builder.rb +1 -9
  277. data/test/rubygems/test_gem_ext_ext_conf_builder.rb +0 -1
  278. data/test/rubygems/test_gem_ext_rake_builder.rb +9 -9
  279. data/test/rubygems/test_gem_gem_runner.rb +42 -0
  280. data/test/rubygems/test_gem_gemcutter_utilities.rb +5 -0
  281. data/test/rubygems/test_gem_indexer.rb +9 -13
  282. data/test/rubygems/test_gem_installer.rb +149 -45
  283. data/test/rubygems/test_gem_package.rb +13 -12
  284. data/test/rubygems/test_gem_package_tar_header.rb +19 -0
  285. data/test/rubygems/test_gem_package_tar_writer.rb +3 -3
  286. data/test/rubygems/test_gem_package_task.rb +46 -11
  287. data/test/rubygems/test_gem_remote_fetcher.rb +152 -190
  288. data/test/rubygems/test_gem_request.rb +11 -11
  289. data/test/rubygems/test_gem_request_set.rb +20 -20
  290. data/test/rubygems/test_gem_request_set_gem_dependency_api.rb +3 -3
  291. data/test/rubygems/test_gem_request_set_lockfile_parser.rb +9 -9
  292. data/test/rubygems/test_gem_request_set_lockfile_tokenizer.rb +118 -118
  293. data/test/rubygems/test_gem_requirement.rb +2 -2
  294. data/test/rubygems/test_gem_resolver.rb +6 -6
  295. data/test/rubygems/test_gem_resolver_api_set.rb +3 -3
  296. data/test/rubygems/test_gem_resolver_best_set.rb +2 -2
  297. data/test/rubygems/test_gem_resolver_index_set.rb +2 -2
  298. data/test/rubygems/test_gem_resolver_installer_set.rb +7 -7
  299. data/test/rubygems/test_gem_resolver_lock_set.rb +3 -3
  300. data/test/rubygems/test_gem_security.rb +20 -20
  301. data/test/rubygems/test_gem_security_policy.rb +5 -8
  302. data/test/rubygems/test_gem_security_signer.rb +8 -8
  303. data/test/rubygems/test_gem_security_trust_dir.rb +2 -2
  304. data/test/rubygems/test_gem_server.rb +10 -10
  305. data/test/rubygems/test_gem_source.rb +12 -14
  306. data/test/rubygems/test_gem_source_git.rb +12 -11
  307. data/test/rubygems/test_gem_source_installed.rb +7 -7
  308. data/test/rubygems/test_gem_source_local.rb +8 -8
  309. data/test/rubygems/test_gem_source_lock.rb +10 -10
  310. data/test/rubygems/test_gem_source_specific_file.rb +7 -7
  311. data/test/rubygems/test_gem_source_vendor.rb +7 -7
  312. data/test/rubygems/test_gem_spec_fetcher.rb +11 -2
  313. data/test/rubygems/test_gem_specification.rb +143 -113
  314. data/test/rubygems/test_gem_stream_ui.rb +3 -1
  315. data/test/rubygems/test_gem_text.rb +1 -1
  316. data/test/rubygems/test_gem_uninstaller.rb +134 -10
  317. data/test/rubygems/test_gem_util.rb +7 -5
  318. data/test/rubygems/test_gem_version.rb +1 -1
  319. data/test/rubygems/test_kernel.rb +25 -8
  320. data/test/rubygems/test_project_sanity.rb +8 -1
  321. data/test/rubygems/test_require.rb +242 -40
  322. metadata +29 -43
  323. data/.bundle/config +0 -2
  324. data/.rubocop.yml +0 -91
  325. data/Gemfile +0 -8
  326. data/Gemfile.lock +0 -43
  327. data/bundler/CODE_OF_CONDUCT.md +0 -136
  328. data/lib/rubygems/source_local.rb +0 -7
  329. data/lib/rubygems/source_specific_file.rb +0 -6
  330. data/lib/ubygems.rb +0 -14
  331. data/tmp/.keep +0 -0
  332. data/util/CL2notes +0 -55
  333. data/util/bisect +0 -10
  334. data/util/ci.sh +0 -62
  335. data/util/cops/deprecations.rb +0 -52
  336. data/util/create_certs.rb +0 -171
  337. data/util/create_certs.sh +0 -27
  338. data/util/create_encrypted_key.rb +0 -16
  339. data/util/generate_spdx_license_list.rb +0 -63
  340. data/util/patch_with_prs.rb +0 -77
  341. data/util/rubocop +0 -8
  342. data/util/update_bundled_ca_certificates.rb +0 -139
  343. data/util/update_changelog.rb +0 -64
@@ -60,14 +60,37 @@ configuration file using the following names:
60
60
  Do not create a `LICENSE.txt` (overrides `--mit` specified in the global
61
61
  config).
62
62
 
63
- * `-t`, `--test=minitest`, `--test=rspec`:
63
+ * `-t`, `--test=minitest`, `--test=rspec`, `--test=test-unit`:
64
64
  Specify the test framework that Bundler should use when generating the
65
- project. Acceptable values are `minitest` and `rspec`. The `GEM_NAME.gemspec`
66
- will be configured and a skeleton test/spec directory will be created based
67
- on this option. If this option is unspecified, an interactive prompt will be
68
- displayed and the answer will be saved in Bundler's global config for future
69
- `bundle gem` use.
70
- If no option is specified, the default testing framework is RSpec.
65
+ project. Acceptable values are `minitest`, `rspec` and `test-unit`. The
66
+ `GEM_NAME.gemspec` will be configured and a skeleton test/spec directory will
67
+ be created based on this option. Given no option is specified:
68
+
69
+ When Bundler is configured to generate tests, this defaults to Bundler's
70
+ global config setting `gem.test`.
71
+
72
+ When Bundler is configured to not generate tests, an interactive prompt will
73
+ be displayed and the answer will be used for the current rubygem project.
74
+
75
+ When Bundler is unconfigured, an interactive prompt will be displayed and
76
+ the answer will be saved in Bundler's global config for future `bundle gem`
77
+ use.
78
+
79
+ * `--ci`, `--ci=github`, `--ci=travis`, `--ci=gitlab`, `--ci=circle`:
80
+ Specify the continuous integration service that Bundler should use when
81
+ generating the project. Acceptable values are `github`, `travis`, `gitlab`
82
+ and `circle`. A configuration file will be generated in the project directory.
83
+ Given no option is specified:
84
+
85
+ When Bundler is configured to generate CI files, this defaults to Bundler's
86
+ global config setting `gem.ci`.
87
+
88
+ When Bundler is configured to not generate CI files, an interactive prompt
89
+ will be displayed and the answer will be used for the current rubygem project.
90
+
91
+ When Bundler is unconfigured, an interactive prompt will be displayed and
92
+ the answer will be saved in Bundler's global config for future `bundle gem`
93
+ use.
71
94
 
72
95
  * `-e`, `--edit[=EDITOR]`:
73
96
  Open the resulting GEM_NAME.gemspec in EDITOR, or the default editor if not
@@ -1,7 +1,7 @@
1
1
  .\" generated with Ronn/v0.7.3
2
2
  .\" http://github.com/rtomayko/ronn/tree/0.7.3
3
3
  .
4
- .TH "BUNDLE\-INFO" "1" "January 2020" "" ""
4
+ .TH "BUNDLE\-INFO" "1" "July 2020" "" ""
5
5
  .
6
6
  .SH "NAME"
7
7
  \fBbundle\-info\fR \- Show information for the given gem in your bundle
@@ -1,4 +1,4 @@
1
- BUNDLE-INFO(1) BUNDLE-INFO(1)
1
+ BUNDLE-INFO(1) BUNDLE-INFO(1)
2
2
 
3
3
 
4
4
 
@@ -18,4 +18,4 @@ OPTIONS
18
18
 
19
19
 
20
20
 
21
- January 2020 BUNDLE-INFO(1)
21
+ July 2020 BUNDLE-INFO(1)
@@ -1,7 +1,7 @@
1
1
  .\" generated with Ronn/v0.7.3
2
2
  .\" http://github.com/rtomayko/ronn/tree/0.7.3
3
3
  .
4
- .TH "BUNDLE\-INIT" "1" "January 2020" "" ""
4
+ .TH "BUNDLE\-INIT" "1" "July 2020" "" ""
5
5
  .
6
6
  .SH "NAME"
7
7
  \fBbundle\-init\fR \- Generates a Gemfile into the current working directory
@@ -1,4 +1,4 @@
1
- BUNDLE-INIT(1) BUNDLE-INIT(1)
1
+ BUNDLE-INIT(1) BUNDLE-INIT(1)
2
2
 
3
3
 
4
4
 
@@ -9,16 +9,16 @@ SYNOPSIS
9
9
  bundle init [--gemspec=FILE]
10
10
 
11
11
  DESCRIPTION
12
- Init generates a default [Gemfile(5)][Gemfile(5)] in the current work-
13
- ing directory. When adding a [Gemfile(5)][Gemfile(5)] to a gem with a
14
- gemspec, the --gemspec option will automatically add each dependency
15
- listed in the gemspec file to the newly created [Gemfile(5)][Gem-
16
- file(5)].
12
+ Init generates a default [Gemfile(5)][Gemfile(5)] in the current
13
+ working directory. When adding a [Gemfile(5)][Gemfile(5)] to a gem with
14
+ a gemspec, the --gemspec option will automatically add each dependency
15
+ listed in the gemspec file to the newly created
16
+ [Gemfile(5)][Gemfile(5)].
17
17
 
18
18
  OPTIONS
19
19
  --gemspec
20
- Use the specified .gemspec to create the [Gemfile(5)][Gem-
21
- file(5)]
20
+ Use the specified .gemspec to create the
21
+ [Gemfile(5)][Gemfile(5)]
22
22
 
23
23
  FILES
24
24
  Included in the default [Gemfile(5)][Gemfile(5)] generated is the line
@@ -31,4 +31,4 @@ SEE ALSO
31
31
 
32
32
 
33
33
 
34
- January 2020 BUNDLE-INIT(1)
34
+ July 2020 BUNDLE-INIT(1)
@@ -1,7 +1,7 @@
1
1
  .\" generated with Ronn/v0.7.3
2
2
  .\" http://github.com/rtomayko/ronn/tree/0.7.3
3
3
  .
4
- .TH "BUNDLE\-INJECT" "1" "January 2020" "" ""
4
+ .TH "BUNDLE\-INJECT" "1" "July 2020" "" ""
5
5
  .
6
6
  .SH "NAME"
7
7
  \fBbundle\-inject\fR \- Add named gem(s) with version requirements to Gemfile
@@ -1,4 +1,4 @@
1
- BUNDLE-INJECT(1) BUNDLE-INJECT(1)
1
+ BUNDLE-INJECT(1) BUNDLE-INJECT(1)
2
2
 
3
3
 
4
4
 
@@ -19,8 +19,8 @@ DESCRIPTION
19
19
 
20
20
 
21
21
 
22
- bundle install
23
- bundle inject 'rack' '> 0'
22
+ bundle install
23
+ bundle inject 'rack' '> 0'
24
24
 
25
25
 
26
26
 
@@ -29,4 +29,4 @@ DESCRIPTION
29
29
 
30
30
 
31
31
 
32
- January 2020 BUNDLE-INJECT(1)
32
+ July 2020 BUNDLE-INJECT(1)
@@ -1,7 +1,7 @@
1
1
  .\" generated with Ronn/v0.7.3
2
2
  .\" http://github.com/rtomayko/ronn/tree/0.7.3
3
3
  .
4
- .TH "BUNDLE\-INSTALL" "1" "January 2020" "" ""
4
+ .TH "BUNDLE\-INSTALL" "1" "July 2020" "" ""
5
5
  .
6
6
  .SH "NAME"
7
7
  \fBbundle\-install\fR \- Install the dependencies specified in your Gemfile
@@ -1,4 +1,4 @@
1
- BUNDLE-INSTALL(1) BUNDLE-INSTALL(1)
1
+ BUNDLE-INSTALL(1) BUNDLE-INSTALL(1)
2
2
 
3
3
 
4
4
 
@@ -6,22 +6,22 @@ NAME
6
6
  bundle-install - Install the dependencies specified in your Gemfile
7
7
 
8
8
  SYNOPSIS
9
- bundle install [--binstubs[=DIRECTORY]] [--clean] [--deployment]
9
+ bundle install [--binstubs[=DIRECTORY]] [--clean] [--deployment]
10
10
  [--frozen] [--full-index] [--gemfile=GEMFILE] [--jobs=NUMBER] [--local]
11
- [--no-cache] [--no-prune] [--path PATH] [--quiet] [--redownload]
12
- [--retry=NUMBER] [--shebang] [--standalone[=GROUP[ GROUP...]]] [--sys-
13
- tem] [--trust-policy=POLICY] [--with=GROUP[ GROUP...]] [--with-
14
- out=GROUP[ GROUP...]]
11
+ [--no-cache] [--no-prune] [--path PATH] [--quiet] [--redownload]
12
+ [--retry=NUMBER] [--shebang] [--standalone[=GROUP[ GROUP...]]]
13
+ [--system] [--trust-policy=POLICY] [--with=GROUP[ GROUP...]]
14
+ [--without=GROUP[ GROUP...]]
15
15
 
16
16
  DESCRIPTION
17
- Install the gems specified in your Gemfile(5). If this is the first
18
- time you run bundle install (and a Gemfile.lock does not exist),
17
+ Install the gems specified in your Gemfile(5). If this is the first
18
+ time you run bundle install (and a Gemfile.lock does not exist),
19
19
  Bundler will fetch all remote sources, resolve dependencies and install
20
20
  all needed gems.
21
21
 
22
22
  If a Gemfile.lock does exist, and you have not updated your Gemfile(5),
23
- Bundler will fetch all remote sources, but use the dependencies speci-
24
- fied in the Gemfile.lock instead of resolving dependencies.
23
+ Bundler will fetch all remote sources, but use the dependencies
24
+ specified in the Gemfile.lock instead of resolving dependencies.
25
25
 
26
26
  If a Gemfile.lock does exist, and you have updated your Gemfile(5),
27
27
  Bundler will use the dependencies in the Gemfile.lock for all gems that
@@ -34,122 +34,122 @@ OPTIONS
34
34
  time bundle install is run, use bundle config (see bundle-config(1)).
35
35
 
36
36
  --binstubs[=<directory>]
37
- Binstubs are scripts that wrap around executables. Bundler cre-
38
- ates a small Ruby file (a binstub) that loads Bundler, runs the
39
- command, and puts it in bin/. This lets you link the binstub
40
- inside of an application to the exact gem version the applica-
41
- tion needs.
42
-
43
- Creates a directory (defaults to ~/bin) and places any executa-
44
- bles from the gem there. These executables run in Bundler's con-
45
- text. If used, you might add this directory to your environ-
46
- ment's PATH variable. For instance, if the rails gem comes with
47
- a rails executable, this flag will create a bin/rails executable
48
- that ensures that all referred dependencies will be resolved
49
- using the bundled gems.
37
+ Binstubs are scripts that wrap around executables. Bundler
38
+ creates a small Ruby file (a binstub) that loads Bundler, runs
39
+ the command, and puts it in bin/. This lets you link the binstub
40
+ inside of an application to the exact gem version the
41
+ application needs.
42
+
43
+ Creates a directory (defaults to ~/bin) and places any
44
+ executables from the gem there. These executables run in
45
+ Bundler's context. If used, you might add this directory to your
46
+ environment's PATH variable. For instance, if the rails gem
47
+ comes with a rails executable, this flag will create a bin/rails
48
+ executable that ensures that all referred dependencies will be
49
+ resolved using the bundled gems.
50
50
 
51
51
  --clean
52
- On finishing the installation Bundler is going to remove any
53
- gems not present in the current Gemfile(5). Don't worry, gems
54
- currently in use will not be removed.
52
+ On finishing the installation Bundler is going to remove any
53
+ gems not present in the current Gemfile(5). Don't worry, gems
54
+ currently in use will not be removed.
55
55
 
56
56
  --deployment
57
- In deployment mode, Bundler will 'roll-out' the bundle for pro-
58
- duction or CI use. Please check carefully if you want to have
59
- this option enabled in your development environment.
57
+ In deployment mode, Bundler will 'roll-out' the bundle for
58
+ production or CI use. Please check carefully if you want to have
59
+ this option enabled in your development environment.
60
60
 
61
61
  --redownload
62
- Force download every gem, even if the required versions are
63
- already available locally.
62
+ Force download every gem, even if the required versions are
63
+ already available locally.
64
64
 
65
65
  --frozen
66
- Do not allow the Gemfile.lock to be updated after this install.
67
- Exits non-zero if there are going to be changes to the Gem-
68
- file.lock.
66
+ Do not allow the Gemfile.lock to be updated after this install.
67
+ Exits non-zero if there are going to be changes to the
68
+ Gemfile.lock.
69
69
 
70
70
  --full-index
71
- Bundler will not call Rubygems' API endpoint (default) but down-
72
- load and cache a (currently big) index file of all gems. Perfor-
73
- mance can be improved for large bundles that seldom change by
74
- enabling this option.
71
+ Bundler will not call Rubygems' API endpoint (default) but
72
+ download and cache a (currently big) index file of all gems.
73
+ Performance can be improved for large bundles that seldom change
74
+ by enabling this option.
75
75
 
76
76
  --gemfile=<gemfile>
77
- The location of the Gemfile(5) which Bundler should use. This
78
- defaults to a Gemfile(5) in the current working directory. In
79
- general, Bundler will assume that the location of the Gemfile(5)
80
- is also the project's root and will try to find Gemfile.lock and
81
- vendor/cache relative to this location.
77
+ The location of the Gemfile(5) which Bundler should use. This
78
+ defaults to a Gemfile(5) in the current working directory. In
79
+ general, Bundler will assume that the location of the Gemfile(5)
80
+ is also the project's root and will try to find Gemfile.lock and
81
+ vendor/cache relative to this location.
82
82
 
83
83
  --jobs=[<number>], -j[<number>]
84
- The maximum number of parallel download and install jobs. The
85
- default is 1.
84
+ The maximum number of parallel download and install jobs. The
85
+ default is 1.
86
86
 
87
87
  --local
88
- Do not attempt to connect to rubygems.org. Instead, Bundler will
89
- use the gems already present in Rubygems' cache or in ven-
90
- dor/cache. Note that if a appropriate platform-specific gem
91
- exists on rubygems.org it will not be found.
88
+ Do not attempt to connect to rubygems.org. Instead, Bundler will
89
+ use the gems already present in Rubygems' cache or in
90
+ vendor/cache. Note that if a appropriate platform-specific gem
91
+ exists on rubygems.org it will not be found.
92
92
 
93
93
  --no-cache
94
- Do not update the cache in vendor/cache with the newly bundled
95
- gems. This does not remove any gems in the cache but keeps the
96
- newly bundled gems from being cached during the install.
94
+ Do not update the cache in vendor/cache with the newly bundled
95
+ gems. This does not remove any gems in the cache but keeps the
96
+ newly bundled gems from being cached during the install.
97
97
 
98
98
  --no-prune
99
- Don't remove stale gems from the cache when the installation
100
- finishes.
99
+ Don't remove stale gems from the cache when the installation
100
+ finishes.
101
101
 
102
102
  --path=<path>
103
- The location to install the specified gems to. This defaults to
104
- Rubygems' setting. Bundler shares this location with Rubygems,
105
- gem install ... will have gem installed there, too. Therefore,
106
- gems installed without a --path ... setting will show up by
107
- calling gem list. Accordingly, gems installed to other locations
108
- will not get listed.
103
+ The location to install the specified gems to. This defaults to
104
+ Rubygems' setting. Bundler shares this location with Rubygems,
105
+ gem install ... will have gem installed there, too. Therefore,
106
+ gems installed without a --path ... setting will show up by
107
+ calling gem list. Accordingly, gems installed to other locations
108
+ will not get listed.
109
109
 
110
110
  --quiet
111
- Do not print progress information to the standard output.
112
- Instead, Bundler will exit using a status code ($?).
111
+ Do not print progress information to the standard output.
112
+ Instead, Bundler will exit using a status code ($?).
113
113
 
114
114
  --retry=[<number>]
115
- Retry failed network or git requests for number times.
115
+ Retry failed network or git requests for number times.
116
116
 
117
117
  --shebang=<ruby-executable>
118
- Uses the specified ruby executable (usually ruby) to execute the
119
- scripts created with --binstubs. In addition, if you use --bin-
120
- stubs together with --shebang jruby these executables will be
121
- changed to execute jruby instead.
118
+ Uses the specified ruby executable (usually ruby) to execute the
119
+ scripts created with --binstubs. In addition, if you use
120
+ --binstubs together with --shebang jruby these executables will
121
+ be changed to execute jruby instead.
122
122
 
123
123
  --standalone[=<list>]
124
- Makes a bundle that can work without depending on Rubygems or
125
- Bundler at runtime. A space separated list of groups to install
126
- has to be specified. Bundler creates a directory named bundle
127
- and installs the bundle there. It also generates a bun-
128
- dle/bundler/setup.rb file to replace Bundler's own setup in the
129
- manner required. Using this option implicitly sets path, which
130
- is a [remembered option][REMEMBERED OPTIONS].
124
+ Makes a bundle that can work without depending on Rubygems or
125
+ Bundler at runtime. A space separated list of groups to install
126
+ has to be specified. Bundler creates a directory named bundle
127
+ and installs the bundle there. It also generates a
128
+ bundle/bundler/setup.rb file to replace Bundler's own setup in
129
+ the manner required. Using this option implicitly sets path,
130
+ which is a [remembered option][REMEMBERED OPTIONS].
131
131
 
132
132
  --system
133
- Installs the gems specified in the bundle to the system's
134
- Rubygems location. This overrides any previous configuration of
135
- --path.
133
+ Installs the gems specified in the bundle to the system's
134
+ Rubygems location. This overrides any previous configuration of
135
+ --path.
136
136
 
137
137
  --trust-policy=[<policy>]
138
- Apply the Rubygems security policy policy, where policy is one
139
- of HighSecurity, MediumSecurity, LowSecurity, AlmostNoSecurity,
140
- or NoSecurity. For more details, please see the Rubygems signing
141
- documentation linked below in SEE ALSO.
138
+ Apply the Rubygems security policy policy, where policy is one
139
+ of HighSecurity, MediumSecurity, LowSecurity, AlmostNoSecurity,
140
+ or NoSecurity. For more details, please see the Rubygems signing
141
+ documentation linked below in SEE ALSO.
142
142
 
143
143
  --with=<list>
144
- A space-separated list of groups referencing gems to install. If
145
- an optional group is given it is installed. If a group is given
146
- that is in the remembered list of groups given to --without, it
147
- is removed from that list.
144
+ A space-separated list of groups referencing gems to install. If
145
+ an optional group is given it is installed. If a group is given
146
+ that is in the remembered list of groups given to --without, it
147
+ is removed from that list.
148
148
 
149
149
  --without=<list>
150
- A space-separated list of groups referencing gems to skip during
151
- installation. If a group is given that is in the remembered list
152
- of groups given to --with, it is removed from that list.
150
+ A space-separated list of groups referencing gems to skip during
151
+ installation. If a group is given that is in the remembered list
152
+ of groups given to --with, it is removed from that list.
153
153
 
154
154
  DEPLOYMENT MODE
155
155
  Bundler's defaults are optimized for development. To switch to defaults
@@ -159,36 +159,36 @@ DEPLOYMENT MODE
159
159
 
160
160
  1. A Gemfile.lock is required.
161
161
 
162
- To ensure that the same versions of the gems you developed with and
163
- tested with are also used in deployments, a Gemfile.lock is
164
- required.
162
+ To ensure that the same versions of the gems you developed with and
163
+ tested with are also used in deployments, a Gemfile.lock is
164
+ required.
165
165
 
166
- This is mainly to ensure that you remember to check your Gem-
167
- file.lock into version control.
166
+ This is mainly to ensure that you remember to check your
167
+ Gemfile.lock into version control.
168
168
 
169
169
  2. The Gemfile.lock must be up to date
170
170
 
171
- In development, you can modify your Gemfile(5) and re-run bundle
172
- install to conservatively update your Gemfile.lock snapshot.
171
+ In development, you can modify your Gemfile(5) and re-run bundle
172
+ install to conservatively update your Gemfile.lock snapshot.
173
173
 
174
- In deployment, your Gemfile.lock should be up-to-date with changes
175
- made in your Gemfile(5).
174
+ In deployment, your Gemfile.lock should be up-to-date with changes
175
+ made in your Gemfile(5).
176
176
 
177
- 3. Gems are installed to vendor/bundle not your default system loca-
178
- tion
177
+ 3. Gems are installed to vendor/bundle not your default system
178
+ location
179
179
 
180
- In development, it's convenient to share the gems used in your
181
- application with other applications and other scripts that run on
182
- the system.
180
+ In development, it's convenient to share the gems used in your
181
+ application with other applications and other scripts that run on
182
+ the system.
183
183
 
184
- In deployment, isolation is a more important default. In addition,
185
- the user deploying the application may not have permission to
186
- install gems to the system, or the web server may not have permis-
187
- sion to read them.
184
+ In deployment, isolation is a more important default. In addition,
185
+ the user deploying the application may not have permission to
186
+ install gems to the system, or the web server may not have
187
+ permission to read them.
188
188
 
189
- As a result, bundle install --deployment installs gems to the ven-
190
- dor/bundle directory in the application. This may be overridden
191
- using the --path option.
189
+ As a result, bundle install --deployment installs gems to the
190
+ vendor/bundle directory in the application. This may be overridden
191
+ using the --path option.
192
192
 
193
193
 
194
194
 
@@ -197,7 +197,7 @@ SUDO USAGE
197
197
 
198
198
  In some cases, that location may not be writable by your Unix user. In
199
199
  that case, Bundler will stage everything in a temporary directory, then
200
- ask you for your sudo password in order to copy the gems into their
200
+ ask you for your sudo password in order to copy the gems into their
201
201
  system location.
202
202
 
203
203
  From your perspective, this is identical to installing the gems
@@ -216,8 +216,8 @@ SUDO USAGE
216
216
 
217
217
  Of these three, the first two could theoretically be performed by
218
218
  chowning the resulting files to $SUDO_USER. The third, however, can
219
- only be performed by invoking the git command as the current user.
220
- Therefore, git gems are downloaded and installed into ~/.bundle rather
219
+ only be performed by invoking the git command as the current user.
220
+ Therefore, git gems are downloaded and installed into ~/.bundle rather
221
221
  than $GEM_HOME or $BUNDLE_PATH.
222
222
 
223
223
  As a result, you should run bundle install as the current user, and
@@ -232,9 +232,9 @@ INSTALLING GROUPS
232
232
  groups with the --without option. This option takes a space-separated
233
233
  list of groups.
234
234
 
235
- While the --without option will skip installing the gems in the speci-
236
- fied groups, it will still download those gems and use them to resolve
237
- the dependencies of every gem in your Gemfile(5).
235
+ While the --without option will skip installing the gems in the
236
+ specified groups, it will still download those gems and use them to
237
+ resolve the dependencies of every gem in your Gemfile(5).
238
238
 
239
239
  This is so that installing a different set of groups on another machine
240
240
  (such as a production server) will not change the gems and versions
@@ -244,24 +244,24 @@ INSTALLING GROUPS
244
244
  running in development and testing is also the third-party code you are
245
245
  running in production. You can choose to exclude some of that code in
246
246
  different environments, but you will never be caught flat-footed by
247
- different versions of third-party code being used in different environ-
248
- ments.
247
+ different versions of third-party code being used in different
248
+ environments.
249
249
 
250
250
  For a simple illustration, consider the following Gemfile(5):
251
251
 
252
252
 
253
253
 
254
- source 'https://rubygems.org'
254
+ source 'https://rubygems.org'
255
255
 
256
- gem 'sinatra'
256
+ gem 'sinatra'
257
257
 
258
- group :production do
259
- gem 'rack-perftools-profiler'
260
- end
258
+ group :production do
259
+ gem 'rack-perftools-profiler'
260
+ end
261
261
 
262
262
 
263
263
 
264
- In this case, sinatra depends on any version of Rack (>= 1.0), while
264
+ In this case, sinatra depends on any version of Rack (>= 1.0), while
265
265
  rack-perftools-profiler depends on 1.x (~> 1.0).
266
266
 
267
267
  When you run bundle install --without production in development, we
@@ -271,14 +271,14 @@ INSTALLING GROUPS
271
271
  when the production group is used.
272
272
 
273
273
  This should not cause any problems in practice, because we do not
274
- attempt to install the gems in the excluded groups, and only evaluate
274
+ attempt to install the gems in the excluded groups, and only evaluate
275
275
  as part of the dependency resolution process.
276
276
 
277
277
  This also means that you cannot include different versions of the same
278
- gem in different groups, because doing so would result in different
278
+ gem in different groups, because doing so would result in different
279
279
  sets of dependencies used in development and production. Because of the
280
280
  vagaries of the dependency resolution process, this usually affects
281
- more than the gems you list in your Gemfile(5), and can (surprisingly)
281
+ more than the gems you list in your Gemfile(5), and can (surprisingly)
282
282
  radically change the gems you are using.
283
283
 
284
284
  THE GEMFILE.LOCK
@@ -287,12 +287,12 @@ THE GEMFILE.LOCK
287
287
  specified in the Gemfile(5)) into a file called Gemfile.lock.
288
288
 
289
289
  Bundler uses this file in all subsequent calls to bundle install, which
290
- guarantees that you always use the same exact code, even as your appli-
291
- cation moves across machines.
290
+ guarantees that you always use the same exact code, even as your
291
+ application moves across machines.
292
292
 
293
- Because of the way dependency resolution works, even a seemingly small
293
+ Because of the way dependency resolution works, even a seemingly small
294
294
  change (for instance, an update to a point-release of a dependency of a
295
- gem in your Gemfile(5)) can result in radically different gems being
295
+ gem in your Gemfile(5)) can result in radically different gems being
296
296
  needed to satisfy all dependencies.
297
297
 
298
298
  As a result, you SHOULD check your Gemfile.lock into version control,
@@ -302,15 +302,15 @@ THE GEMFILE.LOCK
302
302
  third-party code being used if any of the gems in the Gemfile(5) or any
303
303
  of their dependencies have been updated.
304
304
 
305
- When Bundler first shipped, the Gemfile.lock was included in the .git-
306
- ignore file included with generated gems. Over time, however, it became
307
- clear that this practice forces the pain of broken dependencies onto
308
- new contributors, while leaving existing contributors potentially
309
- unaware of the problem. Since bundle install is usually the first step
310
- towards a contribution, the pain of broken dependencies would discour-
311
- age new contributors from contributing. As a result, we have revised
312
- our guidance for gem authors to now recommend checking in the lock for
313
- gems.
305
+ When Bundler first shipped, the Gemfile.lock was included in the
306
+ .gitignore file included with generated gems. Over time, however, it
307
+ became clear that this practice forces the pain of broken dependencies
308
+ onto new contributors, while leaving existing contributors potentially
309
+ unaware of the problem. Since bundle install is usually the first step
310
+ towards a contribution, the pain of broken dependencies would
311
+ discourage new contributors from contributing. As a result, we have
312
+ revised our guidance for gem authors to now recommend checking in the
313
+ lock for gems.
314
314
 
315
315
  CONSERVATIVE UPDATING
316
316
  When you make a change to the Gemfile(5) and then run bundle install,
@@ -324,19 +324,19 @@ CONSERVATIVE UPDATING
324
324
 
325
325
 
326
326
 
327
- source 'https://rubygems.org'
327
+ source 'https://rubygems.org'
328
328
 
329
- gem 'actionpack', '2.3.8'
330
- gem 'activemerchant'
329
+ gem 'actionpack', '2.3.8'
330
+ gem 'activemerchant'
331
331
 
332
332
 
333
333
 
334
- In this case, both actionpack and activemerchant depend on activesup-
335
- port. The actionpack gem depends on activesupport 2.3.8 and rack ~>
336
- 1.1.0, while the activemerchant gem depends on activesupport >= 2.3.2,
337
- braintree >= 2.0.0, and builder >= 2.0.0.
334
+ In this case, both actionpack and activemerchant depend on
335
+ activesupport. The actionpack gem depends on activesupport 2.3.8 and
336
+ rack ~> 1.1.0, while the activemerchant gem depends on activesupport >=
337
+ 2.3.2, braintree >= 2.0.0, and builder >= 2.0.0.
338
338
 
339
- When the dependencies are first resolved, Bundler will select
339
+ When the dependencies are first resolved, Bundler will select
340
340
  activesupport 2.3.8, which satisfies the requirements of both gems in
341
341
  your Gemfile(5).
342
342
 
@@ -344,52 +344,52 @@ CONSERVATIVE UPDATING
344
344
 
345
345
 
346
346
 
347
- source 'https://rubygems.org'
347
+ source 'https://rubygems.org'
348
348
 
349
- gem 'actionpack', '3.0.0.rc'
350
- gem 'activemerchant'
349
+ gem 'actionpack', '3.0.0.rc'
350
+ gem 'activemerchant'
351
351
 
352
352
 
353
353
 
354
- The actionpack 3.0.0.rc gem has a number of new dependencies, and
355
- updates the activesupport dependency to = 3.0.0.rc and the rack depen-
356
- dency to ~> 1.2.1.
354
+ The actionpack 3.0.0.rc gem has a number of new dependencies, and
355
+ updates the activesupport dependency to = 3.0.0.rc and the rack
356
+ dependency to ~> 1.2.1.
357
357
 
358
358
  When you run bundle install, Bundler notices that you changed the
359
359
  actionpack gem, but not the activemerchant gem. It evaluates the gems
360
360
  currently being used to satisfy its requirements:
361
361
 
362
362
  activesupport 2.3.8
363
- also used to satisfy a dependency in activemerchant, which is
364
- not being updated
363
+ also used to satisfy a dependency in activemerchant, which is
364
+ not being updated
365
365
 
366
366
  rack ~> 1.1.0
367
- not currently being used to satisfy another dependency
367
+ not currently being used to satisfy another dependency
368
368
 
369
369
  Because you did not explicitly ask to update activemerchant, you would
370
- not expect it to suddenly stop working after updating actionpack. How-
371
- ever, satisfying the new activesupport 3.0.0.rc dependency of action-
372
- pack requires updating one of its dependencies.
370
+ not expect it to suddenly stop working after updating actionpack.
371
+ However, satisfying the new activesupport 3.0.0.rc dependency of
372
+ actionpack requires updating one of its dependencies.
373
373
 
374
- Even though activemerchant declares a very loose dependency that theo-
375
- retically matches activesupport 3.0.0.rc, Bundler treats gems in your
376
- Gemfile(5) that have not changed as an atomic unit together with their
377
- dependencies. In this case, the activemerchant dependency is treated as
378
- activemerchant 1.7.1 + activesupport 2.3.8, so bundle install will
379
- report that it cannot update actionpack.
374
+ Even though activemerchant declares a very loose dependency that
375
+ theoretically matches activesupport 3.0.0.rc, Bundler treats gems in
376
+ your Gemfile(5) that have not changed as an atomic unit together with
377
+ their dependencies. In this case, the activemerchant dependency is
378
+ treated as activemerchant 1.7.1 + activesupport 2.3.8, so bundle
379
+ install will report that it cannot update actionpack.
380
380
 
381
381
  To explicitly update actionpack, including its dependencies which other
382
382
  gems in the Gemfile(5) still depend on, run bundle update actionpack
383
383
  (see bundle update(1)).
384
384
 
385
- Summary: In general, after making a change to the Gemfile(5) , you
385
+ Summary: In general, after making a change to the Gemfile(5) , you
386
386
  should first try to run bundle install, which will guarantee that no
387
387
  other gem in the Gemfile(5) is impacted by the change. If that does not
388
388
  work, run bundle update(1) bundle-update.1.html.
389
389
 
390
390
  SEE ALSO
391
- o Gem install docs
392
- http://guides.rubygems.org/rubygems-basics/#installing-gems
391
+ o Gem install docs
392
+ http://guides.rubygems.org/rubygems-basics/#installing-gems
393
393
 
394
394
  o Rubygems signing docs http://guides.rubygems.org/security/
395
395
 
@@ -398,4 +398,4 @@ SEE ALSO
398
398
 
399
399
 
400
400
 
401
- January 2020 BUNDLE-INSTALL(1)
401
+ July 2020 BUNDLE-INSTALL(1)