Skip to content

Commit

Permalink
Merge RubyGems-3.4.16 and Bundler-2.4.16
Browse files Browse the repository at this point in the history
  • Loading branch information
hsbt authored and nagachika committed Aug 29, 2023
1 parent e44e42c commit 829048d
Show file tree
Hide file tree
Showing 45 changed files with 228 additions and 65 deletions.
7 changes: 4 additions & 3 deletions lib/bundler/definition.rb
Expand Up @@ -394,8 +394,8 @@ def ensure_equivalent_gemfile_and_lockfile(explicit_flag = false)
lock_source = lock_dep.source || sources.default_source
next if lock_source.include?(gemfile_source)

gemfile_source_name = dep.source ? gemfile_source.identifier : "no specified source"
lockfile_source_name = lock_dep.source ? lock_source.identifier : "no specified source"
gemfile_source_name = dep.source ? gemfile_source.to_gemfile : "no specified source"
lockfile_source_name = lock_dep.source ? lock_source.to_gemfile : "no specified source"
changed << "* #{name} from `#{lockfile_source_name}` to `#{gemfile_source_name}`"
end

Expand Down Expand Up @@ -700,7 +700,7 @@ def check_missing_lockfile_dep
return if @dependency_changes

current_dependencies.find do |d|
@locked_specs[d.name].empty?
@locked_specs[d.name].empty? && d.name != "bundler"
end&.name
end

Expand Down Expand Up @@ -941,6 +941,7 @@ def remove_ruby_from_platforms_if_necessary!(dependencies)
Bundler.local_platform == Gem::Platform::RUBY ||
!platforms.include?(Gem::Platform::RUBY) ||
(@new_platform && platforms.last == Gem::Platform::RUBY) ||
@path_changes ||
@dependency_changes ||
!@originally_locked_specs.incomplete_ruby_specs?(dependencies)

Expand Down
2 changes: 1 addition & 1 deletion lib/bundler/man/bundle-add.1
@@ -1,7 +1,7 @@
.\" generated with Ronn/v0.7.3
.\" http://github.com/rtomayko/ronn/tree/0.7.3
.
.TH "BUNDLE\-ADD" "1" "February 2023" "" ""
.TH "BUNDLE\-ADD" "1" "July 2023" "" ""
.
.SH "NAME"
\fBbundle\-add\fR \- Add gem to the Gemfile and run bundle install
Expand Down
2 changes: 1 addition & 1 deletion lib/bundler/man/bundle-binstubs.1
@@ -1,7 +1,7 @@
.\" generated with Ronn/v0.7.3
.\" http://github.com/rtomayko/ronn/tree/0.7.3
.
.TH "BUNDLE\-BINSTUBS" "1" "February 2023" "" ""
.TH "BUNDLE\-BINSTUBS" "1" "July 2023" "" ""
.
.SH "NAME"
\fBbundle\-binstubs\fR \- Install the binstubs of the listed gems
Expand Down
2 changes: 1 addition & 1 deletion lib/bundler/man/bundle-cache.1
@@ -1,7 +1,7 @@
.\" generated with Ronn/v0.7.3
.\" http://github.com/rtomayko/ronn/tree/0.7.3
.
.TH "BUNDLE\-CACHE" "1" "February 2023" "" ""
.TH "BUNDLE\-CACHE" "1" "July 2023" "" ""
.
.SH "NAME"
\fBbundle\-cache\fR \- Package your needed \fB\.gem\fR files into your application
Expand Down
2 changes: 1 addition & 1 deletion lib/bundler/man/bundle-check.1
@@ -1,7 +1,7 @@
.\" generated with Ronn/v0.7.3
.\" http://github.com/rtomayko/ronn/tree/0.7.3
.
.TH "BUNDLE\-CHECK" "1" "February 2023" "" ""
.TH "BUNDLE\-CHECK" "1" "July 2023" "" ""
.
.SH "NAME"
\fBbundle\-check\fR \- Verifies if dependencies are satisfied by installed gems
Expand Down
2 changes: 1 addition & 1 deletion lib/bundler/man/bundle-clean.1
@@ -1,7 +1,7 @@
.\" generated with Ronn/v0.7.3
.\" http://github.com/rtomayko/ronn/tree/0.7.3
.
.TH "BUNDLE\-CLEAN" "1" "February 2023" "" ""
.TH "BUNDLE\-CLEAN" "1" "July 2023" "" ""
.
.SH "NAME"
\fBbundle\-clean\fR \- Cleans up unused gems in your bundler directory
Expand Down
2 changes: 1 addition & 1 deletion lib/bundler/man/bundle-config.1
@@ -1,7 +1,7 @@
.\" generated with Ronn/v0.7.3
.\" http://github.com/rtomayko/ronn/tree/0.7.3
.
.TH "BUNDLE\-CONFIG" "1" "February 2023" "" ""
.TH "BUNDLE\-CONFIG" "1" "July 2023" "" ""
.
.SH "NAME"
\fBbundle\-config\fR \- Set bundler configuration options
Expand Down
2 changes: 1 addition & 1 deletion lib/bundler/man/bundle-console.1
@@ -1,7 +1,7 @@
.\" generated with Ronn/v0.7.3
.\" http://github.com/rtomayko/ronn/tree/0.7.3
.
.TH "BUNDLE\-CONSOLE" "1" "February 2023" "" ""
.TH "BUNDLE\-CONSOLE" "1" "July 2023" "" ""
.
.SH "NAME"
\fBbundle\-console\fR \- Deprecated way to open an IRB session with the bundle pre\-loaded
Expand Down
2 changes: 1 addition & 1 deletion lib/bundler/man/bundle-doctor.1
@@ -1,7 +1,7 @@
.\" generated with Ronn/v0.7.3
.\" http://github.com/rtomayko/ronn/tree/0.7.3
.
.TH "BUNDLE\-DOCTOR" "1" "February 2023" "" ""
.TH "BUNDLE\-DOCTOR" "1" "July 2023" "" ""
.
.SH "NAME"
\fBbundle\-doctor\fR \- Checks the bundle for common problems
Expand Down
2 changes: 1 addition & 1 deletion lib/bundler/man/bundle-exec.1
@@ -1,7 +1,7 @@
.\" generated with Ronn/v0.7.3
.\" http://github.com/rtomayko/ronn/tree/0.7.3
.
.TH "BUNDLE\-EXEC" "1" "February 2023" "" ""
.TH "BUNDLE\-EXEC" "1" "July 2023" "" ""
.
.SH "NAME"
\fBbundle\-exec\fR \- Execute a command in the context of the bundle
Expand Down
2 changes: 1 addition & 1 deletion lib/bundler/man/bundle-gem.1
@@ -1,7 +1,7 @@
.\" generated with Ronn/v0.7.3
.\" http://github.com/rtomayko/ronn/tree/0.7.3
.
.TH "BUNDLE\-GEM" "1" "February 2023" "" ""
.TH "BUNDLE\-GEM" "1" "July 2023" "" ""
.
.SH "NAME"
\fBbundle\-gem\fR \- Generate a project skeleton for creating a rubygem
Expand Down
2 changes: 1 addition & 1 deletion lib/bundler/man/bundle-help.1
@@ -1,7 +1,7 @@
.\" generated with Ronn/v0.7.3
.\" http://github.com/rtomayko/ronn/tree/0.7.3
.
.TH "BUNDLE\-HELP" "1" "February 2023" "" ""
.TH "BUNDLE\-HELP" "1" "July 2023" "" ""
.
.SH "NAME"
\fBbundle\-help\fR \- Displays detailed help for each subcommand
Expand Down
2 changes: 1 addition & 1 deletion lib/bundler/man/bundle-info.1
@@ -1,7 +1,7 @@
.\" generated with Ronn/v0.7.3
.\" http://github.com/rtomayko/ronn/tree/0.7.3
.
.TH "BUNDLE\-INFO" "1" "February 2023" "" ""
.TH "BUNDLE\-INFO" "1" "July 2023" "" ""
.
.SH "NAME"
\fBbundle\-info\fR \- Show information for the given gem in your bundle
Expand Down
2 changes: 1 addition & 1 deletion lib/bundler/man/bundle-init.1
@@ -1,7 +1,7 @@
.\" generated with Ronn/v0.7.3
.\" http://github.com/rtomayko/ronn/tree/0.7.3
.
.TH "BUNDLE\-INIT" "1" "February 2023" "" ""
.TH "BUNDLE\-INIT" "1" "July 2023" "" ""
.
.SH "NAME"
\fBbundle\-init\fR \- Generates a Gemfile into the current working directory
Expand Down
2 changes: 1 addition & 1 deletion lib/bundler/man/bundle-inject.1
@@ -1,7 +1,7 @@
.\" generated with Ronn/v0.7.3
.\" http://github.com/rtomayko/ronn/tree/0.7.3
.
.TH "BUNDLE\-INJECT" "1" "February 2023" "" ""
.TH "BUNDLE\-INJECT" "1" "July 2023" "" ""
.
.SH "NAME"
\fBbundle\-inject\fR \- Add named gem(s) with version requirements to Gemfile
Expand Down
2 changes: 1 addition & 1 deletion lib/bundler/man/bundle-install.1
@@ -1,7 +1,7 @@
.\" generated with Ronn/v0.7.3
.\" http://github.com/rtomayko/ronn/tree/0.7.3
.
.TH "BUNDLE\-INSTALL" "1" "February 2023" "" ""
.TH "BUNDLE\-INSTALL" "1" "July 2023" "" ""
.
.SH "NAME"
\fBbundle\-install\fR \- Install the dependencies specified in your Gemfile
Expand Down
2 changes: 1 addition & 1 deletion lib/bundler/man/bundle-list.1
@@ -1,7 +1,7 @@
.\" generated with Ronn/v0.7.3
.\" http://github.com/rtomayko/ronn/tree/0.7.3
.
.TH "BUNDLE\-LIST" "1" "February 2023" "" ""
.TH "BUNDLE\-LIST" "1" "July 2023" "" ""
.
.SH "NAME"
\fBbundle\-list\fR \- List all the gems in the bundle
Expand Down
2 changes: 1 addition & 1 deletion lib/bundler/man/bundle-lock.1
@@ -1,7 +1,7 @@
.\" generated with Ronn/v0.7.3
.\" http://github.com/rtomayko/ronn/tree/0.7.3
.
.TH "BUNDLE\-LOCK" "1" "February 2023" "" ""
.TH "BUNDLE\-LOCK" "1" "July 2023" "" ""
.
.SH "NAME"
\fBbundle\-lock\fR \- Creates / Updates a lockfile without installing
Expand Down
2 changes: 1 addition & 1 deletion lib/bundler/man/bundle-open.1
@@ -1,7 +1,7 @@
.\" generated with Ronn/v0.7.3
.\" http://github.com/rtomayko/ronn/tree/0.7.3
.
.TH "BUNDLE\-OPEN" "1" "February 2023" "" ""
.TH "BUNDLE\-OPEN" "1" "July 2023" "" ""
.
.SH "NAME"
\fBbundle\-open\fR \- Opens the source directory for a gem in your bundle
Expand Down
2 changes: 1 addition & 1 deletion lib/bundler/man/bundle-outdated.1
@@ -1,7 +1,7 @@
.\" generated with Ronn/v0.7.3
.\" http://github.com/rtomayko/ronn/tree/0.7.3
.
.TH "BUNDLE\-OUTDATED" "1" "February 2023" "" ""
.TH "BUNDLE\-OUTDATED" "1" "July 2023" "" ""
.
.SH "NAME"
\fBbundle\-outdated\fR \- List installed gems with newer versions available
Expand Down
2 changes: 1 addition & 1 deletion lib/bundler/man/bundle-platform.1
@@ -1,7 +1,7 @@
.\" generated with Ronn/v0.7.3
.\" http://github.com/rtomayko/ronn/tree/0.7.3
.
.TH "BUNDLE\-PLATFORM" "1" "February 2023" "" ""
.TH "BUNDLE\-PLATFORM" "1" "July 2023" "" ""
.
.SH "NAME"
\fBbundle\-platform\fR \- Displays platform compatibility information
Expand Down
2 changes: 1 addition & 1 deletion lib/bundler/man/bundle-plugin.1
@@ -1,7 +1,7 @@
.\" generated with Ronn/v0.7.3
.\" http://github.com/rtomayko/ronn/tree/0.7.3
.
.TH "BUNDLE\-PLUGIN" "1" "February 2023" "" ""
.TH "BUNDLE\-PLUGIN" "1" "July 2023" "" ""
.
.SH "NAME"
\fBbundle\-plugin\fR \- Manage Bundler plugins
Expand Down
2 changes: 1 addition & 1 deletion lib/bundler/man/bundle-pristine.1
@@ -1,7 +1,7 @@
.\" generated with Ronn/v0.7.3
.\" http://github.com/rtomayko/ronn/tree/0.7.3
.
.TH "BUNDLE\-PRISTINE" "1" "February 2023" "" ""
.TH "BUNDLE\-PRISTINE" "1" "July 2023" "" ""
.
.SH "NAME"
\fBbundle\-pristine\fR \- Restores installed gems to their pristine condition
Expand Down
2 changes: 1 addition & 1 deletion lib/bundler/man/bundle-remove.1
@@ -1,7 +1,7 @@
.\" generated with Ronn/v0.7.3
.\" http://github.com/rtomayko/ronn/tree/0.7.3
.
.TH "BUNDLE\-REMOVE" "1" "February 2023" "" ""
.TH "BUNDLE\-REMOVE" "1" "July 2023" "" ""
.
.SH "NAME"
\fBbundle\-remove\fR \- Removes gems from the Gemfile
Expand Down
2 changes: 1 addition & 1 deletion lib/bundler/man/bundle-show.1
@@ -1,7 +1,7 @@
.\" generated with Ronn/v0.7.3
.\" http://github.com/rtomayko/ronn/tree/0.7.3
.
.TH "BUNDLE\-SHOW" "1" "February 2023" "" ""
.TH "BUNDLE\-SHOW" "1" "July 2023" "" ""
.
.SH "NAME"
\fBbundle\-show\fR \- Shows all the gems in your bundle, or the path to a gem
Expand Down
2 changes: 1 addition & 1 deletion lib/bundler/man/bundle-update.1
@@ -1,7 +1,7 @@
.\" generated with Ronn/v0.7.3
.\" http://github.com/rtomayko/ronn/tree/0.7.3
.
.TH "BUNDLE\-UPDATE" "1" "February 2023" "" ""
.TH "BUNDLE\-UPDATE" "1" "July 2023" "" ""
.
.SH "NAME"
\fBbundle\-update\fR \- Update your gems to the latest available versions
Expand Down
2 changes: 1 addition & 1 deletion lib/bundler/man/bundle-version.1
@@ -1,7 +1,7 @@
.\" generated with Ronn/v0.7.3
.\" http://github.com/rtomayko/ronn/tree/0.7.3
.
.TH "BUNDLE\-VERSION" "1" "February 2023" "" ""
.TH "BUNDLE\-VERSION" "1" "July 2023" "" ""
.
.SH "NAME"
\fBbundle\-version\fR \- Prints Bundler version information
Expand Down
2 changes: 1 addition & 1 deletion lib/bundler/man/bundle-viz.1
@@ -1,7 +1,7 @@
.\" generated with Ronn/v0.7.3
.\" http://github.com/rtomayko/ronn/tree/0.7.3
.
.TH "BUNDLE\-VIZ" "1" "February 2023" "" ""
.TH "BUNDLE\-VIZ" "1" "July 2023" "" ""
.
.SH "NAME"
\fBbundle\-viz\fR \- Generates a visual dependency graph for your Gemfile
Expand Down
2 changes: 1 addition & 1 deletion lib/bundler/man/bundle.1
@@ -1,7 +1,7 @@
.\" generated with Ronn/v0.7.3
.\" http://github.com/rtomayko/ronn/tree/0.7.3
.
.TH "BUNDLE" "1" "February 2023" "" ""
.TH "BUNDLE" "1" "July 2023" "" ""
.
.SH "NAME"
\fBbundle\fR \- Ruby Dependency Management
Expand Down
4 changes: 2 additions & 2 deletions lib/bundler/man/gemfile.5
@@ -1,7 +1,7 @@
.\" generated with Ronn/v0.7.3
.\" http://github.com/rtomayko/ronn/tree/0.7.3
.
.TH "GEMFILE" "5" "February 2023" "" ""
.TH "GEMFILE" "5" "July 2023" "" ""
.
.SH "NAME"
\fBGemfile\fR \- A format for describing gem dependencies for Ruby programs
Expand Down Expand Up @@ -702,7 +702,7 @@ If you wish to use Bundler to help install dependencies for a gem while it is be
The \fBgemspec\fR method adds any runtime dependencies as gem requirements in the default group\. It also adds development dependencies as gem requirements in the \fBdevelopment\fR group\. Finally, it adds a gem requirement on your project (\fBpath: \'\.\'\fR)\. In conjunction with \fBBundler\.setup\fR, this allows you to require project files in your test code as you would if the project were installed as a gem; you need not manipulate the load path manually or require project files via relative paths\.
.
.P
The \fBgemspec\fR method supports optional \fB:path\fR, \fB:glob\fR, \fB:name\fR, and \fB:development_group\fR options, which control where bundler looks for the \fB\.gemspec\fR, the glob it uses to look for the gemspec (defaults to: "{,\fI,\fR/*}\.gemspec"), what named \fB\.gemspec\fR it uses (if more than one is present), and which group development dependencies are included in\.
The \fBgemspec\fR method supports optional \fB:path\fR, \fB:glob\fR, \fB:name\fR, and \fB:development_group\fR options, which control where bundler looks for the \fB\.gemspec\fR, the glob it uses to look for the gemspec (defaults to: \fB{,*,*/*}\.gemspec\fR), what named \fB\.gemspec\fR it uses (if more than one is present), and which group development dependencies are included in\.
.
.P
When a \fBgemspec\fR dependency encounters version conflicts during resolution, the local version under development will always be selected \-\- even if there are remote versions that better match other requirements for the \fBgemspec\fR gem\.
Expand Down
2 changes: 1 addition & 1 deletion lib/bundler/man/gemfile.5.ronn
Expand Up @@ -514,7 +514,7 @@ paths.

The `gemspec` method supports optional `:path`, `:glob`, `:name`, and `:development_group`
options, which control where bundler looks for the `.gemspec`, the glob it uses to look
for the gemspec (defaults to: "{,*,*/*}.gemspec"), what named `.gemspec` it uses
for the gemspec (defaults to: `{,*,*/*}.gemspec`), what named `.gemspec` it uses
(if more than one is present), and which group development dependencies are included in.

When a `gemspec` dependency encounters version conflicts during resolution, the
Expand Down
15 changes: 14 additions & 1 deletion lib/bundler/source/git.rb
Expand Up @@ -46,6 +46,14 @@ def to_lock
out << " specs:\n"
end

def to_gemfile
specifiers = %w[ref branch tag submodules glob].map do |opt|
"#{opt}: #{options[opt]}" if options[opt]
end

uri_with_specifiers(specifiers)
end

def hash
[self.class, uri, ref, branch, name, version, glob, submodules].hash
end
Expand Down Expand Up @@ -80,7 +88,12 @@ def to_s
""
end

specifiers = [rev, glob_for_display].compact
uri_with_specifiers([rev, glob_for_display])
end

def uri_with_specifiers(specifiers)
specifiers.compact!

suffix =
if specifiers.any?
" (#{specifiers.join(", ")})"
Expand Down

0 comments on commit 829048d

Please sign in to comment.