bundler 2.0.0 → 2.1.2

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 (249) hide show
  1. checksums.yaml +4 -4
  2. data/CHANGELOG.md +778 -572
  3. data/LICENSE.md +18 -19
  4. data/README.md +9 -8
  5. data/bundler.gemspec +8 -25
  6. data/exe/bundle +19 -3
  7. data/lib/bundler.rb +202 -87
  8. data/lib/bundler/build_metadata.rb +3 -3
  9. data/lib/bundler/capistrano.rb +5 -5
  10. data/lib/bundler/cli.rb +182 -144
  11. data/lib/bundler/cli/add.rb +28 -16
  12. data/lib/bundler/cli/cache.rb +25 -13
  13. data/lib/bundler/cli/common.rb +11 -12
  14. data/lib/bundler/cli/config.rb +161 -86
  15. data/lib/bundler/cli/console.rb +2 -2
  16. data/lib/bundler/cli/doctor.rb +4 -4
  17. data/lib/bundler/cli/exec.rb +4 -16
  18. data/lib/bundler/cli/gem.rb +5 -5
  19. data/lib/bundler/cli/info.rb +17 -5
  20. data/lib/bundler/cli/init.rb +1 -1
  21. data/lib/bundler/cli/install.rb +12 -11
  22. data/lib/bundler/cli/issue.rb +3 -3
  23. data/lib/bundler/cli/open.rb +10 -6
  24. data/lib/bundler/cli/outdated.rb +85 -81
  25. data/lib/bundler/cli/plugin.rb +9 -2
  26. data/lib/bundler/cli/pristine.rb +1 -1
  27. data/lib/bundler/cli/show.rb +1 -1
  28. data/lib/bundler/cli/update.rb +31 -11
  29. data/lib/bundler/compact_index_client.rb +25 -9
  30. data/lib/bundler/compact_index_client/updater.rb +2 -6
  31. data/lib/bundler/current_ruby.rb +8 -7
  32. data/lib/bundler/definition.rb +36 -27
  33. data/lib/bundler/dependency.rb +16 -4
  34. data/lib/bundler/deployment.rb +2 -2
  35. data/lib/bundler/dsl.rb +19 -43
  36. data/lib/bundler/env.rb +8 -13
  37. data/lib/bundler/environment_preserver.rb +0 -1
  38. data/lib/bundler/feature_flag.rb +2 -14
  39. data/lib/bundler/fetcher.rb +16 -13
  40. data/lib/bundler/fetcher/compact_index.rb +26 -12
  41. data/lib/bundler/fetcher/dependency.rb +1 -1
  42. data/lib/bundler/fetcher/downloader.rb +5 -2
  43. data/lib/bundler/fetcher/index.rb +5 -3
  44. data/lib/bundler/friendly_errors.rb +6 -7
  45. data/lib/bundler/gem_helper.rb +40 -25
  46. data/lib/bundler/gem_helpers.rb +2 -4
  47. data/lib/bundler/gem_tasks.rb +1 -1
  48. data/lib/bundler/gem_version_promoter.rb +3 -3
  49. data/lib/bundler/graph.rb +2 -2
  50. data/lib/bundler/injector.rb +10 -8
  51. data/lib/bundler/inline.rb +40 -30
  52. data/lib/bundler/installer.rb +7 -14
  53. data/lib/bundler/installer/gem_installer.rb +5 -1
  54. data/lib/bundler/installer/parallel_installer.rb +4 -8
  55. data/lib/bundler/installer/standalone.rb +1 -2
  56. data/lib/bundler/lazy_specification.rb +2 -3
  57. data/lib/bundler/lockfile_parser.rb +14 -21
  58. data/lib/bundler/match_platform.rb +1 -1
  59. data/lib/bundler/mirror.rb +3 -3
  60. data/lib/bundler/plugin.rb +42 -29
  61. data/lib/bundler/plugin/api.rb +1 -1
  62. data/lib/bundler/plugin/api/source.rb +4 -6
  63. data/lib/bundler/plugin/index.rb +14 -3
  64. data/lib/bundler/plugin/installer.rb +28 -15
  65. data/lib/bundler/psyched_yaml.rb +1 -1
  66. data/lib/bundler/remote_specification.rb +0 -2
  67. data/lib/bundler/resolver.rb +72 -24
  68. data/lib/bundler/resolver/spec_group.rb +3 -2
  69. data/lib/bundler/retry.rb +2 -2
  70. data/lib/bundler/ruby_version.rb +4 -19
  71. data/lib/bundler/rubygems_ext.rb +11 -67
  72. data/lib/bundler/rubygems_gem_installer.rb +1 -1
  73. data/lib/bundler/rubygems_integration.rb +148 -398
  74. data/lib/bundler/runtime.rb +2 -9
  75. data/lib/bundler/settings.rb +22 -52
  76. data/lib/bundler/setup.rb +11 -12
  77. data/lib/bundler/shared_helpers.rb +51 -77
  78. data/lib/bundler/similarity_detector.rb +2 -2
  79. data/lib/bundler/source.rb +5 -5
  80. data/lib/bundler/source/git.rb +24 -17
  81. data/lib/bundler/source/git/git_proxy.rb +38 -41
  82. data/lib/bundler/source/metadata.rb +7 -2
  83. data/lib/bundler/source/path.rb +13 -8
  84. data/lib/bundler/source/rubygems.rb +14 -8
  85. data/lib/bundler/source/rubygems/remote.rb +2 -3
  86. data/lib/bundler/source_list.rb +9 -12
  87. data/lib/bundler/spec_set.rb +1 -6
  88. data/lib/bundler/stub_specification.rb +18 -30
  89. data/lib/bundler/templates/Executable.bundler +23 -14
  90. data/lib/bundler/templates/newgem/CODE_OF_CONDUCT.md.tt +3 -3
  91. data/lib/bundler/templates/newgem/Gemfile.tt +8 -0
  92. data/lib/bundler/templates/newgem/README.md.tt +4 -3
  93. data/lib/bundler/templates/newgem/newgem.gemspec.tt +6 -27
  94. data/lib/bundler/templates/newgem/test/test_helper.rb.tt +1 -1
  95. data/lib/bundler/templates/newgem/travis.yml.tt +0 -1
  96. data/lib/bundler/ui.rb +3 -3
  97. data/lib/bundler/ui/rg_proxy.rb +1 -1
  98. data/lib/bundler/ui/shell.rb +4 -8
  99. data/lib/bundler/uri_credentials_filter.rb +7 -3
  100. data/lib/bundler/vendor/connection_pool/lib/connection_pool.rb +161 -0
  101. data/lib/bundler/vendor/connection_pool/lib/connection_pool/monotonic_time.rb +66 -0
  102. data/lib/bundler/vendor/connection_pool/lib/connection_pool/timed_stack.rb +176 -0
  103. data/lib/bundler/vendor/connection_pool/lib/connection_pool/version.rb +3 -0
  104. data/lib/bundler/vendor/fileutils/lib/fileutils.rb +273 -147
  105. data/lib/bundler/vendor/molinillo/lib/molinillo.rb +6 -6
  106. data/lib/bundler/vendor/molinillo/lib/molinillo/dependency_graph.rb +2 -2
  107. data/lib/bundler/vendor/molinillo/lib/molinillo/dependency_graph/add_edge_no_circular.rb +1 -1
  108. data/lib/bundler/vendor/molinillo/lib/molinillo/dependency_graph/add_vertex.rb +1 -1
  109. data/lib/bundler/vendor/molinillo/lib/molinillo/dependency_graph/delete_edge.rb +1 -1
  110. data/lib/bundler/vendor/molinillo/lib/molinillo/dependency_graph/detach_vertex_named.rb +1 -1
  111. data/lib/bundler/vendor/molinillo/lib/molinillo/dependency_graph/log.rb +6 -6
  112. data/lib/bundler/vendor/molinillo/lib/molinillo/dependency_graph/set_payload.rb +1 -1
  113. data/lib/bundler/vendor/molinillo/lib/molinillo/dependency_graph/tag.rb +1 -1
  114. data/lib/bundler/vendor/molinillo/lib/molinillo/dependency_graph/vertex.rb +30 -8
  115. data/lib/bundler/vendor/molinillo/lib/molinillo/errors.rb +1 -1
  116. data/lib/bundler/vendor/molinillo/lib/molinillo/resolution.rb +4 -4
  117. data/lib/bundler/vendor/molinillo/lib/molinillo/resolver.rb +2 -2
  118. data/lib/bundler/vendor/net-http-persistent/lib/net/http/persistent.rb +273 -304
  119. data/lib/bundler/vendor/net-http-persistent/lib/net/http/persistent/connection.rb +40 -0
  120. data/lib/bundler/vendor/net-http-persistent/lib/net/http/persistent/pool.rb +53 -0
  121. data/lib/bundler/vendor/net-http-persistent/lib/net/http/persistent/timed_stack_multi.rb +79 -0
  122. data/lib/bundler/vendor/thor/lib/thor.rb +19 -4
  123. data/lib/bundler/vendor/thor/lib/thor/actions.rb +27 -12
  124. data/lib/bundler/vendor/thor/lib/thor/actions/create_file.rb +1 -1
  125. data/lib/bundler/vendor/thor/lib/thor/actions/create_link.rb +1 -1
  126. data/lib/bundler/vendor/thor/lib/thor/actions/directory.rb +7 -17
  127. data/lib/bundler/vendor/thor/lib/thor/actions/file_manipulation.rb +16 -7
  128. data/lib/bundler/vendor/thor/lib/thor/actions/inject_into_file.rb +19 -8
  129. data/lib/bundler/vendor/thor/lib/thor/base.rb +54 -43
  130. data/lib/bundler/vendor/thor/lib/thor/command.rb +21 -14
  131. data/lib/bundler/vendor/thor/lib/thor/error.rb +78 -0
  132. data/lib/bundler/vendor/thor/lib/thor/group.rb +3 -3
  133. data/lib/bundler/vendor/thor/lib/thor/invocation.rb +1 -0
  134. data/lib/bundler/vendor/thor/lib/thor/line_editor.rb +2 -2
  135. data/lib/bundler/vendor/thor/lib/thor/line_editor/basic.rb +1 -1
  136. data/lib/bundler/vendor/thor/lib/thor/line_editor/readline.rb +6 -6
  137. data/lib/bundler/vendor/thor/lib/thor/nested_context.rb +29 -0
  138. data/lib/bundler/vendor/thor/lib/thor/parser.rb +4 -4
  139. data/lib/bundler/vendor/thor/lib/thor/parser/arguments.rb +2 -2
  140. data/lib/bundler/vendor/thor/lib/thor/parser/option.rb +20 -7
  141. data/lib/bundler/vendor/thor/lib/thor/parser/options.rb +20 -5
  142. data/lib/bundler/vendor/thor/lib/thor/rake_compat.rb +1 -0
  143. data/lib/bundler/vendor/thor/lib/thor/runner.rb +15 -14
  144. data/lib/bundler/vendor/thor/lib/thor/shell.rb +4 -4
  145. data/lib/bundler/vendor/thor/lib/thor/shell/basic.rb +62 -8
  146. data/lib/bundler/vendor/thor/lib/thor/shell/color.rb +6 -2
  147. data/lib/bundler/vendor/thor/lib/thor/shell/html.rb +3 -3
  148. data/lib/bundler/vendor/thor/lib/thor/util.rb +18 -2
  149. data/lib/bundler/vendor/thor/lib/thor/version.rb +1 -1
  150. data/lib/bundler/vendor/uri/lib/uri.rb +104 -0
  151. data/lib/bundler/vendor/uri/lib/uri/common.rb +744 -0
  152. data/lib/bundler/vendor/uri/lib/uri/file.rb +94 -0
  153. data/lib/bundler/vendor/uri/lib/uri/ftp.rb +267 -0
  154. data/lib/bundler/vendor/uri/lib/uri/generic.rb +1568 -0
  155. data/lib/bundler/vendor/uri/lib/uri/http.rb +88 -0
  156. data/lib/bundler/vendor/uri/lib/uri/https.rb +23 -0
  157. data/lib/bundler/vendor/uri/lib/uri/ldap.rb +261 -0
  158. data/lib/bundler/vendor/uri/lib/uri/ldaps.rb +21 -0
  159. data/lib/bundler/vendor/uri/lib/uri/mailto.rb +294 -0
  160. data/lib/bundler/vendor/uri/lib/uri/rfc2396_parser.rb +546 -0
  161. data/lib/bundler/vendor/uri/lib/uri/rfc3986_parser.rb +125 -0
  162. data/lib/bundler/vendor/uri/lib/uri/version.rb +6 -0
  163. data/lib/bundler/vendored_fileutils.rb +1 -6
  164. data/lib/bundler/vendored_molinillo.rb +1 -1
  165. data/lib/bundler/vendored_persistent.rb +7 -5
  166. data/lib/bundler/vendored_thor.rb +2 -2
  167. data/lib/bundler/vendored_uri.rb +4 -0
  168. data/lib/bundler/version.rb +1 -20
  169. data/lib/bundler/version_ranges.rb +51 -5
  170. data/lib/bundler/vlad.rb +3 -3
  171. data/lib/bundler/worker.rb +1 -3
  172. data/lib/bundler/yaml_serializer.rb +2 -3
  173. data/man/bundle-add.1 +10 -2
  174. data/man/bundle-add.1.txt +11 -5
  175. data/man/bundle-add.ronn +7 -1
  176. data/man/bundle-binstubs.1 +2 -2
  177. data/man/bundle-binstubs.1.txt +2 -2
  178. data/man/bundle-binstubs.ronn +1 -1
  179. data/man/bundle-cache.1 +55 -0
  180. data/man/bundle-cache.1.txt +78 -0
  181. data/man/{bundle-package.ronn → bundle-cache.ronn} +15 -15
  182. data/man/bundle-check.1 +1 -1
  183. data/man/bundle-check.1.txt +6 -6
  184. data/man/bundle-clean.1 +1 -1
  185. data/man/bundle-clean.1.txt +1 -1
  186. data/man/bundle-config.1 +36 -36
  187. data/man/bundle-config.1.txt +66 -67
  188. data/man/bundle-config.ronn +42 -40
  189. data/man/bundle-doctor.1 +1 -1
  190. data/man/bundle-doctor.1.txt +1 -1
  191. data/man/bundle-exec.1 +2 -2
  192. data/man/bundle-exec.1.txt +2 -2
  193. data/man/bundle-exec.ronn +1 -1
  194. data/man/bundle-gem.1 +1 -1
  195. data/man/bundle-gem.1.txt +3 -3
  196. data/man/bundle-info.1 +1 -1
  197. data/man/bundle-info.1.txt +1 -1
  198. data/man/bundle-init.1 +2 -2
  199. data/man/bundle-init.1.txt +2 -2
  200. data/man/bundle-init.ronn +1 -1
  201. data/man/bundle-inject.1 +1 -1
  202. data/man/bundle-inject.1.txt +1 -1
  203. data/man/bundle-install.1 +8 -5
  204. data/man/bundle-install.1.txt +56 -51
  205. data/man/bundle-install.ronn +9 -4
  206. data/man/bundle-list.1 +1 -1
  207. data/man/bundle-list.1.txt +1 -1
  208. data/man/bundle-lock.1 +1 -1
  209. data/man/bundle-lock.1.txt +16 -16
  210. data/man/bundle-open.1 +1 -1
  211. data/man/bundle-open.1.txt +1 -1
  212. data/man/bundle-outdated.1 +1 -1
  213. data/man/bundle-outdated.1.txt +1 -1
  214. data/man/bundle-platform.1 +1 -1
  215. data/man/bundle-platform.1.txt +1 -1
  216. data/man/bundle-pristine.1 +1 -1
  217. data/man/bundle-pristine.1.txt +1 -1
  218. data/man/bundle-remove.1 +1 -1
  219. data/man/bundle-remove.1.txt +1 -1
  220. data/man/bundle-show.1 +1 -1
  221. data/man/bundle-show.1.txt +1 -1
  222. data/man/bundle-update.1 +4 -4
  223. data/man/bundle-update.1.txt +64 -65
  224. data/man/bundle-update.ronn +3 -3
  225. data/man/bundle-viz.1 +1 -1
  226. data/man/bundle-viz.1.txt +1 -1
  227. data/man/bundle.1 +3 -3
  228. data/man/bundle.1.txt +8 -8
  229. data/man/bundle.ronn +2 -2
  230. data/man/gemfile.5 +13 -16
  231. data/man/gemfile.5.ronn +10 -14
  232. data/man/gemfile.5.txt +104 -108
  233. data/man/index.txt +1 -1
  234. metadata +33 -108
  235. data/exe/bundle_ruby +0 -60
  236. data/lib/bundler/cli/package.rb +0 -49
  237. data/lib/bundler/compatibility_guard.rb +0 -14
  238. data/lib/bundler/gem_remote_fetcher.rb +0 -43
  239. data/lib/bundler/ssl_certs/.document +0 -1
  240. data/lib/bundler/ssl_certs/certificate_manager.rb +0 -66
  241. data/lib/bundler/ssl_certs/index.rubygems.org/GlobalSignRootCA.pem +0 -21
  242. data/lib/bundler/ssl_certs/rubygems.global.ssl.fastly.net/DigiCertHighAssuranceEVRootCA.pem +0 -23
  243. data/lib/bundler/ssl_certs/rubygems.org/AddTrustExternalCARoot.pem +0 -25
  244. data/lib/bundler/vendor/net-http-persistent/lib/net/http/faster.rb +0 -27
  245. data/lib/bundler/vendor/net-http-persistent/lib/net/http/persistent/ssl_reuse.rb +0 -129
  246. data/lib/bundler/vendor/thor/lib/thor/core_ext/io_binary_read.rb +0 -12
  247. data/lib/bundler/vendor/thor/lib/thor/core_ext/ordered_hash.rb +0 -129
  248. data/man/bundle-package.1 +0 -55
  249. data/man/bundle-package.1.txt +0 -79
@@ -2,6 +2,7 @@ Gemfile(5) gemfile.5
2
2
  bundle(1) bundle.1
3
3
  bundle-add(1) bundle-add.1
4
4
  bundle-binstubs(1) bundle-binstubs.1
5
+ bundle-cache(1) bundle-cache.1
5
6
  bundle-check(1) bundle-check.1
6
7
  bundle-clean(1) bundle-clean.1
7
8
  bundle-config(1) bundle-config.1
@@ -16,7 +17,6 @@ bundle-list(1) bundle-list.1
16
17
  bundle-lock(1) bundle-lock.1
17
18
  bundle-open(1) bundle-open.1
18
19
  bundle-outdated(1) bundle-outdated.1
19
- bundle-package(1) bundle-package.1
20
20
  bundle-platform(1) bundle-platform.1
21
21
  bundle-pristine(1) bundle-pristine.1
22
22
  bundle-remove(1) bundle-remove.1
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: bundler
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.0.0
4
+ version: 2.1.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - André Arko
@@ -22,92 +22,8 @@ authors:
22
22
  autorequire:
23
23
  bindir: exe
24
24
  cert_chain: []
25
- date: 2019-01-03 00:00:00.000000000 Z
26
- dependencies:
27
- - !ruby/object:Gem::Dependency
28
- name: automatiek
29
- requirement: !ruby/object:Gem::Requirement
30
- requirements:
31
- - - "~>"
32
- - !ruby/object:Gem::Version
33
- version: 0.1.0
34
- type: :development
35
- prerelease: false
36
- version_requirements: !ruby/object:Gem::Requirement
37
- requirements:
38
- - - "~>"
39
- - !ruby/object:Gem::Version
40
- version: 0.1.0
41
- - !ruby/object:Gem::Dependency
42
- name: mustache
43
- requirement: !ruby/object:Gem::Requirement
44
- requirements:
45
- - - '='
46
- - !ruby/object:Gem::Version
47
- version: 0.99.6
48
- type: :development
49
- prerelease: false
50
- version_requirements: !ruby/object:Gem::Requirement
51
- requirements:
52
- - - '='
53
- - !ruby/object:Gem::Version
54
- version: 0.99.6
55
- - !ruby/object:Gem::Dependency
56
- name: rake
57
- requirement: !ruby/object:Gem::Requirement
58
- requirements:
59
- - - "~>"
60
- - !ruby/object:Gem::Version
61
- version: '10.0'
62
- type: :development
63
- prerelease: false
64
- version_requirements: !ruby/object:Gem::Requirement
65
- requirements:
66
- - - "~>"
67
- - !ruby/object:Gem::Version
68
- version: '10.0'
69
- - !ruby/object:Gem::Dependency
70
- name: rdiscount
71
- requirement: !ruby/object:Gem::Requirement
72
- requirements:
73
- - - "~>"
74
- - !ruby/object:Gem::Version
75
- version: '2.2'
76
- type: :development
77
- prerelease: false
78
- version_requirements: !ruby/object:Gem::Requirement
79
- requirements:
80
- - - "~>"
81
- - !ruby/object:Gem::Version
82
- version: '2.2'
83
- - !ruby/object:Gem::Dependency
84
- name: ronn
85
- requirement: !ruby/object:Gem::Requirement
86
- requirements:
87
- - - "~>"
88
- - !ruby/object:Gem::Version
89
- version: 0.7.3
90
- type: :development
91
- prerelease: false
92
- version_requirements: !ruby/object:Gem::Requirement
93
- requirements:
94
- - - "~>"
95
- - !ruby/object:Gem::Version
96
- version: 0.7.3
97
- - !ruby/object:Gem::Dependency
98
- name: rspec
99
- requirement: !ruby/object:Gem::Requirement
100
- requirements:
101
- - - "~>"
102
- - !ruby/object:Gem::Version
103
- version: '3.6'
104
- type: :development
105
- prerelease: false
106
- version_requirements: !ruby/object:Gem::Requirement
107
- requirements:
108
- - - "~>"
109
- - !ruby/object:Gem::Version
110
- version: '3.6'
25
+ date: 2019-12-20 00:00:00.000000000 Z
26
+ dependencies: []
111
27
  description: Bundler manages an application's dependencies through its entire life,
112
28
  across many machines, systematically and repeatably
113
29
  email:
@@ -123,7 +39,6 @@ files:
123
39
  - README.md
124
40
  - bundler.gemspec
125
41
  - exe/bundle
126
- - exe/bundle_ruby
127
42
  - exe/bundler
128
43
  - lib/bundler.rb
129
44
  - lib/bundler/build_metadata.rb
@@ -149,7 +64,6 @@ files:
149
64
  - lib/bundler/cli/lock.rb
150
65
  - lib/bundler/cli/open.rb
151
66
  - lib/bundler/cli/outdated.rb
152
- - lib/bundler/cli/package.rb
153
67
  - lib/bundler/cli/platform.rb
154
68
  - lib/bundler/cli/plugin.rb
155
69
  - lib/bundler/cli/pristine.rb
@@ -160,7 +74,6 @@ files:
160
74
  - lib/bundler/compact_index_client.rb
161
75
  - lib/bundler/compact_index_client/cache.rb
162
76
  - lib/bundler/compact_index_client/updater.rb
163
- - lib/bundler/compatibility_guard.rb
164
77
  - lib/bundler/constants.rb
165
78
  - lib/bundler/current_ruby.rb
166
79
  - lib/bundler/definition.rb
@@ -183,7 +96,6 @@ files:
183
96
  - lib/bundler/friendly_errors.rb
184
97
  - lib/bundler/gem_helper.rb
185
98
  - lib/bundler/gem_helpers.rb
186
- - lib/bundler/gem_remote_fetcher.rb
187
99
  - lib/bundler/gem_tasks.rb
188
100
  - lib/bundler/gem_version_promoter.rb
189
101
  - lib/bundler/gemdeps.rb
@@ -238,11 +150,6 @@ files:
238
150
  - lib/bundler/source/rubygems/remote.rb
239
151
  - lib/bundler/source_list.rb
240
152
  - lib/bundler/spec_set.rb
241
- - lib/bundler/ssl_certs/.document
242
- - lib/bundler/ssl_certs/certificate_manager.rb
243
- - lib/bundler/ssl_certs/index.rubygems.org/GlobalSignRootCA.pem
244
- - lib/bundler/ssl_certs/rubygems.global.ssl.fastly.net/DigiCertHighAssuranceEVRootCA.pem
245
- - lib/bundler/ssl_certs/rubygems.org/AddTrustExternalCARoot.pem
246
153
  - lib/bundler/stub_specification.rb
247
154
  - lib/bundler/templates/.document
248
155
  - lib/bundler/templates/Executable
@@ -276,6 +183,10 @@ files:
276
183
  - lib/bundler/ui/shell.rb
277
184
  - lib/bundler/ui/silent.rb
278
185
  - lib/bundler/uri_credentials_filter.rb
186
+ - lib/bundler/vendor/connection_pool/lib/connection_pool.rb
187
+ - lib/bundler/vendor/connection_pool/lib/connection_pool/monotonic_time.rb
188
+ - lib/bundler/vendor/connection_pool/lib/connection_pool/timed_stack.rb
189
+ - lib/bundler/vendor/connection_pool/lib/connection_pool/version.rb
279
190
  - lib/bundler/vendor/fileutils/lib/fileutils.rb
280
191
  - lib/bundler/vendor/molinillo/lib/molinillo.rb
281
192
  - lib/bundler/vendor/molinillo/lib/molinillo/compatibility.rb
@@ -298,9 +209,10 @@ files:
298
209
  - lib/bundler/vendor/molinillo/lib/molinillo/resolution.rb
299
210
  - lib/bundler/vendor/molinillo/lib/molinillo/resolver.rb
300
211
  - lib/bundler/vendor/molinillo/lib/molinillo/state.rb
301
- - lib/bundler/vendor/net-http-persistent/lib/net/http/faster.rb
302
212
  - lib/bundler/vendor/net-http-persistent/lib/net/http/persistent.rb
303
- - lib/bundler/vendor/net-http-persistent/lib/net/http/persistent/ssl_reuse.rb
213
+ - lib/bundler/vendor/net-http-persistent/lib/net/http/persistent/connection.rb
214
+ - lib/bundler/vendor/net-http-persistent/lib/net/http/persistent/pool.rb
215
+ - lib/bundler/vendor/net-http-persistent/lib/net/http/persistent/timed_stack_multi.rb
304
216
  - lib/bundler/vendor/thor/lib/thor.rb
305
217
  - lib/bundler/vendor/thor/lib/thor/actions.rb
306
218
  - lib/bundler/vendor/thor/lib/thor/actions/create_file.rb
@@ -312,14 +224,13 @@ files:
312
224
  - lib/bundler/vendor/thor/lib/thor/base.rb
313
225
  - lib/bundler/vendor/thor/lib/thor/command.rb
314
226
  - lib/bundler/vendor/thor/lib/thor/core_ext/hash_with_indifferent_access.rb
315
- - lib/bundler/vendor/thor/lib/thor/core_ext/io_binary_read.rb
316
- - lib/bundler/vendor/thor/lib/thor/core_ext/ordered_hash.rb
317
227
  - lib/bundler/vendor/thor/lib/thor/error.rb
318
228
  - lib/bundler/vendor/thor/lib/thor/group.rb
319
229
  - lib/bundler/vendor/thor/lib/thor/invocation.rb
320
230
  - lib/bundler/vendor/thor/lib/thor/line_editor.rb
321
231
  - lib/bundler/vendor/thor/lib/thor/line_editor/basic.rb
322
232
  - lib/bundler/vendor/thor/lib/thor/line_editor/readline.rb
233
+ - lib/bundler/vendor/thor/lib/thor/nested_context.rb
323
234
  - lib/bundler/vendor/thor/lib/thor/parser.rb
324
235
  - lib/bundler/vendor/thor/lib/thor/parser/argument.rb
325
236
  - lib/bundler/vendor/thor/lib/thor/parser/arguments.rb
@@ -333,10 +244,24 @@ files:
333
244
  - lib/bundler/vendor/thor/lib/thor/shell/html.rb
334
245
  - lib/bundler/vendor/thor/lib/thor/util.rb
335
246
  - lib/bundler/vendor/thor/lib/thor/version.rb
247
+ - lib/bundler/vendor/uri/lib/uri.rb
248
+ - lib/bundler/vendor/uri/lib/uri/common.rb
249
+ - lib/bundler/vendor/uri/lib/uri/file.rb
250
+ - lib/bundler/vendor/uri/lib/uri/ftp.rb
251
+ - lib/bundler/vendor/uri/lib/uri/generic.rb
252
+ - lib/bundler/vendor/uri/lib/uri/http.rb
253
+ - lib/bundler/vendor/uri/lib/uri/https.rb
254
+ - lib/bundler/vendor/uri/lib/uri/ldap.rb
255
+ - lib/bundler/vendor/uri/lib/uri/ldaps.rb
256
+ - lib/bundler/vendor/uri/lib/uri/mailto.rb
257
+ - lib/bundler/vendor/uri/lib/uri/rfc2396_parser.rb
258
+ - lib/bundler/vendor/uri/lib/uri/rfc3986_parser.rb
259
+ - lib/bundler/vendor/uri/lib/uri/version.rb
336
260
  - lib/bundler/vendored_fileutils.rb
337
261
  - lib/bundler/vendored_molinillo.rb
338
262
  - lib/bundler/vendored_persistent.rb
339
263
  - lib/bundler/vendored_thor.rb
264
+ - lib/bundler/vendored_uri.rb
340
265
  - lib/bundler/version.rb
341
266
  - lib/bundler/version_ranges.rb
342
267
  - lib/bundler/vlad.rb
@@ -348,6 +273,9 @@ files:
348
273
  - man/bundle-binstubs.1
349
274
  - man/bundle-binstubs.1.txt
350
275
  - man/bundle-binstubs.ronn
276
+ - man/bundle-cache.1
277
+ - man/bundle-cache.1.txt
278
+ - man/bundle-cache.ronn
351
279
  - man/bundle-check.1
352
280
  - man/bundle-check.1.txt
353
281
  - man/bundle-check.ronn
@@ -390,9 +318,6 @@ files:
390
318
  - man/bundle-outdated.1
391
319
  - man/bundle-outdated.1.txt
392
320
  - man/bundle-outdated.ronn
393
- - man/bundle-package.1
394
- - man/bundle-package.1.txt
395
- - man/bundle-package.ronn
396
321
  - man/bundle-platform.1
397
322
  - man/bundle-platform.1.txt
398
323
  - man/bundle-platform.ronn
@@ -418,14 +343,14 @@ files:
418
343
  - man/gemfile.5.ronn
419
344
  - man/gemfile.5.txt
420
345
  - man/index.txt
421
- homepage: http://bundler.io
346
+ homepage: https://bundler.io
422
347
  licenses:
423
348
  - MIT
424
349
  metadata:
425
- bug_tracker_uri: http://github.com/bundler/bundler/issues
350
+ bug_tracker_uri: https://github.com/bundler/bundler/issues
426
351
  changelog_uri: https://github.com/bundler/bundler/blob/master/CHANGELOG.md
427
352
  homepage_uri: https://bundler.io/
428
- source_code_uri: http://github.com/bundler/bundler/
353
+ source_code_uri: https://github.com/bundler/bundler/
429
354
  post_install_message:
430
355
  rdoc_options: []
431
356
  require_paths:
@@ -439,9 +364,9 @@ required_rubygems_version: !ruby/object:Gem::Requirement
439
364
  requirements:
440
365
  - - ">="
441
366
  - !ruby/object:Gem::Version
442
- version: 3.0.0
367
+ version: 2.5.2
443
368
  requirements: []
444
- rubygems_version: 3.0.1
369
+ rubygems_version: 3.1.1
445
370
  signing_key:
446
371
  specification_version: 4
447
372
  summary: The best way to manage your application's dependencies
@@ -1,60 +0,0 @@
1
- #!/usr/bin/env ruby
2
- # frozen_string_literal: true
3
-
4
- require "bundler/shared_helpers"
5
-
6
- Bundler::SharedHelpers.major_deprecation(3, "the bundle_ruby executable has been removed in favor of `bundle platform --ruby`")
7
-
8
- Signal.trap("INT") { exit 1 }
9
-
10
- require "bundler/errors"
11
- require "bundler/ruby_version"
12
- require "bundler/ruby_dsl"
13
-
14
- module Bundler
15
- class Dsl
16
- include RubyDsl
17
-
18
- attr_accessor :ruby_version
19
-
20
- def initialize
21
- @ruby_version = nil
22
- end
23
-
24
- def eval_gemfile(gemfile, contents = nil)
25
- contents ||= File.open(gemfile, "rb", &:read)
26
- instance_eval(contents, gemfile.to_s, 1)
27
- rescue SyntaxError => e
28
- bt = e.message.split("\n")[1..-1]
29
- raise GemfileError, ["Gemfile syntax error:", *bt].join("\n")
30
- rescue ScriptError, RegexpError, NameError, ArgumentError => e
31
- e.backtrace[0] = "#{e.backtrace[0]}: #{e.message} (#{e.class})"
32
- STDERR.puts e.backtrace.join("\n ")
33
- raise GemfileError, "There was an error in your Gemfile," \
34
- " and Bundler cannot continue."
35
- end
36
-
37
- def source(source, options = {})
38
- end
39
-
40
- def gem(name, *args)
41
- end
42
-
43
- def group(*args)
44
- end
45
- end
46
- end
47
-
48
- dsl = Bundler::Dsl.new
49
- begin
50
- dsl.eval_gemfile(Bundler::SharedHelpers.default_gemfile)
51
- ruby_version = dsl.ruby_version
52
- if ruby_version
53
- puts ruby_version
54
- else
55
- puts "No ruby version specified"
56
- end
57
- rescue Bundler::GemfileError => e
58
- puts e.message
59
- exit(-1)
60
- end
@@ -1,49 +0,0 @@
1
- # frozen_string_literal: true
2
-
3
- module Bundler
4
- class CLI::Package
5
- attr_reader :options
6
-
7
- def initialize(options)
8
- @options = options
9
- end
10
-
11
- def run
12
- Bundler.ui.level = "error" if options[:quiet]
13
- Bundler.settings.set_command_option_if_given :path, options[:path]
14
- Bundler.settings.set_command_option_if_given :cache_all_platforms, options["all-platforms"]
15
- Bundler.settings.set_command_option_if_given :cache_path, options["cache-path"]
16
-
17
- setup_cache_all
18
- install
19
-
20
- # TODO: move cache contents here now that all bundles are locked
21
- custom_path = Bundler.settings[:path] if options[:path]
22
- Bundler.load.cache(custom_path)
23
- end
24
-
25
- private
26
-
27
- def install
28
- require "bundler/cli/install"
29
- options = self.options.dup
30
- if Bundler.settings[:cache_all_platforms]
31
- options["local"] = false
32
- options["update"] = true
33
- end
34
- Bundler::CLI::Install.new(options).run
35
- end
36
-
37
- def setup_cache_all
38
- all = options.fetch(:all, Bundler.feature_flag.cache_command_is_package? || nil)
39
-
40
- Bundler.settings.set_command_option_if_given :cache_all, all
41
-
42
- if Bundler.definition.has_local_dependencies? && !Bundler.feature_flag.cache_all?
43
- Bundler.ui.warn "Your Gemfile contains path and git dependencies. If you want " \
44
- "to package them as well, please pass the --all flag. This will be the default " \
45
- "on Bundler 2.0."
46
- end
47
- end
48
- end
49
- end
@@ -1,14 +0,0 @@
1
- # frozen_string_literal: false
2
-
3
- require "rubygems"
4
- require "bundler/version"
5
-
6
- if Bundler::VERSION.split(".").first.to_i >= 2
7
- if Gem::Version.new(Object::RUBY_VERSION.dup) < Gem::Version.new("2.3")
8
- abort "Bundler 2 requires Ruby 2.3 or later. Either install bundler 1 or update to a supported Ruby version."
9
- end
10
-
11
- if Gem::Version.new(Gem::VERSION.dup) < Gem::Version.new("2.5")
12
- abort "Bundler 2 requires RubyGems 2.5 or later. Either install bundler 1 or update to a supported RubyGems version."
13
- end
14
- end
@@ -1,43 +0,0 @@
1
- # frozen_string_literal: true
2
-
3
- require "rubygems/remote_fetcher"
4
-
5
- module Bundler
6
- # Adds support for setting custom HTTP headers when fetching gems from the
7
- # server.
8
- #
9
- # TODO: Get rid of this when and if gemstash only supports RubyGems versions
10
- # that contain https://github.com/rubygems/rubygems/commit/3db265cc20b2f813.
11
- class GemRemoteFetcher < Gem::RemoteFetcher
12
- attr_accessor :headers
13
-
14
- # Extracted from RubyGems 2.4.
15
- def fetch_http(uri, last_modified = nil, head = false, depth = 0)
16
- fetch_type = head ? Net::HTTP::Head : Net::HTTP::Get
17
- # beginning of change
18
- response = request uri, fetch_type, last_modified do |req|
19
- headers.each {|k, v| req.add_field(k, v) } if headers
20
- end
21
- # end of change
22
-
23
- case response
24
- when Net::HTTPOK, Net::HTTPNotModified then
25
- response.uri = uri if response.respond_to? :uri
26
- head ? response : response.body
27
- when Net::HTTPMovedPermanently, Net::HTTPFound, Net::HTTPSeeOther,
28
- Net::HTTPTemporaryRedirect then
29
- raise FetchError.new("too many redirects", uri) if depth > 10
30
-
31
- location = URI.parse response["Location"]
32
-
33
- if https?(uri) && !https?(location)
34
- raise FetchError.new("redirecting to non-https resource: #{location}", uri)
35
- end
36
-
37
- fetch_http(location, last_modified, head, depth + 1)
38
- else
39
- raise FetchError.new("bad response #{response.message} #{response.code}", uri)
40
- end
41
- end
42
- end
43
- end
@@ -1 +0,0 @@
1
- # Ignore all files in this directory
@@ -1,66 +0,0 @@
1
- # frozen_string_literal: true
2
-
3
- require "bundler/vendored_fileutils"
4
- require "net/https"
5
- require "openssl"
6
-
7
- module Bundler
8
- module SSLCerts
9
- class CertificateManager
10
- attr_reader :bundler_cert_path, :bundler_certs, :rubygems_certs
11
-
12
- def self.update_from!(rubygems_path)
13
- new(rubygems_path).update!
14
- end
15
-
16
- def initialize(rubygems_path = nil)
17
- if rubygems_path
18
- rubygems_cert_path = File.join(rubygems_path, "lib/rubygems/ssl_certs")
19
- @rubygems_certs = certificates_in(rubygems_cert_path)
20
- end
21
-
22
- @bundler_cert_path = File.expand_path("..", __FILE__)
23
- @bundler_certs = certificates_in(bundler_cert_path)
24
- end
25
-
26
- def up_to_date?
27
- rubygems_certs.all? do |rc|
28
- bundler_certs.find do |bc|
29
- File.basename(bc) == File.basename(rc) && FileUtils.compare_file(bc, rc)
30
- end
31
- end
32
- end
33
-
34
- def update!
35
- return if up_to_date?
36
-
37
- FileUtils.rm bundler_certs
38
- FileUtils.cp rubygems_certs, bundler_cert_path
39
- end
40
-
41
- def connect_to(host)
42
- http = Net::HTTP.new(host, 443)
43
- http.use_ssl = true
44
- http.verify_mode = OpenSSL::SSL::VERIFY_PEER
45
- http.cert_store = store
46
- http.head("/")
47
- end
48
-
49
- private
50
-
51
- def certificates_in(path)
52
- Dir[File.join(path, "**/*.pem")].sort
53
- end
54
-
55
- def store
56
- @store ||= begin
57
- store = OpenSSL::X509::Store.new
58
- bundler_certs.each do |cert|
59
- store.add_file cert
60
- end
61
- store
62
- end
63
- end
64
- end
65
- end
66
- end