bundler 4.0.0 → 4.0.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/CHANGELOG.md +15 -0
- data/lib/bundler/build_metadata.rb +2 -2
- data/lib/bundler/cli.rb +13 -7
- data/lib/bundler/endpoint_specification.rb +22 -0
- data/lib/bundler/fetcher/gem_remote_fetcher.rb +6 -0
- data/lib/bundler/templates/newgem/lib/newgem.rb.tt +1 -1
- data/lib/bundler/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: b33d66a9c2eb47416c1c3a4b32d7e66a4cf1239e8e899783c35f1cafe8eff20e
|
|
4
|
+
data.tar.gz: 82936b62cddb391a1b1f84492a6ef1be7ab4520fb6e51eaf1d016b9f33bb89ee
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: d8795b477c774ce5552d81c222ce0fa363def747cb224394842b0adfd344846b10dc5d9c2cfe5f1aaaa41da787458f949a83fb1726587e8460b8a1ee8750c02f
|
|
7
|
+
data.tar.gz: 502655e746eb8ce71d2282c7487a7ccac711e733ddc64984a4980ddeb684668171ac72c3726884a16aea16309fd4d616d1d5b36576ad54b5e0fc737d23344185
|
data/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,20 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
+
## 4.0.1 (2025-12-09)
|
|
4
|
+
|
|
5
|
+
### Performance:
|
|
6
|
+
|
|
7
|
+
- Increase connection pool to allow for up to 70% speed increase on `bundle install` [#9087](https://github.com/ruby/rubygems/pull/9087)
|
|
8
|
+
|
|
9
|
+
### Enhancements:
|
|
10
|
+
|
|
11
|
+
- Fix the config suggestion in the warning for `$ bundle` [#9164](https://github.com/ruby/rubygems/pull/9164)
|
|
12
|
+
- Fix native extension loading in newgem template for RHEL-based systems [#9156](https://github.com/ruby/rubygems/pull/9156)
|
|
13
|
+
|
|
14
|
+
### Bug fixes:
|
|
15
|
+
|
|
16
|
+
- Fix Bundler removing executables after creating them [#9169](https://github.com/ruby/rubygems/pull/9169)
|
|
17
|
+
|
|
3
18
|
## 4.0.0 (2025-12-03)
|
|
4
19
|
|
|
5
20
|
### Features:
|
|
@@ -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 = "2025-12-
|
|
8
|
-
@git_commit_sha = "
|
|
7
|
+
@built_at = "2025-12-09".freeze
|
|
8
|
+
@git_commit_sha = "f3e5ebf5af".freeze
|
|
9
9
|
# end ivars
|
|
10
10
|
|
|
11
11
|
# A hash representation of the build metadata.
|
data/lib/bundler/cli.rb
CHANGED
|
@@ -120,28 +120,31 @@ module Bundler
|
|
|
120
120
|
self.class.send(:class_options_help, shell)
|
|
121
121
|
end
|
|
122
122
|
|
|
123
|
-
desc "install_or_cli_help", "
|
|
123
|
+
desc "install_or_cli_help", "Deprecated alias of install", hide: true
|
|
124
124
|
def install_or_cli_help
|
|
125
|
+
Bundler.ui.warn <<~MSG
|
|
126
|
+
`bundle install_or_cli_help` is a deprecated alias of `bundle install`.
|
|
127
|
+
It might be called due to the 'default_cli_command' being set to 'install_or_cli_help',
|
|
128
|
+
if so fix that by running `bundle config set default_cli_command install --global`.
|
|
129
|
+
MSG
|
|
125
130
|
invoke_other_command("install")
|
|
126
|
-
rescue GemfileNotFound => error
|
|
127
|
-
Bundler.ui.error error.message, wrap: true
|
|
128
|
-
invoke_other_command("cli_help")
|
|
129
131
|
end
|
|
130
132
|
|
|
131
133
|
def self.default_command(meth = nil)
|
|
132
134
|
return super if meth
|
|
133
135
|
|
|
134
136
|
unless Bundler.settings[:default_cli_command]
|
|
135
|
-
Bundler.ui.info
|
|
137
|
+
Bundler.ui.info <<~MSG
|
|
136
138
|
In a future version of Bundler, running `bundle` without argument will no longer run `bundle install`.
|
|
137
139
|
Instead, the `cli_help` command will be displayed. Please use `bundle install` explicitly for scripts like CI/CD.
|
|
138
140
|
You can use the future behavior now with `bundle config set default_cli_command cli_help --global`,
|
|
139
|
-
or you can continue to use the current behavior with `bundle config set default_cli_command
|
|
141
|
+
or you can continue to use the current behavior with `bundle config set default_cli_command install --global`.
|
|
140
142
|
This message will be removed after a default_cli_command value is set.
|
|
143
|
+
|
|
141
144
|
MSG
|
|
142
145
|
end
|
|
143
146
|
|
|
144
|
-
Bundler.settings[:default_cli_command] || "
|
|
147
|
+
Bundler.settings[:default_cli_command] || "install"
|
|
145
148
|
end
|
|
146
149
|
|
|
147
150
|
class_option "no-color", type: :boolean, desc: "Disable colorization in output"
|
|
@@ -287,6 +290,9 @@ module Bundler
|
|
|
287
290
|
Bundler.settings.temporary(no_install: false) do
|
|
288
291
|
Install.new(options).run
|
|
289
292
|
end
|
|
293
|
+
rescue GemfileNotFound => error
|
|
294
|
+
invoke_other_command("cli_help")
|
|
295
|
+
raise error # re-raise to show the error and get a failing exit status
|
|
290
296
|
end
|
|
291
297
|
|
|
292
298
|
map aliases_for("install")
|
|
@@ -60,6 +60,28 @@ module Bundler
|
|
|
60
60
|
end
|
|
61
61
|
end
|
|
62
62
|
|
|
63
|
+
# needed for binstubs
|
|
64
|
+
def executables
|
|
65
|
+
if @remote_specification
|
|
66
|
+
@remote_specification.executables
|
|
67
|
+
elsif _local_specification
|
|
68
|
+
_local_specification.executables
|
|
69
|
+
else
|
|
70
|
+
super
|
|
71
|
+
end
|
|
72
|
+
end
|
|
73
|
+
|
|
74
|
+
# needed for bundle clean
|
|
75
|
+
def bindir
|
|
76
|
+
if @remote_specification
|
|
77
|
+
@remote_specification.bindir
|
|
78
|
+
elsif _local_specification
|
|
79
|
+
_local_specification.bindir
|
|
80
|
+
else
|
|
81
|
+
super
|
|
82
|
+
end
|
|
83
|
+
end
|
|
84
|
+
|
|
63
85
|
# needed for post_install_messages during install
|
|
64
86
|
def post_install_message
|
|
65
87
|
if @remote_specification
|
|
@@ -5,6 +5,12 @@ require "rubygems/remote_fetcher"
|
|
|
5
5
|
module Bundler
|
|
6
6
|
class Fetcher
|
|
7
7
|
class GemRemoteFetcher < Gem::RemoteFetcher
|
|
8
|
+
def initialize(*)
|
|
9
|
+
super
|
|
10
|
+
|
|
11
|
+
@pool_size = 5
|
|
12
|
+
end
|
|
13
|
+
|
|
8
14
|
def request(*args)
|
|
9
15
|
super do |req|
|
|
10
16
|
req.delete("User-Agent") if headers["User-Agent"]
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
require_relative "<%= File.basename(config[:namespaced_path]) %>/version"
|
|
4
4
|
<%- if config[:ext] -%>
|
|
5
|
-
|
|
5
|
+
require "<%= File.basename(config[:namespaced_path]) %>/<%= config[:underscored_name] %>"
|
|
6
6
|
<%- end -%>
|
|
7
7
|
|
|
8
8
|
<%- config[:constant_array].each_with_index do |c, i| -%>
|
data/lib/bundler/version.rb
CHANGED