bundler 2.2.28 → 2.2.29

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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 35773b207a2a4289d58aa6ddd95848ac7a5ad74d1d252c82c55375cc2faa34c3
4
- data.tar.gz: 5221811c1f5564852c18e319872f63edfb435612406ce99f5bad97357e1483d2
3
+ metadata.gz: 7069421e0020f0587932b3789c8f14b8aadb042d325355fc4072d56c083743c0
4
+ data.tar.gz: 5bd5f85c8a0c755f41e8a4be840f1b534700636390e5b6c64123693c3096c365
5
5
  SHA512:
6
- metadata.gz: fba8a4dfd5a819525341a772361466517157b7c49ab29e36e0a4d24d80939f6ed3ab412fe5709c0dd5d70a57737fca1d4b595c3636b9949d18951d5bf6a77138
7
- data.tar.gz: e8c90fead6ac38c7cc693cf2d56269dbcce9f6b99704784a46ff433cd5b402574e878d314ea7728066d60c87afc82d22b381957cf81af3ca4b9c0d483afd4e96
6
+ metadata.gz: b35d34e74e52b7522a6cfe1734b741b707685c7fb8811d82de51c2829024f4c14c4695e26def71f3f5aaa2473bc4f7301cd601d490a9d60e38f63b68936638a9
7
+ data.tar.gz: 319d8e58acf68df04ac61973b808df92bacf8793cd2bf0a301ddcd446c62c1bf5e1519de730c206fe8a9dbb447dbc48389d0900cdda16475135d93dcbe9d769d
data/CHANGELOG.md CHANGED
@@ -1,3 +1,11 @@
1
+ # 2.2.29 (October 8, 2021)
2
+
3
+ ## Enhancements:
4
+
5
+ - Require at least Ruby 2.6.0 for gems created with recent rubies [#4920](https://github.com/rubygems/rubygems/pull/4920)
6
+ - Include glob information in string representation of git sources to make generated lockfiles deterministic [#4947](https://github.com/rubygems/rubygems/pull/4947)
7
+ - Add missing `rubygem_push` prerequisite [#4930](https://github.com/rubygems/rubygems/pull/4930)
8
+
1
9
  # 2.2.28 (September 23, 2021)
2
10
 
3
11
  ## Enhancements:
@@ -4,8 +4,8 @@ module Bundler
4
4
  # Represents metadata from when the Bundler gem was built.
5
5
  module BuildMetadata
6
6
  # begin ivars
7
- @built_at = "2021-09-23".freeze
8
- @git_commit_sha = "99b72cbd55".freeze
7
+ @built_at = "2021-10-08".freeze
8
+ @git_commit_sha = "4440b035ef".freeze
9
9
  @release = true
10
10
  # end ivars
11
11
 
@@ -68,7 +68,7 @@ module Bundler
68
68
  :bundler_version => bundler_dependency_version,
69
69
  :git => use_git,
70
70
  :github_username => github_username.empty? ? "[USERNAME]" : github_username,
71
- :required_ruby_version => Gem.ruby_version < Gem::Version.new("2.4.a") ? "2.3.0" : "2.4.0",
71
+ :required_ruby_version => required_ruby_version,
72
72
  }
73
73
  ensure_safe_gem_name(name, constant_array)
74
74
 
@@ -169,7 +169,7 @@ module Bundler
169
169
  "For more information, see the RuboCop docs (https://docs.rubocop.org/en/stable/) " \
170
170
  "and the Ruby Style Guides (https://github.com/rubocop-hq/ruby-style-guide).")
171
171
  config[:rubocop] = true
172
- config[:rubocop_version] = Gem.ruby_version < Gem::Version.new("2.4.a") ? "0.81.0" : "1.7"
172
+ config[:rubocop_version] = rubocop_version
173
173
  Bundler.ui.info "RuboCop enabled in config"
174
174
  templates.merge!("rubocop.yml.tt" => ".rubocop.yml")
175
175
  end
@@ -350,5 +350,22 @@ module Bundler
350
350
  def open_editor(editor, file)
351
351
  thor.run(%(#{editor} "#{file}"))
352
352
  end
353
+
354
+ def required_ruby_version
355
+ if Gem.ruby_version < Gem::Version.new("2.4.a") then "2.3.0"
356
+ elsif Gem.ruby_version < Gem::Version.new("2.5.a") then "2.4.0"
357
+ elsif Gem.ruby_version < Gem::Version.new("2.6.a") then "2.5.0"
358
+ else
359
+ "2.6.0"
360
+ end
361
+ end
362
+
363
+ def rubocop_version
364
+ if Gem.ruby_version < Gem::Version.new("2.4.a") then "0.81.0"
365
+ elsif Gem.ruby_version < Gem::Version.new("2.5.a") then "1.12"
366
+ else
367
+ "1.21"
368
+ end
369
+ end
353
370
  end
354
371
  end
@@ -76,7 +76,7 @@ module Bundler
76
76
  tag_version { git_push(args[:remote]) } unless already_tagged?
77
77
  end
78
78
 
79
- task "release:rubygem_push" do
79
+ task "release:rubygem_push" => "build" do
80
80
  rubygem_push(built_gem_path) if gem_push?
81
81
  end
82
82
 
@@ -42,7 +42,7 @@ module Bundler
42
42
  %w[ref branch tag submodules].each do |opt|
43
43
  out << " #{opt}: #{options[opt]}\n" if options[opt]
44
44
  end
45
- out << " glob: #{@glob}\n" unless @glob == DEFAULT_GLOB
45
+ out << " glob: #{@glob}\n" unless default_glob?
46
46
  out << " specs:\n"
47
47
  end
48
48
 
@@ -75,12 +75,20 @@ module Bundler
75
75
  git_proxy.branch
76
76
  end
77
77
 
78
- rev = " (at #{at}@#{shortref_for_display(revision)})"
78
+ rev = "at #{at}@#{shortref_for_display(revision)}"
79
79
  rescue GitError
80
80
  ""
81
81
  end
82
82
 
83
- "#{@safe_uri}#{rev}"
83
+ specifiers = [rev, glob_for_display].compact
84
+ suffix =
85
+ if specifiers.any?
86
+ " (#{specifiers.join(", ")})"
87
+ else
88
+ ""
89
+ end
90
+
91
+ "#{@safe_uri}#{suffix}"
84
92
  end
85
93
 
86
94
  def name
@@ -282,6 +290,14 @@ module Bundler
282
290
  ref[0..11]
283
291
  end
284
292
 
293
+ def glob_for_display
294
+ default_glob? ? nil : "glob: #{@glob}"
295
+ end
296
+
297
+ def default_glob?
298
+ @glob == DEFAULT_GLOB
299
+ end
300
+
285
301
  def uri_hash
286
302
  if uri =~ %r{^\w+://(\w+@)?}
287
303
  # Downcase the domain component of the URI
@@ -1,7 +1,7 @@
1
1
  # frozen_string_literal: false
2
2
 
3
3
  module Bundler
4
- VERSION = "2.2.28".freeze
4
+ VERSION = "2.2.29".freeze
5
5
 
6
6
  def self.bundler_major_version
7
7
  @bundler_major_version ||= VERSION.split(".").first.to_i
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.2.28
4
+ version: 2.2.29
5
5
  platform: ruby
6
6
  authors:
7
7
  - André Arko
@@ -22,7 +22,7 @@ authors:
22
22
  autorequire:
23
23
  bindir: exe
24
24
  cert_chain: []
25
- date: 2021-09-23 00:00:00.000000000 Z
25
+ date: 2021-10-08 00:00:00.000000000 Z
26
26
  dependencies: []
27
27
  description: Bundler manages an application's dependencies through its entire life,
28
28
  across many machines, systematically and repeatably
@@ -354,7 +354,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
354
354
  - !ruby/object:Gem::Version
355
355
  version: 2.5.2
356
356
  requirements: []
357
- rubygems_version: 3.2.28
357
+ rubygems_version: 3.2.29
358
358
  signing_key:
359
359
  specification_version: 4
360
360
  summary: The best way to manage your application's dependencies