bundler 2.3.8 → 2.3.11

Sign up to get free protection for your applications and to get access to all the features.
Files changed (53) hide show
  1. checksums.yaml +4 -4
  2. data/CHANGELOG.md +31 -0
  3. data/exe/bundle +1 -1
  4. data/exe/bundler +1 -1
  5. data/lib/bundler/build_metadata.rb +3 -3
  6. data/lib/bundler/cli/common.rb +1 -1
  7. data/lib/bundler/cli/info.rb +1 -1
  8. data/lib/bundler/cli/init.rb +1 -1
  9. data/lib/bundler/cli/show.rb +1 -1
  10. data/lib/bundler/cli.rb +4 -5
  11. data/lib/bundler/definition.rb +1 -1
  12. data/lib/bundler/fetcher.rb +1 -0
  13. data/lib/bundler/installer.rb +2 -2
  14. data/lib/bundler/man/bundle-add.1 +1 -1
  15. data/lib/bundler/man/bundle-binstubs.1 +1 -1
  16. data/lib/bundler/man/bundle-cache.1 +1 -1
  17. data/lib/bundler/man/bundle-check.1 +1 -1
  18. data/lib/bundler/man/bundle-clean.1 +1 -1
  19. data/lib/bundler/man/bundle-config.1 +4 -4
  20. data/lib/bundler/man/bundle-config.1.ronn +8 -6
  21. data/lib/bundler/man/bundle-doctor.1 +1 -1
  22. data/lib/bundler/man/bundle-exec.1 +1 -1
  23. data/lib/bundler/man/bundle-gem.1 +1 -1
  24. data/lib/bundler/man/bundle-info.1 +1 -1
  25. data/lib/bundler/man/bundle-init.1 +1 -1
  26. data/lib/bundler/man/bundle-inject.1 +1 -1
  27. data/lib/bundler/man/bundle-install.1 +1 -1
  28. data/lib/bundler/man/bundle-list.1 +1 -1
  29. data/lib/bundler/man/bundle-lock.1 +1 -1
  30. data/lib/bundler/man/bundle-open.1 +1 -1
  31. data/lib/bundler/man/bundle-outdated.1 +3 -10
  32. data/lib/bundler/man/bundle-outdated.1.ronn +1 -10
  33. data/lib/bundler/man/bundle-platform.1 +1 -1
  34. data/lib/bundler/man/bundle-pristine.1 +1 -1
  35. data/lib/bundler/man/bundle-remove.1 +1 -1
  36. data/lib/bundler/man/bundle-show.1 +1 -1
  37. data/lib/bundler/man/bundle-update.1 +1 -1
  38. data/lib/bundler/man/bundle-viz.1 +1 -1
  39. data/lib/bundler/man/bundle.1 +1 -1
  40. data/lib/bundler/man/gemfile.5 +1 -1
  41. data/lib/bundler/plugin/api/source.rb +0 -6
  42. data/lib/bundler/rubygems_ext.rb +12 -5
  43. data/lib/bundler/shared_helpers.rb +4 -4
  44. data/lib/bundler/source/metadata.rb +1 -1
  45. data/lib/bundler/templates/Executable +2 -4
  46. data/lib/bundler/templates/Executable.bundler +1 -1
  47. data/lib/bundler/templates/Executable.standalone +2 -4
  48. data/lib/bundler/templates/newgem/README.md.tt +3 -9
  49. data/lib/bundler/templates/newgem/github/workflows/main.yml.tt +1 -1
  50. data/lib/bundler/templates/newgem/newgem.gemspec.tt +1 -1
  51. data/lib/bundler/version.rb +1 -1
  52. data/lib/bundler.rb +2 -2
  53. metadata +3 -3
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 1cd22c44b333d5ee1b022cb80963f4d0df33f5cc6b7c613d96cdaad4fcd56e7a
4
- data.tar.gz: 17f7126e50ad56974f984a26c6cfd616f13bbf5af346e42fad71cc58ab23cf4e
3
+ metadata.gz: 0c24b409a733f2efbfde08b4f1ca210538a377ad365148d41b37d5802fa4040c
4
+ data.tar.gz: 18a27b9facc0f42594d97fe40dfe8fcf34d4128048d4e208b5af5a9670c676b9
5
5
  SHA512:
6
- metadata.gz: 94b9e0b6b4b32b1021ab2ab6b5ba9a9578b51b3d7c4bf76c729e238a1332800ac72d37a4500119efa446b7e9ddecb816b5db51e220d5d888f0a727b5d89013b4
7
- data.tar.gz: 2ef45e7cef63d540d067d55692c6737b02cd7c6ded604a6a027bc909c29503377a07d76750b58a348c1a4a58b3db3a6e75663cc7ada764569a708091ca4c7ee0
6
+ metadata.gz: 4938ee9af4788a04ec40959302c746da584b9694004d7b7d76896f7a6e588abf11f05d819678d7ea0199e78c1526cafac4a9aea1edc9ffb72db6f19a6a102900
7
+ data.tar.gz: bf517233851defccbbc3cbc0d2fbc7d0ab0828dc3c558c5d503fc7a08b3a04c907b19be4a446415427fb6f56a062e5ed9a3ffcedf67b5acc308489124f4aadd3
data/CHANGELOG.md CHANGED
@@ -1,3 +1,34 @@
1
+ # 2.3.11 (April 7, 2022)
2
+
3
+ ## Enhancements:
4
+
5
+ - Bump actions/checkout to 3 in bundler gem template [#5445](https://github.com/rubygems/rubygems/pull/5445)
6
+ - Prefer `__dir__` to `__FILE__` [#5444](https://github.com/rubygems/rubygems/pull/5444)
7
+
8
+ ## Documentation:
9
+
10
+ - Update bundler documentation to reflect bundle config scope changes [#5441](https://github.com/rubygems/rubygems/pull/5441)
11
+
12
+ # 2.3.10 (March 23, 2022)
13
+
14
+ ## Enhancements:
15
+
16
+ - More helpful reporting of marshal loading issues [#5416](https://github.com/rubygems/rubygems/pull/5416)
17
+ - Report Github Actions CI provider within user agent string [#5400](https://github.com/rubygems/rubygems/pull/5400)
18
+ - Remove extra closing bracket in version warning [#5397](https://github.com/rubygems/rubygems/pull/5397)
19
+
20
+ # 2.3.9 (March 9, 2022)
21
+
22
+ ## Enhancements:
23
+
24
+ - Add newline to validate_platforms! message when platform is missing [#5353](https://github.com/rubygems/rubygems/pull/5353)
25
+ - Suggest quicker `bundle add` for installation in `README.md` generated by `bundle gem` [#5337](https://github.com/rubygems/rubygems/pull/5337)
26
+ - Make `--strict` flag of `update` and `outdated` commands consistent [#5379](https://github.com/rubygems/rubygems/pull/5379)
27
+
28
+ ## Bug fixes:
29
+
30
+ - Fix regression when activating gem executables caused by Bundler monkey patches to RubyGems [#5386](https://github.com/rubygems/rubygems/pull/5386)
31
+
1
32
  # 2.3.8 (February 23, 2022)
2
33
 
3
34
  ## Bug fixes:
data/exe/bundle CHANGED
@@ -20,7 +20,7 @@ gem "bundler", Bundler::VERSION if Gem.rubygems_version < Gem::Version.new("2.6.
20
20
 
21
21
  if Gem.rubygems_version < Gem::Version.new("3.2.3") && Gem.ruby_version < Gem::Version.new("2.6.a") && !ENV["BUNDLER_NO_OLD_RUBYGEMS_WARNING"]
22
22
  Bundler.ui.warn \
23
- "Your RubyGems version (#{Gem::VERSION})) has a bug that prevents " \
23
+ "Your RubyGems version (#{Gem::VERSION}) has a bug that prevents " \
24
24
  "`required_ruby_version` from working for Bundler. Any scripts that use " \
25
25
  "`gem install bundler` will break as soon as Bundler drops support for " \
26
26
  "your Ruby version. Please upgrade RubyGems to avoid future breakage " \
data/exe/bundler CHANGED
@@ -1,4 +1,4 @@
1
1
  #!/usr/bin/env ruby
2
2
  # frozen_string_literal: true
3
3
 
4
- load File.expand_path("../bundle", __FILE__)
4
+ load File.expand_path("bundle", __dir__)
@@ -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 = "2022-02-23".freeze
8
- @git_commit_sha = "4e812b9ca5".freeze
7
+ @built_at = "2022-04-07".freeze
8
+ @git_commit_sha = "9b6c5a801a".freeze
9
9
  @release = true
10
10
  # end ivars
11
11
 
@@ -29,7 +29,7 @@ module Bundler
29
29
 
30
30
  # If Bundler has been installed without its .git directory and without a
31
31
  # commit instance variable then we can't determine its commits SHA.
32
- git_dir = File.join(File.expand_path("../../../..", __FILE__), ".git")
32
+ git_dir = File.expand_path("../../../.git", __dir__)
33
33
  if File.directory?(git_dir)
34
34
  return @git_commit_sha = Dir.chdir(git_dir) { `git rev-parse --short HEAD`.strip.freeze }
35
35
  end
@@ -109,7 +109,7 @@ module Bundler
109
109
 
110
110
  definition.gem_version_promoter.tap do |gvp|
111
111
  gvp.level = patch_level.first || :major
112
- gvp.strict = options[:strict] || options["update-strict"] || options["filter-strict"]
112
+ gvp.strict = options[:strict] || options["filter-strict"]
113
113
  end
114
114
  end
115
115
 
@@ -47,7 +47,7 @@ module Bundler
47
47
  def print_gem_path(spec)
48
48
  name = spec.name
49
49
  if name == "bundler"
50
- path = File.expand_path("../../../..", __FILE__)
50
+ path = File.expand_path("../../..", __dir__)
51
51
  else
52
52
  path = spec.full_gem_path
53
53
  if spec.deleted_gem?
@@ -32,7 +32,7 @@ module Bundler
32
32
  file << spec.to_gemfile
33
33
  end
34
34
  else
35
- FileUtils.cp(File.expand_path("../../templates/#{gemfile}", __FILE__), gemfile)
35
+ FileUtils.cp(File.expand_path("../templates/#{gemfile}", __dir__), gemfile)
36
36
  end
37
37
 
38
38
  puts "Writing new #{gemfile} to #{SharedHelpers.pwd}/#{gemfile}"
@@ -18,7 +18,7 @@ module Bundler
18
18
 
19
19
  if gem_name
20
20
  if gem_name == "bundler"
21
- path = File.expand_path("../../../..", __FILE__)
21
+ path = File.expand_path("../../..", __dir__)
22
22
  else
23
23
  spec = Bundler::CLI::Common.select_spec(gem_name, :regex_match)
24
24
  return unless spec
data/lib/bundler/cli.rb CHANGED
@@ -391,7 +391,7 @@ module Bundler
391
391
  are up to date, Bundler will exit with a status of 0. Otherwise, it will exit 1.
392
392
 
393
393
  For more information on patch level options (--major, --minor, --patch,
394
- --update-strict) see documentation on the same options on the update command.
394
+ --strict) see documentation on the same options on the update command.
395
395
  D
396
396
  method_option "group", :type => :string, :banner => "List gems from a specific group"
397
397
  method_option "groups", :type => :boolean, :banner => "List gems organized by groups"
@@ -399,10 +399,9 @@ module Bundler
399
399
  "Do not attempt to fetch gems remotely and use the gem cache instead"
400
400
  method_option "pre", :type => :boolean, :banner => "Check for newer pre-release gems"
401
401
  method_option "source", :type => :array, :banner => "Check against a specific source"
402
- strict_is_update = Bundler.feature_flag.forget_cli_options?
403
- method_option "filter-strict", :type => :boolean, :aliases => strict_is_update ? [] : %w[--strict], :banner =>
402
+ method_option "filter-strict", :type => :boolean, :banner =>
404
403
  "Only list newer versions allowed by your Gemfile requirements"
405
- method_option "update-strict", :type => :boolean, :aliases => strict_is_update ? %w[--strict] : [], :banner =>
404
+ method_option "strict", :type => :boolean, :aliases => "--update-strict", :banner =>
406
405
  "Strict conservative resolution, do not allow any gem to be updated past latest --patch | --minor | --major"
407
406
  method_option "minor", :type => :boolean, :banner => "Prefer updating only to next minor version"
408
407
  method_option "major", :type => :boolean, :banner => "Prefer updating to next major version (default)"
@@ -611,7 +610,7 @@ module Bundler
611
610
  private :gem
612
611
 
613
612
  def self.source_root
614
- File.expand_path(File.join(File.dirname(__FILE__), "templates"))
613
+ File.expand_path("templates", __dir__)
615
614
  end
616
615
 
617
616
  desc "clean [OPTIONS]", "Cleans up unused gems in your bundler directory", :hide => true
@@ -432,7 +432,7 @@ module Bundler
432
432
 
433
433
  raise ProductionError, "Your bundle only supports platforms #{@platforms.map(&:to_s)} " \
434
434
  "but your local platform is #{Bundler.local_platform}. " \
435
- "Add the current platform to the lockfile with `bundle lock --add-platform #{Bundler.local_platform}` and try again."
435
+ "Add the current platform to the lockfile with\n`bundle lock --add-platform #{Bundler.local_platform}` and try again."
436
436
  end
437
437
 
438
438
  def add_platform(platform)
@@ -226,6 +226,7 @@ module Bundler
226
226
  "GO_SERVER_URL" => "go",
227
227
  "SNAP_CI" => "snap",
228
228
  "GITLAB_CI" => "gitlab",
229
+ "GITHUB_ACTIONS" => "github",
229
230
  "CI_NAME" => ENV["CI_NAME"],
230
231
  "CI" => "ci",
231
232
  }
@@ -119,7 +119,7 @@ module Bundler
119
119
  relative_gemfile_path = relative_gemfile_path
120
120
  ruby_command = Thor::Util.ruby_command
121
121
  ruby_command = ruby_command
122
- template_path = File.expand_path("../templates/Executable", __FILE__)
122
+ template_path = File.expand_path("templates/Executable", __dir__)
123
123
  if spec.name == "bundler"
124
124
  template_path += ".bundler"
125
125
  spec.executables = %(bundle)
@@ -172,7 +172,7 @@ module Bundler
172
172
  end
173
173
  standalone_path = Bundler.root.join(path).relative_path_from(bin_path)
174
174
  standalone_path = standalone_path
175
- template = File.read(File.expand_path("../templates/Executable.standalone", __FILE__))
175
+ template = File.read(File.expand_path("templates/Executable.standalone", __dir__))
176
176
  ruby_command = Thor::Util.ruby_command
177
177
  ruby_command = ruby_command
178
178
 
@@ -1,7 +1,7 @@
1
1
  .\" generated with Ronn/v0.7.3
2
2
  .\" http://github.com/rtomayko/ronn/tree/0.7.3
3
3
  .
4
- .TH "BUNDLE\-ADD" "1" "February 2022" "" ""
4
+ .TH "BUNDLE\-ADD" "1" "March 2022" "" ""
5
5
  .
6
6
  .SH "NAME"
7
7
  \fBbundle\-add\fR \- Add gem to the Gemfile and run bundle install
@@ -1,7 +1,7 @@
1
1
  .\" generated with Ronn/v0.7.3
2
2
  .\" http://github.com/rtomayko/ronn/tree/0.7.3
3
3
  .
4
- .TH "BUNDLE\-BINSTUBS" "1" "February 2022" "" ""
4
+ .TH "BUNDLE\-BINSTUBS" "1" "March 2022" "" ""
5
5
  .
6
6
  .SH "NAME"
7
7
  \fBbundle\-binstubs\fR \- Install the binstubs of the listed gems
@@ -1,7 +1,7 @@
1
1
  .\" generated with Ronn/v0.7.3
2
2
  .\" http://github.com/rtomayko/ronn/tree/0.7.3
3
3
  .
4
- .TH "BUNDLE\-CACHE" "1" "February 2022" "" ""
4
+ .TH "BUNDLE\-CACHE" "1" "March 2022" "" ""
5
5
  .
6
6
  .SH "NAME"
7
7
  \fBbundle\-cache\fR \- Package your needed \fB\.gem\fR files into your application
@@ -1,7 +1,7 @@
1
1
  .\" generated with Ronn/v0.7.3
2
2
  .\" http://github.com/rtomayko/ronn/tree/0.7.3
3
3
  .
4
- .TH "BUNDLE\-CHECK" "1" "February 2022" "" ""
4
+ .TH "BUNDLE\-CHECK" "1" "March 2022" "" ""
5
5
  .
6
6
  .SH "NAME"
7
7
  \fBbundle\-check\fR \- Verifies if dependencies are satisfied by installed gems
@@ -1,7 +1,7 @@
1
1
  .\" generated with Ronn/v0.7.3
2
2
  .\" http://github.com/rtomayko/ronn/tree/0.7.3
3
3
  .
4
- .TH "BUNDLE\-CLEAN" "1" "February 2022" "" ""
4
+ .TH "BUNDLE\-CLEAN" "1" "March 2022" "" ""
5
5
  .
6
6
  .SH "NAME"
7
7
  \fBbundle\-clean\fR \- Cleans up unused gems in your bundler directory
@@ -1,7 +1,7 @@
1
1
  .\" generated with Ronn/v0.7.3
2
2
  .\" http://github.com/rtomayko/ronn/tree/0.7.3
3
3
  .
4
- .TH "BUNDLE\-CONFIG" "1" "February 2022" "" ""
4
+ .TH "BUNDLE\-CONFIG" "1" "March 2022" "" ""
5
5
  .
6
6
  .SH "NAME"
7
7
  \fBbundle\-config\fR \- Set bundler configuration options
@@ -36,13 +36,13 @@ Executing \fBbundle config list\fR with will print a list of all bundler configu
36
36
  Executing \fBbundle config get <name>\fR will print the value of that configuration setting, and where it was set\.
37
37
  .
38
38
  .P
39
- Executing \fBbundle config set <name> <value>\fR will set that configuration to the value specified for all bundles executed as the current user\. The configuration will be stored in \fB~/\.bundle/config\fR\. If \fIname\fR already is set, \fIname\fR will be overridden and user will be warned\.
39
+ Executing \fBbundle config set <name> <value>\fR defaults to setting \fBlocal\fR configuration if executing from within a local application, otherwise it will set \fBglobal\fR configuration\. See \fB\-\-local\fR and \fB\-\-global\fR options below\.
40
40
  .
41
41
  .P
42
- Executing \fBbundle config set \-\-global <name> <value>\fR works the same as above\.
42
+ Executing \fBbundle config set \-\-local <name> <value>\fR will set that configuration in the directory for the local application\. The configuration will be stored in \fB<project_root>/\.bundle/config\fR\. If \fBBUNDLE_APP_CONFIG\fR is set, the configuration will be stored in \fB$BUNDLE_APP_CONFIG/config\fR\.
43
43
  .
44
44
  .P
45
- Executing \fBbundle config set \-\-local <name> <value>\fR will set that configuration in the directory for the local application\. The configuration will be stored in \fB<project_root>/\.bundle/config\fR\. If \fBBUNDLE_APP_CONFIG\fR is set, the configuration will be stored in \fB$BUNDLE_APP_CONFIG/config\fR\.
45
+ Executing \fBbundle config set \-\-global <name> <value>\fR will set that configuration to the value specified for all bundles executed as the current user\. The configuration will be stored in \fB~/\.bundle/config\fR\. If \fIname\fR already is set, \fIname\fR will be overridden and user will be warned\.
46
46
  .
47
47
  .P
48
48
  Executing \fBbundle config unset <name>\fR will delete the configuration in both local and global sources\.
@@ -23,18 +23,20 @@ was set.
23
23
  Executing `bundle config get <name>` will print the value of that configuration
24
24
  setting, and where it was set.
25
25
 
26
- Executing `bundle config set <name> <value>` will set that configuration to the
27
- value specified for all bundles executed as the current user. The configuration
28
- will be stored in `~/.bundle/config`. If <name> already is set, <name> will be
29
- overridden and user will be warned.
30
-
31
- Executing `bundle config set --global <name> <value>` works the same as above.
26
+ Executing `bundle config set <name> <value>` defaults to setting `local`
27
+ configuration if executing from within a local application, otherwise it will
28
+ set `global` configuration. See `--local` and `--global` options below.
32
29
 
33
30
  Executing `bundle config set --local <name> <value>` will set that configuration
34
31
  in the directory for the local application. The configuration will be stored in
35
32
  `<project_root>/.bundle/config`. If `BUNDLE_APP_CONFIG` is set, the configuration
36
33
  will be stored in `$BUNDLE_APP_CONFIG/config`.
37
34
 
35
+ Executing `bundle config set --global <name> <value>` will set that
36
+ configuration to the value specified for all bundles executed as the current
37
+ user. The configuration will be stored in `~/.bundle/config`. If <name> already
38
+ is set, <name> will be overridden and user will be warned.
39
+
38
40
  Executing `bundle config unset <name>` will delete the configuration in both
39
41
  local and global sources.
40
42
 
@@ -1,7 +1,7 @@
1
1
  .\" generated with Ronn/v0.7.3
2
2
  .\" http://github.com/rtomayko/ronn/tree/0.7.3
3
3
  .
4
- .TH "BUNDLE\-DOCTOR" "1" "February 2022" "" ""
4
+ .TH "BUNDLE\-DOCTOR" "1" "March 2022" "" ""
5
5
  .
6
6
  .SH "NAME"
7
7
  \fBbundle\-doctor\fR \- Checks the bundle for common problems
@@ -1,7 +1,7 @@
1
1
  .\" generated with Ronn/v0.7.3
2
2
  .\" http://github.com/rtomayko/ronn/tree/0.7.3
3
3
  .
4
- .TH "BUNDLE\-EXEC" "1" "February 2022" "" ""
4
+ .TH "BUNDLE\-EXEC" "1" "March 2022" "" ""
5
5
  .
6
6
  .SH "NAME"
7
7
  \fBbundle\-exec\fR \- Execute a command in the context of the bundle
@@ -1,7 +1,7 @@
1
1
  .\" generated with Ronn/v0.7.3
2
2
  .\" http://github.com/rtomayko/ronn/tree/0.7.3
3
3
  .
4
- .TH "BUNDLE\-GEM" "1" "February 2022" "" ""
4
+ .TH "BUNDLE\-GEM" "1" "March 2022" "" ""
5
5
  .
6
6
  .SH "NAME"
7
7
  \fBbundle\-gem\fR \- Generate a project skeleton for creating a rubygem
@@ -1,7 +1,7 @@
1
1
  .\" generated with Ronn/v0.7.3
2
2
  .\" http://github.com/rtomayko/ronn/tree/0.7.3
3
3
  .
4
- .TH "BUNDLE\-INFO" "1" "February 2022" "" ""
4
+ .TH "BUNDLE\-INFO" "1" "March 2022" "" ""
5
5
  .
6
6
  .SH "NAME"
7
7
  \fBbundle\-info\fR \- Show information for the given gem in your bundle
@@ -1,7 +1,7 @@
1
1
  .\" generated with Ronn/v0.7.3
2
2
  .\" http://github.com/rtomayko/ronn/tree/0.7.3
3
3
  .
4
- .TH "BUNDLE\-INIT" "1" "February 2022" "" ""
4
+ .TH "BUNDLE\-INIT" "1" "March 2022" "" ""
5
5
  .
6
6
  .SH "NAME"
7
7
  \fBbundle\-init\fR \- Generates a Gemfile into the current working directory
@@ -1,7 +1,7 @@
1
1
  .\" generated with Ronn/v0.7.3
2
2
  .\" http://github.com/rtomayko/ronn/tree/0.7.3
3
3
  .
4
- .TH "BUNDLE\-INJECT" "1" "February 2022" "" ""
4
+ .TH "BUNDLE\-INJECT" "1" "March 2022" "" ""
5
5
  .
6
6
  .SH "NAME"
7
7
  \fBbundle\-inject\fR \- Add named gem(s) with version requirements to Gemfile
@@ -1,7 +1,7 @@
1
1
  .\" generated with Ronn/v0.7.3
2
2
  .\" http://github.com/rtomayko/ronn/tree/0.7.3
3
3
  .
4
- .TH "BUNDLE\-INSTALL" "1" "February 2022" "" ""
4
+ .TH "BUNDLE\-INSTALL" "1" "March 2022" "" ""
5
5
  .
6
6
  .SH "NAME"
7
7
  \fBbundle\-install\fR \- Install the dependencies specified in your Gemfile
@@ -1,7 +1,7 @@
1
1
  .\" generated with Ronn/v0.7.3
2
2
  .\" http://github.com/rtomayko/ronn/tree/0.7.3
3
3
  .
4
- .TH "BUNDLE\-LIST" "1" "February 2022" "" ""
4
+ .TH "BUNDLE\-LIST" "1" "March 2022" "" ""
5
5
  .
6
6
  .SH "NAME"
7
7
  \fBbundle\-list\fR \- List all the gems in the bundle
@@ -1,7 +1,7 @@
1
1
  .\" generated with Ronn/v0.7.3
2
2
  .\" http://github.com/rtomayko/ronn/tree/0.7.3
3
3
  .
4
- .TH "BUNDLE\-LOCK" "1" "February 2022" "" ""
4
+ .TH "BUNDLE\-LOCK" "1" "March 2022" "" ""
5
5
  .
6
6
  .SH "NAME"
7
7
  \fBbundle\-lock\fR \- Creates / Updates a lockfile without installing
@@ -1,7 +1,7 @@
1
1
  .\" generated with Ronn/v0.7.3
2
2
  .\" http://github.com/rtomayko/ronn/tree/0.7.3
3
3
  .
4
- .TH "BUNDLE\-OPEN" "1" "February 2022" "" ""
4
+ .TH "BUNDLE\-OPEN" "1" "March 2022" "" ""
5
5
  .
6
6
  .SH "NAME"
7
7
  \fBbundle\-open\fR \- Opens the source directory for a gem in your bundle
@@ -1,13 +1,13 @@
1
1
  .\" generated with Ronn/v0.7.3
2
2
  .\" http://github.com/rtomayko/ronn/tree/0.7.3
3
3
  .
4
- .TH "BUNDLE\-OUTDATED" "1" "February 2022" "" ""
4
+ .TH "BUNDLE\-OUTDATED" "1" "March 2022" "" ""
5
5
  .
6
6
  .SH "NAME"
7
7
  \fBbundle\-outdated\fR \- List installed gems with newer versions available
8
8
  .
9
9
  .SH "SYNOPSIS"
10
- \fBbundle outdated\fR [GEM] [\-\-local] [\-\-pre] [\-\-source] [\-\-strict] [\-\-parseable | \-\-porcelain] [\-\-group=GROUP] [\-\-groups] [\-\-update\-strict] [\-\-patch|\-\-minor|\-\-major] [\-\-filter\-major] [\-\-filter\-minor] [\-\-filter\-patch] [\-\-only\-explicit]
10
+ \fBbundle outdated\fR [GEM] [\-\-local] [\-\-pre] [\-\-source] [\-\-strict] [\-\-parseable | \-\-porcelain] [\-\-group=GROUP] [\-\-groups] [\-\-patch|\-\-minor|\-\-major] [\-\-filter\-major] [\-\-filter\-minor] [\-\-filter\-patch] [\-\-only\-explicit]
11
11
  .
12
12
  .SH "DESCRIPTION"
13
13
  Outdated lists the names and versions of gems that have a newer version available in the given source\. Calling outdated with [GEM [GEM]] will only check for newer versions of the given gems\. Prerelease gems are ignored by default\. If your gems are up to date, Bundler will exit with a status of 0\. Otherwise, it will exit 1\.
@@ -28,7 +28,7 @@ Check against a specific source\.
28
28
  .
29
29
  .TP
30
30
  \fB\-\-strict\fR
31
- Only list newer versions allowed by your Gemfile requirements\.
31
+ Only list newer versions allowed by your Gemfile requirements, also respecting conservative update flags (\-\-patch, \-\-minor, \-\-major)\.
32
32
  .
33
33
  .TP
34
34
  \fB\-\-parseable\fR, \fB\-\-porcelain\fR
@@ -43,10 +43,6 @@ List gems from a specific group\.
43
43
  List gems organized by groups\.
44
44
  .
45
45
  .TP
46
- \fB\-\-update\-strict\fR
47
- Strict conservative resolution, do not allow any gem to be updated past latest \-\-patch | \-\-minor| \-\-major\.
48
- .
49
- .TP
50
46
  \fB\-\-minor\fR
51
47
  Prefer updating only to next minor version\.
52
48
  .
@@ -77,9 +73,6 @@ Only list gems specified in your Gemfile, not their dependencies\.
77
73
  .SH "PATCH LEVEL OPTIONS"
78
74
  See bundle update(1) \fIbundle\-update\.1\.html\fR for details\.
79
75
  .
80
- .P
81
- One difference between the patch level options in \fBbundle update\fR and here is the \fB\-\-strict\fR option\. \fB\-\-strict\fR was already an option on outdated before the patch level options were added\. \fB\-\-strict\fR wasn\'t altered, and the \fB\-\-update\-strict\fR option on \fBoutdated\fR reflects what \fB\-\-strict\fR does on \fBbundle update\fR\.
82
- .
83
76
  .SH "FILTERING OUTPUT"
84
77
  The 3 filtering options do not affect the resolution of versions, merely what versions are shown in the output\.
85
78
  .
@@ -10,7 +10,6 @@ bundle-outdated(1) -- List installed gems with newer versions available
10
10
  [--parseable | --porcelain]
11
11
  [--group=GROUP]
12
12
  [--groups]
13
- [--update-strict]
14
13
  [--patch|--minor|--major]
15
14
  [--filter-major]
16
15
  [--filter-minor]
@@ -36,7 +35,7 @@ are up to date, Bundler will exit with a status of 0. Otherwise, it will exit 1.
36
35
  Check against a specific source.
37
36
 
38
37
  * `--strict`:
39
- Only list newer versions allowed by your Gemfile requirements.
38
+ Only list newer versions allowed by your Gemfile requirements, also respecting conservative update flags (--patch, --minor, --major).
40
39
 
41
40
  * `--parseable`, `--porcelain`:
42
41
  Use minimal formatting for more parseable output.
@@ -47,9 +46,6 @@ are up to date, Bundler will exit with a status of 0. Otherwise, it will exit 1.
47
46
  * `--groups`:
48
47
  List gems organized by groups.
49
48
 
50
- * `--update-strict`:
51
- Strict conservative resolution, do not allow any gem to be updated past latest --patch | --minor| --major.
52
-
53
49
  * `--minor`:
54
50
  Prefer updating only to next minor version.
55
51
 
@@ -75,11 +71,6 @@ are up to date, Bundler will exit with a status of 0. Otherwise, it will exit 1.
75
71
 
76
72
  See [bundle update(1)](bundle-update.1.html) for details.
77
73
 
78
- One difference between the patch level options in `bundle update` and here is the `--strict` option.
79
- `--strict` was already an option on outdated before the patch level options were added. `--strict`
80
- wasn't altered, and the `--update-strict` option on `outdated` reflects what `--strict` does on
81
- `bundle update`.
82
-
83
74
  ## FILTERING OUTPUT
84
75
 
85
76
  The 3 filtering options do not affect the resolution of versions, merely what versions are shown
@@ -1,7 +1,7 @@
1
1
  .\" generated with Ronn/v0.7.3
2
2
  .\" http://github.com/rtomayko/ronn/tree/0.7.3
3
3
  .
4
- .TH "BUNDLE\-PLATFORM" "1" "February 2022" "" ""
4
+ .TH "BUNDLE\-PLATFORM" "1" "March 2022" "" ""
5
5
  .
6
6
  .SH "NAME"
7
7
  \fBbundle\-platform\fR \- Displays platform compatibility information
@@ -1,7 +1,7 @@
1
1
  .\" generated with Ronn/v0.7.3
2
2
  .\" http://github.com/rtomayko/ronn/tree/0.7.3
3
3
  .
4
- .TH "BUNDLE\-PRISTINE" "1" "February 2022" "" ""
4
+ .TH "BUNDLE\-PRISTINE" "1" "March 2022" "" ""
5
5
  .
6
6
  .SH "NAME"
7
7
  \fBbundle\-pristine\fR \- Restores installed gems to their pristine condition
@@ -1,7 +1,7 @@
1
1
  .\" generated with Ronn/v0.7.3
2
2
  .\" http://github.com/rtomayko/ronn/tree/0.7.3
3
3
  .
4
- .TH "BUNDLE\-REMOVE" "1" "February 2022" "" ""
4
+ .TH "BUNDLE\-REMOVE" "1" "March 2022" "" ""
5
5
  .
6
6
  .SH "NAME"
7
7
  \fBbundle\-remove\fR \- Removes gems from the Gemfile
@@ -1,7 +1,7 @@
1
1
  .\" generated with Ronn/v0.7.3
2
2
  .\" http://github.com/rtomayko/ronn/tree/0.7.3
3
3
  .
4
- .TH "BUNDLE\-SHOW" "1" "February 2022" "" ""
4
+ .TH "BUNDLE\-SHOW" "1" "March 2022" "" ""
5
5
  .
6
6
  .SH "NAME"
7
7
  \fBbundle\-show\fR \- Shows all the gems in your bundle, or the path to a gem
@@ -1,7 +1,7 @@
1
1
  .\" generated with Ronn/v0.7.3
2
2
  .\" http://github.com/rtomayko/ronn/tree/0.7.3
3
3
  .
4
- .TH "BUNDLE\-UPDATE" "1" "February 2022" "" ""
4
+ .TH "BUNDLE\-UPDATE" "1" "March 2022" "" ""
5
5
  .
6
6
  .SH "NAME"
7
7
  \fBbundle\-update\fR \- Update your gems to the latest available versions
@@ -1,7 +1,7 @@
1
1
  .\" generated with Ronn/v0.7.3
2
2
  .\" http://github.com/rtomayko/ronn/tree/0.7.3
3
3
  .
4
- .TH "BUNDLE\-VIZ" "1" "February 2022" "" ""
4
+ .TH "BUNDLE\-VIZ" "1" "March 2022" "" ""
5
5
  .
6
6
  .SH "NAME"
7
7
  \fBbundle\-viz\fR \- Generates a visual dependency graph for your Gemfile
@@ -1,7 +1,7 @@
1
1
  .\" generated with Ronn/v0.7.3
2
2
  .\" http://github.com/rtomayko/ronn/tree/0.7.3
3
3
  .
4
- .TH "BUNDLE" "1" "February 2022" "" ""
4
+ .TH "BUNDLE" "1" "March 2022" "" ""
5
5
  .
6
6
  .SH "NAME"
7
7
  \fBbundle\fR \- Ruby Dependency Management
@@ -1,7 +1,7 @@
1
1
  .\" generated with Ronn/v0.7.3
2
2
  .\" http://github.com/rtomayko/ronn/tree/0.7.3
3
3
  .
4
- .TH "GEMFILE" "5" "February 2022" "" ""
4
+ .TH "GEMFILE" "5" "March 2022" "" ""
5
5
  .
6
6
  .SH "NAME"
7
7
  \fBGemfile\fR \- A format for describing gem dependencies for Ruby programs
@@ -308,12 +308,6 @@ module Bundler
308
308
  Bundler.root
309
309
  end
310
310
 
311
- # @private
312
- # Returns true
313
- def bundler_plugin_api_source?
314
- true
315
- end
316
-
317
311
  # @private
318
312
  # This API on source might not be stable, and for now we expect plugins
319
313
  # to download all specs in `#specs`, so we implement the method for
@@ -4,6 +4,17 @@ require "pathname"
4
4
 
5
5
  require "rubygems/specification"
6
6
 
7
+ # We can't let `Gem::Source` be autoloaded in the `Gem::Specification#source`
8
+ # redefinition below, so we need to load it upfront. The reason is that if
9
+ # Bundler monkeypatches are loaded before RubyGems activates an executable (for
10
+ # example, through `ruby -rbundler -S irb`), gem activation might end up calling
11
+ # the redefined `Gem::Specification#source` and triggering the `Gem::Source`
12
+ # autoload. That would result in requiring "rubygems/source" inside another
13
+ # require, which would trigger a monitor error and cause the `autoload` to
14
+ # eventually fail. A better solution is probably to completely avoid autoloading
15
+ # `Gem::Source` from the redefined `Gem::Specification#source`.
16
+ require "rubygems/source"
17
+
7
18
  require_relative "match_platform"
8
19
 
9
20
  module Gem
@@ -22,11 +33,7 @@ module Gem
22
33
  alias_method :rg_loaded_from, :loaded_from
23
34
 
24
35
  def full_gem_path
25
- # this cannot check source.is_a?(Bundler::Plugin::API::Source)
26
- # because that _could_ trip the autoload, and if there are unresolved
27
- # gems at that time, this method could be called inside another require,
28
- # thus raising with that constant being undefined. Better to check a method
29
- if source.respond_to?(:path) || (source.respond_to?(:bundler_plugin_api_source?) && source.bundler_plugin_api_source?)
36
+ if source.respond_to?(:root)
30
37
  Pathname.new(loaded_from).dirname.expand_path(source.root).to_s.tap{|x| x.untaint if RUBY_VERSION < "2.7" }
31
38
  else
32
39
  rg_full_gem_path
@@ -274,10 +274,10 @@ module Bundler
274
274
 
275
275
  def set_bundle_variables
276
276
  # bundler exe & lib folders have same root folder, typical gem installation
277
- exe_file = File.expand_path("../../../exe/bundle", __FILE__)
277
+ exe_file = File.expand_path("../../exe/bundle", __dir__)
278
278
 
279
279
  # for Ruby core repository testing
280
- exe_file = File.expand_path("../../../libexec/bundle", __FILE__) unless File.exist?(exe_file)
280
+ exe_file = File.expand_path("../../libexec/bundle", __dir__) unless File.exist?(exe_file)
281
281
 
282
282
  # bundler is a default gem, exe path is separate
283
283
  exe_file = Bundler.rubygems.bin_path("bundler", "bundle", VERSION) unless File.exist?(exe_file)
@@ -309,7 +309,7 @@ module Bundler
309
309
  end
310
310
 
311
311
  def bundler_ruby_lib
312
- resolve_path File.expand_path("../..", __FILE__)
312
+ File.expand_path("..", __dir__)
313
313
  end
314
314
 
315
315
  def clean_load_path
@@ -325,7 +325,7 @@ module Bundler
325
325
 
326
326
  def resolve_path(path)
327
327
  expanded = File.expand_path(path)
328
- return expanded unless File.respond_to?(:realpath) && File.exist?(expanded)
328
+ return expanded unless File.exist?(expanded)
329
329
 
330
330
  File.realpath(expanded)
331
331
  end
@@ -22,7 +22,7 @@ module Bundler
22
22
  s.summary = "The best way to manage your application's dependencies"
23
23
  s.executables = %w[bundle]
24
24
  # can't point to the actual gemspec or else the require paths will be wrong
25
- s.loaded_from = File.expand_path("..", __FILE__)
25
+ s.loaded_from = __dir__
26
26
  end
27
27
 
28
28
  if local_spec = Bundler.rubygems.find_bundler(VERSION)
@@ -8,11 +8,9 @@
8
8
  # this file is here to facilitate running it.
9
9
  #
10
10
 
11
- require "pathname"
12
- ENV["BUNDLE_GEMFILE"] ||= File.expand_path("../<%= relative_gemfile_path %>",
13
- Pathname.new(__FILE__).realpath)
11
+ ENV["BUNDLE_GEMFILE"] ||= File.expand_path("<%= relative_gemfile_path %>", __dir__)
14
12
 
15
- bundle_binstub = File.expand_path("../bundle", __FILE__)
13
+ bundle_binstub = File.expand_path("bundle", __dir__)
16
14
 
17
15
  if File.file?(bundle_binstub)
18
16
  if File.read(bundle_binstub, 300) =~ /This file was generated by Bundler/
@@ -41,7 +41,7 @@ m = Module.new do
41
41
  gemfile = ENV["BUNDLE_GEMFILE"]
42
42
  return gemfile if gemfile && !gemfile.empty?
43
43
 
44
- File.expand_path("../<%= relative_gemfile_path %>", __FILE__)
44
+ File.expand_path("<%= relative_gemfile_path %>", __dir__)
45
45
  end
46
46
 
47
47
  def lockfile
@@ -6,9 +6,7 @@
6
6
  # this file is here to facilitate running it.
7
7
  #
8
8
 
9
- require "pathname"
10
- path = Pathname.new(__FILE__)
11
- $:.unshift File.expand_path "../<%= standalone_path %>", path.realpath
9
+ $:.unshift File.expand_path "<%= standalone_path %>", __dir__
12
10
 
13
11
  require "bundler/setup"
14
- load File.expand_path "../<%= executable_path %>", path.realpath
12
+ load File.expand_path "<%= executable_path %>", __dir__
@@ -6,17 +6,11 @@ TODO: Delete this and the text above, and describe your gem
6
6
 
7
7
  ## Installation
8
8
 
9
- Add this line to your application's Gemfile:
9
+ Install the gem and add to the application's Gemfile by executing:
10
10
 
11
- ```ruby
12
- gem '<%= config[:name] %>'
13
- ```
11
+ $ bundle add <%= config[:name] %>
14
12
 
15
- And then execute:
16
-
17
- $ bundle install
18
-
19
- Or install it yourself as:
13
+ If bundler is not being used to manage dependencies, install the gem by executing:
20
14
 
21
15
  $ gem install <%= config[:name] %>
22
16
 
@@ -17,7 +17,7 @@ jobs:
17
17
  - '<%= RUBY_VERSION %>'
18
18
 
19
19
  steps:
20
- - uses: actions/checkout@v2
20
+ - uses: actions/checkout@v3
21
21
  - name: Set up Ruby
22
22
  uses: ruby/setup-ruby@v1
23
23
  with:
@@ -24,7 +24,7 @@ Gem::Specification.new do |spec|
24
24
 
25
25
  # Specify which files should be added to the gem when it is released.
26
26
  # The `git ls-files -z` loads the files in the RubyGem that have been added into git.
27
- spec.files = Dir.chdir(File.expand_path(__dir__)) do
27
+ spec.files = Dir.chdir(__dir__) do
28
28
  `git ls-files -z`.split("\x0").reject do |f|
29
29
  (f == __FILE__) || f.match(%r{\A(?:(?:bin|test|spec|features)/|\.(?:git|travis|circleci)|appveyor)})
30
30
  end
@@ -1,7 +1,7 @@
1
1
  # frozen_string_literal: false
2
2
 
3
3
  module Bundler
4
- VERSION = "2.3.8".freeze
4
+ VERSION = "2.3.11".freeze
5
5
 
6
6
  def self.bundler_major_version
7
7
  @bundler_major_version ||= VERSION.split(".").first.to_i
data/lib/bundler.rb CHANGED
@@ -370,7 +370,7 @@ EOF
370
370
 
371
371
  if env.key?("RUBYLIB")
372
372
  rubylib = env["RUBYLIB"].split(File::PATH_SEPARATOR)
373
- rubylib.delete(File.expand_path("..", __FILE__))
373
+ rubylib.delete(__dir__)
374
374
  env["RUBYLIB"] = rubylib.join(File::PATH_SEPARATOR)
375
375
  end
376
376
 
@@ -561,7 +561,7 @@ EOF
561
561
 
562
562
  def load_marshal(data)
563
563
  Marshal.load(data)
564
- rescue StandardError => e
564
+ rescue TypeError => e
565
565
  raise MarshalError, "#{e.class}: #{e.message}"
566
566
  end
567
567
 
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.3.8
4
+ version: 2.3.11
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: 2022-02-23 00:00:00.000000000 Z
25
+ date: 2022-04-07 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
@@ -369,7 +369,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
369
369
  - !ruby/object:Gem::Version
370
370
  version: 2.5.2
371
371
  requirements: []
372
- rubygems_version: 3.3.8
372
+ rubygems_version: 3.3.11
373
373
  signing_key:
374
374
  specification_version: 4
375
375
  summary: The best way to manage your application's dependencies