1658 Commits
Author SHA1 Message Date
Hiroshi SHIBATA e9cc29bb5d Pend some tests because these are not working with macOS 15 and Xcode 16 2024-11-06 13:30:32 +09:00
Hiroshi SHIBATA c39b19c5f0 Merge RubyGems-3.3.27 and Bundler-2.3.27 (#8889) 2023-11-10 07:56:05 +00:00
Hiroshi SHIBATA 992f3956d3 Relax matching pattern for rake version for Ruby 3.1 (#8798)
[rubygems/rubygems] Relax matching pattern for rake version

https://github.com/rubygems/rubygems/commit/a89f74c27e
2023-10-30 06:25:15 +00:00
U.Nakamura 48b00c4d63 Fix previous commit 2023-06-20 10:32:50 +09:00
U.Nakamura 6302bf2ebe merge revision(s) d2520b7b76: [Backport #19439]
Marshal.load: restore instance variables on Regexp

	[Bug #19439]

	The instance variables were restore on the Regexp source,
	not the regexp itself.

	Unfortunately we have a bit of a chicken and egg problem.

	The source holds the encoding, and the encoding need to be set on
	the source to be able to instantiate the Regexp.

	So the instance variables have to be read on the `source`.
	To correct this we transfert the instance variables after
	instantiating the Regexp.

	The only way to avoid this would be to read the instance variable
	twice and rewind.
	---
	 marshal.c                             | 20 ++++++++++++++++++--
	 spec/ruby/core/marshal/shared/load.rb | 11 +++++++++++
	 2 files changed, 29 insertions(+), 2 deletions(-)
2023-06-19 20:49:09 +09:00
nagachika c8ca169d68 merge revision(s) 8d1109c03b:
Added assertion values for Amazon Linux 2023

	---
	 spec/ruby/core/file/utime_spec.rb | 8 +++++---
	 1 file changed, 5 insertions(+), 3 deletions(-)
2023-03-25 16:04:53 +09:00
nagachika 8238354995 merge revision(s) d6ce4180a5: [Backport #19243]
Windows: Fix encoding of Dir.home

	Dir.home returns an UTF-8 string since ruby-3.0, but the actual
	encoding of the bytes was CP_ACP or CP_OEMCP.
	That led to invalid bytes when calling Dir.home with an unicode
	username.
	---
	 spec/ruby/core/dir/home_spec.rb | 11 +++++++++++
	 win32/file.c                    |  3 ++-
	 2 files changed, 13 insertions(+), 1 deletion(-)
2023-03-25 11:07:09 +09:00
nagachika 26b3f0b6a9 merge revision(s) 8ce2fb9bbbaea14737c84385b1573f743a30f773,3a0f6ce1d31eefd8af01b50f3632a64d64e8f8c1: [Backport #19415]
Only emit circular dependency warning for owned thread shields [Bug
	 #19415]

	If multiple threads attemps to load the same file concurrently
	it's not a circular dependency issue.

	So we check that the existing ThreadShield is owner by the current
	fiber before warning about circular dependencies.
	---
	 internal/thread.h                                     |  1 +
	 load.c                                                |  3 ++-
	 spec/ruby/core/kernel/shared/require.rb               | 11 +++++++++++
	 spec/ruby/fixtures/code/concurrent_require_fixture.rb |  4 ++++
	 test/ruby/test_require.rb                             |  3 ---
	 thread.c                                              | 11 +++++++++++
	 6 files changed, 29 insertions(+), 4 deletions(-)
	 create mode 100644 spec/ruby/fixtures/code/concurrent_require_fixture.rb

	Use Thread.pass until thread.stop? to wait for thread to block

	[Bug #19415]

	It should be more reliable
	---
	 spec/ruby/fixtures/code/concurrent_require_fixture.rb | 2 +-
	 1 file changed, 1 insertion(+), 1 deletion(-)
2023-03-21 15:32:44 +09:00
Hiroshi SHIBATA 14704023ec Merge RubyGems-3.3.26 and Bundler-2.3.26 2022-11-22 21:50:22 +09:00
Hiroshi SHIBATA b102175b4d Merge RubyGems-3.3.25 and Bundler-2.3.25 2022-11-22 21:50:22 +09:00
Hiroshi SHIBATA 6f59f0bebc Merge RubyGems-3.3.24 and Bundler-2.3.24 2022-11-22 21:50:22 +09:00
nagachika 8f2586f198 merge revision(s) 36f297e621:
Use valid tokens as cookie names

	---
	 spec/ruby/library/cgi/cookie/name_spec.rb  | 12 ++++++------
	 spec/ruby/library/cgi/cookie/parse_spec.rb | 10 +++++-----
	 2 files changed, 11 insertions(+), 11 deletions(-)
2022-11-22 20:55:17 +09:00
nagachika 597ce7966c merge revision(s) 54cad3123a: [Backport #19004]
[Bug #19004] `Complex.polar` handles complex singular `abs` argument

	`Complex.polar` accepts Complex values as arguments for the polar form as long
	as the value of the complex has no imaginary part (ie it is 'real'). In
	`f_complex_polar` this is handled by extracting the real part of the arguments.
	However in the case `polar` is called with only a single argument, the absolute
	value (abs), then the Complex is created without applying a check on the type
	of abs, meaning it is possible to create a Complex where the real part is itself
	an instance of a Complex. This change removes the short circuit for the single
	argument case meaning the real part extraction is performed correctly
	(by f_complex_polar).

	Also adds an example to `spec/ruby/core/complex/polar_spec.rb` to check that
	the real part of a complex argument is correctly extracted and used in the
	resulting Complex real and imaginary parts.
	---
	 complex.c                            | 13 ++++++-------
	 spec/ruby/core/complex/polar_spec.rb | 16 ++++++++++++++++
	 2 files changed, 22 insertions(+), 7 deletions(-)
2022-11-05 14:24:03 +09:00
nagachika 941c888b04 merge revision(s) bbe5ec7846: [Backport #18994]
rb_int_range_last: properly handle non-exclusive range

	[Bug #18994]
	---
	 range.c                           | 8 ++++----
	 spec/ruby/core/range/last_spec.rb | 6 ++++++
	 2 files changed, 10 insertions(+), 4 deletions(-)
2022-10-23 19:11:45 +09:00
nagachika 72e9097d37 merge revision(s) 4f1e0bfacd:
Followed up CVE-2022-39253 for bundler examples

	---
	 spec/bundler/cache/git_spec.rb           | 3 +++
	 spec/bundler/install/gemfile/git_spec.rb | 9 +++++++++
	 spec/bundler/update/git_spec.rb          | 3 +++
	 3 files changed, 15 insertions(+)
2022-10-20 20:30:28 +09:00
Hiroshi SHIBATA d77e6e653d Merge RubyGems-3.3.23 and Bundler-2.3.23 2022-10-08 12:27:30 +09:00
Hiroshi SHIBATA df1cf0a08b Re-enable example for Europe/Amsterdam pre-1970 time
* https://github.com/ruby/spec/pull/939
  * https://github.com/ruby/ruby/pull/6393
2022-10-01 20:29:30 +09:00
nagachika 9e739022de merge revision(s) 94cea3e4d0a60326bd95be762819eed8ccd59ca6,aa53d69aa21c4dfa2a78a1cec5cb34e9697b3d30,6b7d32a5e54088b6b4014529bbf2b4b8c1a96029,c6319026caa6c8f0f569f80011e8502349a04b14,aa490f9442c32cd0e1e449ac817f410bd5924c8b: [Backport #18435]
Fix {Method,UnboundMethod}#super_method for zsuper methods

	* We need to resolve the zsuper method first, and then look the super
	  method of that.
	---
	 proc.c                                            | 25 ++++++++++++-----------
	 spec/ruby/core/method/super_method_spec.rb        | 15 +++-----------
	 spec/ruby/core/unboundmethod/super_method_spec.rb | 16 ++++++---------
	 3 files changed, 22 insertions(+), 34 deletions(-)

	Add specs for {Method,UnboundMethod}#owner of a zsuper method

	---
	 spec/ruby/core/method/owner_spec.rb        | 6 ++++++
	 spec/ruby/core/unboundmethod/owner_spec.rb | 7 +++++++
	 2 files changed, 13 insertions(+)

	Resolve zsuper method during lookup but preserve owner separately

	* See https://bugs.ruby-lang.org/issues/18729#note-34
	* See [Bug #18729]
	---
	 proc.c                   | 109 +++++++++++++++++++++++++----------------------
	 test/ruby/test_method.rb |  66 +++++++++++++++++++++++-----
	 2 files changed, 114 insertions(+), 61 deletions(-)

	Extend tests for a zsuper method of which the method it resolved to
	 has been removed

	---
	 test/ruby/test_method.rb | 41 +++++++++++++++++++++++++++++++++++++++++
	 1 file changed, 41 insertions(+)

	Reduce diff to proc.c @ b0b9f7201a

	* So it's easy to review https://github.com/ruby/ruby/pull/6242 +
	  https://github.com/ruby/ruby/pull/6467 and there are less changes
	  overall.
	---
	 proc.c                   | 76 ++++++++++++++++++------------------------------
	 test/ruby/test_method.rb |  7 +++--
	 2 files changed, 34 insertions(+), 49 deletions(-)
2022-10-01 15:32:44 +09:00
Hiroshi SHIBATA afb5971031 Merge RubyGems-3.3.22 and Bundler-2.3.22 2022-09-17 18:08:09 +09:00
nagachika 9581248c4a merge revision(s) b7577b4d9e:
The tzdata 2022c removed Amsterdam Mean Time

	---
	 spec/ruby/core/time/shared/local.rb | 2 ++
	 1 file changed, 2 insertions(+)
2022-09-10 16:54:43 +09:00
Hiroshi SHIBATA a9bf13a4df Merge RubyGems-3.3.21 and Bundler-2.3.21 2022-09-03 15:54:07 +09:00
Hiroshi SHIBATA 522b75f1b6 Merge RubyGems-3.3.20 and Bundler-2.3.20 2022-09-03 15:54:07 +09:00
Hiroshi SHIBATA 44c926f3a9 Merge RubyGems-3.3.19 and Bundler-2.3.19 2022-09-03 15:54:07 +09:00
Hiroshi SHIBATA 0918783347 Merge RubyGems-3.3.18 and Bundler-2.3.18 2022-09-03 15:54:07 +09:00
Hiroshi SHIBATA 7ef68dd74a Merge RubyGems-3.3.17 and Bundler-2.3.17 2022-09-03 15:54:07 +09:00
Hiroshi SHIBATA a01f5ad1ec Merge RubyGems-3.3.16 and Bundler-2.3.16 2022-09-03 15:54:07 +09:00
Hiroshi SHIBATA b9f6a09bd2 Merge RubyGems-3.3.15 and Bundler-2.3.15 2022-09-03 15:54:07 +09:00
Hiroshi SHIBATA d7862a5de4 Merge RubyGems-3.3.14 and Bundler-2.3.14 2022-09-03 15:54:07 +09:00
nagachika 5473c1064d merge revision(s) 8212aab81a77a2a91fb7c1681b4968171193b48f,209631a45f9682dedf718f4b4a140efe7d21a6fc: [Backport #18435]
Make Object#method and Module#instance_method not skip ZSUPER methods

	Based on https://github.com/jeremyevans/ruby/commit/c95e7e5329140f640b6497905485761f3336d967

	Among other things, this fixes calling visibility methods (public?,
	protected?, and private?) on them.  It also fixes #owner to show the
	class the zsuper method entry is defined in, instead of the original
	class it references.

	For some backwards compatibility, adjust #parameters and #source_location,
	to show the parameters and source location of the method originally
	defined. Also have the parameters and source location still be shown
	by #inspect.

	Clarify documentation of {Method,UnboundMethod}#owner.

	Add tests based on the description of https://bugs.ruby-lang.org/issues/18435
	and based on https://github.com/ruby/ruby/pull/5356#issuecomment-1005298809

	Fixes [Bug #18435] [Bug #18729]

	Co-authored-by: Benoit Daloze <eregontp@gmail.com>
	---
	 proc.c                   | 63 +++++++++++++++++++++++++++++++++++-------------
	 test/ruby/test_method.rb | 59 +++++++++++++++++++++++++++++++++++++++++----
	 2 files changed, 100 insertions(+), 22 deletions(-)

	Consider resolved-through-zsuper methods equal for compatibility

	* Fixes https://bugs.ruby-lang.org/issues/18751
	---
	 proc.c                                           | 65 +++++++++++-------------
	 spec/ruby/core/unboundmethod/equal_value_spec.rb | 37 ++++++++++++++
	 test/ruby/test_method.rb                         | 18 +++++++
	 3 files changed, 86 insertions(+), 34 deletions(-)
2022-09-03 15:05:32 +09:00
Hiroshi SHIBATA c7bbed2994 Merge RubyGems-3.3.13 and Bundler-2.3.13 2022-05-18 10:02:42 +09:00
Hiroshi SHIBATA 2e291e3ffd Merge RubyGems-3.3.12 and Bundler-2.3.12 2022-05-18 10:02:42 +09:00
Hiroshi SHIBATA 8ba584ff3c Merge RubyGems-3.3.11 and Bundler-2.3.11 2022-05-18 10:02:42 +09:00
Hiroshi SHIBATA 1a0c76f4e1 Merge RubyGems-3.3.9 and Bundler-2.3.9 2022-05-18 10:02:42 +09:00
Hiroshi SHIBATA b5ef64a8a1 Merge RubyGems-3.3.8 and Bundler-2.3.8 2022-05-18 10:02:42 +09:00
nagachika 7202f862ab merge revision(s) 1ff174bfd1:
[rubygems/rubygems] Fix a test for `bin/bundle update --bundler` to
	 pass on ruby/ruby.

	Consider the case that the latest Bundler version on RubyGems is higher than
	the `system_bundler_version` (= `Bundler::VERSION`) in `make test-bundler` on
	ruby/ruby.

	See <https://bugs.ruby-lang.org/issues/18643>.

	https://github.com/rubygems/rubygems/commit/bfa2f72cfa
	---
	 spec/bundler/commands/binstubs_spec.rb | 5 ++++-
	 1 file changed, 4 insertions(+), 1 deletion(-)
2022-05-01 18:44:55 +09:00
Hiroshi SHIBATA c8b5d7031e Merge RubyGems-3.3.7 and Bundler-2.3.7 (#5543) 2022-02-14 13:56:43 +09:00
Hiroshi SHIBATA 6794f8cf92 Merge pull request #5482 from hsbt/rubygems-3-3-bundler-2-3
Merge RubyGems 3.3.x and Bundler 2.3.x
2022-02-02 16:57:34 +09:00
Hiroshi SHIBATA da6a5e3ed1 Merge RubyGems-3.3.3 and Bundler-2.3.3 2021-12-25 07:40:52 +09:00
Hiroshi SHIBATA b0ad6cb371 Merge RubyGems-3.3.2 and Bundler-2.3.2 2021-12-24 10:35:31 +09:00
Hiroshi SHIBATA fb1ab27f53 Merge RubyGems-3.3.1 and Bundler-2.3.1 2021-12-23 09:44:45 +09:00
Hiroshi SHIBATA fff9b45fa9 Reverts the accidental commits for rubygems/bundler.
We stay to the stable version for releasing Ruby 3.1.0.

  Revert commits:
    b86a7ba492
    ef973aa7aa
2021-12-22 07:52:59 +09:00
David Rodríguez b86a7ba492 [rubygems/rubygems] Fix error when gem specified twice in gemfile under different platforms
https://github.com/rubygems/rubygems/commit/83bc87ca98
2021-12-22 03:12:57 +09:00
David Rodríguez ef973aa7aa [rubygems/rubygems] These commands shouldn't be failing, just warning
https://github.com/rubygems/rubygems/commit/04b1ac72b9
2021-12-22 03:12:56 +09:00
Hiroshi SHIBATA 69dc2ea465 Merge RubyGems-3.3.0 and Bundler-2.3.0 2021-12-21 15:27:05 +09:00
David RodríguezandAndré Arko 7bd25b9753 [rubygems/rubygems] Print warning when running potentially problematic rubygems + ruby combinations
https://github.com/rubygems/rubygems/commit/d6df0b7de0

Co-authored-by: André Arko <andre@arko.net>
2021-12-21 06:48:27 +09:00
David Rodríguez 01f95ede0e [rubygems/rubygems] Rename BUNDLE_SPEC_RUN environment variable
The `BUNDLE_` prefix should be reserved to first class settings that
should be listed when running `bundle config`. This one is just a hacky
environment variable that has not corresponding documented setting.

https://github.com/rubygems/rubygems/commit/7e255c5058
2021-12-21 06:48:27 +09:00
Jeremy Evans 3bd5f27f73 Remove Class#descendants 2021-12-20 11:02:15 -08:00
David Rodríguez 72db2e00d4 [rubygems/rubygems] Error tracing should be printed to stderr
https://github.com/rubygems/rubygems/commit/23178f7d7b
2021-12-20 06:49:49 +09:00
Koichi Sasada 45de4025f5 skip -v spec on MJIT
fix this failure:

```
configure ... cppflags=-DMJIT_FORCE_ENABLE
...
make test-spec

1)
The -v command line option when used alone prints version and ends FAILED
Expected
"ruby 3.1.0dev (2021-12-18T10:10:42Z master 78c175280b) +MJIT [x86_64-linux]
"
to include "ruby 3.1.0dev (2021-12-18T10:10:42Z master 78c175280b) [x86_64-linux]"
/tmp/ruby/v3/src/trunk-mjit-wait/spec/ruby/command_line/dash_v_spec.rb:9:in `block (3 levels) in <top (required)>'
/tmp/ruby/v3/src/trunk-mjit-wait/spec/ruby/command_line/dash_v_spec.rb:4:in `<top (required)>'
```

http://ci.rvm.jp/results/trunk-mjit-wait@phosphorus-docker/3759943
2021-12-19 01:07:02 +09:00
David Rodríguez 8d29d1292b [rubygems/rubygems] Improve errors a bit more
https://github.com/rubygems/rubygems/commit/f481e8f41a
2021-12-17 16:35:20 +09:00