rubygems-update 3.6.2 → 3.6.4

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.
Files changed (81) hide show
  1. checksums.yaml +4 -4
  2. data/CHANGELOG.md +30 -0
  3. data/bundler/CHANGELOG.md +53 -0
  4. data/bundler/README.md +2 -2
  5. data/bundler/lib/bundler/build_metadata.rb +2 -2
  6. data/bundler/lib/bundler/cli/console.rb +8 -6
  7. data/bundler/lib/bundler/cli/doctor.rb +9 -5
  8. data/bundler/lib/bundler/cli/info.rb +4 -4
  9. data/bundler/lib/bundler/cli/issue.rb +1 -1
  10. data/bundler/lib/bundler/cli/outdated.rb +6 -4
  11. data/bundler/lib/bundler/cli/show.rb +1 -1
  12. data/bundler/lib/bundler/current_ruby.rb +23 -33
  13. data/bundler/lib/bundler/definition.rb +62 -60
  14. data/bundler/lib/bundler/dependency.rb +92 -47
  15. data/bundler/lib/bundler/dsl.rb +83 -78
  16. data/bundler/lib/bundler/endpoint_specification.rb +10 -3
  17. data/bundler/lib/bundler/errors.rb +4 -0
  18. data/bundler/lib/bundler/feature_flag.rb +2 -6
  19. data/bundler/lib/bundler/gem_helpers.rb +4 -10
  20. data/bundler/lib/bundler/gem_version_promoter.rb +0 -2
  21. data/bundler/lib/bundler/installer.rb +16 -2
  22. data/bundler/lib/bundler/lazy_specification.rb +50 -45
  23. data/bundler/lib/bundler/man/bundle-add.1 +3 -3
  24. data/bundler/lib/bundler/man/bundle-binstubs.1 +3 -3
  25. data/bundler/lib/bundler/man/bundle-cache.1 +3 -3
  26. data/bundler/lib/bundler/man/bundle-check.1 +3 -3
  27. data/bundler/lib/bundler/man/bundle-clean.1 +3 -3
  28. data/bundler/lib/bundler/man/bundle-config.1 +3 -3
  29. data/bundler/lib/bundler/man/bundle-console.1 +3 -3
  30. data/bundler/lib/bundler/man/bundle-doctor.1 +3 -3
  31. data/bundler/lib/bundler/man/bundle-env.1 +3 -3
  32. data/bundler/lib/bundler/man/bundle-exec.1 +3 -3
  33. data/bundler/lib/bundler/man/bundle-fund.1 +3 -3
  34. data/bundler/lib/bundler/man/bundle-gem.1 +3 -3
  35. data/bundler/lib/bundler/man/bundle-help.1 +3 -3
  36. data/bundler/lib/bundler/man/bundle-info.1 +3 -3
  37. data/bundler/lib/bundler/man/bundle-init.1 +3 -3
  38. data/bundler/lib/bundler/man/bundle-inject.1 +3 -3
  39. data/bundler/lib/bundler/man/bundle-install.1 +3 -3
  40. data/bundler/lib/bundler/man/bundle-issue.1 +3 -3
  41. data/bundler/lib/bundler/man/bundle-licenses.1 +3 -3
  42. data/bundler/lib/bundler/man/bundle-list.1 +3 -3
  43. data/bundler/lib/bundler/man/bundle-lock.1 +3 -3
  44. data/bundler/lib/bundler/man/bundle-open.1 +3 -3
  45. data/bundler/lib/bundler/man/bundle-outdated.1 +3 -3
  46. data/bundler/lib/bundler/man/bundle-platform.1 +3 -3
  47. data/bundler/lib/bundler/man/bundle-plugin.1 +3 -3
  48. data/bundler/lib/bundler/man/bundle-pristine.1 +3 -3
  49. data/bundler/lib/bundler/man/bundle-remove.1 +3 -3
  50. data/bundler/lib/bundler/man/bundle-show.1 +3 -3
  51. data/bundler/lib/bundler/man/bundle-update.1 +3 -3
  52. data/bundler/lib/bundler/man/bundle-version.1 +3 -3
  53. data/bundler/lib/bundler/man/bundle-viz.1 +3 -3
  54. data/bundler/lib/bundler/man/bundle.1 +3 -3
  55. data/bundler/lib/bundler/man/gemfile.5 +3 -3
  56. data/bundler/lib/bundler/match_metadata.rb +13 -0
  57. data/bundler/lib/bundler/plugin/index.rb +4 -0
  58. data/bundler/lib/bundler/resolver/base.rb +2 -1
  59. data/bundler/lib/bundler/resolver/package.rb +8 -4
  60. data/bundler/lib/bundler/resolver/spec_group.rb +1 -25
  61. data/bundler/lib/bundler/resolver.rb +13 -3
  62. data/bundler/lib/bundler/ruby_dsl.rb +12 -3
  63. data/bundler/lib/bundler/rubygems_ext.rb +83 -82
  64. data/bundler/lib/bundler/rubygems_integration.rb +2 -15
  65. data/bundler/lib/bundler/runtime.rb +19 -24
  66. data/bundler/lib/bundler/source/git.rb +1 -0
  67. data/bundler/lib/bundler/source/rubygems.rb +19 -4
  68. data/bundler/lib/bundler/source.rb +2 -0
  69. data/bundler/lib/bundler/source_list.rb +4 -0
  70. data/bundler/lib/bundler/spec_set.rb +66 -29
  71. data/bundler/lib/bundler/templates/newgem/Gemfile.tt +1 -0
  72. data/bundler/lib/bundler/version.rb +1 -1
  73. data/bundler/lib/bundler.rb +10 -30
  74. data/doc/rubygems/POLICIES.md +1 -1
  75. data/lib/rubygems/commands/environment_command.rb +5 -0
  76. data/lib/rubygems/requirement.rb +5 -3
  77. data/lib/rubygems/specification.rb +5 -7
  78. data/lib/rubygems/util/licenses.rb +19 -0
  79. data/lib/rubygems.rb +9 -2
  80. data/rubygems-update.gemspec +1 -1
  81. metadata +3 -3
@@ -106,13 +106,15 @@ class Gem::Requirement
106
106
  unless PATTERN =~ obj.to_s
107
107
  raise BadRequirementError, "Illformed requirement [#{obj.inspect}]"
108
108
  end
109
+ op = -($1 || "=")
110
+ version = -$2
109
111
 
110
- if $1 == ">=" && $2 == "0"
112
+ if op == ">=" && version == "0"
111
113
  DefaultRequirement
112
- elsif $1 == ">=" && $2 == "0.a"
114
+ elsif op == ">=" && version == "0.a"
113
115
  DefaultPrereleaseRequirement
114
116
  else
115
- [-($1 || "="), Gem::Version.new($2)]
117
+ [op, Gem::Version.new(version)]
116
118
  end
117
119
  end
118
120
 
@@ -1322,7 +1322,7 @@ class Gem::Specification < Gem::BasicSpecification
1322
1322
  spec.instance_variable_set :@description, array[13]
1323
1323
  spec.instance_variable_set :@homepage, array[14]
1324
1324
  spec.instance_variable_set :@has_rdoc, array[15]
1325
- spec.instance_variable_set :@licenses, [array[17]]
1325
+ spec.instance_variable_set :@licenses, array[17]
1326
1326
  spec.instance_variable_set :@metadata, array[18]
1327
1327
  spec.instance_variable_set :@loaded, false
1328
1328
  spec.instance_variable_set :@activated, false
@@ -1415,13 +1415,11 @@ class Gem::Specification < Gem::BasicSpecification
1415
1415
  raise e
1416
1416
  end
1417
1417
 
1418
- begin
1419
- specs = spec_dep.to_specs.uniq(&:full_name)
1420
- rescue Gem::MissingSpecError => e
1421
- raise Gem::MissingSpecError.new(e.name, e.requirement, "at: #{spec_file}")
1422
- end
1418
+ specs = spec_dep.matching_specs(true).uniq(&:full_name)
1423
1419
 
1424
- if specs.size == 1
1420
+ if specs.size == 0
1421
+ raise Gem::MissingSpecError.new(spec_dep.name, spec_dep.requirement, "at: #{spec_file}")
1422
+ elsif specs.size == 1
1425
1423
  specs.first.activate
1426
1424
  else
1427
1425
  name = spec_dep.name
@@ -104,6 +104,7 @@ class Gem::Licenses
104
104
  Bitstream-Vera
105
105
  BlueOak-1.0.0
106
106
  Boehm-GC
107
+ Boehm-GC-without-fee
107
108
  Borceux
108
109
  Brian-Gladman-2-Clause
109
110
  Brian-Gladman-3-Clause
@@ -163,6 +164,8 @@ class Gem::Licenses
163
164
  CC-BY-SA-3.0-IGO
164
165
  CC-BY-SA-4.0
165
166
  CC-PDDC
167
+ CC-PDM-1.0
168
+ CC-SA-1.0
166
169
  CC0-1.0
167
170
  CDDL-1.0
168
171
  CDDL-1.1
@@ -213,6 +216,7 @@ class Gem::Licenses
213
216
  DRL-1.1
214
217
  DSDP
215
218
  DocBook-Schema
219
+ DocBook-Stylesheet
216
220
  DocBook-XML
217
221
  Dotseqn
218
222
  ECL-1.0
@@ -320,6 +324,7 @@ class Gem::Licenses
320
324
  Imlib2
321
325
  Info-ZIP
322
326
  Inner-Net-2.0
327
+ InnoSetup
323
328
  Intel
324
329
  Intel-ACPI
325
330
  Interbase-1.0
@@ -364,9 +369,11 @@ class Gem::Licenses
364
369
  Linux-man-pages-copyleft-2-para
365
370
  Linux-man-pages-copyleft-var
366
371
  Lucida-Bitmap-Fonts
372
+ MIPS
367
373
  MIT
368
374
  MIT-0
369
375
  MIT-CMU
376
+ MIT-Click
370
377
  MIT-Festival
371
378
  MIT-Khronos-old
372
379
  MIT-Modern-Variant
@@ -517,6 +524,7 @@ class Gem::Licenses
517
524
  SISSL
518
525
  SISSL-1.2
519
526
  SL
527
+ SMAIL-GPL
520
528
  SMLNJ
521
529
  SMPPL
522
530
  SNIA
@@ -530,6 +538,7 @@ class Gem::Licenses
530
538
  SchemeReport
531
539
  Sendmail
532
540
  Sendmail-8.23
541
+ Sendmail-Open-Source-1.1
533
542
  SimPL-2.0
534
543
  Sleepycat
535
544
  Soundex
@@ -555,6 +564,8 @@ class Gem::Licenses
555
564
  TU-Berlin-1.0
556
565
  TU-Berlin-2.0
557
566
  TermReadKey
567
+ ThirdEye
568
+ TrustedQSL
558
569
  UCAR
559
570
  UCL-1.0
560
571
  UMich-Merit
@@ -598,6 +609,7 @@ class Gem::Licenses
598
609
  Zimbra-1.4
599
610
  Zlib
600
611
  any-OSI
612
+ any-OSI-perl-modules
601
613
  bcrypt-Solar-Designer
602
614
  blessing
603
615
  bzip2-1.0.6
@@ -614,6 +626,7 @@ class Gem::Licenses
614
626
  etalab-2.0
615
627
  fwlw
616
628
  gSOAP-1.3b
629
+ generic-xts
617
630
  gnuplot
618
631
  gtkbook
619
632
  hdparm
@@ -642,6 +655,7 @@ class Gem::Licenses
642
655
  threeparttable
643
656
  ulem
644
657
  w3m
658
+ wwl
645
659
  xinetd
646
660
  xkeyboard-config-Zinoviev
647
661
  xlock
@@ -698,6 +712,7 @@ class Gem::Licenses
698
712
  Bison-exception-1.24
699
713
  Bison-exception-2.2
700
714
  Bootloader-exception
715
+ CGAL-linking-exception
701
716
  CLISP-exception-2.0
702
717
  Classpath-exception-2.0
703
718
  DigiRule-FOSS-exception
@@ -710,6 +725,7 @@ class Gem::Licenses
710
725
  GNAT-exception
711
726
  GNOME-examples-exception
712
727
  GNU-compiler-exception
728
+ GPL-3.0-389-ds-base-exception
713
729
  GPL-3.0-interface-exception
714
730
  GPL-3.0-linking-exception
715
731
  GPL-3.0-linking-source-exception
@@ -717,6 +733,7 @@ class Gem::Licenses
717
733
  GStreamer-exception-2005
718
734
  GStreamer-exception-2008
719
735
  Gmsh-exception
736
+ Independent-modules-exception
720
737
  KiCad-libraries-exception
721
738
  LGPL-3.0-linking-exception
722
739
  LLGPL
@@ -749,9 +766,11 @@ class Gem::Licenses
749
766
  fmt-exception
750
767
  freertos-exception-2.0
751
768
  gnu-javamail-exception
769
+ harbour-exception
752
770
  i2p-gpl-java-exception
753
771
  libpri-OpenH323-exception
754
772
  mif-exception
773
+ mxml-exception
755
774
  openvpn-openssl-exception
756
775
  romic-exception
757
776
  stunnel-exception
data/lib/rubygems.rb CHANGED
@@ -9,7 +9,7 @@
9
9
  require "rbconfig"
10
10
 
11
11
  module Gem
12
- VERSION = "3.6.2"
12
+ VERSION = "3.6.4"
13
13
  end
14
14
 
15
15
  # Must be first since it unloads the prelude from 1.9.2
@@ -815,7 +815,14 @@ An Array (#{env.inspect}) was passed in from #{caller[3]}
815
815
 
816
816
  File.open(path, mode) do |io|
817
817
  begin
818
- io.flock(File::LOCK_EX)
818
+ # Try to get a lock without blocking.
819
+ # If we do, the file is locked.
820
+ # Otherwise, explain why we're waiting and get a lock, but block this time.
821
+ if io.flock(File::LOCK_EX | File::LOCK_NB) != 0
822
+ warn "Waiting for another process to let go of lock: #{path}"
823
+ io.flock(File::LOCK_EX)
824
+ end
825
+ io.puts(Process.pid)
819
826
  rescue Errno::ENOSYS, Errno::ENOTSUP
820
827
  end
821
828
  yield io
@@ -2,7 +2,7 @@
2
2
 
3
3
  Gem::Specification.new do |s|
4
4
  s.name = "rubygems-update"
5
- s.version = "3.6.2"
5
+ s.version = "3.6.4"
6
6
  s.authors = ["Jim Weirich", "Chad Fowler", "Eric Hodel", "Luis Lavena", "Aaron Patterson", "Samuel Giddins", "André Arko", "Evan Phoenix", "Hiroshi SHIBATA"]
7
7
  s.email = ["", "", "drbrain@segment7.net", "luislavena@gmail.com", "aaron@tenderlovemaking.com", "segiddins@segiddins.me", "andre@arko.net", "evan@phx.io", "hsbt@ruby-lang.org"]
8
8
 
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: rubygems-update
3
3
  version: !ruby/object:Gem::Version
4
- version: 3.6.2
4
+ version: 3.6.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - Jim Weirich
@@ -15,7 +15,7 @@ authors:
15
15
  - Hiroshi SHIBATA
16
16
  bindir: exe
17
17
  cert_chain: []
18
- date: 2024-12-23 00:00:00.000000000 Z
18
+ date: 2025-02-17 00:00:00.000000000 Z
19
19
  dependencies: []
20
20
  description: |-
21
21
  A package (also known as a library) contains a set of functionality
@@ -746,7 +746,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
746
746
  - !ruby/object:Gem::Version
747
747
  version: '0'
748
748
  requirements: []
749
- rubygems_version: 3.6.2
749
+ rubygems_version: 3.6.4
750
750
  specification_version: 4
751
751
  summary: RubyGems is a package management framework for Ruby. This gem is downloaded
752
752
  and installed by `gem update --system`, so that the `gem` CLI can update itself.