bundler 1.15.1 → 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 (294) hide show
  1. checksums.yaml +5 -5
  2. data/CHANGELOG.md +320 -0
  3. data/README.md +17 -8
  4. data/bundler.gemspec +25 -9
  5. data/exe/bundle +1 -6
  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 -77
  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 +4 -0
  37. data/lib/bundler/cli.rb +234 -90
  38. data/lib/bundler/compact_index_client/cache.rb +1 -2
  39. data/lib/bundler/compact_index_client/updater.rb +35 -7
  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 +10 -10
  72. data/lib/bundler/installer/gem_installer.rb +12 -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 +10 -1
  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 +213 -86
  101. data/lib/bundler/setup.rb +4 -7
  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 +11 -7
  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 +12 -6
  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 +3 -0
  121. data/lib/bundler/templates/gems.rb +8 -0
  122. data/lib/bundler/templates/newgem/Gemfile.tt +2 -0
  123. data/lib/bundler/templates/newgem/README.md.tt +1 -1
  124. data/lib/bundler/templates/newgem/gitignore.tt +0 -1
  125. data/lib/bundler/templates/newgem/lib/newgem.rb.tt +1 -0
  126. data/lib/bundler/templates/newgem/newgem.gemspec.tt +12 -3
  127. data/lib/bundler/templates/newgem/rspec.tt +1 -0
  128. data/lib/bundler/templates/newgem/spec/newgem_spec.rb.tt +0 -2
  129. data/lib/bundler/templates/newgem/{.travis.yml.tt → travis.yml.tt} +2 -0
  130. data/lib/bundler/ui/rg_proxy.rb +1 -0
  131. data/lib/bundler/ui/shell.rb +17 -4
  132. data/lib/bundler/ui/silent.rb +1 -0
  133. data/lib/bundler/ui.rb +1 -0
  134. data/lib/bundler/uri_credentials_filter.rb +1 -0
  135. data/lib/bundler/vendor/fileutils/lib/fileutils.rb +1638 -0
  136. data/lib/bundler/vendor/molinillo/lib/molinillo/compatibility.rb +26 -0
  137. data/lib/bundler/vendor/molinillo/lib/molinillo/delegates/resolution_state.rb +7 -0
  138. data/lib/bundler/vendor/molinillo/lib/molinillo/delegates/specification_provider.rb +1 -0
  139. data/lib/bundler/vendor/molinillo/lib/molinillo/dependency_graph/action.rb +1 -0
  140. data/lib/bundler/vendor/molinillo/lib/molinillo/dependency_graph/add_edge_no_circular.rb +1 -0
  141. data/lib/bundler/vendor/molinillo/lib/molinillo/dependency_graph/add_vertex.rb +1 -0
  142. data/lib/bundler/vendor/molinillo/lib/molinillo/dependency_graph/delete_edge.rb +1 -0
  143. data/lib/bundler/vendor/molinillo/lib/molinillo/dependency_graph/detach_vertex_named.rb +1 -0
  144. data/lib/bundler/vendor/molinillo/lib/molinillo/dependency_graph/log.rb +1 -0
  145. data/lib/bundler/vendor/molinillo/lib/molinillo/dependency_graph/set_payload.rb +1 -0
  146. data/lib/bundler/vendor/molinillo/lib/molinillo/dependency_graph/tag.rb +1 -0
  147. data/lib/bundler/vendor/molinillo/lib/molinillo/dependency_graph/vertex.rb +15 -4
  148. data/lib/bundler/vendor/molinillo/lib/molinillo/dependency_graph.rb +3 -2
  149. data/lib/bundler/vendor/molinillo/lib/molinillo/errors.rb +75 -7
  150. data/lib/bundler/vendor/molinillo/lib/molinillo/gem_metadata.rb +2 -1
  151. data/lib/bundler/vendor/molinillo/lib/molinillo/modules/specification_provider.rb +1 -0
  152. data/lib/bundler/vendor/molinillo/lib/molinillo/modules/ui.rb +3 -1
  153. data/lib/bundler/vendor/molinillo/lib/molinillo/resolution.rb +491 -148
  154. data/lib/bundler/vendor/molinillo/lib/molinillo/resolver.rb +1 -0
  155. data/lib/bundler/vendor/molinillo/lib/molinillo/state.rb +8 -4
  156. data/lib/bundler/vendor/molinillo/lib/molinillo.rb +2 -0
  157. data/lib/bundler/vendor/net-http-persistent/lib/net/http/persistent.rb +3 -1
  158. data/lib/bundler/vendor/thor/lib/thor/actions/create_file.rb +1 -0
  159. data/lib/bundler/vendor/thor/lib/thor/actions/create_link.rb +1 -0
  160. data/lib/bundler/vendor/thor/lib/thor/actions/empty_directory.rb +9 -1
  161. data/lib/bundler/vendor/thor/lib/thor/actions/file_manipulation.rb +45 -8
  162. data/lib/bundler/vendor/thor/lib/thor/actions/inject_into_file.rb +9 -3
  163. data/lib/bundler/vendor/thor/lib/thor/actions.rb +6 -3
  164. data/lib/bundler/vendor/thor/lib/thor/base.rb +27 -4
  165. data/lib/bundler/vendor/thor/lib/thor/command.rb +9 -7
  166. data/lib/bundler/vendor/thor/lib/thor/core_ext/hash_with_indifferent_access.rb +12 -0
  167. data/lib/bundler/vendor/thor/lib/thor/group.rb +1 -1
  168. data/lib/bundler/vendor/thor/lib/thor/line_editor/basic.rb +2 -0
  169. data/lib/bundler/vendor/thor/lib/thor/parser/option.rb +5 -5
  170. data/lib/bundler/vendor/thor/lib/thor/parser/options.rb +6 -5
  171. data/lib/bundler/vendor/thor/lib/thor/runner.rb +6 -4
  172. data/lib/bundler/vendor/thor/lib/thor/shell/basic.rb +10 -9
  173. data/lib/bundler/vendor/thor/lib/thor/version.rb +1 -1
  174. data/lib/bundler/vendor/thor/lib/thor.rb +25 -8
  175. data/lib/bundler/vendored_fileutils.rb +9 -0
  176. data/lib/bundler/vendored_molinillo.rb +1 -0
  177. data/lib/bundler/vendored_persistent.rb +35 -0
  178. data/lib/bundler/vendored_thor.rb +1 -0
  179. data/lib/bundler/version.rb +6 -2
  180. data/lib/bundler/version_ranges.rb +1 -0
  181. data/lib/bundler/vlad.rb +5 -0
  182. data/lib/bundler/worker.rb +1 -0
  183. data/lib/bundler/yaml_serializer.rb +3 -3
  184. data/lib/bundler.rb +86 -52
  185. data/man/bundle-add.1 +18 -3
  186. data/man/bundle-add.1.txt +26 -14
  187. data/man/bundle-add.ronn +13 -2
  188. data/man/bundle-binstubs.1 +11 -1
  189. data/man/bundle-binstubs.1.txt +33 -18
  190. data/man/bundle-binstubs.ronn +15 -1
  191. data/man/bundle-check.1 +4 -4
  192. data/man/bundle-check.1.txt +15 -14
  193. data/man/bundle-check.ronn +3 -3
  194. data/man/bundle-clean.1 +1 -1
  195. data/man/bundle-clean.1.txt +10 -10
  196. data/man/bundle-config.1 +129 -29
  197. data/man/bundle-config.1.txt +285 -174
  198. data/man/bundle-config.ronn +167 -88
  199. data/man/bundle-doctor.1 +44 -0
  200. data/man/bundle-doctor.1.txt +44 -0
  201. data/man/bundle-doctor.ronn +33 -0
  202. data/man/bundle-exec.1 +6 -3
  203. data/man/bundle-exec.1.txt +78 -71
  204. data/man/bundle-exec.ronn +10 -3
  205. data/man/bundle-gem.1 +4 -4
  206. data/man/bundle-gem.1.txt +41 -40
  207. data/man/bundle-gem.ronn +3 -2
  208. data/man/bundle-info.1 +1 -1
  209. data/man/bundle-info.1.txt +8 -8
  210. data/man/bundle-init.1 +9 -4
  211. data/man/bundle-init.1.txt +23 -13
  212. data/man/bundle-init.ronn +15 -4
  213. data/man/bundle-inject.1 +4 -4
  214. data/man/bundle-inject.1.txt +10 -10
  215. data/man/bundle-inject.ronn +3 -3
  216. data/man/bundle-install.1 +31 -28
  217. data/man/bundle-install.1.txt +205 -194
  218. data/man/bundle-install.ronn +44 -35
  219. data/man/bundle-list.1 +50 -0
  220. data/man/bundle-list.1.txt +43 -0
  221. data/man/bundle-list.ronn +33 -0
  222. data/man/bundle-lock.1 +1 -1
  223. data/man/bundle-lock.1.txt +47 -47
  224. data/man/bundle-lock.ronn +1 -1
  225. data/man/bundle-open.1 +1 -1
  226. data/man/bundle-open.1.txt +7 -7
  227. data/man/bundle-outdated.1 +7 -3
  228. data/man/bundle-outdated.1.txt +40 -36
  229. data/man/bundle-outdated.ronn +6 -2
  230. data/man/bundle-package.1 +6 -3
  231. data/man/bundle-package.1.txt +44 -39
  232. data/man/bundle-package.ronn +7 -2
  233. data/man/bundle-platform.1 +1 -1
  234. data/man/bundle-platform.1.txt +13 -13
  235. data/man/bundle-pristine.1 +21 -3
  236. data/man/bundle-pristine.1.txt +33 -10
  237. data/man/bundle-pristine.ronn +24 -3
  238. data/man/bundle-remove.1 +31 -0
  239. data/man/bundle-remove.1.txt +34 -0
  240. data/man/bundle-remove.ronn +23 -0
  241. data/man/bundle-show.1 +3 -3
  242. data/man/bundle-show.1.txt +14 -12
  243. data/man/bundle-show.ronn +3 -2
  244. data/man/bundle-update.1 +13 -9
  245. data/man/bundle-update.1.txt +133 -130
  246. data/man/bundle-update.ronn +21 -17
  247. data/man/bundle-viz.1 +7 -7
  248. data/man/bundle-viz.1.txt +17 -15
  249. data/man/bundle-viz.ronn +6 -6
  250. data/man/bundle.1 +31 -32
  251. data/man/bundle.1.txt +63 -75
  252. data/man/bundle.ronn +35 -47
  253. data/man/gemfile.5 +44 -8
  254. data/man/gemfile.5.ronn +54 -8
  255. data/man/gemfile.5.txt +218 -165
  256. data/man/index.txt +25 -15
  257. metadata +36 -44
  258. data/.codeclimate.yml +0 -25
  259. data/.gitignore +0 -18
  260. data/.rspec +0 -3
  261. data/.rubocop.yml +0 -131
  262. data/.rubocop_todo.yml +0 -418
  263. data/.travis.yml +0 -122
  264. data/CODE_OF_CONDUCT.md +0 -42
  265. data/CONTRIBUTING.md +0 -17
  266. data/Rakefile +0 -346
  267. data/bin/rake +0 -19
  268. data/bin/rspec +0 -15
  269. data/bin/rubocop +0 -17
  270. data/bin/with_rubygems +0 -39
  271. data/doc/README.md +0 -30
  272. data/doc/TROUBLESHOOTING.md +0 -64
  273. data/doc/contributing/BUG_TRIAGE.md +0 -36
  274. data/doc/contributing/COMMUNITY.md +0 -13
  275. data/doc/contributing/GETTING_HELP.md +0 -11
  276. data/doc/contributing/HOW_YOU_CAN_HELP.md +0 -27
  277. data/doc/contributing/ISSUES.md +0 -51
  278. data/doc/contributing/README.md +0 -38
  279. data/doc/development/NEW_FEATURES.md +0 -10
  280. data/doc/development/PULL_REQUESTS.md +0 -40
  281. data/doc/development/README.md +0 -19
  282. data/doc/development/RELEASING.md +0 -9
  283. data/doc/development/SETUP.md +0 -29
  284. data/doc/documentation/README.md +0 -29
  285. data/doc/documentation/VISION.md +0 -26
  286. data/doc/documentation/WRITING.md +0 -54
  287. data/lib/bundler/postit_trampoline.rb +0 -73
  288. data/lib/bundler/vendor/postit/lib/postit/environment.rb +0 -44
  289. data/lib/bundler/vendor/postit/lib/postit/installer.rb +0 -28
  290. data/lib/bundler/vendor/postit/lib/postit/parser.rb +0 -21
  291. data/lib/bundler/vendor/postit/lib/postit/setup.rb +0 -12
  292. data/lib/bundler/vendor/postit/lib/postit/version.rb +0 -3
  293. data/lib/bundler/vendor/postit/lib/postit.rb +0 -15
  294. data/task/release.rake +0 -116
@@ -1,51 +0,0 @@
1
- # Filing Issues: a guide
2
-
3
- So! You're having problems with Bundler. This file is here to help. If you're running into an error, try reading the rest of this file for help. If you can't figure out how to solve your problem, there are also instructions on how to report a bug.
4
-
5
- Before filing an issue, check our [troubleshooting guide](../TROUBLESHOOTING.md) for quick fixes to common issues.
6
-
7
- ## Documentation
8
-
9
- Instructions for common Bundler uses can be found on the [Bundler documentation site](http://bundler.io/).
10
-
11
- Detailed information about each Bundler command, including help with common problems, can be found in the [Bundler man pages](http://bundler.io/man/bundle.1.html) or [Bundler Command Line Reference](http://bundler.io/v1.11/commands.html).
12
-
13
- ## Reporting unresolved problems
14
-
15
- Check our [troubleshooting common issues guide](../TROUBLESHOOTING.md) and see if your issues is resolved using the steps provided.
16
-
17
- Hopefully the troubleshooting steps above resolved your problem! If things still aren't working the way you expect them to, please let us know so that we can diagnose and hopefully fix the problem you're having.
18
-
19
- **The best way to report a bug is by providing a reproduction script.** See these examples:
20
-
21
- * [Git environment variables causing install to fail.](https://gist.github.com/xaviershay/6207550)
22
- * [Multiple gems in a repository cannot be updated independently.](https://gist.github.com/xaviershay/6295889)
23
-
24
- A half working script with comments for the parts you were unable to automate is still appreciated.
25
-
26
- If you are unable to do that, please include the following information in your report:
27
-
28
- - What you're trying to accomplish
29
- - The command you ran
30
- - What you expected to happen
31
- - What actually happened
32
- - The exception backtrace(s), if any
33
- - Everything output by running `bundle env`
34
-
35
- If your version of Bundler does not have the `bundle env` command, then please include:
36
-
37
- - Your `Gemfile`
38
- - Your `Gemfile.lock`
39
- - Your Bundler configuration settings (run `bundle config`)
40
- - What version of bundler you are using (run `bundle -v`)
41
- - What version of Ruby you are using (run `ruby -v`)
42
- - What version of Rubygems you are using (run `gem -v`)
43
- - Whether you are using RVM, and if so what version (run `rvm -v`)
44
- - Whether you have the `rubygems-bundler` gem, which can break gem executables (run `gem list rubygems-bundler`)
45
- - Whether you have the `open_gem` gem, which can cause rake activation conflicts (run `gem list open_gem`)
46
-
47
- If you have either `rubygems-bundler` or `open_gem` installed, please try removing them and then following the troubleshooting steps above before opening a new ticket.
48
-
49
- [Create a gist](https://gist.github.com) containing all of that information, then visit the [Bundler issue tracker](https://github.com/bundler/bundler/issues) and [create a ticket](https://github.com/bundler/bundler/issues/new) describing your problem and linking to your gist.
50
-
51
- Thanks for reporting issues and helping make Bundler better!
@@ -1,38 +0,0 @@
1
- # Contributing to Bundler
2
-
3
- Welcome to Bundler! We are so happy that you're here. We know it can be daunting to joining a new open source project, so here's a quick overview of what you can expect from this documentation.
4
-
5
- *Something missing?* Send us a [pull request](../development/PULL_REQUESTS.md)!
6
-
7
- **Recommended first steps**
8
-
9
- - Join us in the Bundler slack! Generate an invite [here](http://slack.bundler.io/)
10
- - *If you're interested in helping with code:*
11
- - Get a quick overview of our [development process](../development/README.md)
12
- - [Setup your machine for development](../development/SETUP.md)
13
- - Checkout [How you can help: your first contributions!](HOW_YOU_CAN_HELP.md) for a list of suggestions to get started
14
- - *If you're interested in helping with documentation:*
15
- - Read up on [how documentation works for Bundler](../documentation/README.md)
16
- - Learn about our [documentation vision](../documentation/VISION.md)
17
-
18
- You can start learning about Bundler by reading [the documentation](http://bundler.io). If you want, you can also read a (lengthy) explanation of [why Bundler exists and what it does](http://bundler.io/rationale.html).
19
-
20
- ##[How you can help: your first contributions!](HOW_YOU_CAN_HELP.md)
21
-
22
- A detailed overview of how to get started contributing to Bundler, including a long list of suggestions for your first project.
23
-
24
- ##[Bug triage](BUG_TRIAGE.md)
25
-
26
- Want to take a stab at processing issues? Start here.
27
-
28
- ##[Getting help](GETTING_HELP.md)
29
-
30
- How to get in touch with folks who can help when you're stuck. Don't worry! This happens to all of us. We're really nice, we promise.
31
-
32
- ##[Filing issues](ISSUES.md)
33
-
34
- We see a lot of issues in the Bundler repo! Use this guide to file informative, actionable issues.
35
-
36
- ##[Community](COMMUNITY.md)
37
-
38
- Learn more about our goals for the Bundler community and the ways you can help us build better together.
@@ -1,10 +0,0 @@
1
- # Adding New Features
2
-
3
- If you would like to add a new feature to Bundler, please follow these steps:
4
-
5
- 1. [Create an issue](https://github.com/bundler/bundler/issues/new) with the [`feature-request` label](https://github.com/bundler/bundler/labels/type:%20feature-request) to discuss your feature.
6
- 2. Base your commits on the master branch, since we follow [SemVer](http://semver.org) and don't add new features to old releases.
7
- 3. Commit the code and at least one test covering your changes to a feature branch in your fork.
8
- 4. Send us a [pull request](PULL_REQUESTS.md) from your feature branch.
9
-
10
- If you don't hear back immediately, don’t get discouraged! We all have day jobs, but we respond to most tickets within a day or two.
@@ -1,40 +0,0 @@
1
- # Submitting Pull Requests
2
-
3
- Before you submit a pull request, please remember to do the following:
4
-
5
- 1. Check your code format and style
6
- 2. Run the test suite
7
- 3. Use a meaningful commit message without tags
8
-
9
- ## Code formatting
10
-
11
- Make sure the code formatting and styling adheres to the guidelines. We use RuboCop for this. Lack of formatting adherence will result in automatic Travis build failures.
12
-
13
- $ bin/rubocop -a
14
-
15
- ## Tests
16
-
17
- Prior to submitting your PR, please run the test suite:
18
-
19
- $ bin/rspec
20
-
21
- If you are unable to run the entire test suite, please run the unit test suite and at least the integration specs related to the command or domain of Bundler that your code changes relate to.
22
-
23
- Ex. For a pull request that changes something with `bundle update`, you might run:
24
-
25
- $ bin/rspec spec/bundler
26
- $ bin/rspec spec/commands/update_spec.rb
27
-
28
- ## Commit messages
29
-
30
- Please ensure that the commit messages included in the pull request __do not__ have the following:
31
- - `@tag` GitHub user or team references (ex. `@indirect` or `@bundler/core`)
32
- - `#id` references to issues or pull requests (ex. `#43` or `bundler/bundler-site#12`)
33
-
34
- If you want to use these mechanisms, please instead include them in the pull request description. This prevents multiple notifications or references being created on commit rebases or pull request/branch force pushes.
35
-
36
- Additionally, do not use `[ci skip]` or `[skip ci]` mechanisms in your pull request titles/descriptions or commit messages. Every potential commit and pull request should run through Bundler's CI system. This applies to all changes/commits (ex. even a change to just documentation or the removal of a comment).
37
-
38
- ## CHANGELOG.md
39
-
40
- Don't forget to add your changes into the CHANGELOG! If you're submitting documentation, note the changes under the "Documentation" heading.
@@ -1,19 +0,0 @@
1
- # Development
2
-
3
- So, you're ready to start contributing to Bundler! You've come to the right place. Here you'll find an overview of how to work on Bundler locally and a description of the process from code to release.
4
-
5
- ##[Development setup](SETUP.md)
6
-
7
- Guidelines for setting up your local development environment.
8
-
9
- ##[Submitting pull requests](PULL_REQUESTS.md)
10
-
11
- An overview of our preferred PR process, including how to run the test suite and what to expect when you submit code for review.
12
-
13
- ##[Adding new features](NEW_FEATURES.md)
14
-
15
- Guidelines for proposing and writing new features for Bundler.
16
-
17
- ##[Releasing Bundler](RELEASING.md)
18
-
19
- A broad-strokes overview of the release process adhered to by the Bundler core team.
@@ -1,9 +0,0 @@
1
- # Releasing
2
-
3
- _Release process documentation is in progress, see [PR 5252](https://github.com/bundler/bundler/pull/5252)._
4
-
5
- ## Beta testing
6
-
7
- Early releases require heavy testing, especially across various system setups. We :heart: testers, and are big fans of anyone who can run `gem install bundler --pre` and try out upcoming releases in their development and staging environments.
8
-
9
- There may not always be prereleases or beta versions of Bundler. The Bundler team will tweet from the [@bundlerio account](http://twitter.com/bundlerio) when a prerelease or beta version becomes available. You are also always welcome to try checking out master and building a gem yourself if you want to try out the latest changes.
@@ -1,29 +0,0 @@
1
- # Development setup
2
-
3
- Bundler doesn't use a Gemfile to list development dependencies, because when we tried it we couldn't tell if we were awake or it was just another level of dreams. To work on Bundler, you'll probably want to do a couple of things.
4
-
5
- 1. Install `groff-base` and `graphviz` packages using your package manager, e.g for ubuntu
6
-
7
- $ sudo apt-get install graphviz groff-base -y
8
-
9
- and for OS X (with brew installed)
10
-
11
- $ brew install graphviz homebrew/dupes/groff
12
-
13
- 2. Install Bundler's development dependencies
14
-
15
- $ bin/rake spec:deps
16
-
17
- 3. Run the test suite, to make sure things are working
18
-
19
- $ bin/rake spec
20
-
21
- 4. Set up a shell alias to run Bundler from your clone, e.g. a Bash alias:
22
-
23
- $ alias dbundle='BUNDLE_TRAMPOLINE_DISABLE=1 ruby -I /path/to/bundler/lib /path/to/bundler/exe/bundle'
24
-
25
- The `BUNDLE_TRAMPOLINE_DISABLE` environment variable ensures that the version of Bundler in `/path/to/bundler/lib` will be used. Without that environment setting, Bundler will automatically download, install, and run the version of Bundler listed in `Gemfile.lock`. With that set up, you can test changes you've made to Bundler by running `dbundle`, without interfering with the regular `bundle` command.
26
-
27
- ## Debugging with `pry`
28
-
29
- To dive into the code with Pry: `RUBYOPT=-rpry dbundle` to require pry and then run commands.
@@ -1,29 +0,0 @@
1
- # Documentation
2
-
3
- Code needs explanation, and sometimes those who know the code well have trouble explaining it to someone just getting into it. Because of that, we welcome documentation suggestions and patches from everyone, especially if they are brand new to using Bundler.
4
-
5
- Currently, Bundler has two main sources of documentation:
6
-
7
- 1. built-in `help` (including usage information and man pages)
8
- 2. [Bundler documentation site](http://bundler.io)
9
-
10
- If you have a suggestion or proposed change for [bundler.io](http://bundler.io), please open an issue or send a pull request to the [bundler-site](https://github.com/bundler/bundler-site) repository.
11
-
12
- Not sure where to write documentation? In general, follow these guidelines:
13
-
14
- * For an explanation of a specific Bundler command (ex: `bundle clean`): make changes to the man pages
15
- * For longer explanations or usage guides (ex: "Using Bundler with Rails"): create new documentation within the [bundler-site](https://github.com/bundler/bundler-site) repository
16
-
17
- If you are unsure where to begin, ping [@feministy](https://github.com/feministy) or [@indirect](https://github.com/indirect) in the Bundler Slack ([get an invite here](../contributing/GETTING_HELP.md)).
18
-
19
- ## [Writing docs for man pages)](WRITING.md)
20
-
21
- If you’d like to submit a patch to the man pages, you're in the right place! Details on editing and previewing changes to man pages can be found here.
22
-
23
- ## [Documentation vision](VISION.md)
24
-
25
- Just like Bundler, we have a grand plan (really, a wish list of sorts) for Bundler documentation. Preview our hopes and dreams for our documentation here.
26
-
27
- ## Translations
28
-
29
- We don't currently have any translations, but please reach out to us if you would like to help get this going.
@@ -1,26 +0,0 @@
1
- # Documentation vision
2
-
3
- Currently, documentation for using Bundler is spread across two places:
4
-
5
- 1. built-in `help` (including usage information and man pages)
6
- 2. [Bundler documentation site](http://bundler.io)
7
-
8
- Additional documentation about using Bundler to publish gems can also be found on the [RubyGems guides](http://guides.rubygems.org/).
9
-
10
- ## Goals
11
-
12
- Bundler documentation should provide users with assistance:
13
-
14
- 1. Installing Bundler
15
- 2. Using Bundler to manage an application's dependencies
16
- 3. Using Bundler to create, package, and publish gems
17
-
18
- Our goal is to provide three types of documentation:
19
-
20
- * High level overviews that provide topical guidance
21
- * Step-by-step tutorials
22
- * Command-specific reference material for the CLI
23
-
24
- Additionally, this documentation should be readily available in a logical place and easy to follow.
25
-
26
- Someday, we'd like to create deep-dive reference material about the inner workings of Bundler. However, while this is part of our overall vision for Bundler documentation, it is not the focus of our current work.
@@ -1,54 +0,0 @@
1
- # Writing docs for man pages
2
-
3
- A primary source of help for Bundler users are the man pages: the output printed when you run `bundle help` (or `bundler help`). These pages can be a little tricky to format and preview, but are pretty straightforward once you get the hang of it.
4
-
5
- _Note: `bundler` and `bundle` may be used interchangeably in the CLI. This guide uses `bundle` because it's cuter._
6
-
7
- ## What goes in man pages?
8
-
9
- We use man pages for Bundler commands used in the CLI (command line interface). They can vary in length from large (see `bundle install`) to very short (see `bundle clean`).
10
-
11
- To see a list of commands available in the Bundler CLI, type:
12
-
13
- $ bundle help
14
-
15
- Our goal is to have a man page for every command.
16
-
17
- Don't see a man page for a command? Make a new page and send us a PR! We also welcome edits to existing pages.
18
-
19
- ## Creating a new man page
20
-
21
- To create a new man page, simply create a new `.ronn` file in the `man/` directory.
22
-
23
- For example: to create a man page for the command `bundle cookies` (not a real command, sadly), I would create a file `man/bundle-cookies.ronn` and add my documentation there.
24
-
25
- ## Formatting
26
-
27
- Our man pages use ronn formatting, a combination of Markdown and standard man page conventions. It can be a little weird getting used to it at first, especially if you've used Markdown a lot.
28
-
29
- [The ronn guide formatting guide](https://rtomayko.github.io/ronn/ronn.7.html) provides a good overview of the common types of formatting.
30
-
31
- In general, make your page look like the other pages: utilize sections like `##OPTIONS` and formatting like code blocks and definition lists where appropriate.
32
-
33
- If you're not sure if the formatting looks right, that's ok! Make a pull request with what you've got and we'll take a peek.
34
-
35
- ## Previewing
36
-
37
- To preview your changes as they will print out for Bundler users, you'll need to run a series of commands:
38
-
39
- ```
40
- $ rake spec:deps
41
- $ rake man:build
42
- $ man man/bundle-cookies.1
43
- ```
44
-
45
- If you make more changes to `bundle-cookies.ronn`, you'll need to run the `rake man:build` again before previewing.
46
-
47
- ## Testing
48
-
49
- We have tests for our documentation! The most important test file to run before you make your pull request is the one for the `help` command and another for documentation quality.
50
-
51
- ```
52
- $ rspec ./spec/commands/help_spec.rb
53
- $ rspec ./spec/quality_spec.rb
54
- ```
@@ -1,73 +0,0 @@
1
- # frozen_string_literal: true
2
-
3
- module BundlerVendoredPostIt; end
4
- require "bundler/vendor/postit/lib/postit"
5
- require "rubygems"
6
-
7
- environment = BundlerVendoredPostIt::PostIt::Environment.new([])
8
- version = Gem::Requirement.new(environment.bundler_version)
9
- if version.requirements.size == 1 && version.requirements.first.first == "=" # version.exact?
10
- if version.requirements.first.last.segments.first >= 2
11
- ENV["BUNDLE_TRAMPOLINE_FORCE"] = "true"
12
- end
13
- end
14
-
15
- if ENV["BUNDLE_TRAMPOLINE_FORCE"] && !ENV["BUNDLE_TRAMPOLINE_DISABLE"]
16
- installed_version =
17
- if defined?(Bundler::VERSION)
18
- Bundler::VERSION
19
- else
20
- File.read(File.expand_path("../version.rb", __FILE__)) =~ /VERSION = "(.+)"/
21
- $1
22
- end
23
- installed_version &&= Gem::Version.new(installed_version)
24
-
25
- if !version.satisfied_by?(installed_version)
26
- begin
27
- installer = BundlerVendoredPostIt::PostIt::Installer.new(version)
28
- unless installer.installed?
29
- warn "Installing locked Bundler version #{version.to_s.gsub("= ", "")}..."
30
- installer.install!
31
- end
32
- rescue => e
33
- abort <<-EOS.strip
34
- Installing the inferred bundler version (#{version}) failed.
35
- If you'd like to update to the current bundler version (#{installed_version}) in this project, run `bundle update --bundler`.
36
- The error was: #{e}
37
- EOS
38
- end
39
-
40
- if deleted_spec = Gem.loaded_specs.delete("bundler")
41
- deleted_spec.full_require_paths.each {|path| $:.delete(path) }
42
- else
43
- $:.delete(File.expand_path("../..", __FILE__))
44
- end
45
- gem "bundler", version
46
- else
47
- begin
48
- gem "bundler", version
49
- rescue LoadError
50
- $:.unshift(File.expand_path("../..", __FILE__))
51
- end
52
- end
53
-
54
- running_version = begin
55
- require "bundler/version"
56
- Bundler::VERSION
57
- rescue LoadError, NameError
58
- nil
59
- end
60
-
61
- ENV["BUNDLE_POSTIT_TRAMPOLINING_VERSION"] = installed_version.to_s
62
-
63
- if !Gem::Requirement.new(">= 1.13.pre".dup).satisfied_by?(Gem::Version.new(running_version)) && (ARGV.empty? || ARGV.any? {|a| %w(install i).include? a })
64
- puts <<-WARN.strip
65
- You're running Bundler #{installed_version} but this project uses #{running_version}. To update, run `bundle update --bundler`.
66
- WARN
67
- end
68
-
69
- if !Gem::Version.correct?(running_version.to_s) || !version.satisfied_by?(Gem::Version.create(running_version))
70
- abort "The running bundler (#{running_version}) does not match the required `#{version}`"
71
- end
72
-
73
- end # if ENV["BUNDLE_TRAMPOLINE_FORCE"] && !ENV["BUNDLE_TRAMPOLINE_DISABLE"]
@@ -1,44 +0,0 @@
1
- require 'bundler/vendor/postit/lib/postit/parser'
2
-
3
- module BundlerVendoredPostIt::PostIt
4
- class Environment
5
- def initialize(argv)
6
- @argv = argv
7
- end
8
-
9
- def env_var_version
10
- ENV['BUNDLER_VERSION']
11
- end
12
-
13
- def cli_arg_version
14
- return unless str = @argv.first
15
- str = str.dup.force_encoding('BINARY') if str.respond_to?(:force_encoding)
16
- if Gem::Version.correct?(str)
17
- @argv.shift
18
- str
19
- end
20
- end
21
-
22
- def gemfile
23
- ENV['BUNDLE_GEMFILE'] || 'Gemfile'
24
- end
25
-
26
- def lockfile
27
- File.expand_path case File.basename(gemfile)
28
- when 'gems.rb' then gemfile.sub(/\.rb$/, gemfile)
29
- else "#{gemfile}.lock"
30
- end
31
- end
32
-
33
- def lockfile_version
34
- BundlerVendoredPostIt::PostIt::Parser.new(lockfile).parse
35
- end
36
-
37
- def bundler_version
38
- @bundler_version ||= begin
39
- env_var_version || cli_arg_version ||
40
- lockfile_version || "#{Gem::Requirement.default}.a"
41
- end
42
- end
43
- end
44
- end
@@ -1,28 +0,0 @@
1
- module BundlerVendoredPostIt::PostIt
2
- class Installer
3
- def initialize(bundler_version)
4
- @bundler_version = bundler_version
5
- end
6
-
7
- def installed?
8
- if Gem::Specification.respond_to?(:find_by_name)
9
- !Gem::Specification.find_by_name('bundler', @bundler_version).nil?
10
- else
11
- requirement = Gem::Requirement.new(@bundler_version)
12
- Gem.source_index.gems.values.any? do |s|
13
- s.name == 'bundler' && requirement.satisfied_by?(s.version)
14
- end
15
- end
16
- rescue LoadError
17
- false
18
- end
19
-
20
- def install!
21
- return if installed?
22
- require 'rubygems/dependency_installer'
23
- installer = Gem::DependencyInstaller.new
24
- installer.install('bundler', @bundler_version)
25
- installer.installed_gems
26
- end
27
- end
28
- end
@@ -1,21 +0,0 @@
1
- require 'rubygems'
2
-
3
- module BundlerVendoredPostIt::PostIt
4
- class Parser
5
- def initialize(file)
6
- @file = file
7
- end
8
-
9
- BUNDLED_WITH =
10
- /\n\nBUNDLED WITH\n\s{2,}(#{Gem::Version::VERSION_PATTERN})\n/
11
-
12
- def parse
13
- return unless lockfile = File.file?(@file) && File.read(@file)
14
- if lockfile =~ BUNDLED_WITH
15
- Regexp.last_match(1)
16
- else
17
- '< 1.10'
18
- end
19
- end
20
- end
21
- end
@@ -1,12 +0,0 @@
1
- require 'bundler/vendor/postit/lib/postit/environment'
2
- require 'bundler/vendor/postit/lib/postit/installer'
3
-
4
- environment = BundlerVendoredPostIt::PostIt::Environment.new(ARGV)
5
- version = environment.bundler_version
6
-
7
- installer = BundlerVendoredPostIt::PostIt::Installer.new(version)
8
- installer.install!
9
-
10
- gem 'bundler', version
11
-
12
- require 'bundler/version'
@@ -1,3 +0,0 @@
1
- module BundlerVendoredPostIt::PostIt
2
- VERSION = '0.2.0'.freeze
3
- end
@@ -1,15 +0,0 @@
1
- require 'bundler/vendor/postit/lib/postit/environment'
2
- require 'bundler/vendor/postit/lib/postit/installer'
3
- require 'bundler/vendor/postit/lib/postit/parser'
4
- require 'bundler/vendor/postit/lib/postit/version'
5
- require 'rubygems'
6
-
7
- module BundlerVendoredPostIt::PostIt
8
- def self.setup
9
- load File.expand_path('../postit/setup.rb', __FILE__)
10
- end
11
-
12
- def self.bundler_version
13
- defined?(Bundler::VERSION) && Bundler::VERSION
14
- end
15
- end
data/task/release.rake DELETED
@@ -1,116 +0,0 @@
1
- # frozen_string_literal: true
2
- namespace :release do
3
- def confirm(prompt = "")
4
- loop do
5
- print(prompt)
6
- print(": ") unless prompt.empty?
7
- break if $stdin.gets.strip == "y"
8
- end
9
- rescue Interrupt
10
- abort
11
- end
12
-
13
- def gh_api_request(opts)
14
- require "net/http"
15
- require "json"
16
- host = opts.fetch(:host) { "https://api.github.com/" }
17
- path = opts.fetch(:path)
18
- response = Net::HTTP.get_response(URI.join(host, path))
19
-
20
- links = Hash[*(response["Link"] || "").split(", ").map do |link|
21
- href, name = link.match(/<(.*?)>; rel="(\w+)"/).captures
22
-
23
- [name.to_sym, href]
24
- end.flatten]
25
-
26
- parsed_response = JSON.parse(response.body)
27
-
28
- if n = links[:next]
29
- parsed_response.concat gh_api_request(:host => host, :path => n)
30
- end
31
-
32
- parsed_response
33
- end
34
-
35
- desc "Make a patch release with the PRs from master in the patch milestone"
36
- task :patch, :version do |_t, args|
37
- version = args.version
38
-
39
- version ||= begin
40
- version = BUNDLER_SPEC.version
41
- segments = version.segments
42
- if segments.last.is_a?(String)
43
- segments << "1"
44
- else
45
- segments[-1] += 1
46
- end
47
- segments.join(".")
48
- end
49
-
50
- confirm "You are about to release #{version}, currently #{BUNDLER_SPEC.version}"
51
-
52
- milestones = gh_api_request(:path => "repos/bundler/bundler/milestones?state=open")
53
- unless patch_milestone = milestones.find {|m| m["title"] == version }
54
- abort "failed to find #{version} milestone on GitHub"
55
- end
56
- prs = gh_api_request(:path => "repos/bundler/bundler/issues?milestone=#{patch_milestone["number"]}&state=all")
57
- prs.map! do |pr|
58
- abort "#{pr["html_url"]} hasn't been closed yet!" unless pr["state"] == "closed"
59
- next unless pr["pull_request"]
60
- pr["number"].to_s
61
- end
62
- prs.compact!
63
-
64
- version_file = "lib/bundler/version.rb"
65
- version_contents = File.read(version_file)
66
- unless version_contents.sub!(/^(\s*VERSION = )"#{Gem::Version::VERSION_PATTERN}"/, "\\1#{version.to_s.dump}")
67
- abort "failed to update #{version_file}, is it in the expected format?"
68
- end
69
- File.open(version_file, "w") {|f| f.write(version_contents) }
70
-
71
- BUNDLER_SPEC.version = version
72
-
73
- branch = version.split(".", 3)[0, 2].push("stable").join("-")
74
- sh("git", "checkout", branch)
75
-
76
- commits = `git log --oneline origin/master --`.split("\n").map {|l| l.split(/\s/, 2) }.reverse
77
- commits.select! {|_sha, message| message =~ /(Auto merge of|Merge pull request) ##{Regexp.union(*prs)}/ }
78
-
79
- abort "Could not find commits for all PRs" unless commits.size == prs.size
80
-
81
- unless system("git", "cherry-pick", "-x", "-m", "1", *commits.map(&:first))
82
- abort unless system("zsh")
83
- end
84
-
85
- prs.each do |pr|
86
- system("open", "https://github.com/bundler/bundler/pull/#{pr}")
87
- confirm "Add to the changelog"
88
- end
89
-
90
- confirm "Update changelog"
91
- sh("git", "commit", "-am", "Version #{version} with changelog")
92
- sh("rake", "release")
93
- sh("git", "checkout", "master")
94
- sh("git", "pull")
95
- sh("git", "merge", "v#{version}", "--no-edit")
96
- sh("git", "push")
97
- end
98
-
99
- desc "Open all PRs that have not been included in a stable release"
100
- task :open_unreleased_prs do
101
- def prs(on = "master")
102
- commits = `git log --oneline origin/#{on} --`.split("\n")
103
- commits.reverse_each.map {|c| c =~ /(Auto merge of|Merge pull request) #(\d+)/ && $2 }.compact
104
- end
105
-
106
- last_stable = `git ls-remote origin`.split("\n").map {|r| r =~ %r{refs/tags/v([\d.]+)$} && $1 }.compact.map {|v| Gem::Version.create(v) }.max
107
- last_stable = last_stable.segments[0, 2].<<("stable").join("-")
108
-
109
- in_release = prs("HEAD") - prs(last_stable)
110
-
111
- in_release.each do |pr|
112
- system("open", "https://github.com/bundler/bundler/pull/#{pr}")
113
- confirm
114
- end
115
- end
116
- end