3323 Commits

Author SHA1 Message Date
Kazuki Yamaguchi
f7e7443aaa Adjust OpenSSL specs for digest algorithm lookup
https://github.com/ruby/openssl/pull/958 changed the common logic for
digest algorithm lookup:

 - If the argument is neither an OpenSSL::Digest instance nor a String,
   it is now implicitly converted to String with #to_str. This is
   consistent with algorithm name lookup logic in ruby/openssl for pkeys
   and ciphers.

 - If the name is not recognized, OpenSSL::Digest::DigestError is raised
   instead of RuntimeError.

Update the specs accordingly:

 - Remove specs that expect #to_str not to be called.

 - Relax regexps matching TypeError messages.

 - Expect OpenSSL::Digest::DigestError instead of RuntimeError for
   ruby/openssl 4.0.0 and later.
2025-11-06 08:19:28 -08:00
Nobuyoshi Nakada
49b06f40af Use the exception class mentioned in the doc
Instead of an undocumented constant.
2025-11-05 13:53:26 +09:00
Takashi Kokubun
7a0d730ee3 Resurrect tests for StringScanner#rest?
that has not been obsolete.

Partially reverting https://github.com/ruby/ruby/pull/15049.
2025-11-04 13:40:10 -08:00
Nobuyoshi Nakada
091a1cd880
Remove tests for obsolete StringScanner methods
ruby/strscan#168
2025-11-05 04:06:05 +09:00
K.Takata
bfbbcf3455 [Bug #13671] Fix that "ss" in look-behind causes syntax error
Fixes k-takata/Onigmo#92.

This fix was ported from oniguruma:
257082dac8

b1a5445fbe
2025-10-31 20:49:59 +09:00
Nobuyoshi Nakada
481f994449 [Feature #19630] Limit the versions with the old behavior
It is already declared as:
> This behavior is slated to be removed in Ruby 4.0
2025-10-30 22:32:18 +09:00
Nobuyoshi Nakada
f8d7482d02
Fix for other than UTF-8 environments 2025-10-29 14:26:39 +09:00
Nobuyoshi Nakada
103e91a063
Remove alternatives for ruby 1.8 and earliers 2025-10-29 14:26:39 +09:00
Andrew Konchin
882e167768 Update to ruby/spec@3bc45ba 2025-10-28 20:49:51 +01:00
Hiroshi SHIBATA
52451798d2 [ruby/rubygems] Simulate default gems manually
https://github.com/ruby/rubygems/commit/c3cc38c72c
2025-10-28 11:06:18 +00:00
Hiroshi SHIBATA
6a1644ddca [ruby/rubygems] If we use shared GEM_HOME and install multiple versions, it may cause unexpected test failures.
```
       Fetching gem metadata from https://gem.repo4/.
       Resolving dependencies...
       Resolving dependencies...
       # $? => 0
       cannot load such file -- diff/lcs
```

https://github.com/ruby/rubygems/commit/668b300261
2025-10-27 07:33:45 +00:00
Hiroshi SHIBATA
504a1ba7ee [ruby/rubygems] Use dummy gem instead of uri.
If we install uri-1.0.4 as default gems. The example may be failed with
version miss-match.

https://github.com/ruby/rubygems/commit/fd2dcb502b
2025-10-27 07:33:44 +00:00
Hiroshi SHIBATA
db59619ce5 [ruby/rubygems] Fixup
https://github.com/ruby/rubygems/commit/9b3a5a8ae9cd

https://github.com/ruby/rubygems/commit/8f6eb4ac64
2025-10-27 06:21:53 +00:00
Hiroshi SHIBATA
22ceaf278f [ruby/rubygems] Now ruby/rubygems is the canonical repository url
https://github.com/ruby/rubygems/commit/c637007e91
2025-10-20 06:52:54 +00:00
Hiroshi SHIBATA
5298e97954
[rubygems/rubygems] Postpone to remove legacy mingw platform
https://github.com/rubygems/rubygems/commit/9b3a5a8ae9
2025-10-17 21:39:13 +09:00
Edouard CHIN
dce202d6d6 [rubygems/rubygems] Add checksum of gems hosted on private servers:
- ### Problem

  Running `bundle lock --add-checksums` doesn't add the checksum of
  gems hosted on server that don't implement the compact index API.

  This result in a lockfile which is unusable in production as
  some checksums will be missing and Bundler raising an error.
  Users can work around this problem by running:

  `BUNDLE_LOCKFILE_CHECKSUMS=true bundle install --force`

  But this means redownloading and installing all gems which isn't
  great and slow on large apps.

  ### Context

  Bundler uses the Compact Index API to get the checksum of gems,
  but most private gem servers don't implement the compact index API
  (such as cloudsmith or packagecloud). This results in a soft failure
  on bundler side, and bundler leaving out blank checksum for those
  gems.

  ### Solution

  For gems that are hosted on private servers that don't send back
  the checksum of the gem, I'd like to fallback to the
  `bundle install` mechanism, which don't rely on an external API but
  instead compute the checksum of the package installed on disk.

  This patch goes through the spec that didn't return a checksum,
  and compute one if the package exists on disk.
  This solution makes the  `bundle lock --add-checksums` command
  actually usable in real world scenarios while keeping the
  `bundle lock` command fast enough.

https://github.com/rubygems/rubygems/commit/8e9abb5472
2025-10-15 09:54:50 +00:00
Hiroshi SHIBATA
6c9acb533f [rubygems/rubygems] Added example for global path with Gemfile
https://github.com/rubygems/rubygems/commit/cd1493eec4
2025-10-15 07:15:49 +00:00
Hiroshi SHIBATA
c3e6e65591 [rubygems/rubygems] Removed duplicated examples with bundle install
https://github.com/rubygems/rubygems/commit/59b909fa74
2025-10-15 07:15:49 +00:00
David Rodríguez
a60b56c33d [rubygems/rubygems] Use default_cache_path helper for brevity
https://github.com/rubygems/rubygems/commit/29a12c3d46
2025-10-15 07:15:49 +00:00
David Rodríguez
92cbd7ec33 [rubygems/rubygems] Test current clean after bundle update behavior
https://github.com/rubygems/rubygems/commit/c43e35c3ea
2025-10-15 07:15:48 +00:00
Hiroshi SHIBATA
d99a4295a8 [rubygems/rubygems] Restore an accidentally changes of cache_spec.rb
https://github.com/rubygems/rubygems/commit/06508374aa
2025-10-15 07:15:48 +00:00
Hiroshi SHIBATA
26d1e6947e [rubygems/rubygems] Replaced Bundler::SharedHelpers.major_deprecation to feature_removed! or feature_deprecated!
https://github.com/rubygems/rubygems/commit/b1b963b34a

Co-authored-by: David Rodríguez <2887858+deivid-rodriguez@users.noreply.github.com>
2025-10-15 02:40:13 +00:00
Hiroshi SHIBATA
366e9c55f5 [rubygems/rubygems] Bump up to test version for 4.0.0.dev
https://github.com/rubygems/rubygems/commit/9d70887185
2025-10-14 08:30:06 +00:00
Hiroshi SHIBATA
d0b89cab4e [rubygems/rubygems] Added example for legacy windows platform
https://github.com/rubygems/rubygems/commit/90130c0648
2025-10-14 07:55:36 +00:00
Hiroshi SHIBATA
f142d1b598 [rubygems/rubygems] Removed obsoleted examples for legacy windows platform
https://github.com/rubygems/rubygems/commit/7b0da18764
2025-10-14 07:55:36 +00:00
Hiroshi SHIBATA
e326e22eb8 [rubygems/rubygems] Removed deprecated legacy windows platform support
https://github.com/rubygems/rubygems/commit/7d910dd94c

Co-authored-by: David Rodríguez <2887858+deivid-rodriguez@users.noreply.github.com>
2025-10-14 07:55:36 +00:00
tomoya ishida
0ba6379aca
Update bundled bigdecimal version (#14809)
* Update bigdecimal spec

* Update bundled bigdecimal to 3.3.1
2025-10-11 01:39:54 +09:00
Hiroshi SHIBATA
4a285dd91a [rubygems/rubygems] Added extra examples for cli_help default command
https://github.com/rubygems/rubygems/commit/b2472e7b82

Co-authored-by: David Rodríguez <2887858+deivid-rodriguez@users.noreply.github.com>
2025-10-10 07:59:35 +00:00
Hiroshi SHIBATA
a05a5263f3 [rubygems/rubygems] Update lockfiles with 4.0.0.dev
https://github.com/rubygems/rubygems/commit/82d46d3b28
2025-10-09 20:37:27 +09:00
Hiroshi SHIBATA
787d022712 [rubygems/rubygems] bin/rubocop -A
https://github.com/rubygems/rubygems/commit/12753b3262
2025-10-09 20:37:27 +09:00
Hiroshi SHIBATA
ccfea54d9b [rubygems/rubygems] Catch error instead of deprecated message at --no-keep-file-descriptors option
https://github.com/rubygems/rubygems/commit/8945e0872b

Co-authored-by: David Rodríguez <2887858+deivid-rodriguez@users.noreply.github.com>
2025-10-09 20:37:27 +09:00
Hiroshi SHIBATA
45e6dcd919 [rubygems/rubygems] Removed obsoleted windows platform example
https://github.com/rubygems/rubygems/commit/edd6b1d335

Co-authored-by: David Rodríguez <2887858+deivid-rodriguez@users.noreply.github.com>
2025-10-09 20:37:27 +09:00
Hiroshi SHIBATA
89a4b684d9 [rubygems/rubygems] Removed obsoleted example
https://github.com/rubygems/rubygems/commit/b9960f2c6a

Co-authored-by: David Rodríguez <2887858+deivid-rodriguez@users.noreply.github.com>
2025-10-09 20:37:27 +09:00
Hiroshi SHIBATA
8a213f74e3 [rubygems/rubygems] Removed Bundler.current_ruby.maglev*? and raise Bundler::RemovedError
https://github.com/rubygems/rubygems/commit/0d4e77d798

Co-authored-by: David Rodríguez <2887858+deivid-rodriguez@users.noreply.github.com>
2025-10-09 20:37:27 +09:00
Hiroshi SHIBATA
a6faf04092 [rubygems/rubygems] Fixed failing examples with 4.0.0.dev version
https://github.com/rubygems/rubygems/commit/0e553c4425
2025-10-09 20:37:27 +09:00
Edouard CHIN
f96c332f5c [rubygems/rubygems] Fix bundle install when the Gemfile contains "install_if" git gems:
- Fix https://github.com/rubygems/rubygems/pull/8985
- ### Problem

  If you have a Gemfile that contains a `install_if` git gem, it will
  be impossible to add other gems in the Gemfile and run
  `bundle install`, you'll get a "The git source [...] is not yet
  checked out".

  ### Context

  The change that modified this behaviour was in https://github.com/rubygems/rubygems/commit/abbea0cc94dd,
  and the issue is about the call to `current_dependencies`.
  This call filters out irrelevant dependencies such as the one that
  get condtionnally installed. By doing so, we skip over setting
  the source based of the lockfile for that dependency
  ade324bdc8/bundler/lib/bundler/definition.rb (L978)

  Ultimately, because of this, the dependency source doesn't have
  any additional information such as the `revision`. Down the line,
  when we end up to converge the spec, Bundler will attempt to get the
  revision for that spec but won't be able to because the git source
  isn't configured to allow running git operations.

  ### Solution

  Filter out the irrelevant only spec only after we have set its
  source.

https://github.com/rubygems/rubygems/commit/d2af439671
2025-10-09 20:37:27 +09:00
Benoit Daloze
960c28a4f8 FreeBSD returns EAI_FAIL instead of EAI_FAMILY in getaddrinfo and getnameinfo specs 2025-10-09 11:26:51 +02:00
Benoit Daloze
50593d5199 Update to ruby/spec@3d7e563 2025-10-08 17:59:52 +02:00
Benoit Daloze
5e7e604093 Update to ruby/mspec@6a7b509 2025-10-08 17:59:51 +02:00
Nobuyoshi Nakada
c6a119c751
Update rubyspec as of CVE-2025-27221 2025-10-07 10:30:16 +09:00
Nobuyoshi Nakada
ab49e8a0f0
[ruby/pp] [Feature #21389] Update rubyspec 2025-10-05 20:12:35 +09:00
Earlopain
77aaa6ab0a Interpolation with only string literals must not be frozen
Basically a redo of a1403fb7cb
but respecting the frozen string literal magic comment

Fixes [Bug #21187]
2025-10-01 15:22:51 -04:00
sodacris
a1a1c9080f [rubygems/rubygems] add loading support on Windows
https://github.com/rubygems/rubygems/commit/04574ba59a
2025-09-26 08:27:15 +09:00
sodacris
b600c95dc1 [rubygems/rubygems] skip checking title on Windows because it's not supported
https://github.com/rubygems/rubygems/commit/fd2c54f371
2025-09-26 08:27:13 +09:00
David Rodríguez
a4c277733b [rubygems/rubygems] Switch cache_all to be true by default
And make it a standard setting.

https://github.com/rubygems/rubygems/commit/17e356fa94
2025-09-19 19:30:10 +09:00
David Rodríguez
da130d25e3 [rubygems/rubygems] Completely remove passing --ext to bundle gem without a value
https://github.com/rubygems/rubygems/commit/9f34bf6854

Co-authored-by: Martin Emde <martinemde@users.noreply.github.com>
2025-09-19 19:30:10 +09:00
David Rodríguez
44a4f88159 [rubygems/rubygems] Switch lockfile_checksums to be true by default
https://github.com/rubygems/rubygems/commit/47c3dc19ee

Co-authored-by: Jonathan Barquero <jonbarlo@hotmail.com>
2025-09-19 19:30:10 +09:00
David Rodríguez
23fb4d5020 [rubygems/rubygems] Make bundle show --outdated raise an error
https://github.com/rubygems/rubygems/commit/3bbbf4a4e5
2025-09-19 19:30:10 +09:00
David Rodríguez
127a8c0bd3 [rubygems/rubygems] Make --local-git flag to bundle plugin install raise an error
https://github.com/rubygems/rubygems/commit/8bfe317e6d
2025-09-19 19:30:10 +09:00
David Rodríguez
a65c7c8428 [rubygems/rubygems] Fix parallel installation issue
If using a gem with precompiled versions having different dependencies
than the generic version from a path source, and with a lockfile
including a precompiled version, we would materialize the
generic version, but end up using dependencies for the precompiled
version. That will result in the parallel installer missing the
specifications for the extra dependencies of the generic version,
causing a crash.

If we are materializing for installation, make sure we use the
materialized specification when traversing dependencies.

https://github.com/rubygems/rubygems/commit/5f75d75de7
2025-09-19 19:30:10 +09:00