bundler 1.13.0.pre.1 → 1.13.0.rc.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.
- checksums.yaml +4 -4
- data/CHANGELOG.md +17 -0
- data/DEVELOPMENT.md +2 -2
- data/Rakefile +1 -4
- data/exe/bundle_ruby +2 -4
- data/lib/bundler.rb +12 -6
- data/lib/bundler/cli.rb +2 -0
- data/lib/bundler/cli/install.rb +1 -1
- data/lib/bundler/definition.rb +29 -18
- data/lib/bundler/deprecate.rb +16 -0
- data/lib/bundler/dsl.rb +1 -1
- data/lib/bundler/lockfile_parser.rb +6 -4
- data/lib/bundler/postit_trampoline.rb +4 -7
- data/lib/bundler/rubygems_integration.rb +7 -5
- data/lib/bundler/settings.rb +27 -3
- data/lib/bundler/shared_helpers.rb +23 -0
- data/lib/bundler/source/git/git_proxy.rb +5 -1
- data/lib/bundler/spec_set.rb +1 -1
- data/lib/bundler/ui/shell.rb +10 -6
- data/lib/bundler/ui/silent.rb +3 -0
- data/lib/bundler/vendor/postit/lib/postit.rb +5 -5
- data/lib/bundler/vendor/postit/lib/postit/environment.rb +3 -3
- data/lib/bundler/vendor/postit/lib/postit/installer.rb +1 -1
- data/lib/bundler/vendor/postit/lib/postit/parser.rb +1 -1
- data/lib/bundler/vendor/postit/lib/postit/setup.rb +4 -4
- data/lib/bundler/vendor/postit/lib/postit/version.rb +2 -2
- data/lib/bundler/version.rb +1 -1
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 31a0bcb37c5ab89c38532e3b0d371229203b9646
|
4
|
+
data.tar.gz: 0c078555eef96e3d7da95300bc8be26b887269ea
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 41715dd0d7cc5255ea6ddb7845386bb99505da31255404d15939b0fc438f2bfd81f57b9b517f1044ba7377a13c01e73caa9c496b5ff91b9919829787d8fcf51a
|
7
|
+
data.tar.gz: dff803691aaf4503f58c8f2cca06d98cc265bdaf45292f87daeefbcf20c12f810e39fd89d17dccff6ae8c4e997eab7a7253277d68a3e464b7c32129d027d45b3
|
data/CHANGELOG.md
CHANGED
@@ -1,3 +1,20 @@
|
|
1
|
+
## 1.13.0.rc.1 (2016-06-27)
|
2
|
+
|
3
|
+
Features:
|
4
|
+
|
5
|
+
- when `bundle config major_deprecations` or `BUNDLE_MAJOR_DEPRECATIONS` is set, deprecation warnings for bundler 2 will be printed (@segiddins)
|
6
|
+
- when running with `--verbose`, bundler will print the reason it is re-resolving a gemfile (@segiddins)
|
7
|
+
|
8
|
+
Bug fixes:
|
9
|
+
|
10
|
+
- fix support for running RubyGems 1.x on Ruby 2.3 (#4698, @segiddins)
|
11
|
+
- fix bundle exec'ing to a ruby file when gems are installed into a path (#4592, @chrismo)
|
12
|
+
- when multiple specs in a bundle have the same executable, prefer activating the one from the requested gem (#4705, @segiddins)
|
13
|
+
- stop changing the load path to require the vendored postit when trampolining (@segiddins)
|
14
|
+
- ensure relative paths are properly printed after completing an installation (@jenseng)
|
15
|
+
- fix re-resolving when there are multiple unchanged path sources (@segiddins)
|
16
|
+
- de-init submodules when running git 2.9 and requesting a git gem without submodules (@segiddins)
|
17
|
+
|
1
18
|
## 1.13.0.pre.1 (2016-06-20)
|
2
19
|
|
3
20
|
Performance:
|
data/DEVELOPMENT.md
CHANGED
@@ -36,9 +36,9 @@ Bundler doesn't use a Gemfile to list development dependencies, because when we
|
|
36
36
|
|
37
37
|
4. Set up a shell alias to run Bundler from your clone, e.g. a Bash alias:
|
38
38
|
|
39
|
-
$ alias dbundle='ruby -I /path/to/bundler/lib /path/to/bundler/exe/bundle'
|
39
|
+
$ alias dbundle='BUNDLE_DISABLE_POSTIT=1 ruby -I /path/to/bundler/lib /path/to/bundler/exe/bundle'
|
40
40
|
|
41
|
-
With that set up, you can test changes you've made to Bundler by running `dbundle`, without interfering with the regular `bundle` command.
|
41
|
+
The `BUNDLE_DISABLE_POSTIT` 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.
|
42
42
|
|
43
43
|
# Submitting Pull Requests
|
44
44
|
|
data/Rakefile
CHANGED
@@ -300,11 +300,8 @@ begin
|
|
300
300
|
Automatiek::RakeTask.new("postit") do |lib|
|
301
301
|
lib.download = { :github => "https://github.com/bundler/postit" }
|
302
302
|
lib.namespace = "PostIt"
|
303
|
+
lib.prefix = "BundlerVendoredPostIt"
|
303
304
|
lib.vendor_lib = "lib/bundler/vendor/postit"
|
304
|
-
|
305
|
-
def lib.namespace_files
|
306
|
-
process_files(namespace, "BundlerVendoredPostIt")
|
307
|
-
end
|
308
305
|
end
|
309
306
|
rescue LoadError
|
310
307
|
namespace :vendor do
|
data/exe/bundle_ruby
CHANGED
@@ -3,14 +3,12 @@
|
|
3
3
|
|
4
4
|
Signal.trap("INT") { exit 1 }
|
5
5
|
|
6
|
+
require "bundler/errors"
|
6
7
|
require "bundler/ruby_version"
|
7
8
|
require "bundler/ruby_dsl"
|
8
9
|
require "bundler/shared_helpers"
|
9
10
|
|
10
11
|
module Bundler
|
11
|
-
class GemfileError < RuntimeError; end
|
12
|
-
class GemfileEvalError < GemfileError; end
|
13
|
-
|
14
12
|
class Dsl
|
15
13
|
include RubyDsl
|
16
14
|
|
@@ -44,7 +42,7 @@ module Bundler
|
|
44
42
|
end
|
45
43
|
end
|
46
44
|
|
47
|
-
|
45
|
+
Bundler::SharedHelpers.major_deprecation("the bundle_ruby executable has been removed in favor of `bundle platform --ruby`")
|
48
46
|
|
49
47
|
dsl = Bundler::Dsl.new
|
50
48
|
begin
|
data/lib/bundler.rb
CHANGED
@@ -92,6 +92,8 @@ module Bundler
|
|
92
92
|
|
93
93
|
definition.validate_ruby!
|
94
94
|
|
95
|
+
SharedHelpers.print_major_deprecations!
|
96
|
+
|
95
97
|
if groups.empty?
|
96
98
|
# Load all groups, but only once
|
97
99
|
@setup = load.setup
|
@@ -209,6 +211,7 @@ module Bundler
|
|
209
211
|
# @deprecated Use `original_env` instead
|
210
212
|
# @return [Hash] Environment with all bundler-related variables removed
|
211
213
|
def clean_env
|
214
|
+
Bundler::SharedHelpers.major_deprecation("`Bundler.clean_env` has weird edge cases, use `.original_env` instead")
|
212
215
|
env = original_env
|
213
216
|
|
214
217
|
if env.key?("BUNDLE_ORIG_MANPATH")
|
@@ -411,17 +414,20 @@ module Bundler
|
|
411
414
|
end
|
412
415
|
|
413
416
|
def configure_gem_home_and_path
|
414
|
-
|
417
|
+
configure_gem_path
|
418
|
+
configure_gem_home
|
419
|
+
bundle_path
|
420
|
+
end
|
421
|
+
|
422
|
+
def configure_gem_path(env = ENV, settings = self.settings)
|
423
|
+
blank_home = env["GEM_HOME"].nil? || env["GEM_HOME"].empty?
|
415
424
|
if settings[:disable_shared_gems]
|
416
|
-
|
425
|
+
env["GEM_PATH"] = nil
|
417
426
|
elsif blank_home || Bundler.rubygems.gem_dir != bundle_path.to_s
|
418
427
|
possibles = [Bundler.rubygems.gem_dir, Bundler.rubygems.gem_path]
|
419
428
|
paths = possibles.flatten.compact.uniq.reject(&:empty?)
|
420
|
-
|
429
|
+
env["GEM_PATH"] = paths.join(File::PATH_SEPARATOR)
|
421
430
|
end
|
422
|
-
|
423
|
-
configure_gem_home
|
424
|
-
bundle_path
|
425
431
|
end
|
426
432
|
|
427
433
|
def configure_gem_home
|
data/lib/bundler/cli.rb
CHANGED
data/lib/bundler/cli/install.rb
CHANGED
@@ -69,7 +69,7 @@ module Bundler
|
|
69
69
|
|
70
70
|
if Bundler.settings[:path]
|
71
71
|
absolute_path = File.expand_path(Bundler.settings[:path])
|
72
|
-
relative_path = absolute_path.sub(File.expand_path("."), ".")
|
72
|
+
relative_path = absolute_path.sub(File.expand_path(".") + File::SEPARATOR, "." + File::SEPARATOR)
|
73
73
|
Bundler.ui.confirm "Bundled gems are installed into #{relative_path}."
|
74
74
|
else
|
75
75
|
Bundler.ui.confirm "Use `bundle show [gemname]` to see where a bundled gem is installed."
|
data/lib/bundler/definition.rb
CHANGED
@@ -92,7 +92,7 @@ module Bundler
|
|
92
92
|
end
|
93
93
|
@ruby_version.diff(locked_ruby_version_object)
|
94
94
|
end
|
95
|
-
@unlocking ||= @unlock[:ruby]
|
95
|
+
@unlocking ||= @unlock[:ruby] ||= (!@locked_ruby_version ^ !@ruby_version)
|
96
96
|
|
97
97
|
current_platform = Bundler.rubygems.platforms.map {|p| generic(p) }.compact.last
|
98
98
|
add_platform(current_platform)
|
@@ -220,7 +220,7 @@ module Bundler
|
|
220
220
|
last_resolve
|
221
221
|
else
|
222
222
|
# Run a resolve against the locally available gems
|
223
|
-
Bundler.ui.debug("Found changes from the lockfile, re-resolving dependencies")
|
223
|
+
Bundler.ui.debug("Found changes from the lockfile, re-resolving dependencies because #{change_reason}")
|
224
224
|
last_resolve.merge Resolver.resolve(expanded_dependencies, index, source_requirements, last_resolve, ruby_version)
|
225
225
|
end
|
226
226
|
end
|
@@ -462,6 +462,27 @@ module Bundler
|
|
462
462
|
!@source_changes && !@dependency_changes && !@new_platform && !@path_changes && !@local_changes
|
463
463
|
end
|
464
464
|
|
465
|
+
def change_reason
|
466
|
+
if @unlocking
|
467
|
+
unlock_reason = @unlock.reject {|_k, v| Array(v).empty? }.map do |k, v|
|
468
|
+
if v == true
|
469
|
+
k.to_s
|
470
|
+
else
|
471
|
+
v = Array(v)
|
472
|
+
"#{k}: (#{v.join(", ")})"
|
473
|
+
end
|
474
|
+
end.join(", ")
|
475
|
+
return "bundler is unlocking #{unlock_reason}"
|
476
|
+
end
|
477
|
+
[
|
478
|
+
[@source_changes, "the list of sources changed"],
|
479
|
+
[@dependency_changes, "the dependencies in your gemfile changed"],
|
480
|
+
[@new_platform, "you added a new platform to your gemfile"],
|
481
|
+
[@path_changes, "the gemspecs for path gems changed"],
|
482
|
+
[@local_changes, "the gemspecs for git local gems changed"],
|
483
|
+
].select(&:first).map(&:last).join(", ")
|
484
|
+
end
|
485
|
+
|
465
486
|
def pretty_dep(dep, source = false)
|
466
487
|
msg = String.new(dep.name)
|
467
488
|
msg << " (#{dep.requirement})" unless dep.requirement == Gem::Requirement.default
|
@@ -470,19 +491,11 @@ module Bundler
|
|
470
491
|
end
|
471
492
|
|
472
493
|
# Check if the specs of the given source changed
|
473
|
-
# according to the locked source.
|
474
|
-
|
475
|
-
|
476
|
-
def specs_changed?(source, &block)
|
477
|
-
locked = @locked_sources.find(&block)
|
478
|
-
|
479
|
-
if locked
|
480
|
-
unlocking = @locked_specs.any? do |locked_spec|
|
481
|
-
locked_spec.source.class == locked.class && locked_spec.source != locked
|
482
|
-
end
|
483
|
-
end
|
494
|
+
# according to the locked source.
|
495
|
+
def specs_changed?(source)
|
496
|
+
locked = @locked_sources.find(source)
|
484
497
|
|
485
|
-
!locked ||
|
498
|
+
!locked || dependencies_for_source_changed?(source) || specs_for_source_changed?(source)
|
486
499
|
end
|
487
500
|
|
488
501
|
def dependencies_for_source_changed?(source)
|
@@ -515,15 +528,13 @@ module Bundler
|
|
515
528
|
end
|
516
529
|
|
517
530
|
locals.any? do |source, changed|
|
518
|
-
changed || specs_changed?(source)
|
531
|
+
changed || specs_changed?(source)
|
519
532
|
end
|
520
533
|
end
|
521
534
|
|
522
535
|
def converge_paths
|
523
536
|
sources.path_sources.any? do |source|
|
524
|
-
specs_changed?(source)
|
525
|
-
ls.class == source.class && ls.path == source.path
|
526
|
-
end
|
537
|
+
specs_changed?(source)
|
527
538
|
end
|
528
539
|
end
|
529
540
|
|
data/lib/bundler/deprecate.rb
CHANGED
@@ -10,7 +10,23 @@ module Bundler
|
|
10
10
|
|
11
11
|
unless Deprecate.respond_to?(:skip_during)
|
12
12
|
def Deprecate.skip_during
|
13
|
+
original = skip
|
14
|
+
self.skip = true
|
13
15
|
yield
|
16
|
+
ensure
|
17
|
+
self.skip = original
|
18
|
+
end
|
19
|
+
end
|
20
|
+
|
21
|
+
unless Deprecate.respond_to?(:skip)
|
22
|
+
def Deprecate.skip
|
23
|
+
@skip
|
24
|
+
end
|
25
|
+
end
|
26
|
+
|
27
|
+
unless Deprecate.respond_to?(:skip=)
|
28
|
+
def Deprecate.skip=(skip)
|
29
|
+
@skip = skip
|
14
30
|
end
|
15
31
|
end
|
16
32
|
end
|
data/lib/bundler/dsl.rb
CHANGED
@@ -374,7 +374,7 @@ module Bundler
|
|
374
374
|
def normalize_source(source)
|
375
375
|
case source
|
376
376
|
when :gemcutter, :rubygems, :rubyforge
|
377
|
-
Bundler.
|
377
|
+
Bundler::SharedHelpers.major_deprecation "The source :#{source} is deprecated because HTTP " \
|
378
378
|
"requests are insecure.\nPlease change your source to 'https://" \
|
379
379
|
"rubygems.org' if possible, or 'http://rubygems.org' if not."
|
380
380
|
"http://rubygems.org"
|
@@ -27,9 +27,11 @@ module Bundler
|
|
27
27
|
SOURCE = [GIT, GEM, PATH].freeze
|
28
28
|
|
29
29
|
SECTIONS_BY_VERSION_INTRODUCED = {
|
30
|
-
|
31
|
-
|
32
|
-
Gem::Version.create("1.
|
30
|
+
# The strings have to be dup'ed for old RG on Ruby 2.3+
|
31
|
+
# TODO: remove dup in Bundler 2.0
|
32
|
+
Gem::Version.create("1.0".dup) => [DEPENDENCIES, PLATFORMS, GIT, GEM, PATH].freeze,
|
33
|
+
Gem::Version.create("1.10".dup) => [BUNDLED].freeze,
|
34
|
+
Gem::Version.create("1.12".dup) => [RUBY].freeze,
|
33
35
|
}.freeze
|
34
36
|
|
35
37
|
KNOWN_SECTIONS = SECTIONS_BY_VERSION_INTRODUCED.values.flatten.freeze
|
@@ -46,7 +48,7 @@ module Bundler
|
|
46
48
|
|
47
49
|
def self.sections_to_ignore(base_version = nil)
|
48
50
|
base_version &&= base_version.release
|
49
|
-
base_version ||= Gem::Version.create("1.0")
|
51
|
+
base_version ||= Gem::Version.create("1.0".dup)
|
50
52
|
attributes = []
|
51
53
|
SECTIONS_BY_VERSION_INTRODUCED.each do |version, introduced|
|
52
54
|
next if version <= base_version
|
@@ -1,11 +1,10 @@
|
|
1
1
|
# frozen_string_literal: true
|
2
2
|
|
3
|
-
|
4
|
-
|
5
|
-
require "postit"
|
3
|
+
module BundlerVendoredPostIt; end
|
4
|
+
require "bundler/vendor/postit/lib/postit"
|
6
5
|
require "rubygems"
|
7
6
|
|
8
|
-
environment = BundlerVendoredPostIt::Environment.new([])
|
7
|
+
environment = BundlerVendoredPostIt::PostIt::Environment.new([])
|
9
8
|
version = Gem::Requirement.new(environment.bundler_version)
|
10
9
|
|
11
10
|
installed_version =
|
@@ -19,7 +18,7 @@ installed_version &&= Gem::Version.new(installed_version)
|
|
19
18
|
|
20
19
|
if !version.satisfied_by?(installed_version)
|
21
20
|
begin
|
22
|
-
installer = BundlerVendoredPostIt::Installer.new(version)
|
21
|
+
installer = BundlerVendoredPostIt::PostIt::Installer.new(version)
|
23
22
|
installer.install!
|
24
23
|
rescue => e
|
25
24
|
abort <<-EOS.strip
|
@@ -50,5 +49,3 @@ end
|
|
50
49
|
if !Gem::Version.correct?(running_version.to_s) || !version.satisfied_by?(Gem::Version.create(running_version))
|
51
50
|
abort "The running bundler (#{running_version}) does not match the required `#{version}`"
|
52
51
|
end
|
53
|
-
|
54
|
-
$:.delete_at($:.find_index(postit_lib))
|
@@ -362,19 +362,21 @@ module Bundler
|
|
362
362
|
def replace_bin_path(specs)
|
363
363
|
gem_class = (class << Gem; self; end)
|
364
364
|
|
365
|
-
redefine_method(gem_class, :find_spec_for_exe) do |
|
365
|
+
redefine_method(gem_class, :find_spec_for_exe) do |gem_name, *args|
|
366
366
|
exec_name = args.first
|
367
367
|
|
368
368
|
spec = if exec_name
|
369
|
-
specs.find {|s| s.executables.include?(exec_name) }
|
369
|
+
specs.find {|s| s.name == gem_name && s.executables.include?(exec_name) } ||
|
370
|
+
specs.find {|s| s.executables.include?(exec_name) }
|
370
371
|
else
|
371
|
-
specs.find {|s| s.name ==
|
372
|
+
specs.find {|s| s.name == gem_name }
|
372
373
|
end
|
373
374
|
raise(Gem::Exception, "can't find executable #{exec_name}") unless spec
|
374
375
|
raise Gem::Exception, "no default executable for #{spec.full_name}" unless exec_name ||= spec.default_executable
|
375
376
|
unless spec.name == name
|
376
|
-
|
377
|
-
"
|
377
|
+
Bundler::SharedHelpers.major_deprecation \
|
378
|
+
"Bundler is using a binstub that was created for a different gem.\n" \
|
379
|
+
"You should run `bundle binstub #{gem_name}` " \
|
378
380
|
"to work around a system/bundle conflict."
|
379
381
|
end
|
380
382
|
spec
|
data/lib/bundler/settings.rb
CHANGED
@@ -3,9 +3,33 @@ require "uri"
|
|
3
3
|
|
4
4
|
module Bundler
|
5
5
|
class Settings
|
6
|
-
BOOL_KEYS = %w(
|
7
|
-
|
8
|
-
|
6
|
+
BOOL_KEYS = %w(
|
7
|
+
cache_all
|
8
|
+
disable_local_branch_check
|
9
|
+
disable_shared_gems
|
10
|
+
frozen
|
11
|
+
gem.coc
|
12
|
+
gem.mit
|
13
|
+
ignore_messages
|
14
|
+
major_deprecations
|
15
|
+
no_install
|
16
|
+
no_prune
|
17
|
+
plugins
|
18
|
+
silence_root_warning
|
19
|
+
).freeze
|
20
|
+
|
21
|
+
NUMBER_KEYS = %w(
|
22
|
+
redirect
|
23
|
+
retry
|
24
|
+
ssl_verify_mode
|
25
|
+
timeout
|
26
|
+
).freeze
|
27
|
+
|
28
|
+
DEFAULT_CONFIG = {
|
29
|
+
:redirect => 5,
|
30
|
+
:retry => 3,
|
31
|
+
:timeout => 10,
|
32
|
+
}.freeze
|
9
33
|
|
10
34
|
def initialize(root = nil)
|
11
35
|
@root = root
|
@@ -120,6 +120,21 @@ module Bundler
|
|
120
120
|
namespace.const_get(constant_name)
|
121
121
|
end
|
122
122
|
|
123
|
+
def major_deprecation(message)
|
124
|
+
return unless prints_major_deprecations?
|
125
|
+
@major_deprecation_ui ||= Bundler::UI::Shell.new("no-color" => true)
|
126
|
+
ui = Bundler.ui.is_a?(@major_deprecation_ui.class) ? Bundler.ui : @major_deprecation_ui
|
127
|
+
ui.warn("[DEPRECATED FOR #{Bundler::VERSION.split(".").first.to_i + 1}.0] #{message}")
|
128
|
+
end
|
129
|
+
|
130
|
+
def print_major_deprecations!
|
131
|
+
if RUBY_VERSION < "2"
|
132
|
+
major_deprecation("Bundler will only support ruby >= 2.0, you are running #{RUBY_VERSION}")
|
133
|
+
end
|
134
|
+
return if Bundler.rubygems.provides?(">= 2")
|
135
|
+
major_deprecation("Bundler will only support rubygems >= 2.0, you are running #{Bundler.rubygems.version}")
|
136
|
+
end
|
137
|
+
|
123
138
|
private
|
124
139
|
|
125
140
|
def find_gemfile
|
@@ -207,6 +222,14 @@ module Bundler
|
|
207
222
|
end
|
208
223
|
end
|
209
224
|
|
225
|
+
def prints_major_deprecations?
|
226
|
+
require "bundler"
|
227
|
+
return false unless Bundler.settings[:major_deprecations]
|
228
|
+
require "bundler/deprecate"
|
229
|
+
return false if Bundler::Deprecate.skip
|
230
|
+
true
|
231
|
+
end
|
232
|
+
|
210
233
|
extend self
|
211
234
|
end
|
212
235
|
end
|
@@ -123,7 +123,11 @@ module Bundler
|
|
123
123
|
git_retry %(fetch --force --quiet --tags "#{path}")
|
124
124
|
git "reset --hard #{@revision}"
|
125
125
|
|
126
|
-
|
126
|
+
if submodules
|
127
|
+
git_retry "submodule update --init --recursive"
|
128
|
+
elsif Gem::Version.create(version) >= Gem::Version.create("2.9.0")
|
129
|
+
git_retry "submodule deinit --all"
|
130
|
+
end
|
127
131
|
end
|
128
132
|
end
|
129
133
|
|
data/lib/bundler/spec_set.rb
CHANGED
data/lib/bundler/ui/shell.rb
CHANGED
@@ -79,12 +79,8 @@ module Bundler
|
|
79
79
|
tell_me(msg, nil, newline)
|
80
80
|
end
|
81
81
|
|
82
|
-
def silence
|
83
|
-
|
84
|
-
@level = "silent"
|
85
|
-
yield
|
86
|
-
ensure
|
87
|
-
@level = old_level
|
82
|
+
def silence(&blk)
|
83
|
+
with_level("silent", &blk)
|
88
84
|
end
|
89
85
|
|
90
86
|
private
|
@@ -109,6 +105,14 @@ module Bundler
|
|
109
105
|
line.length > line_width ? line.gsub(/(.{1,#{line_width}})(\s+|$)/, "\\1\n").strip : line
|
110
106
|
end * "\n"
|
111
107
|
end
|
108
|
+
|
109
|
+
def with_level(level)
|
110
|
+
original = @level
|
111
|
+
@level = level
|
112
|
+
yield
|
113
|
+
ensure
|
114
|
+
@level = original
|
115
|
+
end
|
112
116
|
end
|
113
117
|
end
|
114
118
|
end
|
data/lib/bundler/ui/silent.rb
CHANGED
@@ -1,10 +1,10 @@
|
|
1
|
-
require 'postit/environment'
|
2
|
-
require 'postit/installer'
|
3
|
-
require 'postit/parser'
|
4
|
-
require 'postit/version'
|
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
5
|
require 'rubygems'
|
6
6
|
|
7
|
-
module BundlerVendoredPostIt
|
7
|
+
module BundlerVendoredPostIt::PostIt
|
8
8
|
def self.setup
|
9
9
|
load File.expand_path('../postit/setup.rb', __FILE__)
|
10
10
|
end
|
@@ -1,6 +1,6 @@
|
|
1
|
-
require 'postit/parser'
|
1
|
+
require 'bundler/vendor/postit/lib/postit/parser'
|
2
2
|
|
3
|
-
module BundlerVendoredPostIt
|
3
|
+
module BundlerVendoredPostIt::PostIt
|
4
4
|
class Environment
|
5
5
|
def initialize(argv)
|
6
6
|
@argv = argv
|
@@ -31,7 +31,7 @@ module BundlerVendoredPostIt
|
|
31
31
|
end
|
32
32
|
|
33
33
|
def lockfile_version
|
34
|
-
BundlerVendoredPostIt::Parser.new(lockfile).parse
|
34
|
+
BundlerVendoredPostIt::PostIt::Parser.new(lockfile).parse
|
35
35
|
end
|
36
36
|
|
37
37
|
def bundler_version
|
@@ -1,10 +1,10 @@
|
|
1
|
-
require 'postit/environment'
|
2
|
-
require 'postit/installer'
|
1
|
+
require 'bundler/vendor/postit/lib/postit/environment'
|
2
|
+
require 'bundler/vendor/postit/lib/postit/installer'
|
3
3
|
|
4
|
-
environment = BundlerVendoredPostIt::Environment.new(ARGV)
|
4
|
+
environment = BundlerVendoredPostIt::PostIt::Environment.new(ARGV)
|
5
5
|
version = environment.bundler_version
|
6
6
|
|
7
|
-
installer = BundlerVendoredPostIt::Installer.new(version)
|
7
|
+
installer = BundlerVendoredPostIt::PostIt::Installer.new(version)
|
8
8
|
installer.install!
|
9
9
|
|
10
10
|
gem 'bundler', version
|
@@ -1,3 +1,3 @@
|
|
1
|
-
module BundlerVendoredPostIt
|
2
|
-
VERSION = '0.
|
1
|
+
module BundlerVendoredPostIt::PostIt
|
2
|
+
VERSION = '0.2.0'.freeze
|
3
3
|
end
|
data/lib/bundler/version.rb
CHANGED
@@ -7,5 +7,5 @@ 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.13.0.
|
10
|
+
VERSION = "1.13.0.rc.1" unless defined?(::Bundler::VERSION)
|
11
11
|
end
|
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: 1.13.0.
|
4
|
+
version: 1.13.0.rc.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- André Arko
|
@@ -9,7 +9,7 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: exe
|
11
11
|
cert_chain: []
|
12
|
-
date: 2016-06-
|
12
|
+
date: 2016-06-27 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: automatiek
|
@@ -377,7 +377,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
377
377
|
version: 1.3.6
|
378
378
|
requirements: []
|
379
379
|
rubyforge_project:
|
380
|
-
rubygems_version: 2.6.
|
380
|
+
rubygems_version: 2.6.6
|
381
381
|
signing_key:
|
382
382
|
specification_version: 4
|
383
383
|
summary: The best way to manage your application's dependencies
|