rubygems-update 3.6.0 → 3.6.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +17 -0
- data/README.md +1 -1
- data/bundler/CHANGELOG.md +7 -0
- data/bundler/lib/bundler/build_metadata.rb +2 -2
- data/bundler/lib/bundler/definition.rb +31 -23
- data/bundler/lib/bundler/rubygems_ext.rb +11 -0
- data/bundler/lib/bundler/vendor/securerandom/lib/securerandom.rb +7 -1
- data/bundler/lib/bundler/version.rb +1 -1
- data/lib/rubygems/query_utils.rb +1 -1
- data/lib/rubygems/vendor/securerandom/lib/securerandom.rb +7 -1
- data/lib/rubygems/vendor/timeout/lib/timeout.rb +5 -3
- data/lib/rubygems.rb +2 -2
- data/rubygems-update.gemspec +1 -1
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 15a753eb9565973c8c26c2ec2c51f01d59d3dcc6c052ec3d1e6e1d0652048c5e
|
4
|
+
data.tar.gz: e12b9ee68d9eff9c9f1924dcaf707754f01ee77e488af13b8a97b80111d97c55
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 1d53ef84edb5ea754ece9390c544b81446fe69153310dbaa489bc4334ebe26a2867384bee7cb366b8bdee302f6087901ed796eeff99644da31138b5e6a4e97d7
|
7
|
+
data.tar.gz: 9013c49f596fb5f6dea1e8a5ed0b330f6b84c0b8136ba034522b70df974a73ba9c2492e5e51c1f92edde0c2027394ef54dba5771ac698ae8618b06f110af1f54
|
data/CHANGELOG.md
CHANGED
@@ -1,3 +1,20 @@
|
|
1
|
+
# 3.6.1 / 2024-12-17
|
2
|
+
|
3
|
+
## Enhancements:
|
4
|
+
|
5
|
+
* Installs bundler 2.6.1 as a default gem.
|
6
|
+
|
7
|
+
## Bug fixes:
|
8
|
+
|
9
|
+
* Fix `gem info` tagging some non default gems as default. Pull request
|
10
|
+
[#8321](https://github.com/rubygems/rubygems/pull/8321) by
|
11
|
+
deivid-rodriguez
|
12
|
+
|
13
|
+
## Documentation:
|
14
|
+
|
15
|
+
* Fix broken links. Pull request
|
16
|
+
[#8327](https://github.com/rubygems/rubygems/pull/8327) by st0012
|
17
|
+
|
1
18
|
# 3.6.0 / 2024-12-16
|
2
19
|
|
3
20
|
## Security:
|
data/README.md
CHANGED
@@ -86,7 +86,7 @@ The release policy is somewhat similar to the release policy of Ruby itself:
|
|
86
86
|
## Documentation
|
87
87
|
|
88
88
|
RubyGems uses [rdoc](https://github.com/rdoc/rdoc) for documentation. A compiled set of the docs
|
89
|
-
can be viewed online at [
|
89
|
+
can be viewed online at [docs.ruby-lang.org](https://docs.ruby-lang.org/en/master/Gem.html).
|
90
90
|
|
91
91
|
RubyGems also provides a comprehensive set of guides which covers numerous topics such as
|
92
92
|
creating a new gem, security practices and other resources at https://guides.rubygems.org
|
data/bundler/CHANGELOG.md
CHANGED
@@ -1,3 +1,10 @@
|
|
1
|
+
# 2.6.1 (December 17, 2024)
|
2
|
+
|
3
|
+
## Bug fixes:
|
4
|
+
|
5
|
+
- Fix missing `Gem::Uri.redact` on some Ruby 3.1 versions [#8337](https://github.com/rubygems/rubygems/pull/8337)
|
6
|
+
- Fix `bundle lock --add-checksums` when gems are already installed [#8326](https://github.com/rubygems/rubygems/pull/8326)
|
7
|
+
|
1
8
|
# 2.6.0 (December 16, 2024)
|
2
9
|
|
3
10
|
## Security:
|
@@ -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 = "2024-12-
|
8
|
-
@git_commit_sha = "
|
7
|
+
@built_at = "2024-12-17".freeze
|
8
|
+
@git_commit_sha = "00a344e02c8".freeze
|
9
9
|
@release = true
|
10
10
|
# end ivars
|
11
11
|
|
@@ -186,13 +186,13 @@ module Bundler
|
|
186
186
|
def setup_domain!(options = {})
|
187
187
|
prefer_local! if options[:"prefer-local"]
|
188
188
|
|
189
|
-
if options[:
|
190
|
-
Bundler.settings.set_command_option(:jobs, 1) if no_install_needed? # to avoid the overhead of Bundler::Worker
|
191
|
-
with_cache!
|
192
|
-
false
|
193
|
-
else
|
189
|
+
if options[:add_checksums] || (!options[:local] && install_needed?)
|
194
190
|
remotely!
|
195
191
|
true
|
192
|
+
else
|
193
|
+
Bundler.settings.set_command_option(:jobs, 1) unless install_needed? # to avoid the overhead of Bundler::Worker
|
194
|
+
with_cache!
|
195
|
+
false
|
196
196
|
end
|
197
197
|
end
|
198
198
|
|
@@ -513,26 +513,11 @@ module Bundler
|
|
513
513
|
end
|
514
514
|
|
515
515
|
def nothing_changed?
|
516
|
-
|
517
|
-
|
518
|
-
!@source_changes &&
|
519
|
-
!@dependency_changes &&
|
520
|
-
!@current_platform_missing &&
|
521
|
-
@new_platforms.empty? &&
|
522
|
-
!@path_changes &&
|
523
|
-
!@local_changes &&
|
524
|
-
!@missing_lockfile_dep &&
|
525
|
-
!@unlocking_bundler &&
|
526
|
-
!@locked_spec_with_missing_deps &&
|
527
|
-
!@locked_spec_with_invalid_deps
|
528
|
-
end
|
529
|
-
|
530
|
-
def no_install_needed?
|
531
|
-
no_resolve_needed? && !missing_specs?
|
516
|
+
!something_changed?
|
532
517
|
end
|
533
518
|
|
534
519
|
def no_resolve_needed?
|
535
|
-
!
|
520
|
+
!resolve_needed?
|
536
521
|
end
|
537
522
|
|
538
523
|
def unlocking?
|
@@ -544,13 +529,36 @@ module Bundler
|
|
544
529
|
def add_checksums
|
545
530
|
@locked_checksums = true
|
546
531
|
|
547
|
-
setup_domain!
|
532
|
+
setup_domain!(add_checksums: true)
|
548
533
|
|
549
534
|
specs # force materialization to real specifications, so that checksums are fetched
|
550
535
|
end
|
551
536
|
|
552
537
|
private
|
553
538
|
|
539
|
+
def install_needed?
|
540
|
+
resolve_needed? || missing_specs?
|
541
|
+
end
|
542
|
+
|
543
|
+
def something_changed?
|
544
|
+
return true unless lockfile_exists?
|
545
|
+
|
546
|
+
@source_changes ||
|
547
|
+
@dependency_changes ||
|
548
|
+
@current_platform_missing ||
|
549
|
+
@new_platforms.any? ||
|
550
|
+
@path_changes ||
|
551
|
+
@local_changes ||
|
552
|
+
@missing_lockfile_dep ||
|
553
|
+
@unlocking_bundler ||
|
554
|
+
@locked_spec_with_missing_deps ||
|
555
|
+
@locked_spec_with_invalid_deps
|
556
|
+
end
|
557
|
+
|
558
|
+
def resolve_needed?
|
559
|
+
unlocking? || something_changed?
|
560
|
+
end
|
561
|
+
|
554
562
|
def should_add_extra_platforms?
|
555
563
|
!lockfile_exists? && generic_local_platform_is_ruby? && !Bundler.settings[:force_ruby_platform]
|
556
564
|
end
|
@@ -455,4 +455,15 @@ module Gem
|
|
455
455
|
|
456
456
|
Package::TarReader::Entry.prepend(FixFullNameEncoding)
|
457
457
|
end
|
458
|
+
|
459
|
+
require "rubygems/uri"
|
460
|
+
|
461
|
+
# Can be removed once RubyGems 3.3.15 support is dropped
|
462
|
+
unless Gem::Uri.respond_to?(:redact)
|
463
|
+
class Uri
|
464
|
+
def self.redact(uri)
|
465
|
+
new(uri).redacted
|
466
|
+
end
|
467
|
+
end
|
468
|
+
end
|
458
469
|
end
|
@@ -41,7 +41,7 @@ require 'random/formatter'
|
|
41
41
|
module Bundler::SecureRandom
|
42
42
|
|
43
43
|
# The version
|
44
|
-
VERSION = "0.4.
|
44
|
+
VERSION = "0.4.1"
|
45
45
|
|
46
46
|
class << self
|
47
47
|
# Returns a random binary string containing +size+ bytes.
|
@@ -51,6 +51,12 @@ module Bundler::SecureRandom
|
|
51
51
|
return gen_random(n)
|
52
52
|
end
|
53
53
|
|
54
|
+
# Compatibility methods for Ruby 3.2, we can remove this after dropping to support Ruby 3.2
|
55
|
+
def alphanumeric(n = nil, chars: ALPHANUMERIC)
|
56
|
+
n = 16 if n.nil?
|
57
|
+
choose(chars, n)
|
58
|
+
end if RUBY_VERSION < '3.3'
|
59
|
+
|
54
60
|
private
|
55
61
|
|
56
62
|
# :stopdoc:
|
data/lib/rubygems/query_utils.rb
CHANGED
@@ -311,7 +311,7 @@ module Gem::QueryUtils
|
|
311
311
|
label = "Installed at"
|
312
312
|
specs.each do |s|
|
313
313
|
version = s.version.to_s
|
314
|
-
default = ", default"
|
314
|
+
default = s.default_gem? ? ", default" : ""
|
315
315
|
entry << "\n" << " #{label} (#{version}#{default}): #{s.base_dir}"
|
316
316
|
label = " " * label.length
|
317
317
|
end
|
@@ -41,7 +41,7 @@ require 'random/formatter'
|
|
41
41
|
module Gem::SecureRandom
|
42
42
|
|
43
43
|
# The version
|
44
|
-
VERSION = "0.4.
|
44
|
+
VERSION = "0.4.1"
|
45
45
|
|
46
46
|
class << self
|
47
47
|
# Returns a random binary string containing +size+ bytes.
|
@@ -51,6 +51,12 @@ module Gem::SecureRandom
|
|
51
51
|
return gen_random(n)
|
52
52
|
end
|
53
53
|
|
54
|
+
# Compatibility methods for Ruby 3.2, we can remove this after dropping to support Ruby 3.2
|
55
|
+
def alphanumeric(n = nil, chars: ALPHANUMERIC)
|
56
|
+
n = 16 if n.nil?
|
57
|
+
choose(chars, n)
|
58
|
+
end if RUBY_VERSION < '3.3'
|
59
|
+
|
54
60
|
private
|
55
61
|
|
56
62
|
# :stopdoc:
|
@@ -20,7 +20,7 @@
|
|
20
20
|
|
21
21
|
module Gem::Timeout
|
22
22
|
# The version
|
23
|
-
VERSION = "0.4.
|
23
|
+
VERSION = "0.4.3"
|
24
24
|
|
25
25
|
# Internal error raised to when a timeout is triggered.
|
26
26
|
class ExitException < Exception
|
@@ -141,9 +141,10 @@ module Gem::Timeout
|
|
141
141
|
# Perform an operation in a block, raising an error if it takes longer than
|
142
142
|
# +sec+ seconds to complete.
|
143
143
|
#
|
144
|
-
# +sec+:: Number of seconds to wait for the block to terminate. Any number
|
145
|
-
# may be used, including Floats to specify fractional seconds. A
|
144
|
+
# +sec+:: Number of seconds to wait for the block to terminate. Any non-negative number
|
145
|
+
# or nil may be used, including Floats to specify fractional seconds. A
|
146
146
|
# value of 0 or +nil+ will execute the block without any timeout.
|
147
|
+
# Any negative number will raise an ArgumentError.
|
147
148
|
# +klass+:: Exception Class to raise if the block fails to terminate
|
148
149
|
# in +sec+ seconds. Omitting will use the default, Gem::Timeout::Error
|
149
150
|
# +message+:: Error message to raise with Exception Class.
|
@@ -165,6 +166,7 @@ module Gem::Timeout
|
|
165
166
|
# a module method, so you can call it directly as Gem::Timeout.timeout().
|
166
167
|
def timeout(sec, klass = nil, message = nil, &block) #:yield: +sec+
|
167
168
|
return yield(sec) if sec == nil or sec.zero?
|
169
|
+
raise ArgumentError, "Timeout sec must be a non-negative number" if 0 > sec
|
168
170
|
|
169
171
|
message ||= "execution expired"
|
170
172
|
|
data/lib/rubygems.rb
CHANGED
@@ -9,7 +9,7 @@
|
|
9
9
|
require "rbconfig"
|
10
10
|
|
11
11
|
module Gem
|
12
|
-
VERSION = "3.6.
|
12
|
+
VERSION = "3.6.1"
|
13
13
|
end
|
14
14
|
|
15
15
|
# Must be first since it unloads the prelude from 1.9.2
|
@@ -107,7 +107,7 @@ require_relative "rubygems/target_rbconfig"
|
|
107
107
|
#
|
108
108
|
# == License
|
109
109
|
#
|
110
|
-
# See {LICENSE.txt}[
|
110
|
+
# See {LICENSE.txt}[https://github.com/rubygems/rubygems/blob/master/LICENSE.txt] for permissions.
|
111
111
|
#
|
112
112
|
# Thanks!
|
113
113
|
#
|
data/rubygems-update.gemspec
CHANGED
@@ -2,7 +2,7 @@
|
|
2
2
|
|
3
3
|
Gem::Specification.new do |s|
|
4
4
|
s.name = "rubygems-update"
|
5
|
-
s.version = "3.6.
|
5
|
+
s.version = "3.6.1"
|
6
6
|
s.authors = ["Jim Weirich", "Chad Fowler", "Eric Hodel", "Luis Lavena", "Aaron Patterson", "Samuel Giddins", "André Arko", "Evan Phoenix", "Hiroshi SHIBATA"]
|
7
7
|
s.email = ["", "", "drbrain@segment7.net", "luislavena@gmail.com", "aaron@tenderlovemaking.com", "segiddins@segiddins.me", "andre@arko.net", "evan@phx.io", "hsbt@ruby-lang.org"]
|
8
8
|
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: rubygems-update
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 3.6.
|
4
|
+
version: 3.6.1
|
5
5
|
platform: ruby
|
6
6
|
original_platform: ''
|
7
7
|
authors:
|
@@ -16,7 +16,7 @@ authors:
|
|
16
16
|
- Hiroshi SHIBATA
|
17
17
|
bindir: exe
|
18
18
|
cert_chain: []
|
19
|
-
date: 2024-12-
|
19
|
+
date: 2024-12-17 00:00:00.000000000 Z
|
20
20
|
dependencies: []
|
21
21
|
description: |-
|
22
22
|
A package (also known as a library) contains a set of functionality
|
@@ -747,7 +747,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
747
747
|
- !ruby/object:Gem::Version
|
748
748
|
version: '0'
|
749
749
|
requirements: []
|
750
|
-
rubygems_version: 3.6.
|
750
|
+
rubygems_version: 3.6.1
|
751
751
|
specification_version: 4
|
752
752
|
summary: RubyGems is a package management framework for Ruby. This gem is downloaded
|
753
753
|
and installed by `gem update --system`, so that the `gem` CLI can update itself.
|