Skip to content

Commit

Permalink
Merge RubyGems-3.4.18 and Bundler-2.4.18
Browse files Browse the repository at this point in the history
  • Loading branch information
hsbt committed Aug 18, 2023
1 parent 05f13db commit af007a3
Show file tree
Hide file tree
Showing 308 changed files with 3,967 additions and 545 deletions.
20 changes: 12 additions & 8 deletions lib/bundler/man/bundle-outdated.1
Original file line number Diff line number Diff line change
Expand Up @@ -83,9 +83,10 @@ If the regular output shows the following:
.
.nf

* faker (newest 1\.6\.6, installed 1\.6\.5, requested ~> 1\.4) in groups "development, test"
* hashie (newest 3\.4\.6, installed 1\.2\.0, requested = 1\.2\.0) in groups "default"
* headless (newest 2\.3\.1, installed 2\.2\.3) in groups "test"
* Gem Current Latest Requested Groups
* faker 1\.6\.5 1\.6\.6 ~> 1\.4 development, test
* hashie 1\.2\.0 3\.4\.6 = 1\.2\.0 default
* headless 2\.2\.3 2\.3\.1 = 2\.2\.3 test
.
.fi
.
Expand All @@ -98,7 +99,8 @@ If the regular output shows the following:
.
.nf

* hashie (newest 3\.4\.6, installed 1\.2\.0, requested = 1\.2\.0) in groups "default"
* Gem Current Latest Requested Groups
* hashie 1\.2\.0 3\.4\.6 = 1\.2\.0 default
.
.fi
.
Expand All @@ -111,7 +113,8 @@ If the regular output shows the following:
.
.nf

* headless (newest 2\.3\.1, installed 2\.2\.3) in groups "test"
* Gem Current Latest Requested Groups
* headless 2\.2\.3 2\.3\.1 = 2\.2\.3 test
.
.fi
.
Expand All @@ -124,7 +127,8 @@ If the regular output shows the following:
.
.nf

* faker (newest 1\.6\.6, installed 1\.6\.5, requested ~> 1\.4) in groups "development, test"
* Gem Current Latest Requested Groups
* faker 1\.6\.5 1\.6\.6 ~> 1\.4 development, test
.
.fi
.
Expand All @@ -137,8 +141,8 @@ Filter options can be combined\. \fB\-\-filter\-minor\fR and \fB\-\-filter\-patc
.
.nf

* faker (newest 1\.6\.6, installed 1\.6\.5, requested ~> 1\.4) in groups "development, test"
* headless (newest 2\.3\.1, installed 2\.2\.3) in groups "test"
* Gem Current Latest Requested Groups
* faker 1\.6\.5 1\.6\.6 ~> 1\.4 development, test
.
.fi
.
Expand Down
21 changes: 12 additions & 9 deletions lib/bundler/man/bundle-outdated.1.ronn
Original file line number Diff line number Diff line change
Expand Up @@ -78,25 +78,28 @@ in the output.

If the regular output shows the following:

* faker (newest 1.6.6, installed 1.6.5, requested ~> 1.4) in groups "development, test"
* hashie (newest 3.4.6, installed 1.2.0, requested = 1.2.0) in groups "default"
* headless (newest 2.3.1, installed 2.2.3) in groups "test"
* Gem Current Latest Requested Groups
* faker 1.6.5 1.6.6 ~> 1.4 development, test
* hashie 1.2.0 3.4.6 = 1.2.0 default
* headless 2.2.3 2.3.1 = 2.2.3 test

`--filter-major` would only show:

* hashie (newest 3.4.6, installed 1.2.0, requested = 1.2.0) in groups "default"
* Gem Current Latest Requested Groups
* hashie 1.2.0 3.4.6 = 1.2.0 default

`--filter-minor` would only show:

* headless (newest 2.3.1, installed 2.2.3) in groups "test"
* Gem Current Latest Requested Groups
* headless 2.2.3 2.3.1 = 2.2.3 test

`--filter-patch` would only show:

* faker (newest 1.6.6, installed 1.6.5, requested ~> 1.4) in groups "development, test"
* Gem Current Latest Requested Groups
* faker 1.6.5 1.6.6 ~> 1.4 development, test

Filter options can be combined. `--filter-minor` and `--filter-patch` would show:

* faker (newest 1.6.6, installed 1.6.5, requested ~> 1.4) in groups "development, test"
* headless (newest 2.3.1, installed 2.2.3) in groups "test"

* Gem Current Latest Requested Groups
* faker 1.6.5 1.6.6 ~> 1.4 development, test
Combining all three `filter` options would be the same result as providing none of them.
2 changes: 1 addition & 1 deletion lib/bundler/templates/newgem/ext/newgem/Cargo.toml.tt
Original file line number Diff line number Diff line change
Expand Up @@ -12,4 +12,4 @@ publish = false
crate-type = ["cdylib"]

[dependencies]
magnus = { version = "0.4" }
magnus = { version = "0.6" }
8 changes: 4 additions & 4 deletions lib/bundler/templates/newgem/ext/newgem/src/lib.rs.tt
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
use magnus::{define_module, function, prelude::*, Error};
use magnus::{function, prelude::*, Error, Ruby};

fn hello(subject: String) -> String {
format!("Hello from Rust, {}!", subject)
format!("Hello from Rust, {subject}!")
}

#[magnus::init]
fn init() -> Result<(), Error> {
let module = <%= config[:constant_array].map {|c| "define_module(#{c.dump})?"}.join(".") %>;
fn init(ruby: &Ruby) -> Result<(), Error> {
let module = ruby.<%= config[:constant_array].map {|c| "define_module(#{c.dump})?"}.join(".") %>;
module.define_singleton_method("hello", function!(hello, 1))?;
Ok(())
}
2 changes: 1 addition & 1 deletion lib/bundler/vendor/fileutils/lib/fileutils.rb
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
begin
require 'rbconfig'
rescue LoadError
# for make mjit-headers
# for make rjit-headers
end

# Namespace for file utility methods for copying, moving, removing, etc.
Expand Down
2 changes: 1 addition & 1 deletion lib/bundler/version.rb
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# frozen_string_literal: false

module Bundler
VERSION = "2.4.17".freeze
VERSION = "2.4.18".freeze

def self.bundler_major_version
@bundler_major_version ||= VERSION.split(".").first.to_i
Expand Down
3 changes: 2 additions & 1 deletion lib/rubygems.rb
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
# frozen_string_literal: true

#--
# Copyright 2006 by Chad Fowler, Rich Kilmer, Jim Weirich and others.
# All rights reserved.
Expand All @@ -8,7 +9,7 @@
require "rbconfig"

module Gem
VERSION = "3.4.17"
VERSION = "3.4.18"
end

# Must be first since it unloads the prelude from 1.9.2
Expand Down
1 change: 1 addition & 0 deletions lib/rubygems/available_set.rb
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
# frozen_string_literal: true

class Gem::AvailableSet
include Enumerable

Expand Down
1 change: 1 addition & 0 deletions lib/rubygems/basic_specification.rb
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
# frozen_string_literal: true

##
# BasicSpecification is an abstract class which implements some common code
# used by both Specification and StubSpecification.
Expand Down
1 change: 1 addition & 0 deletions lib/rubygems/command.rb
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
# frozen_string_literal: true

#--
# Copyright 2006 by Chad Fowler, Rich Kilmer, Jim Weirich and others.
# All rights reserved.
Expand Down
1 change: 1 addition & 0 deletions lib/rubygems/command_manager.rb
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
# frozen_string_literal: true

#--
# Copyright 2006 by Chad Fowler, Rich Kilmer, Jim Weirich and others.
# All rights reserved.
Expand Down
1 change: 1 addition & 0 deletions lib/rubygems/commands/build_command.rb
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
# frozen_string_literal: true

require_relative "../command"
require_relative "../package"
require_relative "../version_option"
Expand Down
1 change: 1 addition & 0 deletions lib/rubygems/commands/cert_command.rb
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
# frozen_string_literal: true

require_relative "../command"
require_relative "../security"

Expand Down
1 change: 1 addition & 0 deletions lib/rubygems/commands/check_command.rb
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
# frozen_string_literal: true

require_relative "../command"
require_relative "../version_option"
require_relative "../validator"
Expand Down
1 change: 1 addition & 0 deletions lib/rubygems/commands/cleanup_command.rb
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
# frozen_string_literal: true

require_relative "../command"
require_relative "../dependency_list"
require_relative "../uninstaller"
Expand Down
1 change: 1 addition & 0 deletions lib/rubygems/commands/contents_command.rb
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
# frozen_string_literal: true

require_relative "../command"
require_relative "../version_option"

Expand Down
1 change: 1 addition & 0 deletions lib/rubygems/commands/dependency_command.rb
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
# frozen_string_literal: true

require_relative "../command"
require_relative "../local_remote_options"
require_relative "../version_option"
Expand Down
1 change: 1 addition & 0 deletions lib/rubygems/commands/environment_command.rb
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
# frozen_string_literal: true

require_relative "../command"

class Gem::Commands::EnvironmentCommand < Gem::Command
Expand Down
1 change: 1 addition & 0 deletions lib/rubygems/commands/exec_command.rb
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
# frozen_string_literal: true

require_relative "../command"
require_relative "../dependency_installer"
require_relative "../gem_runner"
Expand Down
1 change: 1 addition & 0 deletions lib/rubygems/commands/fetch_command.rb
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
# frozen_string_literal: true

require_relative "../command"
require_relative "../local_remote_options"
require_relative "../version_option"
Expand Down
1 change: 1 addition & 0 deletions lib/rubygems/commands/generate_index_command.rb
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
# frozen_string_literal: true

require_relative "../command"
require_relative "../indexer"

Expand Down
1 change: 1 addition & 0 deletions lib/rubygems/commands/help_command.rb
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
# frozen_string_literal: true

require_relative "../command"

class Gem::Commands::HelpCommand < Gem::Command
Expand Down
1 change: 1 addition & 0 deletions lib/rubygems/commands/install_command.rb
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
# frozen_string_literal: true

require_relative "../command"
require_relative "../install_update_options"
require_relative "../dependency_installer"
Expand Down
1 change: 1 addition & 0 deletions lib/rubygems/commands/list_command.rb
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
# frozen_string_literal: true

require_relative "../command"
require_relative "../query_utils"

Expand Down
1 change: 1 addition & 0 deletions lib/rubygems/commands/lock_command.rb
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
# frozen_string_literal: true

require_relative "../command"

class Gem::Commands::LockCommand < Gem::Command
Expand Down
1 change: 1 addition & 0 deletions lib/rubygems/commands/mirror_command.rb
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
# frozen_string_literal: true

require_relative "../command"

unless defined? Gem::Commands::MirrorCommand
Expand Down
1 change: 1 addition & 0 deletions lib/rubygems/commands/open_command.rb
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
# frozen_string_literal: true

require_relative "../command"
require_relative "../version_option"

Expand Down
1 change: 1 addition & 0 deletions lib/rubygems/commands/outdated_command.rb
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
# frozen_string_literal: true

require_relative "../command"
require_relative "../local_remote_options"
require_relative "../spec_fetcher"
Expand Down
1 change: 1 addition & 0 deletions lib/rubygems/commands/owner_command.rb
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
# frozen_string_literal: true

require_relative "../command"
require_relative "../local_remote_options"
require_relative "../gemcutter_utilities"
Expand Down
1 change: 1 addition & 0 deletions lib/rubygems/commands/pristine_command.rb
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
# frozen_string_literal: true

require_relative "../command"
require_relative "../package"
require_relative "../installer"
Expand Down
1 change: 1 addition & 0 deletions lib/rubygems/commands/push_command.rb
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
# frozen_string_literal: true

require_relative "../command"
require_relative "../local_remote_options"
require_relative "../gemcutter_utilities"
Expand Down
1 change: 1 addition & 0 deletions lib/rubygems/commands/query_command.rb
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
# frozen_string_literal: true

require_relative "../command"
require_relative "../query_utils"
require_relative "../deprecate"
Expand Down
1 change: 1 addition & 0 deletions lib/rubygems/commands/rdoc_command.rb
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
# frozen_string_literal: true

require_relative "../command"
require_relative "../version_option"
require_relative "../rdoc"
Expand Down
1 change: 1 addition & 0 deletions lib/rubygems/commands/search_command.rb
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
# frozen_string_literal: true

require_relative "../command"
require_relative "../query_utils"

Expand Down
1 change: 1 addition & 0 deletions lib/rubygems/commands/server_command.rb
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
# frozen_string_literal: true

require_relative "../command"

unless defined? Gem::Commands::ServerCommand
Expand Down
3 changes: 2 additions & 1 deletion lib/rubygems/commands/setup_command.rb
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
# frozen_string_literal: true

require_relative "../command"

##
Expand Down Expand Up @@ -244,7 +245,7 @@ def execute
def install_executables(bin_dir)
prog_mode = options[:prog_mode] || 0755

executables = { "gem" => "bin" }
executables = { "gem" => "exe" }
executables.each do |tool, path|
say "Installing #{tool} executable" if @verbose

Expand Down
1 change: 1 addition & 0 deletions lib/rubygems/commands/signin_command.rb
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
# frozen_string_literal: true

require_relative "../command"
require_relative "../gemcutter_utilities"

Expand Down
1 change: 1 addition & 0 deletions lib/rubygems/commands/signout_command.rb
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
# frozen_string_literal: true

require_relative "../command"

class Gem::Commands::SignoutCommand < Gem::Command
Expand Down
1 change: 1 addition & 0 deletions lib/rubygems/commands/sources_command.rb
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
# frozen_string_literal: true

require_relative "../command"
require_relative "../remote_fetcher"
require_relative "../spec_fetcher"
Expand Down
1 change: 1 addition & 0 deletions lib/rubygems/commands/specification_command.rb
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
# frozen_string_literal: true

require_relative "../command"
require_relative "../local_remote_options"
require_relative "../version_option"
Expand Down
1 change: 1 addition & 0 deletions lib/rubygems/commands/stale_command.rb
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
# frozen_string_literal: true

require_relative "../command"

class Gem::Commands::StaleCommand < Gem::Command
Expand Down
1 change: 1 addition & 0 deletions lib/rubygems/commands/uninstall_command.rb
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
# frozen_string_literal: true

require_relative "../command"
require_relative "../version_option"
require_relative "../uninstaller"
Expand Down
1 change: 1 addition & 0 deletions lib/rubygems/commands/unpack_command.rb
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
# frozen_string_literal: true

require_relative "../command"
require_relative "../version_option"
require_relative "../security_option"
Expand Down
1 change: 1 addition & 0 deletions lib/rubygems/commands/update_command.rb
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
# frozen_string_literal: true

require_relative "../command"
require_relative "../command_manager"
require_relative "../dependency_installer"
Expand Down
1 change: 1 addition & 0 deletions lib/rubygems/commands/which_command.rb
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
# frozen_string_literal: true

require_relative "../command"

class Gem::Commands::WhichCommand < Gem::Command
Expand Down
1 change: 1 addition & 0 deletions lib/rubygems/commands/yank_command.rb
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
# frozen_string_literal: true

require_relative "../command"
require_relative "../local_remote_options"
require_relative "../version_option"
Expand Down
1 change: 1 addition & 0 deletions lib/rubygems/config_file.rb
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
# frozen_string_literal: true

#--
# Copyright 2006 by Chad Fowler, Rich Kilmer, Jim Weirich and others.
# All rights reserved.
Expand Down

0 comments on commit af007a3

Please sign in to comment.