bundler 2.4.16 → 2.4.18
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +24 -0
- data/lib/bundler/build_metadata.rb +2 -2
- data/lib/bundler/feature_flag.rb +0 -1
- data/lib/bundler/man/bundle-config.1 +0 -3
- data/lib/bundler/man/bundle-config.1.ronn +0 -3
- data/lib/bundler/man/bundle-outdated.1 +12 -8
- data/lib/bundler/man/bundle-outdated.1.ronn +12 -9
- data/lib/bundler/settings.rb +0 -1
- data/lib/bundler/source/git.rb +19 -13
- data/lib/bundler/source.rb +1 -1
- data/lib/bundler/templates/newgem/ext/newgem/Cargo.toml.tt +1 -1
- data/lib/bundler/templates/newgem/ext/newgem/src/lib.rs.tt +4 -4
- data/lib/bundler/vendor/fileutils/lib/fileutils.rb +1 -1
- data/lib/bundler/vendor/uri/lib/uri/rfc2396_parser.rb +2 -2
- data/lib/bundler/vendor/uri/lib/uri/rfc3986_parser.rb +1 -1
- data/lib/bundler/vendor/uri/lib/uri/version.rb +1 -1
- data/lib/bundler/version.rb +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: 534916a6124778247986f23f06f157b5f39564180b51361d3939265579a3ddd1
|
4
|
+
data.tar.gz: f54fbf6640be1d86c63ca174873133a163a58cb3a48d4f382695bbf36ff1c959
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 0fee4fe07803ddf54fae1e1a0ff9cc04478ddc0180b1ace6ff43cac7183965e7478b7c580e36c34abc42cf2dc7dc581560900e3b4430cc5fd31b5faf986b2ccc
|
7
|
+
data.tar.gz: 1245868925e6075dd7f1f93c66774fbefd4b25b47c5102cf101b5db561cc802723308c7064bc186f7e89beb6ab7c1aa59a234e81de113dbda529e99f515a05d4
|
data/CHANGELOG.md
CHANGED
@@ -1,3 +1,27 @@
|
|
1
|
+
# 2.4.18 (August 2, 2023)
|
2
|
+
|
3
|
+
## Security:
|
4
|
+
|
5
|
+
- Merge URI-0.12.2 for Bundler [#6779](https://github.com/rubygems/rubygems/pull/6779)
|
6
|
+
|
7
|
+
## Enhancements:
|
8
|
+
|
9
|
+
- Update Magnus version in Rust extension gem template [#6843](https://github.com/rubygems/rubygems/pull/6843)
|
10
|
+
|
11
|
+
## Documentation:
|
12
|
+
|
13
|
+
- Update bundle-outdated(1) man to use table output [#6833](https://github.com/rubygems/rubygems/pull/6833)
|
14
|
+
|
15
|
+
# 2.4.17 (July 14, 2023)
|
16
|
+
|
17
|
+
## Enhancements:
|
18
|
+
|
19
|
+
- Avoid printing "Using ..." messages when version has not changed [#6804](https://github.com/rubygems/rubygems/pull/6804)
|
20
|
+
|
21
|
+
## Bug fixes:
|
22
|
+
|
23
|
+
- Fix `bundler/setup` unintendedly writing to the filesystem [#6814](https://github.com/rubygems/rubygems/pull/6814)
|
24
|
+
|
1
25
|
# 2.4.16 (July 10, 2023)
|
2
26
|
|
3
27
|
## Bug fixes:
|
@@ -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 = "2023-
|
8
|
-
@git_commit_sha = "
|
7
|
+
@built_at = "2023-08-02".freeze
|
8
|
+
@git_commit_sha = "d2e3d8e3f4".freeze
|
9
9
|
@release = true
|
10
10
|
# end ivars
|
11
11
|
|
data/lib/bundler/feature_flag.rb
CHANGED
@@ -37,7 +37,6 @@ module Bundler
|
|
37
37
|
settings_flag(:plugins) { @bundler_version >= Gem::Version.new("1.14") }
|
38
38
|
settings_flag(:print_only_version_number) { bundler_3_mode? }
|
39
39
|
settings_flag(:setup_makes_kernel_gem_public) { !bundler_3_mode? }
|
40
|
-
settings_flag(:suppress_install_using_messages) { bundler_3_mode? }
|
41
40
|
settings_flag(:update_requires_all_flag) { bundler_4_mode? }
|
42
41
|
|
43
42
|
settings_option(:default_cli_command) { bundler_3_mode? ? :cli_help : :install }
|
@@ -284,9 +284,6 @@ The following is a list of all configuration keys and their purpose\. You can le
|
|
284
284
|
\fBssl_verify_mode\fR (\fBBUNDLE_SSL_VERIFY_MODE\fR): The SSL verification mode Bundler uses when making HTTPS requests\. Defaults to verify peer\.
|
285
285
|
.
|
286
286
|
.IP "\(bu" 4
|
287
|
-
\fBsuppress_install_using_messages\fR (\fBBUNDLE_SUPPRESS_INSTALL_USING_MESSAGES\fR): Avoid printing \fBUsing \.\.\.\fR messages during installation when the version of a gem has not changed\.
|
288
|
-
.
|
289
|
-
.IP "\(bu" 4
|
290
287
|
\fBsystem_bindir\fR (\fBBUNDLE_SYSTEM_BINDIR\fR): The location where RubyGems installs binstubs\. Defaults to \fBGem\.bindir\fR\.
|
291
288
|
.
|
292
289
|
.IP "\(bu" 4
|
@@ -265,9 +265,6 @@ learn more about their operation in [bundle install(1)](bundle-install.1.html).
|
|
265
265
|
* `ssl_verify_mode` (`BUNDLE_SSL_VERIFY_MODE`):
|
266
266
|
The SSL verification mode Bundler uses when making HTTPS requests.
|
267
267
|
Defaults to verify peer.
|
268
|
-
* `suppress_install_using_messages` (`BUNDLE_SUPPRESS_INSTALL_USING_MESSAGES`):
|
269
|
-
Avoid printing `Using ...` messages during installation when the version of
|
270
|
-
a gem has not changed.
|
271
268
|
* `system_bindir` (`BUNDLE_SYSTEM_BINDIR`):
|
272
269
|
The location where RubyGems installs binstubs. Defaults to `Gem.bindir`.
|
273
270
|
* `timeout` (`BUNDLE_TIMEOUT`):
|
@@ -83,9 +83,10 @@ If the regular output shows the following:
|
|
83
83
|
.
|
84
84
|
.nf
|
85
85
|
|
86
|
-
*
|
87
|
-
*
|
88
|
-
*
|
86
|
+
* Gem Current Latest Requested Groups
|
87
|
+
* faker 1\.6\.5 1\.6\.6 ~> 1\.4 development, test
|
88
|
+
* hashie 1\.2\.0 3\.4\.6 = 1\.2\.0 default
|
89
|
+
* headless 2\.2\.3 2\.3\.1 = 2\.2\.3 test
|
89
90
|
.
|
90
91
|
.fi
|
91
92
|
.
|
@@ -98,7 +99,8 @@ If the regular output shows the following:
|
|
98
99
|
.
|
99
100
|
.nf
|
100
101
|
|
101
|
-
*
|
102
|
+
* Gem Current Latest Requested Groups
|
103
|
+
* hashie 1\.2\.0 3\.4\.6 = 1\.2\.0 default
|
102
104
|
.
|
103
105
|
.fi
|
104
106
|
.
|
@@ -111,7 +113,8 @@ If the regular output shows the following:
|
|
111
113
|
.
|
112
114
|
.nf
|
113
115
|
|
114
|
-
*
|
116
|
+
* Gem Current Latest Requested Groups
|
117
|
+
* headless 2\.2\.3 2\.3\.1 = 2\.2\.3 test
|
115
118
|
.
|
116
119
|
.fi
|
117
120
|
.
|
@@ -124,7 +127,8 @@ If the regular output shows the following:
|
|
124
127
|
.
|
125
128
|
.nf
|
126
129
|
|
127
|
-
*
|
130
|
+
* Gem Current Latest Requested Groups
|
131
|
+
* faker 1\.6\.5 1\.6\.6 ~> 1\.4 development, test
|
128
132
|
.
|
129
133
|
.fi
|
130
134
|
.
|
@@ -137,8 +141,8 @@ Filter options can be combined\. \fB\-\-filter\-minor\fR and \fB\-\-filter\-patc
|
|
137
141
|
.
|
138
142
|
.nf
|
139
143
|
|
140
|
-
*
|
141
|
-
*
|
144
|
+
* Gem Current Latest Requested Groups
|
145
|
+
* faker 1\.6\.5 1\.6\.6 ~> 1\.4 development, test
|
142
146
|
.
|
143
147
|
.fi
|
144
148
|
.
|
@@ -78,25 +78,28 @@ in the output.
|
|
78
78
|
|
79
79
|
If the regular output shows the following:
|
80
80
|
|
81
|
-
*
|
82
|
-
*
|
83
|
-
*
|
81
|
+
* Gem Current Latest Requested Groups
|
82
|
+
* faker 1.6.5 1.6.6 ~> 1.4 development, test
|
83
|
+
* hashie 1.2.0 3.4.6 = 1.2.0 default
|
84
|
+
* headless 2.2.3 2.3.1 = 2.2.3 test
|
84
85
|
|
85
86
|
`--filter-major` would only show:
|
86
87
|
|
87
|
-
*
|
88
|
+
* Gem Current Latest Requested Groups
|
89
|
+
* hashie 1.2.0 3.4.6 = 1.2.0 default
|
88
90
|
|
89
91
|
`--filter-minor` would only show:
|
90
92
|
|
91
|
-
*
|
93
|
+
* Gem Current Latest Requested Groups
|
94
|
+
* headless 2.2.3 2.3.1 = 2.2.3 test
|
92
95
|
|
93
96
|
`--filter-patch` would only show:
|
94
97
|
|
95
|
-
*
|
98
|
+
* Gem Current Latest Requested Groups
|
99
|
+
* faker 1.6.5 1.6.6 ~> 1.4 development, test
|
96
100
|
|
97
101
|
Filter options can be combined. `--filter-minor` and `--filter-patch` would show:
|
98
102
|
|
99
|
-
*
|
100
|
-
*
|
101
|
-
|
103
|
+
* Gem Current Latest Requested Groups
|
104
|
+
* faker 1.6.5 1.6.6 ~> 1.4 development, test
|
102
105
|
Combining all three `filter` options would be the same result as providing none of them.
|
data/lib/bundler/settings.rb
CHANGED
data/lib/bundler/source/git.rb
CHANGED
@@ -69,19 +69,7 @@ module Bundler
|
|
69
69
|
|
70
70
|
def to_s
|
71
71
|
begin
|
72
|
-
at =
|
73
|
-
path
|
74
|
-
elsif user_ref = options["ref"]
|
75
|
-
if /\A[a-z0-9]{4,}\z/i.match?(ref)
|
76
|
-
shortref_for_display(user_ref)
|
77
|
-
else
|
78
|
-
user_ref
|
79
|
-
end
|
80
|
-
elsif ref
|
81
|
-
ref
|
82
|
-
else
|
83
|
-
current_branch
|
84
|
-
end
|
72
|
+
at = humanized_ref || current_branch
|
85
73
|
|
86
74
|
rev = "at #{at}@#{shortref_for_display(revision)}"
|
87
75
|
rescue GitError
|
@@ -91,6 +79,10 @@ module Bundler
|
|
91
79
|
uri_with_specifiers([rev, glob_for_display])
|
92
80
|
end
|
93
81
|
|
82
|
+
def identifier
|
83
|
+
uri_with_specifiers([humanized_ref, cached_revision, glob_for_display])
|
84
|
+
end
|
85
|
+
|
94
86
|
def uri_with_specifiers(specifiers)
|
95
87
|
specifiers.compact!
|
96
88
|
|
@@ -256,6 +248,20 @@ module Bundler
|
|
256
248
|
|
257
249
|
private
|
258
250
|
|
251
|
+
def humanized_ref
|
252
|
+
if local?
|
253
|
+
path
|
254
|
+
elsif user_ref = options["ref"]
|
255
|
+
if /\A[a-z0-9]{4,}\z/i.match?(ref)
|
256
|
+
shortref_for_display(user_ref)
|
257
|
+
else
|
258
|
+
user_ref
|
259
|
+
end
|
260
|
+
elsif ref
|
261
|
+
ref
|
262
|
+
end
|
263
|
+
end
|
264
|
+
|
259
265
|
def serialize_gemspecs_in(destination)
|
260
266
|
destination = destination.expand_path(Bundler.root) if destination.relative?
|
261
267
|
Dir["#{destination}/#{@glob}"].each do |spec_path|
|
data/lib/bundler/source.rb
CHANGED
@@ -100,7 +100,7 @@ module Bundler
|
|
100
100
|
end
|
101
101
|
|
102
102
|
def print_using_message(message)
|
103
|
-
if !message.include?("(was ")
|
103
|
+
if !message.include?("(was ")
|
104
104
|
Bundler.ui.debug message
|
105
105
|
else
|
106
106
|
Bundler.ui.info message
|
@@ -1,12 +1,12 @@
|
|
1
|
-
use magnus::{
|
1
|
+
use magnus::{function, prelude::*, Error, Ruby};
|
2
2
|
|
3
3
|
fn hello(subject: String) -> String {
|
4
|
-
format!("Hello from Rust, {}!"
|
4
|
+
format!("Hello from Rust, {subject}!")
|
5
5
|
}
|
6
6
|
|
7
7
|
#[magnus::init]
|
8
|
-
fn init() -> Result<(), Error> {
|
9
|
-
let module =
|
8
|
+
fn init(ruby: &Ruby) -> Result<(), Error> {
|
9
|
+
let module = ruby.<%= config[:constant_array].map {|c| "define_module(#{c.dump})?"}.join(".") %>;
|
10
10
|
module.define_singleton_method("hello", function!(hello, 1))?;
|
11
11
|
Ok(())
|
12
12
|
}
|
@@ -497,8 +497,8 @@ module Bundler::URI
|
|
497
497
|
ret = {}
|
498
498
|
|
499
499
|
# for Bundler::URI::split
|
500
|
-
ret[:ABS_URI] = Regexp.new('\A\s
|
501
|
-
ret[:REL_URI] = Regexp.new('\A\s
|
500
|
+
ret[:ABS_URI] = Regexp.new('\A\s*+' + pattern[:X_ABS_URI] + '\s*\z', Regexp::EXTENDED)
|
501
|
+
ret[:REL_URI] = Regexp.new('\A\s*+' + pattern[:X_REL_URI] + '\s*\z', Regexp::EXTENDED)
|
502
502
|
|
503
503
|
# for Bundler::URI::extract
|
504
504
|
ret[:URI_REF] = Regexp.new(pattern[:URI_REF])
|
@@ -100,7 +100,7 @@ module Bundler::URI
|
|
100
100
|
QUERY: /\A(?:%\h\h|[!$&-.0-;=@-Z_a-z~\/?])*\z/,
|
101
101
|
FRAGMENT: /\A(?:%\h\h|[!$&-.0-;=@-Z_a-z~\/?])*\z/,
|
102
102
|
OPAQUE: /\A(?:[^\/].*)?\z/,
|
103
|
-
PORT: /\A[\x09\x0a\x0c\x0d ]
|
103
|
+
PORT: /\A[\x09\x0a\x0c\x0d ]*+\d*[\x09\x0a\x0c\x0d ]*\z/,
|
104
104
|
}
|
105
105
|
end
|
106
106
|
|
data/lib/bundler/version.rb
CHANGED
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.4.
|
4
|
+
version: 2.4.18
|
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: 2023-
|
25
|
+
date: 2023-08-02 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
|
@@ -381,7 +381,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
381
381
|
- !ruby/object:Gem::Version
|
382
382
|
version: 3.0.1
|
383
383
|
requirements: []
|
384
|
-
rubygems_version: 3.4.
|
384
|
+
rubygems_version: 3.4.18
|
385
385
|
signing_key:
|
386
386
|
specification_version: 4
|
387
387
|
summary: The best way to manage your application's dependencies
|