bundler 1.15.4 → 1.16.0.pre.1

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 (251) hide show
  1. checksums.yaml +5 -5
  2. data/CHANGELOG.md +43 -0
  3. data/README.md +12 -7
  4. data/exe/bundle +1 -1
  5. data/exe/bundle_ruby +4 -3
  6. data/lib/bundler.rb +47 -37
  7. data/lib/bundler/build_metadata.rb +38 -0
  8. data/lib/bundler/capistrano.rb +5 -0
  9. data/lib/bundler/cli.rb +155 -67
  10. data/lib/bundler/cli/add.rb +0 -1
  11. data/lib/bundler/cli/binstubs.rb +9 -7
  12. data/lib/bundler/cli/cache.rb +5 -4
  13. data/lib/bundler/cli/check.rb +3 -5
  14. data/lib/bundler/cli/clean.rb +5 -6
  15. data/lib/bundler/cli/common.rb +11 -2
  16. data/lib/bundler/cli/config.rb +2 -1
  17. data/lib/bundler/cli/console.rb +2 -1
  18. data/lib/bundler/cli/doctor.rb +1 -0
  19. data/lib/bundler/cli/exec.rb +2 -1
  20. data/lib/bundler/cli/gem.rb +3 -2
  21. data/lib/bundler/cli/info.rb +0 -1
  22. data/lib/bundler/cli/init.rb +17 -6
  23. data/lib/bundler/cli/inject.rb +1 -0
  24. data/lib/bundler/cli/install.rb +61 -61
  25. data/lib/bundler/cli/issue.rb +1 -1
  26. data/lib/bundler/cli/list.rb +22 -0
  27. data/lib/bundler/cli/lock.rb +0 -1
  28. data/lib/bundler/cli/open.rb +2 -2
  29. data/lib/bundler/cli/outdated.rb +13 -8
  30. data/lib/bundler/cli/package.rb +9 -6
  31. data/lib/bundler/cli/platform.rb +1 -0
  32. data/lib/bundler/cli/plugin.rb +1 -0
  33. data/lib/bundler/cli/pristine.rb +9 -2
  34. data/lib/bundler/cli/show.rb +0 -1
  35. data/lib/bundler/cli/update.rb +31 -5
  36. data/lib/bundler/cli/viz.rb +1 -0
  37. data/lib/bundler/compact_index_client.rb +1 -0
  38. data/lib/bundler/compact_index_client/cache.rb +1 -0
  39. data/lib/bundler/compact_index_client/updater.rb +3 -2
  40. data/lib/bundler/compatibility_guard.rb +14 -0
  41. data/lib/bundler/constants.rb +1 -0
  42. data/lib/bundler/current_ruby.rb +5 -4
  43. data/lib/bundler/definition.rb +140 -95
  44. data/lib/bundler/dep_proxy.rb +2 -0
  45. data/lib/bundler/dependency.rb +6 -7
  46. data/lib/bundler/deployment.rb +1 -1
  47. data/lib/bundler/deprecate.rb +1 -0
  48. data/lib/bundler/dsl.rb +97 -62
  49. data/lib/bundler/endpoint_specification.rb +9 -0
  50. data/lib/bundler/env.rb +63 -27
  51. data/lib/bundler/environment_preserver.rb +26 -6
  52. data/lib/bundler/errors.rb +1 -0
  53. data/lib/bundler/feature_flag.rb +39 -4
  54. data/lib/bundler/fetcher.rb +15 -8
  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 +1 -0
  58. data/lib/bundler/fetcher/downloader.rb +1 -0
  59. data/lib/bundler/fetcher/index.rb +1 -0
  60. data/lib/bundler/friendly_errors.rb +2 -1
  61. data/lib/bundler/gem_helper.rb +14 -9
  62. data/lib/bundler/gem_helpers.rb +1 -0
  63. data/lib/bundler/gem_remote_fetcher.rb +1 -0
  64. data/lib/bundler/gem_tasks.rb +1 -0
  65. data/lib/bundler/gem_version_promoter.rb +1 -0
  66. data/lib/bundler/gemdeps.rb +1 -0
  67. data/lib/bundler/graph.rb +1 -0
  68. data/lib/bundler/index.rb +15 -8
  69. data/lib/bundler/injector.rb +25 -22
  70. data/lib/bundler/inline.rb +5 -7
  71. data/lib/bundler/installer.rb +93 -45
  72. data/lib/bundler/installer/gem_installer.rb +2 -0
  73. data/lib/bundler/installer/parallel_installer.rb +73 -42
  74. data/lib/bundler/installer/standalone.rb +1 -0
  75. data/lib/bundler/lazy_specification.rb +2 -1
  76. data/lib/bundler/lockfile_generator.rb +95 -0
  77. data/lib/bundler/lockfile_parser.rb +10 -4
  78. data/lib/bundler/match_platform.rb +1 -0
  79. data/lib/bundler/mirror.rb +6 -3
  80. data/lib/bundler/plugin.rb +1 -0
  81. data/lib/bundler/plugin/api/source.rb +8 -0
  82. data/lib/bundler/plugin/installer.rb +7 -6
  83. data/lib/bundler/plugin/source_list.rb +7 -8
  84. data/lib/bundler/process_lock.rb +24 -0
  85. data/lib/bundler/psyched_yaml.rb +1 -0
  86. data/lib/bundler/remote_specification.rb +1 -0
  87. data/lib/bundler/resolver.rb +138 -191
  88. data/lib/bundler/resolver/spec_group.rb +111 -0
  89. data/lib/bundler/retry.rb +1 -0
  90. data/lib/bundler/ruby_dsl.rb +1 -0
  91. data/lib/bundler/ruby_version.rb +1 -0
  92. data/lib/bundler/rubygems_ext.rb +5 -4
  93. data/lib/bundler/rubygems_gem_installer.rb +23 -0
  94. data/lib/bundler/rubygems_integration.rb +56 -27
  95. data/lib/bundler/runtime.rb +3 -5
  96. data/lib/bundler/settings.rb +177 -76
  97. data/lib/bundler/settings/validator.rb +79 -0
  98. data/lib/bundler/setup.rb +1 -0
  99. data/lib/bundler/shared_helpers.rb +86 -26
  100. data/lib/bundler/similarity_detector.rb +1 -0
  101. data/lib/bundler/source.rb +32 -0
  102. data/lib/bundler/source/gemspec.rb +1 -0
  103. data/lib/bundler/source/git.rb +21 -16
  104. data/lib/bundler/source/git/git_proxy.rb +14 -10
  105. data/lib/bundler/source/metadata.rb +63 -0
  106. data/lib/bundler/source/path.rb +8 -8
  107. data/lib/bundler/source/path/installer.rb +2 -0
  108. data/lib/bundler/source/rubygems.rb +131 -84
  109. data/lib/bundler/source/rubygems/remote.rb +3 -0
  110. data/lib/bundler/source_list.rb +75 -15
  111. data/lib/bundler/spec_set.rb +2 -1
  112. data/lib/bundler/ssl_certs/certificate_manager.rb +2 -1
  113. data/lib/bundler/stub_specification.rb +1 -0
  114. data/lib/bundler/templates/Executable +4 -0
  115. data/lib/bundler/templates/Executable.bundler +105 -0
  116. data/lib/bundler/templates/Gemfile +1 -0
  117. data/lib/bundler/templates/gems.rb +8 -0
  118. data/lib/bundler/templates/newgem/README.md.tt +1 -1
  119. data/lib/bundler/templates/newgem/gitignore.tt +0 -1
  120. data/lib/bundler/templates/newgem/newgem.gemspec.tt +4 -1
  121. data/lib/bundler/templates/newgem/rspec.tt +1 -0
  122. data/lib/bundler/templates/newgem/spec/newgem_spec.rb.tt +0 -2
  123. data/lib/bundler/ui.rb +1 -0
  124. data/lib/bundler/ui/rg_proxy.rb +1 -0
  125. data/lib/bundler/ui/shell.rb +15 -4
  126. data/lib/bundler/ui/silent.rb +1 -0
  127. data/lib/bundler/uri_credentials_filter.rb +1 -0
  128. data/lib/bundler/vendor/fileutils/lib/fileutils.rb +1638 -0
  129. data/lib/bundler/vendor/molinillo/lib/molinillo.rb +2 -0
  130. data/lib/bundler/vendor/molinillo/lib/molinillo/compatibility.rb +26 -0
  131. data/lib/bundler/vendor/molinillo/lib/molinillo/delegates/resolution_state.rb +7 -0
  132. data/lib/bundler/vendor/molinillo/lib/molinillo/delegates/specification_provider.rb +1 -0
  133. data/lib/bundler/vendor/molinillo/lib/molinillo/dependency_graph.rb +3 -2
  134. data/lib/bundler/vendor/molinillo/lib/molinillo/dependency_graph/action.rb +1 -0
  135. data/lib/bundler/vendor/molinillo/lib/molinillo/dependency_graph/add_edge_no_circular.rb +1 -0
  136. data/lib/bundler/vendor/molinillo/lib/molinillo/dependency_graph/add_vertex.rb +1 -0
  137. data/lib/bundler/vendor/molinillo/lib/molinillo/dependency_graph/delete_edge.rb +1 -0
  138. data/lib/bundler/vendor/molinillo/lib/molinillo/dependency_graph/detach_vertex_named.rb +1 -0
  139. data/lib/bundler/vendor/molinillo/lib/molinillo/dependency_graph/log.rb +1 -0
  140. data/lib/bundler/vendor/molinillo/lib/molinillo/dependency_graph/set_payload.rb +1 -0
  141. data/lib/bundler/vendor/molinillo/lib/molinillo/dependency_graph/tag.rb +1 -0
  142. data/lib/bundler/vendor/molinillo/lib/molinillo/dependency_graph/vertex.rb +3 -2
  143. data/lib/bundler/vendor/molinillo/lib/molinillo/errors.rb +69 -6
  144. data/lib/bundler/vendor/molinillo/lib/molinillo/gem_metadata.rb +2 -1
  145. data/lib/bundler/vendor/molinillo/lib/molinillo/modules/specification_provider.rb +1 -0
  146. data/lib/bundler/vendor/molinillo/lib/molinillo/modules/ui.rb +3 -1
  147. data/lib/bundler/vendor/molinillo/lib/molinillo/resolution.rb +487 -148
  148. data/lib/bundler/vendor/molinillo/lib/molinillo/resolver.rb +1 -0
  149. data/lib/bundler/vendor/molinillo/lib/molinillo/state.rb +8 -4
  150. data/lib/bundler/vendor/net-http-persistent/lib/net/http/persistent.rb +1 -1
  151. data/lib/bundler/vendored_fileutils.rb +9 -0
  152. data/lib/bundler/vendored_molinillo.rb +1 -0
  153. data/lib/bundler/vendored_persistent.rb +34 -0
  154. data/lib/bundler/vendored_thor.rb +1 -0
  155. data/lib/bundler/version.rb +6 -2
  156. data/lib/bundler/version_ranges.rb +1 -0
  157. data/lib/bundler/vlad.rb +5 -0
  158. data/lib/bundler/worker.rb +1 -0
  159. data/lib/bundler/yaml_serializer.rb +3 -3
  160. data/man/bundle-add.1 +43 -0
  161. data/man/bundle-add.1.txt +40 -0
  162. data/man/bundle-binstubs.1 +40 -0
  163. data/man/bundle-binstubs.1.txt +48 -0
  164. data/man/bundle-binstubs.ronn +14 -0
  165. data/man/bundle-check.1 +31 -0
  166. data/man/bundle-check.1.txt +32 -0
  167. data/man/bundle-clean.1 +24 -0
  168. data/man/bundle-clean.1.txt +26 -0
  169. data/man/bundle-config.1 +455 -0
  170. data/man/bundle-config.1.txt +491 -0
  171. data/man/bundle-config.ronn +133 -79
  172. data/man/bundle-exec.1 +165 -0
  173. data/man/bundle-exec.1.txt +178 -0
  174. data/man/bundle-exec.ronn +7 -0
  175. data/man/bundle-gem.1 +80 -0
  176. data/man/bundle-gem.1.txt +91 -0
  177. data/man/bundle-gem.ronn +2 -1
  178. data/man/bundle-info.1 +20 -0
  179. data/man/bundle-info.1.txt +21 -0
  180. data/man/bundle-init.1 +20 -0
  181. data/man/bundle-init.1.txt +24 -0
  182. data/man/bundle-inject.1 +33 -0
  183. data/man/bundle-inject.1.txt +32 -0
  184. data/man/bundle-install.1 +305 -0
  185. data/man/bundle-install.1.txt +385 -0
  186. data/man/bundle-install.ronn +32 -32
  187. data/man/bundle-list.1 +20 -0
  188. data/man/bundle-list.1.txt +21 -0
  189. data/man/bundle-list.ronn +15 -0
  190. data/man/bundle-lock.1 +84 -0
  191. data/man/bundle-lock.1.txt +93 -0
  192. data/man/bundle-open.1 +32 -0
  193. data/man/bundle-open.1.txt +29 -0
  194. data/man/bundle-outdated.1 +151 -0
  195. data/man/bundle-outdated.1.txt +127 -0
  196. data/man/bundle-outdated.ronn +1 -1
  197. data/man/bundle-package.1 +55 -0
  198. data/man/bundle-package.1.txt +79 -0
  199. data/man/bundle-package.ronn +5 -0
  200. data/man/bundle-platform.1 +61 -0
  201. data/man/bundle-platform.1.txt +57 -0
  202. data/man/bundle-pristine.1 +34 -0
  203. data/man/bundle-pristine.1.txt +44 -0
  204. data/man/bundle-pristine.ronn +24 -3
  205. data/man/bundle-show.1 +23 -0
  206. data/man/bundle-show.1.txt +25 -0
  207. data/man/bundle-update.1 +390 -0
  208. data/man/bundle-update.1.txt +386 -0
  209. data/man/bundle-update.ronn +2 -2
  210. data/man/bundle-viz.1 +39 -0
  211. data/man/bundle-viz.1.txt +38 -0
  212. data/man/bundle-viz.ronn +5 -5
  213. data/man/bundle.1 +132 -0
  214. data/man/bundle.1.txt +113 -0
  215. data/man/bundle.ronn +5 -2
  216. data/man/gemfile.5 +679 -0
  217. data/man/gemfile.5.ronn +31 -0
  218. data/man/gemfile.5.txt +636 -0
  219. data/man/index.txt +23 -0
  220. metadata +21 -36
  221. data/.codeclimate.yml +0 -25
  222. data/.gitignore +0 -18
  223. data/.rspec +0 -3
  224. data/.rubocop.yml +0 -131
  225. data/.rubocop_todo.yml +0 -418
  226. data/.travis.yml +0 -122
  227. data/CODE_OF_CONDUCT.md +0 -42
  228. data/CONTRIBUTING.md +0 -17
  229. data/Rakefile +0 -338
  230. data/bin/rake +0 -19
  231. data/bin/rspec +0 -15
  232. data/bin/rubocop +0 -17
  233. data/bin/with_rubygems +0 -39
  234. data/bundler.gemspec +0 -48
  235. data/doc/README.md +0 -30
  236. data/doc/TROUBLESHOOTING.md +0 -64
  237. data/doc/contributing/BUG_TRIAGE.md +0 -36
  238. data/doc/contributing/COMMUNITY.md +0 -13
  239. data/doc/contributing/GETTING_HELP.md +0 -11
  240. data/doc/contributing/HOW_YOU_CAN_HELP.md +0 -27
  241. data/doc/contributing/ISSUES.md +0 -51
  242. data/doc/contributing/README.md +0 -38
  243. data/doc/development/NEW_FEATURES.md +0 -10
  244. data/doc/development/PULL_REQUESTS.md +0 -40
  245. data/doc/development/README.md +0 -19
  246. data/doc/development/RELEASING.md +0 -9
  247. data/doc/development/SETUP.md +0 -27
  248. data/doc/documentation/README.md +0 -29
  249. data/doc/documentation/VISION.md +0 -26
  250. data/doc/documentation/WRITING.md +0 -54
  251. data/task/release.rake +0 -116
@@ -1,4 +1,5 @@
1
1
  # frozen_string_literal: true
2
+
2
3
  require 'bundler/vendor/molinillo/lib/molinillo/dependency_graph'
3
4
 
4
5
  module Bundler::Molinillo
@@ -1,4 +1,5 @@
1
1
  # frozen_string_literal: true
2
+
2
3
  module Bundler::Molinillo
3
4
  # A state that a {Resolution} can be in
4
5
  # @attr [String] name the name of the current requirement
@@ -7,7 +8,8 @@ module Bundler::Molinillo
7
8
  # @attr [Object] requirement the current requirement
8
9
  # @attr [Object] possibilities the possibilities to satisfy the current requirement
9
10
  # @attr [Integer] depth the depth of the resolution
10
- # @attr [Set<Object>] conflicts unresolved conflicts
11
+ # @attr [Hash] conflicts unresolved conflicts, indexed by dependency name
12
+ # @attr [Array<UnwindDetails>] unused_unwind_options unwinds for previous conflicts that weren't explored
11
13
  ResolutionState = Struct.new(
12
14
  :name,
13
15
  :requirements,
@@ -15,14 +17,15 @@ module Bundler::Molinillo
15
17
  :requirement,
16
18
  :possibilities,
17
19
  :depth,
18
- :conflicts
20
+ :conflicts,
21
+ :unused_unwind_options
19
22
  )
20
23
 
21
24
  class ResolutionState
22
25
  # Returns an empty resolution state
23
26
  # @return [ResolutionState] an empty state
24
27
  def self.empty
25
- new(nil, [], DependencyGraph.new, nil, nil, 0, Set.new)
28
+ new(nil, [], DependencyGraph.new, nil, nil, 0, {}, [])
26
29
  end
27
30
  end
28
31
 
@@ -40,7 +43,8 @@ module Bundler::Molinillo
40
43
  requirement,
41
44
  [possibilities.pop],
42
45
  depth + 1,
43
- conflicts.dup
46
+ conflicts.dup,
47
+ unused_unwind_options.dup
44
48
  ).tap do |state|
45
49
  state.activated.tag(state)
46
50
  end
@@ -814,7 +814,7 @@ class Bundler::Persistent::Net::HTTP::Persistent
814
814
 
815
815
  ##
816
816
  # Pipelines +requests+ to the HTTP server at +uri+ yielding responses if a
817
- # block is given. Returns all responses recieved.
817
+ # block is given. Returns all responses received.
818
818
  #
819
819
  # See
820
820
  # Net::HTTP::Pipeline[http://docs.seattlerb.org/net-http-pipeline/Net/HTTP/Pipeline.html]
@@ -0,0 +1,9 @@
1
+ # frozen_string_literal: true
2
+
3
+ module Bundler; end
4
+ if RUBY_VERSION >= "2.4"
5
+ require "bundler/vendor/fileutils/lib/fileutils"
6
+ else
7
+ # the version we vendor is 2.4+
8
+ require "fileutils"
9
+ end
@@ -1,3 +1,4 @@
1
1
  # frozen_string_literal: true
2
+
2
3
  module Bundler; end
3
4
  require "bundler/vendor/molinillo/lib/molinillo"
@@ -1,4 +1,5 @@
1
1
  # frozen_string_literal: true
2
+
2
3
  # We forcibly require OpenSSL, because net/http/persistent will only autoload
3
4
  # it. On some Rubies, autoload fails but explicit require succeeds.
4
5
  begin
@@ -15,3 +16,36 @@ module Bundler
15
16
  end
16
17
  end
17
18
  require "bundler/vendor/net-http-persistent/lib/net/http/persistent"
19
+
20
+ module Bundler
21
+ class PersistentHTTP < Persistent::Net::HTTP::Persistent
22
+ def connection_for(uri)
23
+ connection = super
24
+ warn_old_tls_version_rubygems_connection(uri, connection)
25
+ connection
26
+ end
27
+
28
+ def warn_old_tls_version_rubygems_connection(uri, connection)
29
+ return unless connection.use_ssl?
30
+ return unless (uri.host || "").end_with?("rubygems.org")
31
+
32
+ socket = connection.instance_variable_get(:@socket)
33
+ socket_io = socket.io
34
+ return unless socket_io.respond_to?(:ssl_version)
35
+ ssl_version = socket_io.ssl_version
36
+
37
+ case ssl_version
38
+ when /TLSv([\d\.]+)/
39
+ version = Gem::Version.new($1)
40
+ if version < Gem::Version.new("1.2")
41
+ Bundler.ui.warn \
42
+ "Warning: Your Ruby version is compiled against a copy of OpenSSL that is very old. " \
43
+ "Starting in January 2018, RubyGems.org will refuse connection requests from these " \
44
+ "very old versions of OpenSSL. If you will need to continue installing gems after " \
45
+ "January 2018, please follow this guide to upgrade: http://ruby.to/tls-outdated.",
46
+ :wrap => true
47
+ end
48
+ end
49
+ end
50
+ end
51
+ end
@@ -1,4 +1,5 @@
1
1
  # frozen_string_literal: true
2
+
2
3
  module Bundler
3
4
  def self.require_thor_actions
4
5
  Kernel.send(:require, "bundler/vendor/thor/lib/thor/actions")
@@ -1,4 +1,4 @@
1
- # frozen_string_literal: true
1
+ # frozen_string_literal: false
2
2
 
3
3
  # Ruby 1.9.3 and old RubyGems don't play nice with frozen version strings
4
4
  # rubocop:disable MutableConstant
@@ -7,7 +7,7 @@ module Bundler
7
7
  # We're doing this because we might write tests that deal
8
8
  # with other versions of bundler and we are unsure how to
9
9
  # handle this better.
10
- VERSION = "1.15.4" unless defined?(::Bundler::VERSION)
10
+ VERSION = "1.16.0.pre.1" unless defined?(::Bundler::VERSION)
11
11
 
12
12
  def self.overwrite_loaded_gem_version
13
13
  begin
@@ -21,4 +21,8 @@ module Bundler
21
21
  end
22
22
  private_class_method :overwrite_loaded_gem_version
23
23
  overwrite_loaded_gem_version
24
+
25
+ def self.bundler_major_version
26
+ @bundler_major_version ||= VERSION.split(".").first.to_i
27
+ end
24
28
  end
@@ -1,4 +1,5 @@
1
1
  # frozen_string_literal: true
2
+
2
3
  module Bundler
3
4
  module VersionRanges
4
5
  NEq = Struct.new(:version)
@@ -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 Vlad"
6
+
2
7
  # Vlad task for Bundler.
3
8
  #
4
9
  # Add "require 'bundler/vlad'" in your Vlad deploy.rb, and
@@ -1,4 +1,5 @@
1
1
  # frozen_string_literal: true
2
+
2
3
  require "thread"
3
4
 
4
5
  module Bundler
@@ -37,7 +37,7 @@ module Bundler
37
37
  HASH_REGEX = /
38
38
  ^
39
39
  ([ ]*) # indentations
40
- (.*) # key
40
+ (.+) # key
41
41
  (?::(?=(?:\s|$))) # : (without the lookahead the #key includes this when : is present in value)
42
42
  [ ]?
43
43
  (?: !\s)? # optional exclamation mark found with ruby 1.9.3
@@ -54,10 +54,10 @@ module Bundler
54
54
  last_empty_key = nil
55
55
  str.split(/\r?\n/).each do |line|
56
56
  if match = HASH_REGEX.match(line)
57
- indent, key, _, val = match.captures
57
+ indent, key, quote, val = match.captures
58
58
  key = convert_to_backward_compatible_key(key)
59
59
  depth = indent.scan(/ /).length
60
- if val.empty?
60
+ if quote.empty? && val.empty?
61
61
  new_hash = {}
62
62
  stack[depth][key] = new_hash
63
63
  stack[depth + 1] = new_hash
@@ -0,0 +1,43 @@
1
+ .\" generated with Ronn/v0.7.3
2
+ .\" http://github.com/rtomayko/ronn/tree/0.7.3
3
+ .
4
+ .TH "BUNDLE\-ADD" "1" "June 2017" "" ""
5
+ .
6
+ .SH "NAME"
7
+ \fBbundle\-add\fR \- Add gem to the Gemfile and run bundle install
8
+ .
9
+ .SH "SYNOPSIS"
10
+ \fBbundle add\fR \fIGEM_NAME\fR [\-\-group=GROUP] [\-\-version=VERSION] [\-\-source=SOURCE]
11
+ .
12
+ .SH "DESCRIPTION"
13
+ Adds the named gem to the Gemfile and run \fBbundle install\fR\.
14
+ .
15
+ .P
16
+ Example:
17
+ .
18
+ .P
19
+ bundle add rails
20
+ .
21
+ .P
22
+ bundle add rails \-\-version "< 3\.0, > 1\.1"
23
+ .
24
+ .P
25
+ bundle add rails \-\-version "~> 5\.0\.0" \-\-source "https://gems\.example\.com" \-\-group "development"
26
+ .
27
+ .P
28
+ bundle add rails \-\-group "development, test"
29
+ .
30
+ .SH "OPTIONS"
31
+ .
32
+ .TP
33
+ \fB\-\-version\fR, \fB\-v\fR
34
+ Specify version requirements(s) for the added gem\.
35
+ .
36
+ .TP
37
+ \fB\-\-group\fR, \fB\-g\fR
38
+ Specify the group(s) for the added gem\. Multiple groups should be separated by commas\.
39
+ .
40
+ .TP
41
+ \fB\-\-source\fR, , \fB\-s\fR
42
+ Specify the source for the added gem\.
43
+
@@ -0,0 +1,40 @@
1
+ BUNDLE-ADD(1) BUNDLE-ADD(1)
2
+
3
+
4
+
5
+ 1mNAME0m
6
+ 1mbundle-add 22m- Add gem to the Gemfile and run bundle install
7
+
8
+ 1mSYNOPSIS0m
9
+ 1mbundle add 4m22mGEM_NAME24m [--group=GROUP] [--version=VERSION]
10
+ [--source=SOURCE]
11
+
12
+ 1mDESCRIPTION0m
13
+ Adds the named gem to the Gemfile and run 1mbundle install22m.
14
+
15
+ Example:
16
+
17
+ bundle add rails
18
+
19
+ bundle add rails --version "< 3.0, > 1.1"
20
+
21
+ bundle add rails --version "~> 5.0.0" --source "https://gems.exam-
22
+ ple.com" --group "development"
23
+
24
+ bundle add rails --group "development, test"
25
+
26
+ 1mOPTIONS0m
27
+ 1m--version22m, 1m-v0m
28
+ Specify version requirements(s) for the added gem.
29
+
30
+ 1m--group22m, 1m-g0m
31
+ Specify the group(s) for the added gem. Multiple groups should
32
+ be separated by commas.
33
+
34
+ 1m--source22m, , 1m-s0m
35
+ Specify the source for the added gem.
36
+
37
+
38
+
39
+
40
+ June 2017 BUNDLE-ADD(1)
@@ -0,0 +1,40 @@
1
+ .\" generated with Ronn/v0.7.3
2
+ .\" http://github.com/rtomayko/ronn/tree/0.7.3
3
+ .
4
+ .TH "BUNDLE\-BINSTUBS" "1" "August 2017" "" ""
5
+ .
6
+ .SH "NAME"
7
+ \fBbundle\-binstubs\fR \- Install the binstubs of the listed gems
8
+ .
9
+ .SH "SYNOPSIS"
10
+ \fBbundle binstubs\fR \fIGEM_NAME\fR [\-\-force] [\-\-path PATH] [\-\-standalone]
11
+ .
12
+ .SH "DESCRIPTION"
13
+ Binstubs are scripts that wrap aroung executables\. Bundler creates a small Ruby file (a binstub) that loads Bundler, runs the command, and puts it into \fBbin/\fR\. Binstubs are a shortcut—or alternative— to always using \fBbundle exec\fR\. This gives you a file that can by run directly, and one that will always run the correct gem version used by the application\.
14
+ .
15
+ .P
16
+ For example, if you run \fBbundle binstubs rspec\-core\fR, Bundler will create the file \fBbin/rspec\fR\. That file will contain enough code to load Bundler, tell it to load the bundled gems, and then run rspec\.
17
+ .
18
+ .P
19
+ This command generates binstubs for executables in \fBGEM_NAME\fR\. Binstubs are put into \fBbin\fR, or the \fB\-\-path\fR directory if one has been set\. Calling binstubs with [GEM [GEM]] will create binstubs for all given gems\.
20
+ .
21
+ .SH "OPTIONS"
22
+ .
23
+ .TP
24
+ \fB\-\-force\fR
25
+ Overwrite existing binstubs if they exist\.
26
+ .
27
+ .TP
28
+ \fB\-\-path\fR
29
+ The location to install the specified binstubs to\. This defaults to \fBbin\fR\.
30
+ .
31
+ .TP
32
+ \fB\-\-standalone\fR
33
+ Makes binstubs that can work without depending on Rubygems or Bundler at runtime\.
34
+ .
35
+ .TP
36
+ \fB\-\-sheband\fR
37
+ Specify a different shebang executable name than the default (default \'ruby\')
38
+ .
39
+ .SH "BUNDLE INSTALL \-\-BINSTUBS"
40
+ To create binstubs for all the gems in the bundle you can use the \fB\-\-binstubs\fR flag in [bundle install(1)][bundle\-install]\.
@@ -0,0 +1,48 @@
1
+ BUNDLE-BINSTUBS(1) BUNDLE-BINSTUBS(1)
2
+
3
+
4
+
5
+ 1mNAME0m
6
+ 1mbundle-binstubs 22m- Install the binstubs of the listed gems
7
+
8
+ 1mSYNOPSIS0m
9
+ 1mbundle binstubs 4m22mGEM_NAME24m [--force] [--path PATH] [--standalone]
10
+
11
+ 1mDESCRIPTION0m
12
+ Binstubs are scripts that wrap aroung executables. Bundler creates a
13
+ small Ruby file (a binstub) that loads Bundler, runs the command, and
14
+ puts it into 1mbin/22m. Binstubs are a shortcutaor alternativea to always
15
+ using 1mbundle exec22m. This gives you a file that can by run directly, and
16
+ one that will always run the correct gem version used by the applica-
17
+ tion.
18
+
19
+ For example, if you run 1mbundle binstubs rspec-core22m, Bundler will create
20
+ the file 1mbin/rspec22m. That file will contain enough code to load Bundler,
21
+ tell it to load the bundled gems, and then run rspec.
22
+
23
+ This command generates binstubs for executables in 1mGEM_NAME22m. Binstubs
24
+ are put into 1mbin22m, or the 1m--path 22mdirectory if one has been set. Calling
25
+ binstubs with [GEM [GEM]] will create binstubs for all given gems.
26
+
27
+ 1mOPTIONS0m
28
+ 1m--force0m
29
+ Overwrite existing binstubs if they exist.
30
+
31
+ 1m--path 22mThe location to install the specified binstubs to. This defaults
32
+ to 1mbin22m.
33
+
34
+ 1m--standalone0m
35
+ Makes binstubs that can work without depending on Rubygems or
36
+ Bundler at runtime.
37
+
38
+ 1m--sheband0m
39
+ Specify a different shebang executable name than the default
40
+ (default 'ruby')
41
+
42
+ 1mBUNDLE INSTALL --BINSTUBS0m
43
+ To create binstubs for all the gems in the bundle you can use the
44
+ 1m--binstubs 22mflag in [bundle install(1)][bundle-install].
45
+
46
+
47
+
48
+ August 2017 BUNDLE-BINSTUBS(1)
@@ -7,6 +7,17 @@ bundle-binstubs(1) -- Install the binstubs of the listed gems
7
7
 
8
8
  ## DESCRIPTION
9
9
 
10
+ Binstubs are scripts that wrap aroung executables. Bundler creates a
11
+ small Ruby file (a binstub) that loads Bundler, runs the command,
12
+ and puts it into `bin/`. Binstubs are a shortcut—or alternative—
13
+ to always using `bundle exec`. This gives you a file that can by run
14
+ directly, and one that will always run the correct gem version
15
+ used by the application.
16
+
17
+ For example, if you run `bundle binstubs rspec-core`, Bundler will create
18
+ the file `bin/rspec`. That file will contain enough code to load Bundler,
19
+ tell it to load the bundled gems, and then run rspec.
20
+
10
21
  This command generates binstubs for executables in `GEM_NAME`.
11
22
  Binstubs are put into `bin`, or the `--path` directory if one has been set.
12
23
  Calling binstubs with [GEM [GEM]] will create binstubs for all given gems.
@@ -23,6 +34,9 @@ Calling binstubs with [GEM [GEM]] will create binstubs for all given gems.
23
34
  Makes binstubs that can work without depending on Rubygems or Bundler at
24
35
  runtime.
25
36
 
37
+ * `--sheband`:
38
+ Specify a different shebang executable name than the default (default 'ruby')
39
+
26
40
  ## BUNDLE INSTALL --BINSTUBS
27
41
 
28
42
  To create binstubs for all the gems in the bundle you can use the `--binstubs`
@@ -0,0 +1,31 @@
1
+ .\" generated with Ronn/v0.7.3
2
+ .\" http://github.com/rtomayko/ronn/tree/0.7.3
3
+ .
4
+ .TH "BUNDLE\-CHECK" "1" "June 2017" "" ""
5
+ .
6
+ .SH "NAME"
7
+ \fBbundle\-check\fR \- Verifies if dependencies are satisfied by installed gems
8
+ .
9
+ .SH "SYNOPSIS"
10
+ \fBbundle check\fR [\-\-dry\-run] [\-\-gemfile=FILE] [\-\-path=PATH]
11
+ .
12
+ .SH "DESCRIPTION"
13
+ \fBcheck\fR searches the local machine for each of the gems requested in the Gemfile\. If all gems are found, Bundler prints a success message and exits with a status of 0\.
14
+ .
15
+ .P
16
+ If not, the first missing gem is listed and Bundler exits status 1\.
17
+ .
18
+ .SH "OPTIONS"
19
+ .
20
+ .TP
21
+ \fB\-\-dry\-run\fR
22
+ Locks the \fBGemfile(5)\fR before running the command\.
23
+ .
24
+ .TP
25
+ \fB\-\-gemfile\fR
26
+ Use the specified gemfile instead of the \fBGemfile(5)\fR
27
+ .
28
+ .TP
29
+ \fB\-\-path\fR
30
+ Specify a different path than the system default ($BUNDLE_PATH or $GEM_HOME)\. Bundler will remember this value for future installs on this machine\.
31
+
@@ -0,0 +1,32 @@
1
+ BUNDLE-CHECK(1) BUNDLE-CHECK(1)
2
+
3
+
4
+
5
+ 1mNAME0m
6
+ 1mbundle-check 22m- Verifies if dependencies are satisfied by installed gems
7
+
8
+ 1mSYNOPSIS0m
9
+ 1mbundle check 22m[--dry-run] [--gemfile=FILE] [--path=PATH]
10
+
11
+ 1mDESCRIPTION0m
12
+ 1mcheck 22msearches the local machine for each of the gems requested in the
13
+ Gemfile. If all gems are found, Bundler prints a success message and
14
+ exits with a status of 0.
15
+
16
+ If not, the first missing gem is listed and Bundler exits status 1.
17
+
18
+ 1mOPTIONS0m
19
+ 1m--dry-run0m
20
+ Locks the 1mGemfile(5) 22mbefore running the command.
21
+
22
+ 1m--gemfile0m
23
+ Use the specified gemfile instead of the 1mGemfile(5)0m
24
+
25
+ 1m--path 22mSpecify a different path than the system default ($BUNDLE_PATH
26
+ or $GEM_HOME). Bundler will remember this value for future
27
+ installs on this machine.
28
+
29
+
30
+
31
+
32
+ June 2017 BUNDLE-CHECK(1)