bundler 1.16.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.
- checksums.yaml +5 -5
- data/CHANGELOG.md +195 -0
- data/README.md +5 -1
- data/bundler.gemspec +9 -2
- data/lib/bundler/build_metadata.rb +19 -4
- data/lib/bundler/cli/add.rb +15 -5
- data/lib/bundler/cli/binstubs.rb +8 -2
- data/lib/bundler/cli/check.rb +1 -1
- data/lib/bundler/cli/doctor.rb +47 -1
- data/lib/bundler/cli/exec.rb +4 -4
- data/lib/bundler/cli/gem.rb +5 -2
- data/lib/bundler/cli/init.rb +5 -0
- data/lib/bundler/cli/install.rb +10 -7
- data/lib/bundler/cli/list.rb +41 -5
- data/lib/bundler/cli/outdated.rb +8 -2
- data/lib/bundler/cli/pristine.rb +4 -0
- data/lib/bundler/cli/remove.rb +18 -0
- data/lib/bundler/cli/update.rb +3 -3
- data/lib/bundler/cli.rb +66 -22
- data/lib/bundler/compact_index_client/updater.rb +10 -1
- data/lib/bundler/current_ruby.rb +8 -1
- data/lib/bundler/definition.rb +48 -39
- data/lib/bundler/dep_proxy.rb +2 -2
- data/lib/bundler/dependency.rb +3 -2
- data/lib/bundler/deprecate.rb +2 -1
- data/lib/bundler/dsl.rb +19 -3
- data/lib/bundler/endpoint_specification.rb +1 -1
- data/lib/bundler/env.rb +10 -8
- data/lib/bundler/feature_flag.rb +7 -0
- data/lib/bundler/fetcher/downloader.rb +10 -5
- data/lib/bundler/fetcher/index.rb +2 -2
- data/lib/bundler/fetcher.rb +3 -3
- data/lib/bundler/friendly_errors.rb +2 -0
- data/lib/bundler/gem_helper.rb +1 -1
- data/lib/bundler/gem_version_promoter.rb +16 -2
- data/lib/bundler/injector.rb +173 -14
- data/lib/bundler/installer/gem_installer.rb +9 -2
- data/lib/bundler/installer/parallel_installer.rb +6 -1
- data/lib/bundler/installer.rb +41 -10
- data/lib/bundler/lazy_specification.rb +1 -1
- data/lib/bundler/mirror.rb +2 -2
- data/lib/bundler/plugin/events.rb +61 -0
- data/lib/bundler/plugin/index.rb +7 -2
- data/lib/bundler/plugin.rb +12 -5
- data/lib/bundler/process_lock.rb +1 -1
- data/lib/bundler/resolver/spec_group.rb +0 -5
- data/lib/bundler/resolver.rb +11 -10
- data/lib/bundler/ruby_version.rb +1 -1
- data/lib/bundler/rubygems_gem_installer.rb +7 -0
- data/lib/bundler/rubygems_integration.rb +9 -3
- data/lib/bundler/runtime.rb +10 -4
- data/lib/bundler/settings/validator.rb +23 -0
- data/lib/bundler/settings.rb +24 -3
- data/lib/bundler/shared_helpers.rb +33 -5
- data/lib/bundler/source/git/git_proxy.rb +6 -1
- data/lib/bundler/source/git.rb +2 -1
- data/lib/bundler/source/metadata.rb +2 -3
- data/lib/bundler/source/rubygems/remote.rb +4 -1
- data/lib/bundler/source/rubygems.rb +11 -2
- data/lib/bundler/source.rb +9 -9
- data/lib/bundler/spec_set.rb +4 -1
- data/lib/bundler/templates/Executable +1 -1
- data/lib/bundler/templates/newgem/lib/newgem.rb.tt +1 -0
- data/lib/bundler/templates/newgem/newgem.gemspec.tt +8 -2
- data/lib/bundler/templates/newgem/travis.yml.tt +2 -0
- data/lib/bundler/ui/shell.rb +3 -1
- data/lib/bundler/vendor/molinillo/lib/molinillo/dependency_graph/vertex.rb +11 -1
- data/lib/bundler/vendor/molinillo/lib/molinillo/errors.rb +7 -2
- data/lib/bundler/vendor/molinillo/lib/molinillo/gem_metadata.rb +1 -1
- data/lib/bundler/version.rb +1 -1
- data/lib/bundler.rb +38 -16
- data/man/bundle-add.1 +18 -3
- data/man/bundle-add.1.txt +17 -5
- data/man/bundle-add.ronn +13 -2
- data/man/bundle-binstubs.1 +4 -4
- data/man/bundle-binstubs.1.txt +4 -4
- data/man/bundle-binstubs.ronn +3 -3
- data/man/bundle-check.1 +4 -4
- data/man/bundle-check.1.txt +6 -5
- data/man/bundle-check.ronn +3 -3
- data/man/bundle-clean.1 +1 -1
- data/man/bundle-clean.1.txt +1 -1
- data/man/bundle-config.1 +48 -6
- data/man/bundle-config.1.txt +64 -26
- data/man/bundle-config.ronn +34 -9
- data/man/bundle-doctor.1 +44 -0
- data/man/bundle-doctor.1.txt +44 -0
- data/man/bundle-doctor.ronn +33 -0
- data/man/bundle-exec.1 +4 -4
- data/man/bundle-exec.1.txt +9 -9
- data/man/bundle-exec.ronn +3 -3
- data/man/bundle-gem.1 +2 -2
- data/man/bundle-gem.1.txt +2 -2
- data/man/bundle-gem.ronn +1 -1
- data/man/bundle-info.1 +1 -1
- data/man/bundle-info.1.txt +1 -1
- data/man/bundle-init.1 +9 -4
- data/man/bundle-init.1.txt +16 -6
- data/man/bundle-init.ronn +15 -4
- data/man/bundle-inject.1 +4 -4
- data/man/bundle-inject.1.txt +5 -5
- data/man/bundle-inject.ronn +3 -3
- data/man/bundle-install.1 +7 -4
- data/man/bundle-install.1.txt +119 -108
- data/man/bundle-install.ronn +13 -4
- data/man/bundle-list.1 +32 -2
- data/man/bundle-list.1.txt +24 -2
- data/man/bundle-list.ronn +19 -1
- data/man/bundle-lock.1 +2 -2
- data/man/bundle-lock.1.txt +2 -2
- data/man/bundle-lock.ronn +1 -1
- data/man/bundle-open.1 +1 -1
- data/man/bundle-open.1.txt +1 -1
- data/man/bundle-outdated.1 +7 -3
- data/man/bundle-outdated.1.txt +11 -7
- data/man/bundle-outdated.ronn +5 -1
- data/man/bundle-package.1 +3 -3
- data/man/bundle-package.1.txt +6 -6
- data/man/bundle-package.ronn +3 -3
- data/man/bundle-platform.1 +1 -1
- data/man/bundle-platform.1.txt +1 -1
- data/man/bundle-pristine.1 +1 -1
- data/man/bundle-pristine.1.txt +1 -1
- data/man/bundle-remove.1 +31 -0
- data/man/bundle-remove.1.txt +34 -0
- data/man/bundle-remove.ronn +23 -0
- data/man/bundle-show.1 +3 -3
- data/man/bundle-show.1.txt +6 -4
- data/man/bundle-show.ronn +3 -2
- data/man/bundle-update.1 +17 -13
- data/man/bundle-update.1.txt +68 -63
- data/man/bundle-update.ronn +19 -15
- data/man/bundle-viz.1 +2 -2
- data/man/bundle-viz.1.txt +3 -2
- data/man/bundle-viz.ronn +1 -1
- data/man/bundle.1 +32 -28
- data/man/bundle.1.txt +31 -28
- data/man/bundle.ronn +30 -27
- data/man/gemfile.5 +19 -9
- data/man/gemfile.5.ronn +24 -9
- data/man/gemfile.5.txt +114 -97
- data/man/index.txt +2 -0
- metadata +16 -3
data/lib/bundler/source.rb
CHANGED
@@ -54,6 +54,15 @@ module Bundler
|
|
54
54
|
instance_of?(Bundler::Source::Path)
|
55
55
|
end
|
56
56
|
|
57
|
+
def extension_cache_path(spec)
|
58
|
+
return unless Bundler.feature_flag.global_gem_cache?
|
59
|
+
return unless source_slug = extension_cache_slug(spec)
|
60
|
+
Bundler.user_cache.join(
|
61
|
+
"extensions", Gem::Platform.local.to_s, Bundler.ruby_scope,
|
62
|
+
source_slug, spec.full_name
|
63
|
+
)
|
64
|
+
end
|
65
|
+
|
57
66
|
private
|
58
67
|
|
59
68
|
def version_color(spec_version, locked_spec_version)
|
@@ -78,15 +87,6 @@ module Bundler
|
|
78
87
|
end
|
79
88
|
end
|
80
89
|
|
81
|
-
def extension_cache_path(spec)
|
82
|
-
return unless Bundler.feature_flag.global_gem_cache?
|
83
|
-
return unless source_slug = extension_cache_slug(spec)
|
84
|
-
Bundler.user_cache.join(
|
85
|
-
"extensions", Gem::Platform.local.to_s, Bundler.ruby_scope,
|
86
|
-
source_slug, spec.full_name
|
87
|
-
)
|
88
|
-
end
|
89
|
-
|
90
90
|
def extension_cache_slug(_)
|
91
91
|
nil
|
92
92
|
end
|
data/lib/bundler/spec_set.rb
CHANGED
@@ -37,7 +37,10 @@ module Bundler
|
|
37
37
|
elsif check
|
38
38
|
return false
|
39
39
|
elsif raise_on_missing
|
40
|
-
|
40
|
+
others = lookup[dep.name] if match_current_platform
|
41
|
+
message = "Unable to find a spec satisfying #{dep} in the set. Perhaps the lockfile is corrupted?"
|
42
|
+
message += " Found #{others.join(", ")} that did not match the current platform." if others && !others.empty?
|
43
|
+
raise GemNotFound, message
|
41
44
|
end
|
42
45
|
end
|
43
46
|
|
@@ -15,7 +15,7 @@ ENV["BUNDLE_GEMFILE"] ||= File.expand_path("../<%= relative_gemfile_path %>",
|
|
15
15
|
bundle_binstub = File.expand_path("../bundle", __FILE__)
|
16
16
|
|
17
17
|
if File.file?(bundle_binstub)
|
18
|
-
if File.read(bundle_binstub,
|
18
|
+
if File.read(bundle_binstub, 300) =~ /This file was generated by Bundler/
|
19
19
|
load(bundle_binstub)
|
20
20
|
else
|
21
21
|
abort("Your `bin/bundle` was not generated by Bundler, so this binstub cannot run.
|
@@ -6,6 +6,7 @@ require "<%= config[:namespaced_path] %>/<%= config[:underscored_name] %>"
|
|
6
6
|
<%- config[:constant_array].each_with_index do |c, i| -%>
|
7
7
|
<%= " " * i %>module <%= c %>
|
8
8
|
<%- end -%>
|
9
|
+
<%= " " * config[:constant_array].size %>class Error < StandardError; end
|
9
10
|
<%= " " * config[:constant_array].size %># Your code goes here...
|
10
11
|
<%- (config[:constant_array].size-1).downto(0) do |i| -%>
|
11
12
|
<%= " " * i %>end
|
@@ -23,13 +23,19 @@ Gem::Specification.new do |spec|
|
|
23
23
|
# to allow pushing to a single host or delete this section to allow pushing to any host.
|
24
24
|
if spec.respond_to?(:metadata)
|
25
25
|
spec.metadata["allowed_push_host"] = "TODO: Set to 'http://mygemserver.com'"
|
26
|
+
|
27
|
+
spec.metadata["homepage_uri"] = spec.homepage
|
28
|
+
spec.metadata["source_code_uri"] = "TODO: Put your gem's public repo URL here."
|
29
|
+
spec.metadata["changelog_uri"] = "TODO: Put your gem's CHANGELOG.md URL here."
|
26
30
|
else
|
27
31
|
raise "RubyGems 2.0 or newer is required to protect against " \
|
28
32
|
"public gem pushes."
|
29
33
|
end
|
30
34
|
|
31
|
-
|
32
|
-
|
35
|
+
# Specify which files should be added to the gem when it is released.
|
36
|
+
# The `git ls-files -z` loads the files in the RubyGem that have been added into git.
|
37
|
+
spec.files = Dir.chdir(File.expand_path('..', __FILE__)) do
|
38
|
+
`git ls-files -z`.split("\x0").reject { |f| f.match(%r{^(test|spec|features)/}) }
|
33
39
|
end
|
34
40
|
spec.bindir = "exe"
|
35
41
|
spec.executables = spec.files.grep(%r{^exe/}) { |f| File.basename(f) }
|
data/lib/bundler/ui/shell.rb
CHANGED
@@ -109,7 +109,9 @@ module Bundler
|
|
109
109
|
end
|
110
110
|
|
111
111
|
def tell_err(message, color = nil, newline = nil)
|
112
|
-
|
112
|
+
return if @shell.send(:stderr).closed?
|
113
|
+
|
114
|
+
newline ||= message.to_s !~ /( |\t)\Z/
|
113
115
|
message = word_wrap(message) if newline.is_a?(Hash) && newline[:wrap]
|
114
116
|
|
115
117
|
color = nil if color && !$stderr.tty?
|
@@ -108,11 +108,21 @@ module Bundler::Molinillo
|
|
108
108
|
# dependency graph?
|
109
109
|
# @return true iff there is a path following edges within this {#graph}
|
110
110
|
def path_to?(other)
|
111
|
-
|
111
|
+
_path_to?(other)
|
112
112
|
end
|
113
113
|
|
114
114
|
alias descendent? path_to?
|
115
115
|
|
116
|
+
# @param [Vertex] other the vertex to check if there's a path to
|
117
|
+
# @param [Set<Vertex>] visited the vertices of {#graph} that have been visited
|
118
|
+
# @return [Boolean] whether there is a path to `other` from `self`
|
119
|
+
def _path_to?(other, visited = Set.new)
|
120
|
+
return false unless visited.add?(self)
|
121
|
+
return true if equal?(other)
|
122
|
+
successors.any? { |v| v._path_to?(other, visited) }
|
123
|
+
end
|
124
|
+
protected :_path_to?
|
125
|
+
|
116
126
|
# Is there a path from `other` to `self` following edges in the
|
117
127
|
# dependency graph?
|
118
128
|
# @return true iff there is a path following edges within this {#graph}
|
@@ -18,7 +18,7 @@ module Bundler::Molinillo
|
|
18
18
|
# @param [Array<Object>] required_by @see {#required_by}
|
19
19
|
def initialize(dependency, required_by = [])
|
20
20
|
@dependency = dependency
|
21
|
-
@required_by = required_by
|
21
|
+
@required_by = required_by.uniq
|
22
22
|
super()
|
23
23
|
end
|
24
24
|
|
@@ -101,9 +101,14 @@ module Bundler::Molinillo
|
|
101
101
|
printable_requirement = opts.delete(:printable_requirement) { proc { |req| req.to_s } }
|
102
102
|
additional_message_for_conflict = opts.delete(:additional_message_for_conflict) { proc {} }
|
103
103
|
version_for_spec = opts.delete(:version_for_spec) { proc(&:to_s) }
|
104
|
+
incompatible_version_message_for_conflict = opts.delete(:incompatible_version_message_for_conflict) do
|
105
|
+
proc do |name, _conflict|
|
106
|
+
%(#{solver_name} could not find compatible versions for #{possibility_type} "#{name}":)
|
107
|
+
end
|
108
|
+
end
|
104
109
|
|
105
110
|
conflicts.sort.reduce(''.dup) do |o, (name, conflict)|
|
106
|
-
o <<
|
111
|
+
o << "\n" << incompatible_version_message_for_conflict.call(name, conflict) << "\n"
|
107
112
|
if conflict.locked_requirement
|
108
113
|
o << %( In snapshot (#{name_for_locking_dependency_source}):\n)
|
109
114
|
o << %( #{printable_requirement.call(conflict.locked_requirement)}\n)
|
data/lib/bundler/version.rb
CHANGED
@@ -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.
|
10
|
+
VERSION = "1.17.3" unless defined?(::Bundler::VERSION)
|
11
11
|
|
12
12
|
def self.overwrite_loaded_gem_version
|
13
13
|
begin
|
data/lib/bundler.rb
CHANGED
@@ -136,7 +136,7 @@ module Bundler
|
|
136
136
|
end
|
137
137
|
end
|
138
138
|
|
139
|
-
def
|
139
|
+
def frozen_bundle?
|
140
140
|
frozen = settings[:deployment]
|
141
141
|
frozen ||= settings[:frozen] unless feature_flag.deployment_means_frozen?
|
142
142
|
frozen
|
@@ -159,16 +159,18 @@ module Bundler
|
|
159
159
|
def user_home
|
160
160
|
@user_home ||= begin
|
161
161
|
home = Bundler.rubygems.user_home
|
162
|
+
bundle_home = home ? File.join(home, ".bundle") : nil
|
162
163
|
|
163
164
|
warning = if home.nil?
|
164
165
|
"Your home directory is not set."
|
165
166
|
elsif !File.directory?(home)
|
166
167
|
"`#{home}` is not a directory."
|
167
|
-
elsif !File.writable?(home)
|
168
|
+
elsif !File.writable?(home) && (!File.directory?(bundle_home) || !File.writable?(bundle_home))
|
168
169
|
"`#{home}` is not writable."
|
169
170
|
end
|
170
171
|
|
171
172
|
if warning
|
173
|
+
Kernel.send(:require, "etc")
|
172
174
|
user_home = tmp_home_path(Etc.getlogin, warning)
|
173
175
|
Bundler.ui.warn "#{warning}\nBundler will use `#{user_home}' as your home directory temporarily.\n"
|
174
176
|
user_home
|
@@ -189,12 +191,30 @@ module Bundler
|
|
189
191
|
end
|
190
192
|
tmp_home_path.join(login).tap(&:mkpath)
|
191
193
|
end
|
192
|
-
rescue => e
|
194
|
+
rescue RuntimeError => e
|
193
195
|
raise e.exception("#{warning}\nBundler also failed to create a temporary home directory at `#{path}':\n#{e}")
|
194
196
|
end
|
195
197
|
|
196
|
-
def user_bundle_path
|
197
|
-
|
198
|
+
def user_bundle_path(dir = "home")
|
199
|
+
env_var, fallback = case dir
|
200
|
+
when "home"
|
201
|
+
["BUNDLE_USER_HOME", Pathname.new(user_home).join(".bundle")]
|
202
|
+
when "cache"
|
203
|
+
["BUNDLE_USER_CACHE", user_bundle_path.join("cache")]
|
204
|
+
when "config"
|
205
|
+
["BUNDLE_USER_CONFIG", user_bundle_path.join("config")]
|
206
|
+
when "plugin"
|
207
|
+
["BUNDLE_USER_PLUGIN", user_bundle_path.join("plugin")]
|
208
|
+
else
|
209
|
+
raise BundlerError, "Unknown user path requested: #{dir}"
|
210
|
+
end
|
211
|
+
# `fallback` will already be a Pathname, but Pathname.new() is
|
212
|
+
# idempotent so it's OK
|
213
|
+
Pathname.new(ENV.fetch(env_var, fallback))
|
214
|
+
end
|
215
|
+
|
216
|
+
def user_cache
|
217
|
+
user_bundle_path("cache")
|
198
218
|
end
|
199
219
|
|
200
220
|
def home
|
@@ -209,10 +229,6 @@ module Bundler
|
|
209
229
|
bundle_path.join("specifications")
|
210
230
|
end
|
211
231
|
|
212
|
-
def user_cache
|
213
|
-
user_bundle_path.join("cache")
|
214
|
-
end
|
215
|
-
|
216
232
|
def root
|
217
233
|
@root ||= begin
|
218
234
|
SharedHelpers.root
|
@@ -351,16 +367,20 @@ EOF
|
|
351
367
|
bin_dir = bin_dir.parent until bin_dir.exist?
|
352
368
|
|
353
369
|
# if any directory is not writable, we need sudo
|
354
|
-
files = [path, bin_dir] | Dir[
|
355
|
-
|
370
|
+
files = [path, bin_dir] | Dir[bundle_path.join("build_info/*").to_s] | Dir[bundle_path.join("*").to_s]
|
371
|
+
unwritable_files = files.reject {|f| File.writable?(f) }
|
372
|
+
sudo_needed = !unwritable_files.empty?
|
373
|
+
if sudo_needed
|
374
|
+
Bundler.ui.warn "Following files may not be writable, so sudo is needed:\n #{unwritable_files.map(&:to_s).sort.join("\n ")}"
|
375
|
+
end
|
356
376
|
end
|
357
377
|
|
358
378
|
@requires_sudo_ran = true
|
359
379
|
@requires_sudo = settings.allow_sudo? && sudo_present && sudo_needed
|
360
380
|
end
|
361
381
|
|
362
|
-
def mkdir_p(path)
|
363
|
-
if requires_sudo?
|
382
|
+
def mkdir_p(path, options = {})
|
383
|
+
if requires_sudo? && !options[:no_sudo]
|
364
384
|
sudo "mkdir -p '#{path}'" unless File.exist?(path)
|
365
385
|
else
|
366
386
|
SharedHelpers.filesystem_access(path, :write) do |p|
|
@@ -407,12 +427,14 @@ EOF
|
|
407
427
|
end
|
408
428
|
|
409
429
|
def read_file(file)
|
410
|
-
|
430
|
+
SharedHelpers.filesystem_access(file, :read) do
|
431
|
+
File.open(file, "r:UTF-8", &:read)
|
432
|
+
end
|
411
433
|
end
|
412
434
|
|
413
435
|
def load_marshal(data)
|
414
436
|
Marshal.load(data)
|
415
|
-
rescue => e
|
437
|
+
rescue StandardError => e
|
416
438
|
raise MarshalError, "#{e.class}: #{e.message}"
|
417
439
|
end
|
418
440
|
|
@@ -427,7 +449,7 @@ EOF
|
|
427
449
|
|
428
450
|
def load_gemspec_uncached(file, validate = false)
|
429
451
|
path = Pathname.new(file)
|
430
|
-
contents =
|
452
|
+
contents = read_file(file)
|
431
453
|
spec = if contents.start_with?("---") # YAML header
|
432
454
|
eval_yaml_gemspec(path, contents)
|
433
455
|
else
|
data/man/bundle-add.1
CHANGED
@@ -1,16 +1,16 @@
|
|
1
1
|
.\" generated with Ronn/v0.7.3
|
2
2
|
.\" http://github.com/rtomayko/ronn/tree/0.7.3
|
3
3
|
.
|
4
|
-
.TH "BUNDLE\-ADD" "1" "
|
4
|
+
.TH "BUNDLE\-ADD" "1" "December 2018" "" ""
|
5
5
|
.
|
6
6
|
.SH "NAME"
|
7
7
|
\fBbundle\-add\fR \- Add gem to the Gemfile and run bundle install
|
8
8
|
.
|
9
9
|
.SH "SYNOPSIS"
|
10
|
-
\fBbundle add\fR \fIGEM_NAME\fR [\-\-group=GROUP] [\-\-version=VERSION] [\-\-source=SOURCE]
|
10
|
+
\fBbundle add\fR \fIGEM_NAME\fR [\-\-group=GROUP] [\-\-version=VERSION] [\-\-source=SOURCE] [\-\-skip\-install] [\-\-strict] [\-\-optimistic]
|
11
11
|
.
|
12
12
|
.SH "DESCRIPTION"
|
13
|
-
Adds the named gem to the Gemfile and run \fBbundle install\fR\.
|
13
|
+
Adds the named gem to the Gemfile and run \fBbundle install\fR\. \fBbundle install\fR can be avoided by using the flag \fB\-\-skip\-install\fR\.
|
14
14
|
.
|
15
15
|
.P
|
16
16
|
Example:
|
@@ -25,6 +25,9 @@ bundle add rails \-\-version "< 3\.0, > 1\.1"
|
|
25
25
|
bundle add rails \-\-version "~> 5\.0\.0" \-\-source "https://gems\.example\.com" \-\-group "development"
|
26
26
|
.
|
27
27
|
.P
|
28
|
+
bundle add rails \-\-skip\-install
|
29
|
+
.
|
30
|
+
.P
|
28
31
|
bundle add rails \-\-group "development, test"
|
29
32
|
.
|
30
33
|
.SH "OPTIONS"
|
@@ -40,4 +43,16 @@ Specify the group(s) for the added gem\. Multiple groups should be separated by
|
|
40
43
|
.TP
|
41
44
|
\fB\-\-source\fR, , \fB\-s\fR
|
42
45
|
Specify the source for the added gem\.
|
46
|
+
.
|
47
|
+
.TP
|
48
|
+
\fB\-\-skip\-install\fR
|
49
|
+
Adds the gem to the Gemfile but does not install it\.
|
50
|
+
.
|
51
|
+
.TP
|
52
|
+
\fB\-\-optimistic\fR
|
53
|
+
Adds optimistic declaration of version
|
54
|
+
.
|
55
|
+
.TP
|
56
|
+
\fB\-\-strict\fR
|
57
|
+
Adds strict declaration of version
|
43
58
|
|
data/man/bundle-add.1.txt
CHANGED
@@ -7,10 +7,11 @@ NAME
|
|
7
7
|
|
8
8
|
SYNOPSIS
|
9
9
|
bundle add GEM_NAME [--group=GROUP] [--version=VERSION]
|
10
|
-
[--source=SOURCE]
|
10
|
+
[--source=SOURCE] [--skip-install] [--strict] [--optimistic]
|
11
11
|
|
12
12
|
DESCRIPTION
|
13
|
-
Adds the named gem to
|
13
|
+
Adds the named gem to the Gemfile and run bundle install. bundle
|
14
|
+
install can be avoided by using the flag --skip-install.
|
14
15
|
|
15
16
|
Example:
|
16
17
|
|
@@ -18,9 +19,11 @@ DESCRIPTION
|
|
18
19
|
|
19
20
|
bundle add rails --version "< 3.0, > 1.1"
|
20
21
|
|
21
|
-
bundle
|
22
|
+
bundle add rails --version "~> 5.0.0" --source "https://gems.exam-
|
22
23
|
ple.com" --group "development"
|
23
24
|
|
25
|
+
bundle add rails --skip-install
|
26
|
+
|
24
27
|
bundle add rails --group "development, test"
|
25
28
|
|
26
29
|
OPTIONS
|
@@ -28,13 +31,22 @@ OPTIONS
|
|
28
31
|
Specify version requirements(s) for the added gem.
|
29
32
|
|
30
33
|
--group, -g
|
31
|
-
Specify
|
34
|
+
Specify the group(s) for the added gem. Multiple groups should
|
32
35
|
be separated by commas.
|
33
36
|
|
34
37
|
--source, , -s
|
35
38
|
Specify the source for the added gem.
|
36
39
|
|
40
|
+
--skip-install
|
41
|
+
Adds the gem to the Gemfile but does not install it.
|
42
|
+
|
43
|
+
--optimistic
|
44
|
+
Adds optimistic declaration of version
|
45
|
+
|
46
|
+
--strict
|
47
|
+
Adds strict declaration of version
|
48
|
+
|
37
49
|
|
38
50
|
|
39
51
|
|
40
|
-
|
52
|
+
December 2018 BUNDLE-ADD(1)
|
data/man/bundle-add.ronn
CHANGED
@@ -3,10 +3,10 @@ bundle-add(1) -- Add gem to the Gemfile and run bundle install
|
|
3
3
|
|
4
4
|
## SYNOPSIS
|
5
5
|
|
6
|
-
`bundle add` <GEM_NAME> [--group=GROUP] [--version=VERSION] [--source=SOURCE]
|
6
|
+
`bundle add` <GEM_NAME> [--group=GROUP] [--version=VERSION] [--source=SOURCE] [--skip-install] [--strict] [--optimistic]
|
7
7
|
|
8
8
|
## DESCRIPTION
|
9
|
-
Adds the named gem to the Gemfile and run `bundle install`.
|
9
|
+
Adds the named gem to the Gemfile and run `bundle install`. `bundle install` can be avoided by using the flag `--skip-install`.
|
10
10
|
|
11
11
|
Example:
|
12
12
|
|
@@ -16,6 +16,8 @@ bundle add rails --version "< 3.0, > 1.1"
|
|
16
16
|
|
17
17
|
bundle add rails --version "~> 5.0.0" --source "https://gems.example.com" --group "development"
|
18
18
|
|
19
|
+
bundle add rails --skip-install
|
20
|
+
|
19
21
|
bundle add rails --group "development, test"
|
20
22
|
|
21
23
|
## OPTIONS
|
@@ -27,3 +29,12 @@ bundle add rails --group "development, test"
|
|
27
29
|
|
28
30
|
* `--source`, , `-s`:
|
29
31
|
Specify the source for the added gem.
|
32
|
+
|
33
|
+
* `--skip-install`:
|
34
|
+
Adds the gem to the Gemfile but does not install it.
|
35
|
+
|
36
|
+
* `--optimistic`:
|
37
|
+
Adds optimistic declaration of version
|
38
|
+
|
39
|
+
* `--strict`:
|
40
|
+
Adds strict declaration of version
|
data/man/bundle-binstubs.1
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
.\" generated with Ronn/v0.7.3
|
2
2
|
.\" http://github.com/rtomayko/ronn/tree/0.7.3
|
3
3
|
.
|
4
|
-
.TH "BUNDLE\-BINSTUBS" "1" "
|
4
|
+
.TH "BUNDLE\-BINSTUBS" "1" "November 2018" "" ""
|
5
5
|
.
|
6
6
|
.SH "NAME"
|
7
7
|
\fBbundle\-binstubs\fR \- Install the binstubs of the listed gems
|
@@ -10,7 +10,7 @@
|
|
10
10
|
\fBbundle binstubs\fR \fIGEM_NAME\fR [\-\-force] [\-\-path PATH] [\-\-standalone]
|
11
11
|
.
|
12
12
|
.SH "DESCRIPTION"
|
13
|
-
Binstubs are scripts that wrap
|
13
|
+
Binstubs are scripts that wrap around 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
14
|
.
|
15
15
|
.P
|
16
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\.
|
@@ -33,8 +33,8 @@ The location to install the specified binstubs to\. This defaults to \fBbin\fR\.
|
|
33
33
|
Makes binstubs that can work without depending on Rubygems or Bundler at runtime\.
|
34
34
|
.
|
35
35
|
.TP
|
36
|
-
\fB\-\-
|
36
|
+
\fB\-\-shebang\fR
|
37
37
|
Specify a different shebang executable name than the default (default \'ruby\')
|
38
38
|
.
|
39
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
|
40
|
+
To create binstubs for all the gems in the bundle you can use the \fB\-\-binstubs\fR flag in bundle install(1) \fIbundle\-install\.1\.html\fR\.
|
data/man/bundle-binstubs.1.txt
CHANGED
@@ -9,7 +9,7 @@ SYNOPSIS
|
|
9
9
|
bundle binstubs GEM_NAME [--force] [--path PATH] [--standalone]
|
10
10
|
|
11
11
|
DESCRIPTION
|
12
|
-
Binstubs are scripts that wrap
|
12
|
+
Binstubs are scripts that wrap around executables. Bundler creates a
|
13
13
|
small Ruby file (a binstub) that loads Bundler, runs the command, and
|
14
14
|
puts it into bin/. Binstubs are a shortcut-or alternative- to always
|
15
15
|
using bundle exec. This gives you a file that can by run directly, and
|
@@ -35,14 +35,14 @@ OPTIONS
|
|
35
35
|
Makes binstubs that can work without depending on Rubygems or
|
36
36
|
Bundler at runtime.
|
37
37
|
|
38
|
-
--
|
38
|
+
--shebang
|
39
39
|
Specify a different shebang executable name than the default
|
40
40
|
(default 'ruby')
|
41
41
|
|
42
42
|
BUNDLE INSTALL --BINSTUBS
|
43
43
|
To create binstubs for all the gems in the bundle you can use the
|
44
|
-
--binstubs flag in
|
44
|
+
--binstubs flag in bundle install(1) bundle-install.1.html.
|
45
45
|
|
46
46
|
|
47
47
|
|
48
|
-
|
48
|
+
November 2018 BUNDLE-BINSTUBS(1)
|
data/man/bundle-binstubs.ronn
CHANGED
@@ -7,7 +7,7 @@ bundle-binstubs(1) -- Install the binstubs of the listed gems
|
|
7
7
|
|
8
8
|
## DESCRIPTION
|
9
9
|
|
10
|
-
Binstubs are scripts that wrap
|
10
|
+
Binstubs are scripts that wrap around executables. Bundler creates a
|
11
11
|
small Ruby file (a binstub) that loads Bundler, runs the command,
|
12
12
|
and puts it into `bin/`. Binstubs are a shortcut-or alternative-
|
13
13
|
to always using `bundle exec`. This gives you a file that can by run
|
@@ -34,10 +34,10 @@ Calling binstubs with [GEM [GEM]] will create binstubs for all given gems.
|
|
34
34
|
Makes binstubs that can work without depending on Rubygems or Bundler at
|
35
35
|
runtime.
|
36
36
|
|
37
|
-
* `--
|
37
|
+
* `--shebang`:
|
38
38
|
Specify a different shebang executable name than the default (default 'ruby')
|
39
39
|
|
40
40
|
## BUNDLE INSTALL --BINSTUBS
|
41
41
|
|
42
42
|
To create binstubs for all the gems in the bundle you can use the `--binstubs`
|
43
|
-
flag in [bundle install(1)]
|
43
|
+
flag in [bundle install(1)](bundle-install.1.html).
|
data/man/bundle-check.1
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
.\" generated with Ronn/v0.7.3
|
2
2
|
.\" http://github.com/rtomayko/ronn/tree/0.7.3
|
3
3
|
.
|
4
|
-
.TH "BUNDLE\-CHECK" "1" "
|
4
|
+
.TH "BUNDLE\-CHECK" "1" "November 2018" "" ""
|
5
5
|
.
|
6
6
|
.SH "NAME"
|
7
7
|
\fBbundle\-check\fR \- Verifies if dependencies are satisfied by installed gems
|
@@ -19,13 +19,13 @@ If not, the first missing gem is listed and Bundler exits status 1\.
|
|
19
19
|
.
|
20
20
|
.TP
|
21
21
|
\fB\-\-dry\-run\fR
|
22
|
-
Locks the \fBGemfile(5)\fR before running the command\.
|
22
|
+
Locks the [\fBGemfile(5)\fR][Gemfile(5)] before running the command\.
|
23
23
|
.
|
24
24
|
.TP
|
25
25
|
\fB\-\-gemfile\fR
|
26
|
-
Use the specified gemfile instead of the \fBGemfile(5)\fR
|
26
|
+
Use the specified gemfile instead of the [\fBGemfile(5)\fR][Gemfile(5)]\.
|
27
27
|
.
|
28
28
|
.TP
|
29
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\.
|
30
|
+
Specify a different path than the system default (\fB$BUNDLE_PATH\fR or \fB$GEM_HOME\fR)\. Bundler will remember this value for future installs on this machine\.
|
31
31
|
|
data/man/bundle-check.1.txt
CHANGED
@@ -17,16 +17,17 @@ DESCRIPTION
|
|
17
17
|
|
18
18
|
OPTIONS
|
19
19
|
--dry-run
|
20
|
-
Locks the Gemfile(5) before running the command.
|
20
|
+
Locks the [Gemfile(5)][Gemfile(5)] before running the command.
|
21
21
|
|
22
22
|
--gemfile
|
23
|
-
Use the
|
23
|
+
Use the specified gemfile instead of the [Gemfile(5)][Gem-
|
24
|
+
file(5)].
|
24
25
|
|
25
|
-
--path Specify
|
26
|
-
or
|
26
|
+
--path Specify a different path than the system default ($BUNDLE_PATH
|
27
|
+
or $GEM_HOME). Bundler will remember this value for future
|
27
28
|
installs on this machine.
|
28
29
|
|
29
30
|
|
30
31
|
|
31
32
|
|
32
|
-
|
33
|
+
November 2018 BUNDLE-CHECK(1)
|
data/man/bundle-check.ronn
CHANGED
@@ -18,9 +18,9 @@ If not, the first missing gem is listed and Bundler exits status 1.
|
|
18
18
|
## OPTIONS
|
19
19
|
|
20
20
|
* `--dry-run`:
|
21
|
-
Locks the `Gemfile(5)` before running the command.
|
21
|
+
Locks the [`Gemfile(5)`][Gemfile(5)] before running the command.
|
22
22
|
* `--gemfile`:
|
23
|
-
Use the specified gemfile instead of the `Gemfile(5)`
|
23
|
+
Use the specified gemfile instead of the [`Gemfile(5)`][Gemfile(5)].
|
24
24
|
* `--path`:
|
25
|
-
Specify a different path than the system default (
|
25
|
+
Specify a different path than the system default (`$BUNDLE_PATH` or `$GEM_HOME`).
|
26
26
|
Bundler will remember this value for future installs on this machine.
|
data/man/bundle-clean.1
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
.\" generated with Ronn/v0.7.3
|
2
2
|
.\" http://github.com/rtomayko/ronn/tree/0.7.3
|
3
3
|
.
|
4
|
-
.TH "BUNDLE\-CLEAN" "1" "
|
4
|
+
.TH "BUNDLE\-CLEAN" "1" "December 2018" "" ""
|
5
5
|
.
|
6
6
|
.SH "NAME"
|
7
7
|
\fBbundle\-clean\fR \- Cleans up unused gems in your bundler directory
|
data/man/bundle-clean.1.txt
CHANGED