mirror of
https://github.com/ruby/ruby.git
synced 2025-09-16 17:14:01 +02:00
Merge RubyGems-3.4.10 and Bundler-2.4.10 (#7479)
* Merge RubyGems-3.4.7 and Bundler-2.4.7 * Merge RubyGems-3.4.8 and Bundler-2.4.8 * Skip failing test on MSWin * Merge RubyGems-3.4.9 and Bundler-2.4.9 * Merge RubyGems-3.4.10 and Bundler-2.4.10 --------- Co-authored-by: Nobuyoshi Nakada <nobu@ruby-lang.org>
This commit is contained in:
parent
f8c775cb41
commit
c3c461c4ff
179 changed files with 2882 additions and 469 deletions
|
@ -34,6 +34,11 @@ class Gem::Commands::PristineCommand < Gem::Command
|
|||
options[:extensions] = value
|
||||
end
|
||||
|
||||
add_option("--only-missing-extensions",
|
||||
"Only restore gems with missing extensions") do |value, options|
|
||||
options[:only_missing_extensions] = value
|
||||
end
|
||||
|
||||
add_option("--only-executables",
|
||||
"Only restore executables") do |value, options|
|
||||
options[:only_executables] = value
|
||||
|
@ -107,6 +112,10 @@ extensions will be restored.
|
|||
Gem::Specification.select do |spec|
|
||||
spec.extensions && !spec.extensions.empty?
|
||||
end
|
||||
elsif options[:only_missing_extensions]
|
||||
Gem::Specification.select do |spec|
|
||||
spec.missing_extensions?
|
||||
end
|
||||
else
|
||||
get_all_gem_names.sort.map do |gem_name|
|
||||
Gem::Specification.find_all_by_name(gem_name, options[:version]).reverse
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue