rubygems-update 3.5.5 → 3.5.6
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +26 -0
- data/Manifest.txt +77 -60
- data/bundler/CHANGELOG.md +15 -0
- data/bundler/lib/bundler/build_metadata.rb +2 -2
- data/bundler/lib/bundler/cli/gem.rb +1 -1
- data/bundler/lib/bundler/cli/lock.rb +5 -4
- data/bundler/lib/bundler/cli.rb +1 -1
- data/bundler/lib/bundler/definition.rb +54 -28
- data/bundler/lib/bundler/environment_preserver.rb +3 -3
- data/bundler/lib/bundler/fetcher/downloader.rb +1 -1
- data/bundler/lib/bundler/fetcher.rb +2 -2
- data/bundler/lib/bundler/injector.rb +1 -1
- data/bundler/lib/bundler/installer.rb +2 -2
- data/bundler/lib/bundler/mirror.rb +3 -3
- data/bundler/lib/bundler/plugin/api/source.rb +2 -2
- data/bundler/lib/bundler/runtime.rb +1 -1
- data/bundler/lib/bundler/settings.rb +4 -4
- data/bundler/lib/bundler/source/git/git_proxy.rb +1 -1
- data/bundler/lib/bundler/source/git.rb +1 -1
- data/bundler/lib/bundler/source/rubygems/remote.rb +1 -1
- data/bundler/lib/bundler/source/rubygems.rb +2 -2
- data/bundler/lib/bundler/spec_set.rb +1 -1
- data/bundler/lib/bundler/uri_credentials_filter.rb +2 -2
- data/bundler/lib/bundler/vendor/net-http-persistent/lib/net/http/persistent.rb +22 -22
- data/bundler/lib/bundler/vendored_uri.rb +18 -1
- data/bundler/lib/bundler/version.rb +1 -1
- data/bundler/lib/bundler/yaml_serializer.rb +12 -0
- data/bundler/lib/bundler.rb +3 -2
- data/lib/rubygems/commands/sources_command.rb +2 -2
- data/lib/rubygems/gemcutter_utilities/webauthn_listener.rb +1 -1
- data/lib/rubygems/gemcutter_utilities.rb +39 -22
- data/lib/rubygems/local_remote_options.rb +6 -6
- data/lib/rubygems/net/http.rb +1 -1
- data/lib/rubygems/optparse.rb +1 -1
- data/lib/rubygems/remote_fetcher.rb +2 -2
- data/lib/rubygems/request.rb +4 -4
- data/lib/rubygems/requirement.rb +5 -0
- data/lib/rubygems/resolver/api_set.rb +1 -1
- data/lib/rubygems/resolver/best_set.rb +1 -1
- data/lib/rubygems/resolver.rb +5 -5
- data/lib/rubygems/s3_uri_signer.rb +2 -2
- data/lib/rubygems/source/git.rb +2 -2
- data/lib/rubygems/source_list.rb +1 -1
- data/lib/rubygems/specification.rb +5 -5
- data/lib/rubygems/specification_policy.rb +6 -6
- data/lib/rubygems/timeout.rb +1 -1
- data/lib/rubygems/tsort.rb +1 -1
- data/lib/rubygems/uri.rb +6 -6
- data/lib/rubygems/util.rb +1 -1
- data/lib/rubygems/vendor/molinillo/lib/molinillo/delegates/resolution_state.rb +57 -0
- data/lib/rubygems/{resolver → vendor}/molinillo/lib/molinillo/delegates/specification_provider.rb +11 -11
- data/lib/rubygems/{resolver → vendor}/molinillo/lib/molinillo/dependency_graph/action.rb +1 -1
- data/lib/rubygems/{resolver → vendor}/molinillo/lib/molinillo/dependency_graph/add_edge_no_circular.rb +1 -1
- data/lib/rubygems/{resolver → vendor}/molinillo/lib/molinillo/dependency_graph/add_vertex.rb +1 -1
- data/lib/rubygems/{resolver → vendor}/molinillo/lib/molinillo/dependency_graph/delete_edge.rb +1 -1
- data/lib/rubygems/{resolver → vendor}/molinillo/lib/molinillo/dependency_graph/detach_vertex_named.rb +1 -1
- data/lib/rubygems/{resolver → vendor}/molinillo/lib/molinillo/dependency_graph/log.rb +1 -1
- data/lib/rubygems/{resolver → vendor}/molinillo/lib/molinillo/dependency_graph/set_payload.rb +1 -1
- data/lib/rubygems/{resolver → vendor}/molinillo/lib/molinillo/dependency_graph/tag.rb +1 -1
- data/lib/rubygems/{resolver → vendor}/molinillo/lib/molinillo/dependency_graph/vertex.rb +1 -1
- data/lib/rubygems/{resolver → vendor}/molinillo/lib/molinillo/dependency_graph.rb +1 -1
- data/lib/rubygems/{resolver → vendor}/molinillo/lib/molinillo/errors.rb +1 -1
- data/lib/rubygems/vendor/molinillo/lib/molinillo/gem_metadata.rb +6 -0
- data/lib/rubygems/{resolver → vendor}/molinillo/lib/molinillo/modules/specification_provider.rb +2 -2
- data/lib/rubygems/{resolver → vendor}/molinillo/lib/molinillo/modules/ui.rb +1 -1
- data/lib/rubygems/{resolver → vendor}/molinillo/lib/molinillo/resolution.rb +3 -3
- data/lib/rubygems/{resolver → vendor}/molinillo/lib/molinillo/resolver.rb +1 -1
- data/lib/rubygems/{resolver → vendor}/molinillo/lib/molinillo/state.rb +1 -1
- data/lib/rubygems/{resolver → vendor}/molinillo/lib/molinillo.rb +2 -2
- data/lib/rubygems/{net-http → vendor/net-http}/lib/net/http/generic_request.rb +9 -9
- data/lib/rubygems/{net-http → vendor/net-http}/lib/net/http/header.rb +2 -2
- data/lib/rubygems/{net-http → vendor/net-http}/lib/net/http/request.rb +3 -3
- data/lib/rubygems/{net-http → vendor/net-http}/lib/net/http/requests.rb +30 -30
- data/lib/rubygems/{net-http → vendor/net-http}/lib/net/http/response.rb +2 -2
- data/lib/rubygems/{net-http → vendor/net-http}/lib/net/http/responses.rb +6 -6
- data/lib/rubygems/{net-http → vendor/net-http}/lib/net/http/status.rb +1 -1
- data/lib/rubygems/{net-http → vendor/net-http}/lib/net/http.rb +15 -15
- data/lib/rubygems/{net-http → vendor/net-http}/lib/net/https.rb +1 -1
- data/lib/rubygems/vendor/optparse/lib/optparse/uri.rb +7 -0
- data/lib/rubygems/{optparse → vendor/optparse}/lib/optparse.rb +11 -11
- data/lib/rubygems/{timeout → vendor/timeout}/lib/timeout.rb +1 -1
- data/lib/rubygems/{tsort → vendor/tsort}/lib/tsort.rb +2 -2
- data/lib/rubygems/vendor/uri/.document +1 -0
- data/lib/rubygems/vendor/uri/LICENSE.txt +22 -0
- data/lib/rubygems/vendor/uri/lib/uri/common.rb +853 -0
- data/lib/rubygems/vendor/uri/lib/uri/file.rb +100 -0
- data/lib/rubygems/vendor/uri/lib/uri/ftp.rb +267 -0
- data/lib/rubygems/vendor/uri/lib/uri/generic.rb +1588 -0
- data/lib/rubygems/vendor/uri/lib/uri/http.rb +125 -0
- data/lib/rubygems/vendor/uri/lib/uri/https.rb +23 -0
- data/lib/rubygems/vendor/uri/lib/uri/ldap.rb +261 -0
- data/lib/rubygems/vendor/uri/lib/uri/ldaps.rb +22 -0
- data/lib/rubygems/vendor/uri/lib/uri/mailto.rb +293 -0
- data/lib/rubygems/vendor/uri/lib/uri/rfc2396_parser.rb +539 -0
- data/lib/rubygems/vendor/uri/lib/uri/rfc3986_parser.rb +183 -0
- data/lib/rubygems/vendor/uri/lib/uri/version.rb +6 -0
- data/lib/rubygems/vendor/uri/lib/uri/ws.rb +83 -0
- data/lib/rubygems/vendor/uri/lib/uri/wss.rb +23 -0
- data/lib/rubygems/vendor/uri/lib/uri.rb +104 -0
- data/lib/rubygems/vendored_molinillo.rb +3 -0
- data/lib/rubygems/yaml_serializer.rb +12 -0
- data/lib/rubygems.rb +1 -1
- data/rubygems-update.gemspec +7 -2
- metadata +83 -63
- data/lib/rubygems/optparse/lib/optparse/uri.rb +0 -7
- data/lib/rubygems/resolver/molinillo/lib/molinillo/delegates/resolution_state.rb +0 -57
- data/lib/rubygems/resolver/molinillo/lib/molinillo/gem_metadata.rb +0 -6
- data/lib/rubygems/resolver/molinillo.rb +0 -3
- /data/lib/rubygems/{net-http → vendor/molinillo}/.document +0 -0
- /data/lib/rubygems/{resolver → vendor}/molinillo/LICENSE +0 -0
- /data/lib/rubygems/{net-protocol → vendor/net-http}/.document +0 -0
- /data/lib/rubygems/{net-http → vendor/net-http}/LICENSE.txt +0 -0
- /data/lib/rubygems/{net-http → vendor/net-http}/lib/net/http/backward.rb +0 -0
- /data/lib/rubygems/{net-http → vendor/net-http}/lib/net/http/exceptions.rb +0 -0
- /data/lib/rubygems/{net-http → vendor/net-http}/lib/net/http/proxy_delta.rb +0 -0
- /data/lib/rubygems/{optparse → vendor/net-protocol}/.document +0 -0
- /data/lib/rubygems/{net-protocol → vendor/net-protocol}/LICENSE.txt +0 -0
- /data/lib/rubygems/{net-protocol → vendor/net-protocol}/lib/net/protocol.rb +0 -0
- /data/lib/rubygems/{resolv → vendor/optparse}/.document +0 -0
- /data/lib/rubygems/{optparse → vendor/optparse}/COPYING +0 -0
- /data/lib/rubygems/{optparse → vendor/optparse}/lib/optionparser.rb +0 -0
- /data/lib/rubygems/{optparse → vendor/optparse}/lib/optparse/ac.rb +0 -0
- /data/lib/rubygems/{optparse → vendor/optparse}/lib/optparse/date.rb +0 -0
- /data/lib/rubygems/{optparse → vendor/optparse}/lib/optparse/kwargs.rb +0 -0
- /data/lib/rubygems/{optparse → vendor/optparse}/lib/optparse/shellwords.rb +0 -0
- /data/lib/rubygems/{optparse → vendor/optparse}/lib/optparse/time.rb +0 -0
- /data/lib/rubygems/{optparse → vendor/optparse}/lib/optparse/version.rb +0 -0
- /data/lib/rubygems/{resolver/molinillo → vendor/resolv}/.document +0 -0
- /data/lib/rubygems/{resolv → vendor/resolv}/LICENSE.txt +0 -0
- /data/lib/rubygems/{resolv → vendor/resolv}/lib/resolv.rb +0 -0
- /data/lib/rubygems/{timeout → vendor/timeout}/.document +0 -0
- /data/lib/rubygems/{timeout → vendor/timeout}/LICENSE.txt +0 -0
- /data/lib/rubygems/{tsort → vendor/tsort}/.document +0 -0
- /data/lib/rubygems/{tsort → vendor/tsort}/LICENSE.txt +0 -0
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 441d0ff90372c26b0c6ecb291af1dffa910597060b81e655cd17fdd0f28f0fac
|
4
|
+
data.tar.gz: bd7079f9e2f60401c275254d5418986baadc1578788cfb4ed20dd9c163d00df7
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 58c8b6329079a1a2b8849fd17167e31fd7bb9dc255b226489db1be189ec245b004bc49bd58e6e336608260c24e88a40003e903b35445d3b8f5bf546be2e06a92
|
7
|
+
data.tar.gz: a4154c7e57d48f9c88e25ef975340b49b51195455ae1548285439bc0fd776019f3c4d250f170b743cfe83ac4132b2165f39d528bbd73470c65008792ac092fea
|
data/CHANGELOG.md
CHANGED
@@ -1,3 +1,29 @@
|
|
1
|
+
# 3.5.6 / 2024-02-06
|
2
|
+
|
3
|
+
## Enhancements:
|
4
|
+
|
5
|
+
* Deep copy requirements in `Gem::Specification` and `Gem::Requirement`.
|
6
|
+
Pull request [#7439](https://github.com/rubygems/rubygems/pull/7439) by
|
7
|
+
flavorjones
|
8
|
+
* Change gem login message to clear up that username can be also used.
|
9
|
+
Pull request [#7422](https://github.com/rubygems/rubygems/pull/7422) by
|
10
|
+
VitaliySerov
|
11
|
+
* Add metadata for rubygems.org. Pull request
|
12
|
+
[#7435](https://github.com/rubygems/rubygems/pull/7435) by m-nakamura145
|
13
|
+
* Improve gem login scope selection. Pull request
|
14
|
+
[#7342](https://github.com/rubygems/rubygems/pull/7342) by williantenfen
|
15
|
+
* Vendor uri in RubyGems. Pull request
|
16
|
+
[#7386](https://github.com/rubygems/rubygems/pull/7386) by
|
17
|
+
deivid-rodriguez
|
18
|
+
* Installs bundler 2.5.6 as a default gem.
|
19
|
+
|
20
|
+
## Bug fixes:
|
21
|
+
|
22
|
+
* Skip to load commented out words. Pull request
|
23
|
+
[#7413](https://github.com/rubygems/rubygems/pull/7413) by hsbt
|
24
|
+
* Fix rake runtime dependency warning for rake based extension. Pull
|
25
|
+
request [#7395](https://github.com/rubygems/rubygems/pull/7395) by ntkme
|
26
|
+
|
1
27
|
# 3.5.5 / 2024-01-18
|
2
28
|
|
3
29
|
## Enhancements:
|
data/Manifest.txt
CHANGED
@@ -431,37 +431,9 @@ lib/rubygems/installer.rb
|
|
431
431
|
lib/rubygems/installer_uninstaller_utils.rb
|
432
432
|
lib/rubygems/local_remote_options.rb
|
433
433
|
lib/rubygems/name_tuple.rb
|
434
|
-
lib/rubygems/net-http/.document
|
435
|
-
lib/rubygems/net-http/LICENSE.txt
|
436
|
-
lib/rubygems/net-http/lib/net/http.rb
|
437
|
-
lib/rubygems/net-http/lib/net/http/backward.rb
|
438
|
-
lib/rubygems/net-http/lib/net/http/exceptions.rb
|
439
|
-
lib/rubygems/net-http/lib/net/http/generic_request.rb
|
440
|
-
lib/rubygems/net-http/lib/net/http/header.rb
|
441
|
-
lib/rubygems/net-http/lib/net/http/proxy_delta.rb
|
442
|
-
lib/rubygems/net-http/lib/net/http/request.rb
|
443
|
-
lib/rubygems/net-http/lib/net/http/requests.rb
|
444
|
-
lib/rubygems/net-http/lib/net/http/response.rb
|
445
|
-
lib/rubygems/net-http/lib/net/http/responses.rb
|
446
|
-
lib/rubygems/net-http/lib/net/http/status.rb
|
447
|
-
lib/rubygems/net-http/lib/net/https.rb
|
448
|
-
lib/rubygems/net-protocol/.document
|
449
|
-
lib/rubygems/net-protocol/LICENSE.txt
|
450
|
-
lib/rubygems/net-protocol/lib/net/protocol.rb
|
451
434
|
lib/rubygems/net/http.rb
|
452
435
|
lib/rubygems/openssl.rb
|
453
436
|
lib/rubygems/optparse.rb
|
454
|
-
lib/rubygems/optparse/.document
|
455
|
-
lib/rubygems/optparse/COPYING
|
456
|
-
lib/rubygems/optparse/lib/optionparser.rb
|
457
|
-
lib/rubygems/optparse/lib/optparse.rb
|
458
|
-
lib/rubygems/optparse/lib/optparse/ac.rb
|
459
|
-
lib/rubygems/optparse/lib/optparse/date.rb
|
460
|
-
lib/rubygems/optparse/lib/optparse/kwargs.rb
|
461
|
-
lib/rubygems/optparse/lib/optparse/shellwords.rb
|
462
|
-
lib/rubygems/optparse/lib/optparse/time.rb
|
463
|
-
lib/rubygems/optparse/lib/optparse/uri.rb
|
464
|
-
lib/rubygems/optparse/lib/optparse/version.rb
|
465
437
|
lib/rubygems/package.rb
|
466
438
|
lib/rubygems/package/digest_io.rb
|
467
439
|
lib/rubygems/package/file_source.rb
|
@@ -489,9 +461,6 @@ lib/rubygems/request_set/lockfile.rb
|
|
489
461
|
lib/rubygems/request_set/lockfile/parser.rb
|
490
462
|
lib/rubygems/request_set/lockfile/tokenizer.rb
|
491
463
|
lib/rubygems/requirement.rb
|
492
|
-
lib/rubygems/resolv/.document
|
493
|
-
lib/rubygems/resolv/LICENSE.txt
|
494
|
-
lib/rubygems/resolv/lib/resolv.rb
|
495
464
|
lib/rubygems/resolver.rb
|
496
465
|
lib/rubygems/resolver/activation_request.rb
|
497
466
|
lib/rubygems/resolver/api_set.rb
|
@@ -511,29 +480,6 @@ lib/rubygems/resolver/installer_set.rb
|
|
511
480
|
lib/rubygems/resolver/local_specification.rb
|
512
481
|
lib/rubygems/resolver/lock_set.rb
|
513
482
|
lib/rubygems/resolver/lock_specification.rb
|
514
|
-
lib/rubygems/resolver/molinillo.rb
|
515
|
-
lib/rubygems/resolver/molinillo/.document
|
516
|
-
lib/rubygems/resolver/molinillo/LICENSE
|
517
|
-
lib/rubygems/resolver/molinillo/lib/molinillo.rb
|
518
|
-
lib/rubygems/resolver/molinillo/lib/molinillo/delegates/resolution_state.rb
|
519
|
-
lib/rubygems/resolver/molinillo/lib/molinillo/delegates/specification_provider.rb
|
520
|
-
lib/rubygems/resolver/molinillo/lib/molinillo/dependency_graph.rb
|
521
|
-
lib/rubygems/resolver/molinillo/lib/molinillo/dependency_graph/action.rb
|
522
|
-
lib/rubygems/resolver/molinillo/lib/molinillo/dependency_graph/add_edge_no_circular.rb
|
523
|
-
lib/rubygems/resolver/molinillo/lib/molinillo/dependency_graph/add_vertex.rb
|
524
|
-
lib/rubygems/resolver/molinillo/lib/molinillo/dependency_graph/delete_edge.rb
|
525
|
-
lib/rubygems/resolver/molinillo/lib/molinillo/dependency_graph/detach_vertex_named.rb
|
526
|
-
lib/rubygems/resolver/molinillo/lib/molinillo/dependency_graph/log.rb
|
527
|
-
lib/rubygems/resolver/molinillo/lib/molinillo/dependency_graph/set_payload.rb
|
528
|
-
lib/rubygems/resolver/molinillo/lib/molinillo/dependency_graph/tag.rb
|
529
|
-
lib/rubygems/resolver/molinillo/lib/molinillo/dependency_graph/vertex.rb
|
530
|
-
lib/rubygems/resolver/molinillo/lib/molinillo/errors.rb
|
531
|
-
lib/rubygems/resolver/molinillo/lib/molinillo/gem_metadata.rb
|
532
|
-
lib/rubygems/resolver/molinillo/lib/molinillo/modules/specification_provider.rb
|
533
|
-
lib/rubygems/resolver/molinillo/lib/molinillo/modules/ui.rb
|
534
|
-
lib/rubygems/resolver/molinillo/lib/molinillo/resolution.rb
|
535
|
-
lib/rubygems/resolver/molinillo/lib/molinillo/resolver.rb
|
536
|
-
lib/rubygems/resolver/molinillo/lib/molinillo/state.rb
|
537
483
|
lib/rubygems/resolver/requirement_list.rb
|
538
484
|
lib/rubygems/resolver/set.rb
|
539
485
|
lib/rubygems/resolver/source_set.rb
|
@@ -574,13 +520,7 @@ lib/rubygems/ssl_certs/rubygems.org/GlobalSignRootCA_R3.pem
|
|
574
520
|
lib/rubygems/stub_specification.rb
|
575
521
|
lib/rubygems/text.rb
|
576
522
|
lib/rubygems/timeout.rb
|
577
|
-
lib/rubygems/timeout/.document
|
578
|
-
lib/rubygems/timeout/LICENSE.txt
|
579
|
-
lib/rubygems/timeout/lib/timeout.rb
|
580
523
|
lib/rubygems/tsort.rb
|
581
|
-
lib/rubygems/tsort/.document
|
582
|
-
lib/rubygems/tsort/LICENSE.txt
|
583
|
-
lib/rubygems/tsort/lib/tsort.rb
|
584
524
|
lib/rubygems/uninstaller.rb
|
585
525
|
lib/rubygems/unknown_command_spell_checker.rb
|
586
526
|
lib/rubygems/update_suggestion.rb
|
@@ -591,6 +531,83 @@ lib/rubygems/util.rb
|
|
591
531
|
lib/rubygems/util/licenses.rb
|
592
532
|
lib/rubygems/util/list.rb
|
593
533
|
lib/rubygems/validator.rb
|
534
|
+
lib/rubygems/vendor/molinillo/.document
|
535
|
+
lib/rubygems/vendor/molinillo/LICENSE
|
536
|
+
lib/rubygems/vendor/molinillo/lib/molinillo.rb
|
537
|
+
lib/rubygems/vendor/molinillo/lib/molinillo/delegates/resolution_state.rb
|
538
|
+
lib/rubygems/vendor/molinillo/lib/molinillo/delegates/specification_provider.rb
|
539
|
+
lib/rubygems/vendor/molinillo/lib/molinillo/dependency_graph.rb
|
540
|
+
lib/rubygems/vendor/molinillo/lib/molinillo/dependency_graph/action.rb
|
541
|
+
lib/rubygems/vendor/molinillo/lib/molinillo/dependency_graph/add_edge_no_circular.rb
|
542
|
+
lib/rubygems/vendor/molinillo/lib/molinillo/dependency_graph/add_vertex.rb
|
543
|
+
lib/rubygems/vendor/molinillo/lib/molinillo/dependency_graph/delete_edge.rb
|
544
|
+
lib/rubygems/vendor/molinillo/lib/molinillo/dependency_graph/detach_vertex_named.rb
|
545
|
+
lib/rubygems/vendor/molinillo/lib/molinillo/dependency_graph/log.rb
|
546
|
+
lib/rubygems/vendor/molinillo/lib/molinillo/dependency_graph/set_payload.rb
|
547
|
+
lib/rubygems/vendor/molinillo/lib/molinillo/dependency_graph/tag.rb
|
548
|
+
lib/rubygems/vendor/molinillo/lib/molinillo/dependency_graph/vertex.rb
|
549
|
+
lib/rubygems/vendor/molinillo/lib/molinillo/errors.rb
|
550
|
+
lib/rubygems/vendor/molinillo/lib/molinillo/gem_metadata.rb
|
551
|
+
lib/rubygems/vendor/molinillo/lib/molinillo/modules/specification_provider.rb
|
552
|
+
lib/rubygems/vendor/molinillo/lib/molinillo/modules/ui.rb
|
553
|
+
lib/rubygems/vendor/molinillo/lib/molinillo/resolution.rb
|
554
|
+
lib/rubygems/vendor/molinillo/lib/molinillo/resolver.rb
|
555
|
+
lib/rubygems/vendor/molinillo/lib/molinillo/state.rb
|
556
|
+
lib/rubygems/vendor/net-http/.document
|
557
|
+
lib/rubygems/vendor/net-http/LICENSE.txt
|
558
|
+
lib/rubygems/vendor/net-http/lib/net/http.rb
|
559
|
+
lib/rubygems/vendor/net-http/lib/net/http/backward.rb
|
560
|
+
lib/rubygems/vendor/net-http/lib/net/http/exceptions.rb
|
561
|
+
lib/rubygems/vendor/net-http/lib/net/http/generic_request.rb
|
562
|
+
lib/rubygems/vendor/net-http/lib/net/http/header.rb
|
563
|
+
lib/rubygems/vendor/net-http/lib/net/http/proxy_delta.rb
|
564
|
+
lib/rubygems/vendor/net-http/lib/net/http/request.rb
|
565
|
+
lib/rubygems/vendor/net-http/lib/net/http/requests.rb
|
566
|
+
lib/rubygems/vendor/net-http/lib/net/http/response.rb
|
567
|
+
lib/rubygems/vendor/net-http/lib/net/http/responses.rb
|
568
|
+
lib/rubygems/vendor/net-http/lib/net/http/status.rb
|
569
|
+
lib/rubygems/vendor/net-http/lib/net/https.rb
|
570
|
+
lib/rubygems/vendor/net-protocol/.document
|
571
|
+
lib/rubygems/vendor/net-protocol/LICENSE.txt
|
572
|
+
lib/rubygems/vendor/net-protocol/lib/net/protocol.rb
|
573
|
+
lib/rubygems/vendor/optparse/.document
|
574
|
+
lib/rubygems/vendor/optparse/COPYING
|
575
|
+
lib/rubygems/vendor/optparse/lib/optionparser.rb
|
576
|
+
lib/rubygems/vendor/optparse/lib/optparse.rb
|
577
|
+
lib/rubygems/vendor/optparse/lib/optparse/ac.rb
|
578
|
+
lib/rubygems/vendor/optparse/lib/optparse/date.rb
|
579
|
+
lib/rubygems/vendor/optparse/lib/optparse/kwargs.rb
|
580
|
+
lib/rubygems/vendor/optparse/lib/optparse/shellwords.rb
|
581
|
+
lib/rubygems/vendor/optparse/lib/optparse/time.rb
|
582
|
+
lib/rubygems/vendor/optparse/lib/optparse/uri.rb
|
583
|
+
lib/rubygems/vendor/optparse/lib/optparse/version.rb
|
584
|
+
lib/rubygems/vendor/resolv/.document
|
585
|
+
lib/rubygems/vendor/resolv/LICENSE.txt
|
586
|
+
lib/rubygems/vendor/resolv/lib/resolv.rb
|
587
|
+
lib/rubygems/vendor/timeout/.document
|
588
|
+
lib/rubygems/vendor/timeout/LICENSE.txt
|
589
|
+
lib/rubygems/vendor/timeout/lib/timeout.rb
|
590
|
+
lib/rubygems/vendor/tsort/.document
|
591
|
+
lib/rubygems/vendor/tsort/LICENSE.txt
|
592
|
+
lib/rubygems/vendor/tsort/lib/tsort.rb
|
593
|
+
lib/rubygems/vendor/uri/.document
|
594
|
+
lib/rubygems/vendor/uri/LICENSE.txt
|
595
|
+
lib/rubygems/vendor/uri/lib/uri.rb
|
596
|
+
lib/rubygems/vendor/uri/lib/uri/common.rb
|
597
|
+
lib/rubygems/vendor/uri/lib/uri/file.rb
|
598
|
+
lib/rubygems/vendor/uri/lib/uri/ftp.rb
|
599
|
+
lib/rubygems/vendor/uri/lib/uri/generic.rb
|
600
|
+
lib/rubygems/vendor/uri/lib/uri/http.rb
|
601
|
+
lib/rubygems/vendor/uri/lib/uri/https.rb
|
602
|
+
lib/rubygems/vendor/uri/lib/uri/ldap.rb
|
603
|
+
lib/rubygems/vendor/uri/lib/uri/ldaps.rb
|
604
|
+
lib/rubygems/vendor/uri/lib/uri/mailto.rb
|
605
|
+
lib/rubygems/vendor/uri/lib/uri/rfc2396_parser.rb
|
606
|
+
lib/rubygems/vendor/uri/lib/uri/rfc3986_parser.rb
|
607
|
+
lib/rubygems/vendor/uri/lib/uri/version.rb
|
608
|
+
lib/rubygems/vendor/uri/lib/uri/ws.rb
|
609
|
+
lib/rubygems/vendor/uri/lib/uri/wss.rb
|
610
|
+
lib/rubygems/vendored_molinillo.rb
|
594
611
|
lib/rubygems/version.rb
|
595
612
|
lib/rubygems/version_option.rb
|
596
613
|
lib/rubygems/yaml_serializer.rb
|
data/bundler/CHANGELOG.md
CHANGED
@@ -1,3 +1,18 @@
|
|
1
|
+
# 2.5.6 (February 6, 2024)
|
2
|
+
|
3
|
+
## Deprecations:
|
4
|
+
|
5
|
+
- Refactor lockfile generation and deprecate `Definition#lock` with explicit lockfile [#7047](https://github.com/rubygems/rubygems/pull/7047)
|
6
|
+
|
7
|
+
## Enhancements:
|
8
|
+
|
9
|
+
- Bump `required_ruby_version` to be used in `bundle gem` template [#7430](https://github.com/rubygems/rubygems/pull/7430)
|
10
|
+
|
11
|
+
## Bug fixes:
|
12
|
+
|
13
|
+
- Fix musl platform not being added to the lockfile [#7441](https://github.com/rubygems/rubygems/pull/7441)
|
14
|
+
- Let `Bundler.with_original_env` properly restore env variables originally empty [#7383](https://github.com/rubygems/rubygems/pull/7383)
|
15
|
+
|
1
16
|
# 2.5.5 (January 18, 2024)
|
2
17
|
|
3
18
|
## Bug fixes:
|
@@ -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 = "2024-
|
8
|
-
@git_commit_sha = "
|
7
|
+
@built_at = "2024-02-06".freeze
|
8
|
+
@git_commit_sha = "7ac045dcaa".freeze
|
9
9
|
@release = true
|
10
10
|
# end ivars
|
11
11
|
|
@@ -33,8 +33,11 @@ module Bundler
|
|
33
33
|
update = { bundler: bundler }
|
34
34
|
end
|
35
35
|
|
36
|
+
file = options[:lockfile]
|
37
|
+
file = file ? Pathname.new(file).expand_path : Bundler.default_lockfile
|
38
|
+
|
36
39
|
Bundler.settings.temporary(frozen: false) do
|
37
|
-
definition = Bundler.definition(update)
|
40
|
+
definition = Bundler.definition(update, file)
|
38
41
|
|
39
42
|
Bundler::CLI::Common.configure_gem_version_promoter(definition, options) if options[:update]
|
40
43
|
|
@@ -60,10 +63,8 @@ module Bundler
|
|
60
63
|
if print
|
61
64
|
puts definition.to_lock
|
62
65
|
else
|
63
|
-
file = options[:lockfile]
|
64
|
-
file = file ? File.expand_path(file) : Bundler.default_lockfile
|
65
66
|
puts "Writing lockfile to #{file}"
|
66
|
-
definition.lock
|
67
|
+
definition.lock
|
67
68
|
end
|
68
69
|
end
|
69
70
|
|
data/bundler/lib/bundler/cli.rb
CHANGED
@@ -785,7 +785,7 @@ module Bundler
|
|
785
785
|
return unless SharedHelpers.md5_available?
|
786
786
|
|
787
787
|
latest = Fetcher::CompactIndex.
|
788
|
-
new(nil, Source::Rubygems::Remote.new(
|
788
|
+
new(nil, Source::Rubygems::Remote.new(Gem::URI("https://rubygems.org")), nil, nil).
|
789
789
|
send(:compact_index_client).
|
790
790
|
instance_variable_get(:@cache).
|
791
791
|
dependencies("bundler").
|
@@ -320,38 +320,26 @@ module Bundler
|
|
320
320
|
dependencies.map(&:groups).flatten.uniq
|
321
321
|
end
|
322
322
|
|
323
|
-
def lock(
|
324
|
-
|
325
|
-
|
326
|
-
|
327
|
-
|
328
|
-
|
329
|
-
|
330
|
-
contents.gsub!(/\n/, "\r\n") if @lockfile_contents.match?("\r\n")
|
331
|
-
|
332
|
-
if @locked_bundler_version
|
333
|
-
locked_major = @locked_bundler_version.segments.first
|
334
|
-
current_major = bundler_version_to_lock.segments.first
|
335
|
-
|
336
|
-
updating_major = locked_major < current_major
|
337
|
-
end
|
323
|
+
def lock(file_or_preserve_unknown_sections = false, preserve_unknown_sections_or_unused = false)
|
324
|
+
if [true, false, nil].include?(file_or_preserve_unknown_sections)
|
325
|
+
target_lockfile = lockfile || Bundler.default_lockfile
|
326
|
+
preserve_unknown_sections = file_or_preserve_unknown_sections
|
327
|
+
else
|
328
|
+
target_lockfile = file_or_preserve_unknown_sections
|
329
|
+
preserve_unknown_sections = preserve_unknown_sections_or_unused
|
338
330
|
|
339
|
-
|
331
|
+
suggestion = if target_lockfile == lockfile
|
332
|
+
"To fix this warning, remove it from the `Definition#lock` call."
|
333
|
+
else
|
334
|
+
"Instead, instantiate a new definition passing `#{target_lockfile}`, and call `lock` without a file argument on that definition"
|
335
|
+
end
|
340
336
|
|
341
|
-
|
342
|
-
return if Bundler.frozen_bundle?
|
343
|
-
SharedHelpers.filesystem_access(file) { FileUtils.touch(file) }
|
344
|
-
return
|
345
|
-
end
|
337
|
+
msg = "`Definition#lock` was passed a target file argument. #{suggestion}"
|
346
338
|
|
347
|
-
|
348
|
-
Bundler.ui.error "Cannot write a changed lockfile while frozen."
|
349
|
-
return
|
339
|
+
Bundler::SharedHelpers.major_deprecation 2, msg
|
350
340
|
end
|
351
341
|
|
352
|
-
|
353
|
-
File.open(p, "wb") {|f| f.puts(contents) }
|
354
|
-
end
|
342
|
+
write_lock(target_lockfile, preserve_unknown_sections)
|
355
343
|
end
|
356
344
|
|
357
345
|
def locked_ruby_version
|
@@ -518,7 +506,45 @@ module Bundler
|
|
518
506
|
end
|
519
507
|
|
520
508
|
def lockfile_exists?
|
521
|
-
|
509
|
+
file_exists?(lockfile)
|
510
|
+
end
|
511
|
+
|
512
|
+
def file_exists?(file)
|
513
|
+
file && File.exist?(file)
|
514
|
+
end
|
515
|
+
|
516
|
+
def write_lock(file, preserve_unknown_sections)
|
517
|
+
return if Definition.no_lock
|
518
|
+
|
519
|
+
contents = to_lock
|
520
|
+
|
521
|
+
# Convert to \r\n if the existing lock has them
|
522
|
+
# i.e., Windows with `git config core.autocrlf=true`
|
523
|
+
contents.gsub!(/\n/, "\r\n") if @lockfile_contents.match?("\r\n")
|
524
|
+
|
525
|
+
if @locked_bundler_version
|
526
|
+
locked_major = @locked_bundler_version.segments.first
|
527
|
+
current_major = bundler_version_to_lock.segments.first
|
528
|
+
|
529
|
+
updating_major = locked_major < current_major
|
530
|
+
end
|
531
|
+
|
532
|
+
preserve_unknown_sections ||= !updating_major && (Bundler.frozen_bundle? || !(unlocking? || @unlocking_bundler))
|
533
|
+
|
534
|
+
if file_exists?(file) && lockfiles_equal?(@lockfile_contents, contents, preserve_unknown_sections)
|
535
|
+
return if Bundler.frozen_bundle?
|
536
|
+
SharedHelpers.filesystem_access(file) { FileUtils.touch(file) }
|
537
|
+
return
|
538
|
+
end
|
539
|
+
|
540
|
+
if Bundler.frozen_bundle?
|
541
|
+
Bundler.ui.error "Cannot write a changed lockfile while frozen."
|
542
|
+
return
|
543
|
+
end
|
544
|
+
|
545
|
+
SharedHelpers.filesystem_access(file) do |p|
|
546
|
+
File.open(p, "wb") {|f| f.puts(contents) }
|
547
|
+
end
|
522
548
|
end
|
523
549
|
|
524
550
|
def resolver
|
@@ -58,9 +58,9 @@ module Bundler
|
|
58
58
|
env = @original.clone
|
59
59
|
@keys.each do |key|
|
60
60
|
value = env[key]
|
61
|
-
if !value.nil?
|
61
|
+
if !value.nil?
|
62
62
|
env[@prefix + key] ||= value
|
63
|
-
|
63
|
+
else
|
64
64
|
env[@prefix + key] ||= INTENTIONALLY_NIL
|
65
65
|
end
|
66
66
|
end
|
@@ -72,7 +72,7 @@ module Bundler
|
|
72
72
|
env = @original.clone
|
73
73
|
@keys.each do |key|
|
74
74
|
value_original = env[@prefix + key]
|
75
|
-
next if value_original.nil?
|
75
|
+
next if value_original.nil?
|
76
76
|
if value_original == INTENTIONALLY_NIL
|
77
77
|
env.delete(key)
|
78
78
|
else
|
@@ -23,7 +23,7 @@ module Bundler
|
|
23
23
|
when Gem::Net::HTTPSuccess, Gem::Net::HTTPNotModified
|
24
24
|
response
|
25
25
|
when Gem::Net::HTTPRedirection
|
26
|
-
new_uri =
|
26
|
+
new_uri = Gem::URI.parse(response["location"])
|
27
27
|
if new_uri.host == uri.host
|
28
28
|
new_uri.user = uri.user
|
29
29
|
new_uri.password = uri.password
|
@@ -111,7 +111,7 @@ module Bundler
|
|
111
111
|
spec -= [nil, "ruby", ""]
|
112
112
|
spec_file_name = "#{spec.join "-"}.gemspec"
|
113
113
|
|
114
|
-
uri =
|
114
|
+
uri = Gem::URI.parse("#{remote_uri}#{Gem::MARSHAL_SPEC_DIR}#{spec_file_name}.rz")
|
115
115
|
spec = if uri.scheme == "file"
|
116
116
|
path = Gem::Util.correct_for_windows_path(uri.path)
|
117
117
|
Bundler.safe_load_marshal Bundler.rubygems.inflate(Gem.read_binary(path))
|
@@ -255,7 +255,7 @@ module Bundler
|
|
255
255
|
|
256
256
|
con = Gem::Net::HTTP::Persistent.new name: "bundler", proxy: :ENV
|
257
257
|
if gem_proxy = Gem.configuration[:http_proxy]
|
258
|
-
con.proxy =
|
258
|
+
con.proxy = Gem::URI.parse(gem_proxy) if gem_proxy != :no_proxy
|
259
259
|
end
|
260
260
|
|
261
261
|
if remote_uri.scheme == "https"
|
@@ -50,7 +50,7 @@ module Bundler
|
|
50
50
|
append_to(gemfile_path, build_gem_lines(@options[:conservative_versioning])) if @deps.any?
|
51
51
|
|
52
52
|
# since we resolved successfully, write out the lockfile
|
53
|
-
@definition.lock
|
53
|
+
@definition.lock
|
54
54
|
|
55
55
|
# invalidate the cached Bundler.definition
|
56
56
|
Bundler.reset_paths!
|
@@ -47,7 +47,7 @@ module Bundler
|
|
47
47
|
|
48
48
|
def fetch_valid_mirror_for(uri)
|
49
49
|
downcased = uri.to_s.downcase
|
50
|
-
mirror = @mirrors[downcased] || @mirrors[
|
50
|
+
mirror = @mirrors[downcased] || @mirrors[Gem::URI(downcased).host] || Mirror.new(uri)
|
51
51
|
mirror.validate!(@prober)
|
52
52
|
mirror = Mirror.new(uri) unless mirror.valid?
|
53
53
|
mirror
|
@@ -74,7 +74,7 @@ module Bundler
|
|
74
74
|
@uri = if uri.nil?
|
75
75
|
nil
|
76
76
|
else
|
77
|
-
|
77
|
+
Gem::URI(uri.to_s)
|
78
78
|
end
|
79
79
|
@valid = nil
|
80
80
|
end
|
@@ -126,7 +126,7 @@ module Bundler
|
|
126
126
|
if uri == "all"
|
127
127
|
@all = true
|
128
128
|
else
|
129
|
-
@uri =
|
129
|
+
@uri = Gem::URI(uri).absolute? ? Settings.normalize_uri(uri) : uri
|
130
130
|
end
|
131
131
|
@value = value
|
132
132
|
end
|
@@ -107,7 +107,7 @@ module Bundler
|
|
107
107
|
def install_path
|
108
108
|
@install_path ||=
|
109
109
|
begin
|
110
|
-
base_name = File.basename(
|
110
|
+
base_name = File.basename(Gem::URI.parse(uri).normalize.path)
|
111
111
|
|
112
112
|
gem_install_dir.join("#{base_name}-#{uri_hash[0..11]}")
|
113
113
|
end
|
@@ -176,7 +176,7 @@ module Bundler
|
|
176
176
|
#
|
177
177
|
# This is used by `app_cache_path`
|
178
178
|
def app_cache_dirname
|
179
|
-
base_name = File.basename(
|
179
|
+
base_name = File.basename(Gem::URI.parse(uri).normalize.path)
|
180
180
|
"#{base_name}-#{uri_hash}"
|
181
181
|
end
|
182
182
|
|
@@ -95,7 +95,7 @@ module Bundler
|
|
95
95
|
|
96
96
|
def lock(opts = {})
|
97
97
|
return if @definition.no_resolve_needed?
|
98
|
-
@definition.lock(
|
98
|
+
@definition.lock(opts[:preserve_unknown_sections])
|
99
99
|
end
|
100
100
|
|
101
101
|
alias_method :gems, :specs
|
@@ -189,7 +189,7 @@ module Bundler
|
|
189
189
|
def mirror_for(uri)
|
190
190
|
if uri.is_a?(String)
|
191
191
|
require_relative "vendored_uri"
|
192
|
-
uri =
|
192
|
+
uri = Gem::URI(uri)
|
193
193
|
end
|
194
194
|
|
195
195
|
gem_mirrors.for(uri.to_s).uri
|
@@ -549,7 +549,7 @@ module Bundler
|
|
549
549
|
end
|
550
550
|
uri = URINormalizer.normalize_suffix(uri)
|
551
551
|
require_relative "vendored_uri"
|
552
|
-
uri =
|
552
|
+
uri = Gem::URI(uri)
|
553
553
|
unless uri.absolute?
|
554
554
|
raise ArgumentError, format("Gem sources must be absolute. You provided '%s'.", uri)
|
555
555
|
end
|
@@ -564,7 +564,7 @@ module Bundler
|
|
564
564
|
key
|
565
565
|
when Symbol
|
566
566
|
key.name
|
567
|
-
when
|
567
|
+
when Gem::URI::HTTP
|
568
568
|
key.to_s
|
569
569
|
else
|
570
570
|
raise ArgumentError, "Invalid key: #{key.inspect}"
|
@@ -577,7 +577,7 @@ module Bundler
|
|
577
577
|
key
|
578
578
|
when Symbol
|
579
579
|
key.to_s
|
580
|
-
when
|
580
|
+
when Gem::URI::HTTP
|
581
581
|
key.to_s
|
582
582
|
else
|
583
583
|
raise ArgumentError, "Invalid key: #{key.inspect}"
|
@@ -320,7 +320,7 @@ module Bundler
|
|
320
320
|
# Adds credentials to the URI
|
321
321
|
def configured_uri
|
322
322
|
if /https?:/.match?(uri)
|
323
|
-
remote =
|
323
|
+
remote = Gem::URI(uri)
|
324
324
|
config_auth = Bundler.settings[remote.to_s] || Bundler.settings[remote.host]
|
325
325
|
remote.userinfo ||= config_auth
|
326
326
|
remote.to_s
|
@@ -326,7 +326,7 @@ module Bundler
|
|
326
326
|
if %r{^\w+://(\w+@)?}.match?(uri)
|
327
327
|
# Downcase the domain component of the URI
|
328
328
|
# and strip off a trailing slash, if one is present
|
329
|
-
input =
|
329
|
+
input = Gem::URI.parse(uri).normalize.to_s.sub(%r{/$}, "")
|
330
330
|
else
|
331
331
|
# If there is no URI scheme, assume it is an ssh/git URI
|
332
332
|
input = uri
|
@@ -48,7 +48,7 @@ module Bundler
|
|
48
48
|
end
|
49
49
|
|
50
50
|
uri
|
51
|
-
rescue
|
51
|
+
rescue Gem::URI::InvalidComponentError
|
52
52
|
error_message = "Please CGI escape your usernames and passwords before " \
|
53
53
|
"setting them for authentication."
|
54
54
|
raise HTTPError.new(error_message)
|
@@ -349,9 +349,9 @@ module Bundler
|
|
349
349
|
def normalize_uri(uri)
|
350
350
|
uri = URINormalizer.normalize_suffix(uri.to_s)
|
351
351
|
require_relative "../vendored_uri"
|
352
|
-
uri =
|
352
|
+
uri = Gem::URI(uri)
|
353
353
|
raise ArgumentError, "The source must be an absolute URI. For example:\n" \
|
354
|
-
"source 'https://rubygems.org'" if !uri.absolute? || (uri.is_a?(
|
354
|
+
"source 'https://rubygems.org'" if !uri.absolute? || (uri.is_a?(Gem::URI::HTTP) && uri.host.nil?)
|
355
355
|
uri
|
356
356
|
end
|
357
357
|
|
@@ -65,7 +65,7 @@ module Bundler
|
|
65
65
|
|
66
66
|
platforms.concat(new_platforms)
|
67
67
|
|
68
|
-
less_specific_platform = new_platforms.find {|platform| platform != Gem::Platform::RUBY &&
|
68
|
+
less_specific_platform = new_platforms.find {|platform| platform != Gem::Platform::RUBY && Bundler.local_platform === platform }
|
69
69
|
platforms.delete(Bundler.local_platform) if less_specific_platform
|
70
70
|
|
71
71
|
platforms
|
@@ -11,7 +11,7 @@ module Bundler
|
|
11
11
|
return uri if File.exist?(uri)
|
12
12
|
|
13
13
|
require_relative "vendored_uri"
|
14
|
-
uri =
|
14
|
+
uri = Gem::URI(uri)
|
15
15
|
end
|
16
16
|
|
17
17
|
if uri.userinfo
|
@@ -25,7 +25,7 @@ module Bundler
|
|
25
25
|
end
|
26
26
|
return uri.to_s if uri_to_anonymize.is_a?(String)
|
27
27
|
uri
|
28
|
-
rescue
|
28
|
+
rescue Gem::URI::InvalidURIError # uri is not canonical uri scheme
|
29
29
|
uri
|
30
30
|
end
|
31
31
|
|