bundler 1.15.2 → 1.17.3

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

Potentially problematic release.


This version of bundler might be problematic. Click here for more details.

Files changed (286) hide show
  1. checksums.yaml +5 -5
  2. data/CHANGELOG.md +302 -0
  3. data/README.md +17 -8
  4. data/bundler.gemspec +25 -9
  5. data/exe/bundle +1 -1
  6. data/exe/bundle_ruby +4 -3
  7. data/lib/bundler/build_metadata.rb +53 -0
  8. data/lib/bundler/capistrano.rb +5 -0
  9. data/lib/bundler/cli/add.rb +15 -6
  10. data/lib/bundler/cli/binstubs.rb +17 -9
  11. data/lib/bundler/cli/cache.rb +5 -4
  12. data/lib/bundler/cli/check.rb +3 -5
  13. data/lib/bundler/cli/clean.rb +5 -6
  14. data/lib/bundler/cli/common.rb +11 -2
  15. data/lib/bundler/cli/config.rb +2 -1
  16. data/lib/bundler/cli/console.rb +2 -1
  17. data/lib/bundler/cli/doctor.rb +48 -1
  18. data/lib/bundler/cli/exec.rb +6 -5
  19. data/lib/bundler/cli/gem.rb +13 -8
  20. data/lib/bundler/cli/info.rb +0 -1
  21. data/lib/bundler/cli/init.rb +18 -6
  22. data/lib/bundler/cli/inject.rb +1 -0
  23. data/lib/bundler/cli/install.rb +64 -61
  24. data/lib/bundler/cli/issue.rb +1 -1
  25. data/lib/bundler/cli/list.rb +58 -0
  26. data/lib/bundler/cli/lock.rb +0 -1
  27. data/lib/bundler/cli/open.rb +2 -2
  28. data/lib/bundler/cli/outdated.rb +20 -9
  29. data/lib/bundler/cli/package.rb +9 -6
  30. data/lib/bundler/cli/platform.rb +1 -0
  31. data/lib/bundler/cli/plugin.rb +1 -0
  32. data/lib/bundler/cli/pristine.rb +20 -6
  33. data/lib/bundler/cli/remove.rb +18 -0
  34. data/lib/bundler/cli/show.rb +0 -1
  35. data/lib/bundler/cli/update.rb +35 -7
  36. data/lib/bundler/cli/viz.rb +1 -0
  37. data/lib/bundler/cli.rb +227 -89
  38. data/lib/bundler/compact_index_client/cache.rb +1 -2
  39. data/lib/bundler/compact_index_client/updater.rb +14 -4
  40. data/lib/bundler/compact_index_client.rb +1 -0
  41. data/lib/bundler/compatibility_guard.rb +14 -0
  42. data/lib/bundler/constants.rb +1 -0
  43. data/lib/bundler/current_ruby.rb +13 -5
  44. data/lib/bundler/definition.rb +192 -139
  45. data/lib/bundler/dep_proxy.rb +3 -1
  46. data/lib/bundler/dependency.rb +9 -9
  47. data/lib/bundler/deployment.rb +1 -1
  48. data/lib/bundler/deprecate.rb +15 -3
  49. data/lib/bundler/dsl.rb +115 -64
  50. data/lib/bundler/endpoint_specification.rb +10 -1
  51. data/lib/bundler/env.rb +90 -29
  52. data/lib/bundler/environment_preserver.rb +27 -6
  53. data/lib/bundler/errors.rb +1 -0
  54. data/lib/bundler/feature_flag.rb +46 -4
  55. data/lib/bundler/fetcher/base.rb +1 -0
  56. data/lib/bundler/fetcher/compact_index.rb +2 -11
  57. data/lib/bundler/fetcher/dependency.rb +2 -1
  58. data/lib/bundler/fetcher/downloader.rb +11 -5
  59. data/lib/bundler/fetcher/index.rb +3 -2
  60. data/lib/bundler/fetcher.rb +18 -11
  61. data/lib/bundler/friendly_errors.rb +6 -1
  62. data/lib/bundler/gem_helper.rb +19 -10
  63. data/lib/bundler/gem_helpers.rb +1 -0
  64. data/lib/bundler/gem_remote_fetcher.rb +1 -0
  65. data/lib/bundler/gem_tasks.rb +1 -0
  66. data/lib/bundler/gem_version_promoter.rb +17 -2
  67. data/lib/bundler/gemdeps.rb +1 -0
  68. data/lib/bundler/graph.rb +1 -0
  69. data/lib/bundler/index.rb +8 -8
  70. data/lib/bundler/injector.rb +192 -30
  71. data/lib/bundler/inline.rb +5 -7
  72. data/lib/bundler/installer/gem_installer.rb +11 -2
  73. data/lib/bundler/installer/parallel_installer.rb +78 -42
  74. data/lib/bundler/installer/standalone.rb +1 -0
  75. data/lib/bundler/installer.rb +138 -53
  76. data/lib/bundler/lazy_specification.rb +3 -2
  77. data/lib/bundler/lockfile_generator.rb +95 -0
  78. data/lib/bundler/lockfile_parser.rb +10 -4
  79. data/lib/bundler/match_platform.rb +1 -0
  80. data/lib/bundler/mirror.rb +8 -5
  81. data/lib/bundler/plugin/api/source.rb +9 -2
  82. data/lib/bundler/plugin/events.rb +61 -0
  83. data/lib/bundler/plugin/index.rb +7 -2
  84. data/lib/bundler/plugin/installer.rb +7 -6
  85. data/lib/bundler/plugin/source_list.rb +7 -8
  86. data/lib/bundler/plugin.rb +13 -5
  87. data/lib/bundler/process_lock.rb +24 -0
  88. data/lib/bundler/psyched_yaml.rb +10 -0
  89. data/lib/bundler/remote_specification.rb +1 -0
  90. data/lib/bundler/resolver/spec_group.rb +106 -0
  91. data/lib/bundler/resolver.rb +158 -195
  92. data/lib/bundler/retry.rb +1 -0
  93. data/lib/bundler/ruby_dsl.rb +1 -0
  94. data/lib/bundler/ruby_version.rb +2 -1
  95. data/lib/bundler/rubygems_ext.rb +5 -4
  96. data/lib/bundler/rubygems_gem_installer.rb +31 -1
  97. data/lib/bundler/rubygems_integration.rb +71 -32
  98. data/lib/bundler/runtime.rb +11 -9
  99. data/lib/bundler/settings/validator.rb +102 -0
  100. data/lib/bundler/settings.rb +200 -77
  101. data/lib/bundler/setup.rb +1 -0
  102. data/lib/bundler/shared_helpers.rb +131 -26
  103. data/lib/bundler/similarity_detector.rb +1 -0
  104. data/lib/bundler/source/gemspec.rb +1 -0
  105. data/lib/bundler/source/git/git_proxy.rb +21 -11
  106. data/lib/bundler/source/git.rb +24 -19
  107. data/lib/bundler/source/metadata.rb +62 -0
  108. data/lib/bundler/source/path/installer.rb +2 -0
  109. data/lib/bundler/source/path.rb +8 -8
  110. data/lib/bundler/source/rubygems/remote.rb +8 -2
  111. data/lib/bundler/source/rubygems.rb +161 -84
  112. data/lib/bundler/source.rb +36 -0
  113. data/lib/bundler/source_list.rb +75 -15
  114. data/lib/bundler/spec_set.rb +10 -5
  115. data/lib/bundler/ssl_certs/certificate_manager.rb +2 -1
  116. data/lib/bundler/stub_specification.rb +1 -0
  117. data/lib/bundler/templates/.document +1 -0
  118. data/lib/bundler/templates/Executable +12 -0
  119. data/lib/bundler/templates/Executable.bundler +105 -0
  120. data/lib/bundler/templates/Gemfile +1 -0
  121. data/lib/bundler/templates/gems.rb +8 -0
  122. data/lib/bundler/templates/newgem/README.md.tt +1 -1
  123. data/lib/bundler/templates/newgem/gitignore.tt +0 -1
  124. data/lib/bundler/templates/newgem/lib/newgem.rb.tt +1 -0
  125. data/lib/bundler/templates/newgem/newgem.gemspec.tt +12 -3
  126. data/lib/bundler/templates/newgem/rspec.tt +1 -0
  127. data/lib/bundler/templates/newgem/spec/newgem_spec.rb.tt +0 -2
  128. data/lib/bundler/templates/newgem/{.travis.yml.tt → travis.yml.tt} +2 -0
  129. data/lib/bundler/ui/rg_proxy.rb +1 -0
  130. data/lib/bundler/ui/shell.rb +17 -4
  131. data/lib/bundler/ui/silent.rb +1 -0
  132. data/lib/bundler/ui.rb +1 -0
  133. data/lib/bundler/uri_credentials_filter.rb +1 -0
  134. data/lib/bundler/vendor/fileutils/lib/fileutils.rb +1638 -0
  135. data/lib/bundler/vendor/molinillo/lib/molinillo/compatibility.rb +26 -0
  136. data/lib/bundler/vendor/molinillo/lib/molinillo/delegates/resolution_state.rb +7 -0
  137. data/lib/bundler/vendor/molinillo/lib/molinillo/delegates/specification_provider.rb +1 -0
  138. data/lib/bundler/vendor/molinillo/lib/molinillo/dependency_graph/action.rb +1 -0
  139. data/lib/bundler/vendor/molinillo/lib/molinillo/dependency_graph/add_edge_no_circular.rb +1 -0
  140. data/lib/bundler/vendor/molinillo/lib/molinillo/dependency_graph/add_vertex.rb +1 -0
  141. data/lib/bundler/vendor/molinillo/lib/molinillo/dependency_graph/delete_edge.rb +1 -0
  142. data/lib/bundler/vendor/molinillo/lib/molinillo/dependency_graph/detach_vertex_named.rb +1 -0
  143. data/lib/bundler/vendor/molinillo/lib/molinillo/dependency_graph/log.rb +1 -0
  144. data/lib/bundler/vendor/molinillo/lib/molinillo/dependency_graph/set_payload.rb +1 -0
  145. data/lib/bundler/vendor/molinillo/lib/molinillo/dependency_graph/tag.rb +1 -0
  146. data/lib/bundler/vendor/molinillo/lib/molinillo/dependency_graph/vertex.rb +15 -4
  147. data/lib/bundler/vendor/molinillo/lib/molinillo/dependency_graph.rb +3 -2
  148. data/lib/bundler/vendor/molinillo/lib/molinillo/errors.rb +75 -7
  149. data/lib/bundler/vendor/molinillo/lib/molinillo/gem_metadata.rb +2 -1
  150. data/lib/bundler/vendor/molinillo/lib/molinillo/modules/specification_provider.rb +1 -0
  151. data/lib/bundler/vendor/molinillo/lib/molinillo/modules/ui.rb +3 -1
  152. data/lib/bundler/vendor/molinillo/lib/molinillo/resolution.rb +491 -148
  153. data/lib/bundler/vendor/molinillo/lib/molinillo/resolver.rb +1 -0
  154. data/lib/bundler/vendor/molinillo/lib/molinillo/state.rb +8 -4
  155. data/lib/bundler/vendor/molinillo/lib/molinillo.rb +2 -0
  156. data/lib/bundler/vendor/net-http-persistent/lib/net/http/persistent.rb +1 -1
  157. data/lib/bundler/vendor/thor/lib/thor/actions/create_file.rb +1 -0
  158. data/lib/bundler/vendor/thor/lib/thor/actions/create_link.rb +1 -0
  159. data/lib/bundler/vendor/thor/lib/thor/actions/empty_directory.rb +9 -1
  160. data/lib/bundler/vendor/thor/lib/thor/actions/file_manipulation.rb +45 -8
  161. data/lib/bundler/vendor/thor/lib/thor/actions/inject_into_file.rb +9 -3
  162. data/lib/bundler/vendor/thor/lib/thor/actions.rb +6 -3
  163. data/lib/bundler/vendor/thor/lib/thor/base.rb +27 -4
  164. data/lib/bundler/vendor/thor/lib/thor/command.rb +9 -7
  165. data/lib/bundler/vendor/thor/lib/thor/core_ext/hash_with_indifferent_access.rb +12 -0
  166. data/lib/bundler/vendor/thor/lib/thor/group.rb +1 -1
  167. data/lib/bundler/vendor/thor/lib/thor/line_editor/basic.rb +2 -0
  168. data/lib/bundler/vendor/thor/lib/thor/parser/option.rb +5 -5
  169. data/lib/bundler/vendor/thor/lib/thor/parser/options.rb +6 -5
  170. data/lib/bundler/vendor/thor/lib/thor/runner.rb +6 -4
  171. data/lib/bundler/vendor/thor/lib/thor/shell/basic.rb +10 -9
  172. data/lib/bundler/vendor/thor/lib/thor/version.rb +1 -1
  173. data/lib/bundler/vendor/thor/lib/thor.rb +25 -8
  174. data/lib/bundler/vendored_fileutils.rb +9 -0
  175. data/lib/bundler/vendored_molinillo.rb +1 -0
  176. data/lib/bundler/vendored_persistent.rb +35 -0
  177. data/lib/bundler/vendored_thor.rb +1 -0
  178. data/lib/bundler/version.rb +6 -2
  179. data/lib/bundler/version_ranges.rb +1 -0
  180. data/lib/bundler/vlad.rb +5 -0
  181. data/lib/bundler/worker.rb +1 -0
  182. data/lib/bundler/yaml_serializer.rb +3 -3
  183. data/lib/bundler.rb +86 -52
  184. data/man/bundle-add.1 +18 -3
  185. data/man/bundle-add.1.txt +26 -14
  186. data/man/bundle-add.ronn +13 -2
  187. data/man/bundle-binstubs.1 +11 -1
  188. data/man/bundle-binstubs.1.txt +33 -18
  189. data/man/bundle-binstubs.ronn +15 -1
  190. data/man/bundle-check.1 +4 -4
  191. data/man/bundle-check.1.txt +15 -14
  192. data/man/bundle-check.ronn +3 -3
  193. data/man/bundle-clean.1 +1 -1
  194. data/man/bundle-clean.1.txt +10 -10
  195. data/man/bundle-config.1 +129 -29
  196. data/man/bundle-config.1.txt +285 -174
  197. data/man/bundle-config.ronn +167 -88
  198. data/man/bundle-doctor.1 +44 -0
  199. data/man/bundle-doctor.1.txt +44 -0
  200. data/man/bundle-doctor.ronn +33 -0
  201. data/man/bundle-exec.1 +6 -3
  202. data/man/bundle-exec.1.txt +78 -71
  203. data/man/bundle-exec.ronn +10 -3
  204. data/man/bundle-gem.1 +3 -3
  205. data/man/bundle-gem.1.txt +40 -39
  206. data/man/bundle-gem.ronn +2 -1
  207. data/man/bundle-info.1 +1 -1
  208. data/man/bundle-info.1.txt +8 -8
  209. data/man/bundle-init.1 +9 -4
  210. data/man/bundle-init.1.txt +23 -13
  211. data/man/bundle-init.ronn +15 -4
  212. data/man/bundle-inject.1 +4 -4
  213. data/man/bundle-inject.1.txt +10 -10
  214. data/man/bundle-inject.ronn +3 -3
  215. data/man/bundle-install.1 +31 -28
  216. data/man/bundle-install.1.txt +205 -194
  217. data/man/bundle-install.ronn +44 -35
  218. data/man/bundle-list.1 +50 -0
  219. data/man/bundle-list.1.txt +43 -0
  220. data/man/bundle-list.ronn +33 -0
  221. data/man/bundle-lock.1 +1 -1
  222. data/man/bundle-lock.1.txt +47 -47
  223. data/man/bundle-lock.ronn +1 -1
  224. data/man/bundle-open.1 +1 -1
  225. data/man/bundle-open.1.txt +7 -7
  226. data/man/bundle-outdated.1 +7 -3
  227. data/man/bundle-outdated.1.txt +40 -36
  228. data/man/bundle-outdated.ronn +6 -2
  229. data/man/bundle-package.1 +6 -3
  230. data/man/bundle-package.1.txt +44 -39
  231. data/man/bundle-package.ronn +7 -2
  232. data/man/bundle-platform.1 +1 -1
  233. data/man/bundle-platform.1.txt +13 -13
  234. data/man/bundle-pristine.1 +21 -3
  235. data/man/bundle-pristine.1.txt +33 -10
  236. data/man/bundle-pristine.ronn +24 -3
  237. data/man/bundle-remove.1 +31 -0
  238. data/man/bundle-remove.1.txt +34 -0
  239. data/man/bundle-remove.ronn +23 -0
  240. data/man/bundle-show.1 +3 -3
  241. data/man/bundle-show.1.txt +14 -12
  242. data/man/bundle-show.ronn +3 -2
  243. data/man/bundle-update.1 +13 -9
  244. data/man/bundle-update.1.txt +133 -130
  245. data/man/bundle-update.ronn +21 -17
  246. data/man/bundle-viz.1 +7 -7
  247. data/man/bundle-viz.1.txt +17 -15
  248. data/man/bundle-viz.ronn +6 -6
  249. data/man/bundle.1 +31 -23
  250. data/man/bundle.1.txt +63 -57
  251. data/man/bundle.ronn +35 -29
  252. data/man/gemfile.5 +44 -8
  253. data/man/gemfile.5.ronn +54 -8
  254. data/man/gemfile.5.txt +218 -165
  255. data/man/index.txt +25 -15
  256. metadata +36 -36
  257. data/.codeclimate.yml +0 -25
  258. data/.gitignore +0 -18
  259. data/.rspec +0 -3
  260. data/.rubocop.yml +0 -131
  261. data/.rubocop_todo.yml +0 -418
  262. data/.travis.yml +0 -122
  263. data/CODE_OF_CONDUCT.md +0 -42
  264. data/CONTRIBUTING.md +0 -17
  265. data/Rakefile +0 -338
  266. data/bin/rake +0 -19
  267. data/bin/rspec +0 -15
  268. data/bin/rubocop +0 -17
  269. data/bin/with_rubygems +0 -39
  270. data/doc/README.md +0 -30
  271. data/doc/TROUBLESHOOTING.md +0 -64
  272. data/doc/contributing/BUG_TRIAGE.md +0 -36
  273. data/doc/contributing/COMMUNITY.md +0 -13
  274. data/doc/contributing/GETTING_HELP.md +0 -11
  275. data/doc/contributing/HOW_YOU_CAN_HELP.md +0 -27
  276. data/doc/contributing/ISSUES.md +0 -51
  277. data/doc/contributing/README.md +0 -38
  278. data/doc/development/NEW_FEATURES.md +0 -10
  279. data/doc/development/PULL_REQUESTS.md +0 -40
  280. data/doc/development/README.md +0 -19
  281. data/doc/development/RELEASING.md +0 -9
  282. data/doc/development/SETUP.md +0 -27
  283. data/doc/documentation/README.md +0 -29
  284. data/doc/documentation/VISION.md +0 -26
  285. data/doc/documentation/WRITING.md +0 -54
  286. data/task/release.rake +0 -116
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
- SHA1:
3
- metadata.gz: 11b70c8e5ed4f9294f1f27b2c8120a0e6bf3dd57
4
- data.tar.gz: 726b8467dd3ac471c3077bc81cb37e160cab2da5
2
+ SHA256:
3
+ metadata.gz: 57be2a031c802a256fffbddca6f7cac7814f550ba22a5228ca4d69ffc6219ca0
4
+ data.tar.gz: f1928fbdadc8b1e2dbbedfb9361a7afed83b8d51b5fea407c5bef0857f93fd03
5
5
  SHA512:
6
- metadata.gz: 8ea76414ad963d6fc48c3b433c775f3d2936d13d35de47db84aa32249ea7566b62538bd0827d4dca2a73a9414277d9b1d5ba0671410751340fb16adde302c889
7
- data.tar.gz: 0c88dd85d2c24e495541d6b3d4bc34b870bd04945e03ef4645235be292cfc0bfb3b9a50f43cdc1ef34f74021ff12173ac0f1b1ceb23b9a405cc91cdda387b2fd
6
+ metadata.gz: '08986fab1b004158cb55a6f0ef41e4a17e4b85561a97b24e85a731056af327f801e1d105915e6760e99b4b006da7f9a3c79b388d3ca998d2d12492e9accf7ad6'
7
+ data.tar.gz: fb07fcd0f42267952e5ce1a929825b7c1d7e42cd489f025a03a3a8846616bcd60bb477d12e437206dbb188f4e7c575fc6d0e6f89ab8adaf1bb6b01e91739fe21
data/CHANGELOG.md CHANGED
@@ -1,3 +1,305 @@
1
+ ## 1.17.3 (2018-12-27)
2
+
3
+ Bugfixes:
4
+
5
+ - Fix a Bundler error when installing gems on old versions of RubyGems ([#6839](https://github.com/bundler/bundler/issues/6839), @colby-swandale)
6
+ - Fix a rare issue where Bundler was removing itself after a `bundle clean` ([#6829](https://github.com/bundler/bundler/issues/6829), @colby-swandale)
7
+
8
+ Documentation:
9
+
10
+ - Add entry for the `bundle remove` command to the main Bundler manual page
11
+
12
+ ## 1.17.2 (2018-12-11)
13
+
14
+ - Add compatibility for bundler merge with Ruby 2.6
15
+
16
+ ## 1.17.1 (2018-10-25)
17
+
18
+ - Convert `Pathname`s to `String`s before sorting them, fixing #6760 and #6758 ([#6761](https://github.com/bundler/bundler/pull/6761), @alexggordon)
19
+
20
+ ## 1.17.0 (2018-10-25)
21
+
22
+ No new changes.
23
+
24
+ ## 1.17.0.pre.2 (2018-10-13)
25
+
26
+ Features:
27
+
28
+ - Configure Bundler home, cache, config and plugin directories with `BUNDLE_USER_HOME`, `BUNDLE_USER_CACHE`, `BUNDLE_USER_CONFIG` and `BUNDLE_USER_PLUGIN` env vars ([#4333](https://github.com/bundler/bundler/issues/4333), @gwerbin)
29
+ - Add `--all` option to `bundle binstubs` that will generate an executable file for all gems with commands in the bundle
30
+ - Add `bundle remove` command to remove gems from the Gemfile via the CLI
31
+ - Improve checking file permissions and asking for `sudo` in Bundler when it doesn't need to
32
+ - Add error message to `bundle add` to check adding duplicate gems to the Gemfile
33
+ - When asking for `sudo`, Bundler will show a list of folders/files that require elevated permissions to write to.
34
+
35
+ The following new features are available but are not enabled by default. These are intended to be tested by users for the upcoming release of Bundler 2.
36
+
37
+ - Improve deprecation warning message for `bundle show` command
38
+ - Improve deprecation warning message for the `--force` option in `bundle install`
39
+
40
+ ## 1.17.0.pre.1 (2018-09-24)
41
+
42
+ Features:
43
+
44
+ - Check folder/file permissions of the Bundle home directory in the `bundle doctor` command ([#5786](https://github.com/bundler/bundler/issues/5786), @ajwann)
45
+ - Remove compiled gem extensions when running `bundle clean` ([#5596](https://github.com/bundler/bundler/issues/5596), @akhramov)
46
+ - Add `--paths` option to `bundle list` command ([#6172](https://github.com/bundler/bundler/issues/6172), @colby-swandale)
47
+ - Add base error class to gems generated from `bundle gem` ([#6260](https://github.com/bundler/bundler/issues/6260), @christhekeele)
48
+ - Correctly re-install gem extensions with a git source when running `bundle pristine` ([#6294](https://github.com/bundler/bundler/issues/6294), @wagenet)
49
+ - Add config option to disable platform warnings ([#6124](https://github.com/bundler/bundler/issues/6124), @agrim123)
50
+ - Add `--skip-install` option to `bundle add` command to add gems to the Gemfile without installation ([#6511](https://github.com/bundler/bundler/issues/6511), @agrim123)
51
+ - Add `--only-explicit` option to `bundle outdated` to list only outdated gems in the Gemfile ([#5366](https://github.com/bundler/bundler/issues/5366), @peret)
52
+ - Support adding multiple gems to the Gemfile with `bundle add` ([#6543](https://github.com/bundler/bundler/issues/6543), @agrim123)
53
+ - Make registered plugin events easier to manage in the Plugin API (@jules2689)
54
+ - Add new gem install hooks to the Plugin API (@jules2689)
55
+ - Add `--optimistic` and `--strict` options to `bundle add` ([#6553](https://github.com/bundler/bundler/issues/6553), @agrim123)
56
+ - Add `--without-group` and `--only-group` options to `bundle list` ([#6564](https://github.com/bundler/bundler/issues/6564), @agrim123)
57
+ - Add `--gemfile` option to the `bundle exec` command ([#5924](https://github.com/bundler/bundler/issues/5924), @ankitkataria)
58
+
59
+ The following new features are available but are not enabled by default. These are intended to be tested by users for the upcoming release of Bundler 2.
60
+
61
+ - Make `install --path` relative to the current working directory ([#2048](https://github.com/bundler/bundler/issues/2048), @igorbozato)
62
+ - Auto-configure job count ([#5808](https://github.com/bundler/bundler/issues/5808), @segiddins)
63
+ - Use the Gem Version Promoter for major gem updates ([#5993](https://github.com/bundler/bundler/issues/5993), @segiddins)
64
+ - Add config option to add the Ruby scope to `bundle config path` when configured globally (@segiddins)
65
+
66
+ ## 1.16.6 (2018-10-05)
67
+
68
+ Changes:
69
+
70
+ - Add an error message when adding a gem with `bundle add` that's already in the bundle ([#6341](https://github.com/bundler/bundler/issues/6341), @agrim123)
71
+ - Add Homepage, Source Code and Chanagelog URI metadata fields to the `bundle gem` gemspec template (@walf443)
72
+
73
+ Bugfixes:
74
+
75
+ - Fix issue where updating a gem resulted in the gem's version being downgraded when `BUNDLE_ONLY_UPDATE_TO_NEWER_VERSIONS` was set ([#6529](https://github.com/bundler/bundler/issues/6529), @theflow)
76
+ - Fix some rescue calls that don't specifiy error type (@utilum)
77
+ - Fix an issue when the Lockfile would contain platform-specific gems that it didn't need ([#6491](https://github.com/bundler/bundler/issues/6491), @segiddins)
78
+ - Improve handlding of adding new gems with only a single group to the Gemfile in `bundle add` (@agrim123)
79
+ - Refactor check for OpenSSL in `bundle env` (@voxik)
80
+ - Remove an unnecessary assignment in Metadata (@voxik)
81
+
82
+ Documentation:
83
+
84
+ - Update docs to reflect revised guidance to check in Gemfile.lock into version control for gems ([#5879](https://github.com/bundler/bundler/issues/5879), @arbonap)
85
+ - Add documentation for the `--all` flag in `bundle update` (@agrim123)
86
+ - Update README to use `bundle add` in usage examples (@hdf1986)
87
+
88
+ ## 1.16.5 (2018-09-18)
89
+
90
+ Changes:
91
+
92
+ - Add support for TruffleRuby (@eregon)
93
+
94
+ Bugfixes:
95
+
96
+ - Avoid printing git errors when checking the version on incorrectly packaged versions of Bundler ([#6453](https://github.com/bundler/bundler/issues/6453), @greysteil)
97
+ - Fix issue where Bundler does not check the given class when comparing equality in DepProxy (@ChrisBr)
98
+ - Handle `RangeNotSatisfiable` error in Compact Index (@MaxLap)
99
+ - Check for initialized `search` variable in `LazySpecification` (@voxik)
100
+ - Fix LoadError occurring in nested bundle exec calls ([#6537](https://github.com/bundler/bundler/issues/6537), @colby-swandale)
101
+ - Check that Bundler::Deprecate is not an autoload constant ([#6163](https://github.com/bundler/bundler/issues/6163), @eregon)
102
+ - Prefer non-pre-release versions when performing a `bundle update --patch` ([#6684](https://github.com/bundler/bundler/issues/6684), @segiddins)
103
+
104
+ ## 1.16.4 (2018-08-17)
105
+
106
+ Changes:
107
+
108
+ - Welcome new members to the Bundler core team (@indirect)
109
+ - Don't mutate original error trees when determining version_conflict_message (@greysteil)
110
+ - Update vendored Molinillo to 0.6.6 (@segiddins)
111
+
112
+ Bugfixes:
113
+
114
+ - Reword bundle update regression message to be more clear to the user when a gem's version is downgraded ([#6584](https://github.com/bundler/bundler/issues/6584), @ralphbolo)
115
+ - Respect --conservative flag when updating a dependency group ([#6560](https://github.com/bundler/bundler/issues/6560), @greysteil)
116
+ - Fix issue where a pre-release version was not being selected when it's specified in the Gemfile ([#6449](https://github.com/bundler/bundler/issues/6449), @akihiro17)
117
+ - Fix issue where `Etc` was not loaded when getting the user's home dir ([#6640](https://github.com/bundler/bundler/issues/6640), @colby-swandale)
118
+ - Use UTF-8 for reading files including Gemfile ([#6660](https://github.com/bundler/bundler/issues/6660), @eregon)
119
+ - Remove unnecessary `while` loop in path resolver helper (@ojab)
120
+
121
+ Documentation:
122
+
123
+ - Document that `bundle show [--paths]` sorts results by name (@kemitchell)
124
+
125
+ ## 1.16.3 (2018-07-17)
126
+
127
+ Features:
128
+
129
+ - Support URI::File of Ruby 2.6 (@hsbt)
130
+
131
+ Bugfixes:
132
+
133
+ - Expand symlinks during setup to allow Bundler to load correctly when using symlinks in $GEM_HOME ([#6465](https://github.com/bundler/bundler/issues/6465), @ojab, @indirect)
134
+ - Dont let Bundler create temporary folders for gem installs which are owned by root ([#6258](https://github.com/bundler/bundler/issues/6258), @colby-swandale)
135
+ - Don't fallback to using temporary directories when needed directories already exist ([#6546](https://github.com/bundler/bundler/issues/6546), @brodock)
136
+ - Use SharedHelpers.filesystem_access when reading a Gemfile so friendly error messages can be given to the user ([#6541](https://github.com/bundler/bundler/issues/6541), @segiddins)
137
+ - Check if source responds to `#remotes` before printing gem install error message ([#6211](https://github.com/bundler/bundler/issues/6211), @colby-swandale)
138
+ - Handle Errno::ENOTSUP in the Bundler Process Lock to prevent exceptions when using NFS mounts ([#6566](https://github.com/bundler/bundler/issues/6566), @colby-swandale)
139
+ - Respect encodings when reading gemspecs ([#6598](https://github.com/bundler/bundler/issues/6598), @deivid-rodriguez)
140
+
141
+ Documentation:
142
+
143
+ - Fix links between manual pages (@BanzaiMan)
144
+ - Add warning to Gemfile documentation for the use of the `source` option when declaring gems ([#6280](https://github.com/bundler/bundler/issues/6280), @forestgagnon)
145
+
146
+ ## 1.16.2 (2018-04-20)
147
+
148
+ Changes:
149
+
150
+ - Include the gem's source in the gem install error message when available (@papanikge)
151
+ - Remove unnecessary executable bit from gem template (@voxik)
152
+ - Dont add the timestamp comment with gems added to the Gemfile via `bundle add` ([#6193](https://github.com/bundler/bundler/issues/6193), @cpgo)
153
+ - Improve yanked gem error message (@alyssais)
154
+ - Use `Bundler.rubygems.inflate` instead of the Gem::Util method directly (@segiddins)
155
+ - Remove unused instance variable (@segiddins)
156
+
157
+ Bugfixes:
158
+
159
+ - Only trap INT signal and have Ruby's signal default handler be invoked (@shayonj)
160
+ - Fix warning about the use of `__FILE__` in RubyGems integration testing (@MSP-Greg)
161
+ - Skip the outdated bundler check when MD5 is not available ([#6032](https://github.com/bundler/bundler/issues/6032), @segiddins)
162
+ - Fallback to the original error if the friendly message raises (@segiddins)
163
+ - Rename Bundler.frozen? to avoid Object method conflict ([#6252](https://github.com/bundler/bundler/issues/6252), @segiddins)
164
+ - Ensure the bindir exists before installing gems (@segiddins)
165
+ - Handle gzip corruption errors in the compact index client ([#6261](https://github.com/bundler/bundler/issues/6261), @colby-swandale)
166
+ - Check if the current directory is writeable when writing files in `bundle gem` ([#6219](https://github.com/bundler/bundler/issues/6219), @nilsding)
167
+ - Fix hang when gemspec has incompatible encoding (@deivid-rodriguez)
168
+ - Gracefully handle when the lockfile is missing spec entries for the current platform ([#6079](https://github.com/bundler/bundler/issues/6079), @segiddins)
169
+ - Use Gem::Util.inflate instead of Gem.inflate (@hsbt)
170
+ - Update binstub generator to use new ERB.new arity in Ruby 2.6 (@koic)
171
+ - Fix `source_location` call in rubygems integration (@MSP-Greg)
172
+ - Use `filesystem_access` when copying files in Compact Index Updater ([#6289](https://github.com/bundler/bundler/issues/6289), @segiddins)
173
+ - Fail gracefully when resetting git gems to the given revision fails ([#6324](https://github.com/bundler/bundler/issues/6324), @segiddins)
174
+ - Handle exceptions that do not have a backtrace ([#6342](https://github.com/bundler/bundler/issues/6342), @nesaulov)
175
+ - Check if stderr was closed before writing to it (@shime)
176
+ - Handle updating a specific gem for a non-local platform ([#6350](https://github.com/bundler/bundler/issues/6350), @greysteil)
177
+ - Bump the `bundle_binstub` check-length to 300 characters (@tduffield)
178
+ - Fix specifying alterntive Lockfile with `bundle lock` when default gemfile is present ([#6460](https://github.com/bundler/bundler/issues/6460), @agrim123)
179
+ - Allow installing dependencies when the path is set to `.` ([#6475](https://github.com/bundler/bundler/issues/6475), @segiddins)
180
+ - Support Bundler installing on a readonly filesystem without a home directory ([#6461](https://github.com/bundler/bundler/issues/6461), @grosser)
181
+ - Filter git uri credentials in source description (@segiddins)
182
+
183
+ Documentation:
184
+
185
+ - Correct typos in `bundle binstubs` man page (@erikj, @samueloph)
186
+ - Update links in `bundle gem` command documentation to use https (@KrauseFx)
187
+ - Fix broken links between bundler man pages (@segiddins)
188
+ - Add man page for the `bundle doctor` command ([#6243](https://github.com/bundler/bundler/issues/6243), @nholden)
189
+ - Document `# frozen_string_literal` in `bundle init` Gemfile (@315tky)
190
+ - Explain the gemspec files attribute in `bundle gem` template and print a link to bundler.io guides when running `bundle gem` ([#6246](https://github.com/bundler/bundler/issues/6246), @nesaulov)
191
+ - Small copy tweaks & removed redundant phrasing in the bundler man page (@rubymorillo)
192
+ - Improve the documentation of the settings load order in Bundler (@rubymorillo)
193
+ - Added license info to main README (@rubymorillo)
194
+ - Document parameters and return value of Injector#inject (@tobias-grasse)
195
+
196
+ ## 1.16.1 (2017-12-12)
197
+
198
+ Bugfixes:
199
+
200
+ - avoid hanging on complex resolver errors ([#6114](https://github.com/bundler/bundler/issues/6114), @halfbyte)
201
+ - avoid an error when running `bundle update --group` ([#6156](https://github.com/bundler/bundler/issues/6156), @mattbrictson)
202
+ - ensure the resolver prefers non-pre-release gems when possible ([#6181](https://github.com/bundler/bundler/issues/6181), @greysteil)
203
+ - include bundler's gemspec in the built gem ([#6165](https://github.com/bundler/bundler/issues/6165), @dr-itz)
204
+ - ensure locally installed specs are not overriden by those in remote sources during dependency resolution ([#6072](https://github.com/bundler/bundler/issues/6072), @indirect)
205
+ - ensure custom gemfiles are respected in generated binstubs (@pftg)
206
+ - fail gracefully when loading a bundler-generated binstub when `bin/bundle` was not generated by bundler ([#6149](https://github.com/bundler/bundler/issues/6149), @hsbt)
207
+ - allow `bundle init` to be run even when a parent directory contains a gemfile ([#6205](https://github.com/bundler/bundler/issues/6205), @colby-swandale)
208
+
209
+ ## 1.16.0 (2017-10-31)
210
+
211
+ Bugfixes:
212
+
213
+ - avoid new RubyGems warning about unsafe YAML loading (to keep output consistent) (@segiddins)
214
+ - load digest subclasses in a thread-safe manner (@segiddins, @colby-swandale)
215
+ - avoid unusued variable warnings under ruby 2.5 (@amatsuda)
216
+ - fix printing the same message twice in verbose mode ([#6028](https://github.com/bundler/bundler/issues/6028), @akhramov)
217
+ - allow `SignalException`s to bubble up to the interpreter during `bundle exec` ([#6090](https://github.com/bundler/bundler/issues/6090), @dekellum)
218
+ - avoid activating stdlib digest under Ruby 2.5 (@segiddins)
219
+ - prioritise explicitly requested gems in dependency resolution sort order (@segiddins)
220
+ - reduce memory usage during dependency resolution ([#6114](https://github.com/bundler/bundler/issues/6114), @greysteil)
221
+ - ensure that the default bundler gem is not accidentally activated on ruby 2.5 when using local git overrides (@segiddins)
222
+
223
+ ## 1.16.0.pre.3 (2017-10-04)
224
+
225
+ Features:
226
+
227
+ - the output from `bundle env` includes more information, particularly both the compiled & loaded versions of OpenSSL (@indirect)
228
+
229
+ Bugfixes:
230
+
231
+ - fix a bug where installing on FreeBSD would accidentally raise an error (#6013, @olleolleolle)
232
+ - fix a regression in 1.16 where pre-release gems could accidentally be resolved even when the gemfile contained no pre-release requirements (@greysteil)
233
+ - bundler will avoid making unnecessary network requests to fetch dependency data, fixing a regression introduced in 1.16 (@segiddins)
234
+ - the outdated bundler version message is disabled by default until the message has been fine-tuned (#6004, @segiddins)
235
+
236
+ ## 1.16.0.pre.2 (2017-09-06)
237
+
238
+ Bugfixes:
239
+
240
+ - handle when a connection is missing a socket when warning about OpenSSL version (@greysteil)
241
+ - the description for the `rake release` task now reflects `$RUBYGEMS_HOST` (@wadetandy)
242
+ - fix a bug where `bundle update` would regress transitive dependencies (@greysteil)
243
+
244
+ ## 1.16.0.pre.1 (2017-09-04)
245
+
246
+ Features:
247
+
248
+ - allow using non-branch symbolic refs in a git source (#4845, @segiddins)
249
+ - allow absolute paths in the `cache path` setting (#5627, @mal)
250
+ - gems created via `bundle gem` with rspec have `--require spec_helper` in their `.rspec` file (@koic)
251
+ - `bundle env` includes `Gem.ruby` and the `bundle` binstub shebang when they don't match (#5616, @segiddins)
252
+ - allow passing gem names to `bundle pristine` (@segiddins)
253
+ - `bundle version` and `bundle env` include the commit and build date for the bundler gem (#5049, @segiddins)
254
+ - add the `--shebang` option to `bundle binstubs` (#4070, @segiddins, @Zorbash)
255
+ - gemfiles are `eval`ed one fewer time when running `bundle install` (#4952, #3096, #4417, @segiddins)
256
+ - the `fileutils` gem is now vendored so different versions of the gem can be activated (@segiddins)
257
+ - speed up no-op installations (#5842, @segiddins)
258
+ - default to keeping the lockfile in the default gem template (@deivid-rodriguez)
259
+ - add a special bundler binstub that ensures the correct version of bundler is activated (#5876, @segiddins)
260
+ - speed up dependency resolution and ensure that all resolvable gemfiles can be installed (@segiddins, @greysteil)
261
+ - add a `bundle list` command that prints the gems in use (#4754, @colby-swandale)
262
+ - allow adding credentials to a gem source during deployment when `allow_deployment_source_credential_changes` is set (@adrian-gomez)
263
+ - making an outdated (and insecure) TLS connection to rubygems.org will print a warning (@segiddins)
264
+
265
+ Bugfixes:
266
+
267
+ - allow configuring a mirror fallback timeout without a trailing slash (#4830, @segiddins)
268
+ - fix handling of mirrors for file: urls that contain upper-case characters (@segiddins)
269
+ - list the correct gem host for `rake release` when `allowed_push_host` has been set (@mdeering)
270
+ - ensure `Bundler.original_env` preserves all env keys that bundler sets (#5700, @segiddins)
271
+ - ensure `bundle pristine` removes files added to a git gem (@segiddins)
272
+ - load plugin files from path gems before gem installation (#5429, @segiddins)
273
+ - ensure gems containing manpages are properly set up (#5730, @segiddins)
274
+ - avoid fetching remote specs when all effected gems are in groups that are not being installed (@segiddins)
275
+ - allow `BUNDLE_GEMFILE` to be a relative path (#5712, @gxespino)
276
+ - show a more helpful error message when a gem fails to install due to a corrupted lockfile (#5846, @segiddins)
277
+ - add a process lock to allow multiple concurrent `bundle install`s (#5851, @stefansedich)
278
+ - ensure that specifications always return an array for `#extensions` (@greysteil)
279
+ - print a helpful error message when using a gem in the Gemfile with an empty name (@colby-swandale)
280
+ - ensure that all gemfiles are included in `bundle env` (@segiddins)
281
+ - use ssl client cert and ca cert settings from gem configuration as fallbacks (@stan3)
282
+ - avoid global namespace pollution when loading gems (#5958, @shyouhei)
283
+ - avoid running a complete re-resolve on `bundle update --bundler` (@segiddins)
284
+ - allow `bundle binstubs --standalone` to work without `path` being set (@colby-swandale)
285
+ - fix support for bundle paths that include jars or wars on jruby (#5975, @torcido)
286
+
287
+ ## 1.15.4 (2017-08-19)
288
+
289
+ Bugfixes:
290
+
291
+ - handle file conflicts gracefully in `bundle gem` (@rafaelfranca, @segiddins)
292
+ - bundler will fail gracefully when the bundle path contains the system path separator (#5485, ajwann)
293
+ - failed gem downloads will be retried consistently across different RubyGems versions (@shayonj)
294
+ - `bundle pristine` will respect build options while re-building native extensions (@NickLaMuro)
295
+
296
+ ## 1.15.3 (2017-07-21)
297
+
298
+ Bugfixes:
299
+
300
+ - ensure that empty strings passed to `bundle config` are serialized & parsed properly (#5881, @segiddins)
301
+ - avoid printing an outdated version warning when running a parseable command (@segiddins)
302
+
1
303
  ## 1.15.2 (2017-07-17)
2
304
 
3
305
  Features:
data/README.md CHANGED
@@ -2,6 +2,7 @@
2
2
  [![Build Status](https://img.shields.io/travis/bundler/bundler/master.svg?style=flat)](https://travis-ci.org/bundler/bundler)
3
3
  [![Code Climate](https://img.shields.io/codeclimate/github/bundler/bundler.svg?style=flat)](https://codeclimate.com/github/bundler/bundler)
4
4
  [![Inline docs ](http://inch-ci.org/github/bundler/bundler.svg?style=flat)](http://inch-ci.org/github/bundler/bundler)
5
+ [![Slack ](http://bundler-slackin.herokuapp.com/badge.svg)](http://bundler-slackin.herokuapp.com)
5
6
 
6
7
  # Bundler: a gem to bundle gems
7
8
 
@@ -11,17 +12,19 @@ It does this by managing the gems that the application depends on. Given a list
11
12
 
12
13
  ### Installation and usage
13
14
 
14
- To install:
15
+ To install (or update to the latest version):
15
16
 
16
17
  ```
17
18
  gem install bundler
18
19
  ```
19
20
 
20
- Bundler is most commonly used to manage your application's dependencies. To use it for this:
21
+ To install a prerelease version (if one is available), run `gem install bundler --pre`. To uninstall Bundler, run `gem uninstall bundler`.
22
+
23
+ Bundler is most commonly used to manage your application's dependencies. For example, these commands will allow you to use Bundler to manage the `rspec` gem for your application:
21
24
 
22
25
  ```
23
26
  bundle init
24
- echo 'gem "rspec"' >> Gemfile
27
+ bundle add rspec
25
28
  bundle install
26
29
  bundle exec rspec
27
30
  ```
@@ -34,11 +37,6 @@ For help with common problems, see [TROUBLESHOOTING](doc/TROUBLESHOOTING.md).
34
37
 
35
38
  Still stuck? Try [filing an issue](doc/contributing/ISSUES.md).
36
39
 
37
- ### Supporting
38
-
39
- <a href="https://rubytogether.org/"><img src="https://rubytogether.org/images/rubies.svg" width=200></a><br/>
40
- Bundler is maintained by <a href="https://rubytogether.org/">Ruby Together</a>, a grassroots initiative committed to supporting the critical Ruby infrastructure you rely on. Contribute today <a href="https://rubytogether.org/developers">as an individual</a> or even better, <a href="https://rubytogether.org/companies">as a company</a>, and ensure that Bundler, RubyGems, and other shared tooling is around for years to come.
41
-
42
40
  ### Other questions
43
41
 
44
42
  To see what has changed in recent versions of Bundler, see the [CHANGELOG](CHANGELOG.md).
@@ -49,6 +47,17 @@ To get in touch with the Bundler core team and other Bundler users, please see [
49
47
 
50
48
  If you'd like to contribute to Bundler, that's awesome, and we <3 you. There's a guide to contributing to Bundler (both code and general help) over in [our documentation section](doc/README.md).
51
49
 
50
+ While some Bundler contributors are compensated by Ruby Together, the project maintainers make decisions independent of Ruby Together. As a project, we welcome contributions regardless of the author’s affiliation with Ruby Together.
51
+
52
+ ### Supporting
53
+
54
+ <a href="https://rubytogether.org/"><img src="https://rubytogether.org/images/rubies.svg" width="150"></a><br>
55
+ <a href="https://rubytogether.org/">Ruby Together</a> pays some Bundler maintainers for their ongoing work. As a grassroots initiative committed to supporting the critical Ruby infrastructure you rely on, Ruby Together is funded entirely by the Ruby community. Contribute today <a href="https://rubytogether.org/developers">as an individual</a> or (better yet) <a href="https://rubytogether.org/companies">as a company</a> to ensure that Bundler, RubyGems, and other shared tooling is around for years to come.
56
+
52
57
  ### Code of Conduct
53
58
 
54
59
  Everyone interacting in the Bundler project’s codebases, issue trackers, chat rooms, and mailing lists is expected to follow the [Bundler code of conduct](https://github.com/bundler/bundler/blob/master/CODE_OF_CONDUCT.md).
60
+
61
+ ### License
62
+
63
+ [MIT License](https://github.com/bundler/bundler/blob/master/LICENSE.md)
data/bundler.gemspec CHANGED
@@ -1,15 +1,22 @@
1
1
  # coding: utf-8
2
2
  # frozen_string_literal: true
3
- lib = File.expand_path("../lib/", __FILE__)
4
- $:.unshift lib unless $:.include?(lib)
5
- require "bundler/version"
3
+
4
+ begin
5
+ require File.expand_path("../lib/bundler/version", __FILE__)
6
+ rescue LoadError
7
+ # for Ruby core repository
8
+ require File.expand_path("../bundler/version", __FILE__)
9
+ end
10
+
11
+ require "shellwords"
6
12
 
7
13
  Gem::Specification.new do |s|
8
14
  s.name = "bundler"
9
15
  s.version = Bundler::VERSION
10
16
  s.license = "MIT"
11
17
  s.authors = [
12
- "André Arko", "Samuel Giddins", "Chris Morris", "James Wen", "Tim Moore",
18
+ "André Arko", "Samuel Giddins", "Colby Swandale", "Hiroshi Shibata",
19
+ "David Rodríguez", "Grey Baker", "Stephanie Morillo", "Chris Morris", "James Wen", "Tim Moore",
13
20
  "André Medeiros", "Jessica Lynn Suttles", "Terence Lee", "Carl Lerche",
14
21
  "Yehuda Katz"
15
22
  ]
@@ -27,22 +34,31 @@ Gem::Specification.new do |s|
27
34
  }
28
35
  end
29
36
 
30
- s.required_ruby_version = ">= 1.8.7"
31
- s.required_rubygems_version = ">= 1.3.6"
37
+ if s.version >= Gem::Version.new("2.a".dup)
38
+ s.required_ruby_version = ">= 2.3.0"
39
+ s.required_rubygems_version = ">= 2.5.0"
40
+ else
41
+ s.required_ruby_version = ">= 1.8.7"
42
+ s.required_rubygems_version = ">= 1.3.6"
43
+ end
32
44
 
33
45
  s.add_development_dependency "automatiek", "~> 0.1.0"
34
46
  s.add_development_dependency "mustache", "0.99.6"
35
47
  s.add_development_dependency "rake", "~> 10.0"
36
48
  s.add_development_dependency "rdiscount", "~> 2.2"
37
49
  s.add_development_dependency "ronn", "~> 0.7.3"
38
- s.add_development_dependency "rspec", "~> 3.5"
50
+ s.add_development_dependency "rspec", "~> 3.6"
39
51
 
40
- s.files = `git ls-files -z`.split("\x0").reject {|f| f.match(%r{^(test|spec|features)/}) }
52
+ s.files = `git ls-files -z`.split("\x0").select {|f| f.match(%r{^(lib|exe)/}) }
41
53
  # we don't check in man pages, but we need to ship them because
42
54
  # we use them to generate the long-form help for each command.
43
55
  s.files += Dir.glob("man/**/*")
56
+ # Include the CHANGELOG.md, LICENSE.md, README.md manually
57
+ s.files += %w[CHANGELOG.md LICENSE.md README.md]
58
+ # include the gemspec itself because warbler breaks w/o it
59
+ s.files += %w[bundler.gemspec]
44
60
 
45
61
  s.bindir = "exe"
46
- s.executables = %w(bundle bundler)
62
+ s.executables = %w[bundle bundler]
47
63
  s.require_paths = ["lib"]
48
64
  end
data/exe/bundle CHANGED
@@ -23,7 +23,7 @@ Bundler.with_friendly_errors do
23
23
  require "bundler/cli"
24
24
 
25
25
  # Allow any command to use --help flag to show help for that command
26
- help_flags = %w(--help -h)
26
+ help_flags = %w[--help -h]
27
27
  help_flag_used = ARGV.any? {|a| help_flags.include? a }
28
28
  args = help_flag_used ? Bundler::CLI.reformatted_help_args(ARGV) : ARGV
29
29
 
data/exe/bundle_ruby CHANGED
@@ -1,12 +1,15 @@
1
1
  #!/usr/bin/env ruby
2
2
  # frozen_string_literal: true
3
3
 
4
+ require "bundler/shared_helpers"
5
+
6
+ Bundler::SharedHelpers.major_deprecation(2, "the bundle_ruby executable has been removed in favor of `bundle platform --ruby`")
7
+
4
8
  Signal.trap("INT") { exit 1 }
5
9
 
6
10
  require "bundler/errors"
7
11
  require "bundler/ruby_version"
8
12
  require "bundler/ruby_dsl"
9
- require "bundler/shared_helpers"
10
13
 
11
14
  module Bundler
12
15
  class Dsl
@@ -42,8 +45,6 @@ module Bundler
42
45
  end
43
46
  end
44
47
 
45
- Bundler::SharedHelpers.major_deprecation("the bundle_ruby executable has been removed in favor of `bundle platform --ruby`")
46
-
47
48
  dsl = Bundler::Dsl.new
48
49
  begin
49
50
  dsl.eval_gemfile(Bundler::SharedHelpers.default_gemfile)
@@ -0,0 +1,53 @@
1
+ # frozen_string_literal: true
2
+
3
+ module Bundler
4
+ # Represents metadata from when the Bundler gem was built.
5
+ module BuildMetadata
6
+ # begin ivars
7
+ @built_at = "2018-12-27".freeze
8
+ @git_commit_sha = "d7089abb6".freeze
9
+ @release = true
10
+ # end ivars
11
+
12
+ # A hash representation of the build metadata.
13
+ def self.to_h
14
+ {
15
+ "Built At" => built_at,
16
+ "Git SHA" => git_commit_sha,
17
+ "Released Version" => release?,
18
+ }
19
+ end
20
+
21
+ # A string representing the date the bundler gem was built.
22
+ def self.built_at
23
+ @built_at ||= Time.now.utc.strftime("%Y-%m-%d").freeze
24
+ end
25
+
26
+ # The SHA for the git commit the bundler gem was built from.
27
+ def self.git_commit_sha
28
+ return @git_commit_sha if @git_commit_sha
29
+
30
+ # If Bundler has been installed without its .git directory and without a
31
+ # commit instance variable then we can't determine its commits SHA.
32
+ git_dir = File.join(File.expand_path("../../..", __FILE__), ".git")
33
+ if File.directory?(git_dir)
34
+ return @git_commit_sha = Dir.chdir(git_dir) { `git rev-parse --short HEAD`.strip.freeze }
35
+ end
36
+
37
+ # If Bundler is a submodule in RubyGems, get the submodule commit
38
+ git_sub_dir = File.join(File.expand_path("../../../..", __FILE__), ".git")
39
+ if File.directory?(git_sub_dir)
40
+ return @git_commit_sha = Dir.chdir(git_sub_dir) do
41
+ `git ls-tree --abbrev=8 HEAD bundler`.split(/\s/).fetch(2, "").strip.freeze
42
+ end
43
+ end
44
+
45
+ @git_commit_sha ||= "unknown"
46
+ end
47
+
48
+ # Whether this is an official release build of Bundler.
49
+ def self.release?
50
+ @release
51
+ end
52
+ end
53
+ end
@@ -1,4 +1,9 @@
1
1
  # frozen_string_literal: true
2
+
3
+ require "bundler/shared_helpers"
4
+ Bundler::SharedHelpers.major_deprecation 2,
5
+ "The Bundler task for Capistrano. Please use http://github.com/capistrano/bundler"
6
+
2
7
  # Capistrano task for Bundler.
3
8
  #
4
9
  # Add "require 'bundler/capistrano'" in your Capistrano deploy.rb, and
@@ -1,15 +1,19 @@
1
1
  # frozen_string_literal: true
2
- require "bundler/cli/common"
3
2
 
4
3
  module Bundler
5
4
  class CLI::Add
6
- def initialize(options, gem_name)
7
- @gem_name = gem_name
5
+ def initialize(options, gems)
6
+ @gems = gems
8
7
  @options = options
9
8
  @options[:group] = @options[:group].split(",").map(&:strip) if !@options[:group].nil? && !@options[:group].empty?
10
9
  end
11
10
 
12
11
  def run
12
+ raise InvalidOption, "You can not specify `--strict` and `--optimistic` at the same time." if @options[:strict] && @options[:optimistic]
13
+
14
+ # raise error when no gems are specified
15
+ raise InvalidOption, "Please specify gems to add." if @gems.empty?
16
+
13
17
  version = @options[:version].nil? ? nil : @options[:version].split(",").map(&:strip)
14
18
 
15
19
  unless version.nil?
@@ -17,10 +21,15 @@ module Bundler
17
21
  raise InvalidOption, "Invalid gem requirement pattern '#{v}'" unless Gem::Requirement::PATTERN =~ v.to_s
18
22
  end
19
23
  end
20
- dependency = Bundler::Dependency.new(@gem_name, version, @options)
21
24
 
22
- Injector.inject([dependency], :conservative_versioning => @options[:version].nil?) # Perform conservative versioning only when version is not specified
23
- Installer.install(Bundler.root, Bundler.definition)
25
+ dependencies = @gems.map {|g| Bundler::Dependency.new(g, version, @options) }
26
+
27
+ Injector.inject(dependencies,
28
+ :conservative_versioning => @options[:version].nil?, # Perform conservative versioning only when version is not specified
29
+ :optimistic => @options[:optimistic],
30
+ :strict => @options[:strict])
31
+
32
+ Installer.install(Bundler.root, Bundler.definition) unless @options["skip-install"]
24
33
  end
25
34
  end
26
35
  end
@@ -1,5 +1,4 @@
1
1
  # frozen_string_literal: true
2
- require "bundler/cli/common"
3
2
 
4
3
  module Bundler
5
4
  class CLI::Binstubs
@@ -11,11 +10,19 @@ module Bundler
11
10
 
12
11
  def run
13
12
  Bundler.definition.validate_runtime!
14
- Bundler.settings[:bin] = options["path"] if options["path"]
15
- Bundler.settings[:bin] = nil if options["path"] && options["path"].empty?
13
+ path_option = options["path"]
14
+ path_option = nil if path_option && path_option.empty?
15
+ Bundler.settings.set_command_option :bin, path_option if options["path"]
16
+ Bundler.settings.set_command_option_if_given :shebang, options["shebang"]
16
17
  installer = Installer.new(Bundler.root, Bundler.definition)
17
18
 
18
- if gems.empty?
19
+ installer_opts = { :force => options[:force], :binstubs_cmd => true }
20
+
21
+ if options[:all]
22
+ raise InvalidOption, "Cannot specify --all with specific gems" unless gems.empty?
23
+ @gems = Bundler.definition.specs.map(&:name)
24
+ installer_opts.delete(:binstubs_cmd)
25
+ elsif gems.empty?
19
26
  Bundler.ui.error "`bundle binstubs` needs at least one gem to run."
20
27
  exit 1
21
28
  end
@@ -28,12 +35,13 @@ module Bundler
28
35
  )
29
36
  end
30
37
 
31
- if spec.name == "bundler"
32
- Bundler.ui.warn "Sorry, Bundler can only be run via Rubygems."
33
- elsif options[:standalone]
34
- installer.generate_standalone_bundler_executable_stubs(spec)
38
+ if options[:standalone]
39
+ next Bundler.ui.warn("Sorry, Bundler can only be run via RubyGems.") if gem_name == "bundler"
40
+ Bundler.settings.temporary(:path => (Bundler.settings[:path] || Bundler.root)) do
41
+ installer.generate_standalone_bundler_executable_stubs(spec)
42
+ end
35
43
  else
36
- installer.generate_bundler_executable_stubs(spec, :force => options[:force], :binstubs_cmd => true)
44
+ installer.generate_bundler_executable_stubs(spec, installer_opts)
37
45
  end
38
46
  end
39
47
  end