summaryrefslogtreecommitdiff
path: root/lib
AgeCommit message (Collapse)Author
2025-11-18[ruby/rubygems] Progressively enhance if DidYouMean is availableAustin Pray
https://github.com/ruby/rubygems/commit/a02353fb96
2025-11-18[ruby/rubygems] RubocopAustin Pray
https://github.com/ruby/rubygems/commit/a6bc30a827
2025-11-18[ruby/rubygems] use DidYouMean::SpellChecker for gem suggestionsAustin Pray
replaces Bundler::SimilarityDetector with DidYouMean::SpellChecker https://github.com/ruby/rubygems/commit/959bea1506
2025-11-18Downgrade net-http 0.7.0 because JRuby is not workingHiroshi SHIBATA
2025-11-18Use released version of net-http-0.8.0Hiroshi SHIBATA
2025-11-18[ruby/rubygems] Update resolv-0.6.3Hiroshi SHIBATA
https://github.com/ruby/rubygems/commit/778426fb73
2025-11-18[ruby/rubygems] Update optparse-0.8.0Hiroshi SHIBATA
https://github.com/ruby/rubygems/commit/4e02243f66
2025-11-18[ruby/rubygems] Update fileutils-1.8.0Hiroshi SHIBATA
https://github.com/ruby/rubygems/commit/f8fe7a5208
2025-11-18[ruby/rubygems] Update timeout-0.4.4Hiroshi SHIBATA
https://github.com/ruby/rubygems/commit/b6deff99c9
2025-11-18[ruby/rubygems] Update URI-1.1.1Hiroshi SHIBATA
https://github.com/ruby/rubygems/commit/07f2daf51e
2025-11-18[ruby/rubygems] Use released version of net-http-persistent-4.0.6Hiroshi SHIBATA
https://github.com/ruby/rubygems/commit/b237f759b0
2025-11-18[ruby/rubygems] Undeprecate `Gem::Version.new(nil)`Aaron Patterson
It seems like we were trying to deprecate passing `nil` to Gem::Version.new. This breaks existing code, and I don't think there is a good reason to deprecate this usage. I believe what we want to prevent is the following code: ```ruby Gem::Specification.new do |spec| spec.version = nil # suddenly the spec version is 0! p spec.version end ``` This commit allows people to manually construct `Gem::Version.new(nil)`, but when someone assigns `nil` as the Gem specification version, it sets the spec version to `nil` (making the specification invalid). People who manually construct `Gem::Version` objects and use nil should be allowed to do it, and `Gem::Version.new(nil) == Gem::Version.new("0")`, but people who assign `nil` in a gemspec will get an invalid gemspec. I think deprecation started [here](https://github.com/ruby/rubygems/pull/2203) but there doesn't seem to be a reason to do it. Fixes https://github.com/ruby/rubygems/pull/9052 https://github.com/ruby/rubygems/commit/ded5e909c2
2025-11-18[ruby/rubygems] Removed deprecated -C option from gem buildHiroshi SHIBATA
https://github.com/ruby/rubygems/commit/3471646d43
2025-11-17[ruby/rubygems] Removed unused deprecate loadingHiroshi SHIBATA
https://github.com/ruby/rubygems/commit/a49d315ecd
2025-11-17[ruby/time] Defer default year for zone_offset until neededSander Verdonschot
While parsing ISO 8601 timestamps like `2025-11-13T19:34:23.681726000Z` I noticed that a lot of time was spent to compute a default `year` argument to `zone_offset`. For ISO 8601, that year is never used, as all valid time zone designators match one of the earlier cases. This commit moves the computation of the default `year` value to just before it is used. This results in a 15% speedup parsing ISO 8601 timestamps on Mac OS X. https://github.com/ruby/time/commit/4a0bcbe575
2025-11-14[ruby/prism] Use `method_defined?` instead of `instance_methods.include?`Nobuyoshi Nakada
While the latter creates an intermediate array of all method names including all ancestors, the former just traverse the inheritance chain and can stop if found once. https://github.com/ruby/prism/commit/6da384dd0e
2025-11-14[ruby/rubygems] Removed deprecated Gem::Specification#has_rdoc, has_rdoc= ↵Hiroshi SHIBATA
and has_rdoc? https://github.com/ruby/rubygems/commit/b043538576
2025-11-14[ruby/rubygems] Add pattern matching support to Gem::NameTupleBrandon Weaver
https://github.com/ruby/rubygems/commit/9b19e1f555
2025-11-14[ruby/rubygems] Removed files for `gem query`Hiroshi SHIBATA
https://github.com/ruby/rubygems/commit/de269cfbb6
2025-11-14[ruby/rubygems] Removed deprecated ↵Hiroshi SHIBATA
Gem::DependencyInstaller#find_gems_with_sources https://github.com/ruby/rubygems/commit/1b3f3bf194
2025-11-14[ruby/rubygems] bin/rubocop -a --only Layout/EmptyLinesAroundClassBodyHiroshi SHIBATA
https://github.com/ruby/rubygems/commit/94d4e633d1
2025-11-14[ruby/rubygems] Removed deprecated Gem::Util.silent_systemHiroshi SHIBATA
https://github.com/ruby/rubygems/commit/728269cc4a
2025-11-14[ruby/rubygems] Removed deprecated Gem::Specification#validate_metadata, ↵Hiroshi SHIBATA
validate_dependencies and validate_permissions https://github.com/ruby/rubygems/commit/fbf38fc190
2025-11-14[ruby/rubygems] Removed deprecated Gem::Specification#default_executableHiroshi SHIBATA
https://github.com/ruby/rubygems/commit/84ceaff1b7
2025-11-14[ruby/rubygems] Removed deprecated Gem::Platform.matchHiroshi SHIBATA
https://github.com/ruby/rubygems/commit/f4b4f12f91
2025-11-14[ruby/rubygems] Removed deprecated Gem::Installer#unpackHiroshi SHIBATA
https://github.com/ruby/rubygems/commit/96cef34041
2025-11-14[ruby/rubygems] Removed deprecated ↵Hiroshi SHIBATA
Gem::BasicSpecification.default_specifications_dir https://github.com/ruby/rubygems/commit/60f0b87d47
2025-11-14[ruby/rubygems] Update vendored version of connection_pool to 2.5.4Hiroshi SHIBATA
https://github.com/ruby/rubygems/commit/3f5330c9fc
2025-11-14[ruby/rubygems] bin/rubocop -a --only Style/RedundantParenthesesHiroshi SHIBATA
https://github.com/ruby/rubygems/commit/be3b09c786
2025-11-14[Feature #21275] Bump Unicode version to 17.0.0Mari Imaizumi
2025-11-14[ruby/rubygems] Fix triple spacing when generating lockfileJimmy Lin
https://github.com/ruby/rubygems/commit/d3baf4110e
2025-11-13[ruby/net-http] releng v0.8.0Sorah Fukumori
https://github.com/ruby/net-http/commit/9d65391f54
2025-11-13[ruby/net-http] Drop support for Ruby 2.6Taketo Takashima
https://github.com/ruby/net-http/commit/a3a5bc45f6
2025-11-13[ruby/net-http] Fix handling of IPv6 literal hosts in `Net::HTTPGenericRequest`Taketo Takashima
Update uri dependency to version 0.11.0 or later to use `URI::HTTP#authority` and `URI#parse` without scheme https://github.com/ruby/net-http/commit/3d4f06bd7f Co-authored-by: 0x1eef <0x1eef@users.noreply.github.com> Co-authored-by: Sorah Fukumori <sora134@gmail.com>
2025-11-13[ruby/rubygems] Add debug logging information:Edouard CHIN
- I'd like to be able to see how long bundler takes for basic operations such as downloading a gem from Rubygems.org and installing a gem. It will now be possible with this commit by running `DEBUG=true bundle install` and have output that looks like: Fetching rack-test 2.2.0 Downloaded rack-test in: 50.523s Installing rack-test 2.2.0 Installed rack-test in: : 0.003s https://github.com/ruby/rubygems/commit/46386d43e1
2025-11-13[ruby/rubygems] Adjust the API_REQUEST_LIMIT:Edouard CHIN
- ### Problem This limit is used when Bundler fallback to getting a dependency list from a server `/dependencies?gem=` endpoint. Bundler uses this API endpoint fallback when a server doesn't expose the compact index API. This is not used for Rubygems.org, only private servers. This limit is then divided by the number of dependency to get and the result is the number of request we'll be doing. The bottleneck on the client is the network roundtrip. On the server, getting the info of 50 or 100 gems is a bit more expensive but this operation is heavily cached. This is an example of Rubygems.org implementation at the time the dependencies API wasn't deprecated https://github.com/rubygems/rubygems.org/blob/5a3a3ec02acc3a4e3aba077953a393ad20a06842/app/models/gem_dependent.rb#L15 ### Context This limit used to be 100 a while ago but got changed to 50 in https://github.com/ruby/rubygems/commit/e745f8dc901dd419e7dc8aede3e8d49569fc7b1e I don't know why. ### Solution 50 gems to query seems arbitrary low. By doubling this number, we make twice as less API requests which ultimately can shove up to two seconds on application relying on a large number of gems. https://github.com/ruby/rubygems/commit/831894043c
2025-11-12[ruby/rubygems] Add documentation for pattern matching methodsBrandon Weaver
https://github.com/ruby/rubygems/commit/18f64c6b29
2025-11-12[ruby/rubygems] Add pattern matching support to Gem::PlatformBrandon Weaver
https://github.com/ruby/rubygems/commit/b59917447c
2025-11-12[ruby/erb] Version 6.0.0Takashi Kokubun
https://github.com/ruby/erb/commit/bbaaf1f51b
2025-11-12[ruby/erb] Drop a deprecated constant ERB::RevisionTakashi Kokubun
https://github.com/ruby/erb/commit/1f83b2578f
2025-11-12[ruby/erb] Drop an obsolete constant ERB::NOT_GIVENTakashi Kokubun
and update some documentation https://github.com/ruby/erb/commit/9da628f21c
2025-11-12Reapply "[ruby/erb] Reapply "Remove safe_level and further positional"Takashi Kokubun
This reverts commit 5b6658a406b5f1c535aed4cb68e8e18a3cbabb81. With a ruby spec fix.
2025-11-12Revert "[ruby/erb] Reapply "Remove safe_level and further positional"Takashi Kokubun
This reverts commit 6ea4f36716f8970f418f32837575405ddeea75aa. I'll fix ruby/spec shortly. For now, let me just revert it for ruby/ruby.
2025-11-12[ruby/erb] Reapply "Remove safe_level and further positionalTakashi Kokubun
arguments (https://github.com/ruby/erb/pull/7)" (https://github.com/ruby/erb/pull/95) This reverts commit https://github.com/ruby/erb/commit/1c02d23dc618. https://github.com/ruby/erb/commit/4162a24ecc
2025-11-12Reapply "[ruby/rubygems] Fix constants in TAR to be frozen"Hiroshi SHIBATA
This reverts commit 136157e772ab2b2ea08555d0ad821da7dc2bde96.
2025-11-12tsort will be extracted at 4.1, not 3.6Hiroshi SHIBATA
2025-11-12Replace Ruby 3.5 with Ruby 4.0Hiroshi SHIBATA
2025-11-12[ruby/error_highlight] Replace Ruby 3.5 with Ruby 4.0Yasuo Honda
This commit updates the Ruby version to follow the commit in Ruby master branch. https://github.com/ruby/ruby/commit/6d81969b475262aba251e99b518181bdf7c5a523 https://github.com/ruby/error_highlight/commit/dcecf68d75
2025-11-12[ruby/net-http] Replace Ruby 3.5 with Ruby 4.0Yasuo Honda
This commit updates the Ruby version to follow the commit in Ruby master branch. https://github.com/ruby/ruby/commit/6d81969b475262aba251e99b518181bdf7c5a523 https://github.com/ruby/net-http/commit/1e48cfaaf7
2025-11-11Update Ruby version to 4.0 for the cgi warnings (#15141)Yasuo Honda
This commit updates the Ruby version in the error message to follow the commit in Ruby master branch. https://github.com/ruby/ruby/commit/6d81969b475262aba251e99b518181bdf7c5a523