3193 Commits

Author SHA1 Message Date
David Rodríguez
6b3c9cebe9 Normalize bundler bindir
This makes bundler consistent with all other gems, and makes the default
installation of Bundler in the release package look like any other
bundler installation.

Before (on preview3, for example), Bundler executable is installed at:

lib/ruby/gems/3.3.0+0/gems/bundler-2.5.0.dev/libexec/bundle

Now it's installed in the standard location:

lib/ruby/gems/3.3.0+0/gems/bundler-2.5.0.dev/exe/bundle
2023-12-13 12:59:23 +09:00
David Rodríguez
1572322e17
Sync with upstream rubygems (#9206) 2023-12-12 11:49:25 -08:00
Takashi Kokubun
fd7decbf04 Allow syncing tool/bundler 2023-12-12 11:19:02 -08:00
NARUSE, Yui
6b3abcf462 fix regexp pattern of diff 2023-12-12 11:22:40 +09:00
David Rodríguez
8c2480c9ed
Unlock tilt since we no longer support Ruby 2.6 2023-12-12 10:04:57 +09:00
Kazuhiro NISHIYAMA
9765ada69c Fix NoMethodError on fail
```
.../tool/lib/colorize.rb:56:in `resolve_color': undefined method `gsub' for an instance of Symbol (NoMethodError)

    color.gsub(/\b[a-z][\w ]+/) do |n|
	 ^^^^^
	from .../tool/lib/colorize.rb:47:in `decorate'
	from .../tool/lib/test/unit.rb:1012:in `block in failed'
```
2023-12-12 09:14:11 +09:00
Nobuyoshi Nakada
d9dbcd848f
Add bright colors and multiple attributes [ci skip]
Not only:
```
$ ruby colorize.rb fail foo
```

Also:
```
$ ruby colorize.rb 'bright_blue;bold' foo
```
2023-12-10 20:43:47 +09:00
Nobuyoshi Nakada
0096d6a809
Extract configuration and lookup methods [ci skip] 2023-12-10 20:43:44 +09:00
Hiroshi SHIBATA
f2c84c4884 Pick commit from https://github.com/rubygems/rubygems/pull/7085
Co-authored-by: Samuel Giddins <segiddins@segiddins.me>
2023-12-08 16:01:01 +09:00
Hiroshi SHIBATA
dab30b4d71 Pick commit from https://github.com/rubygems/rubygems/pull/7227
Co-authored-by: David Rodríguez <deivid.rodriguez@riseup.net>
2023-12-08 16:01:01 +09:00
yui-knk
071df40495 Lrama v0.5.12 2023-12-07 21:07:38 +09:00
Hiroshi SHIBATA
440ea778f2
VERSION file of JSON is removed from upstream 2023-12-05 14:27:19 +09:00
yui-knk
9f6c6f88c3 Lrama v0.5.11 2023-12-02 08:58:32 +09:00
Peter Zhu
128837e4a2 Support RUNRUBY_USE_RR for rr debugger 2023-11-29 17:54:58 -05:00
Peter Zhu
aee275165b debugger can never be nil 2023-11-29 17:54:58 -05:00
Peter Zhu
150ed44d87 Fix compaction during ary_make_partial
The ary_make_shared call may allocate, which can trigger a GC
compaction. This can cause the array to be embedded because it has a
length of 0.
2023-11-27 12:40:26 -05:00
Soutaro Matsumoto
1886ee190a
Bundle rbs-3.3.1 (#8921)
* bundle rbs-3.3.1
* Restore diff/subtract tests
2023-11-21 09:21:24 +00:00
Kevin Newton
323bec6295 RubyVM::InstructionSequence.compile_file_prism
* Provide a new API compile_file_prism which mirrors compile_file
but uses prism to parse/compile.
* Provide the ability to run test-all with RUBY_ISEQ_DUMP_DEBUG set
to "prism". If it is, we'll use the new compile_file_prism API to
load iseqs during the test run.
2023-11-20 12:45:29 -08:00
yui-knk
c56dd94db0 Lrama v0.5.10 2023-11-18 19:38:55 +09:00
Yusuke Endoh
5bf75c20a2 Refactor the settings of test-all out
test/runner.rb and tool/lib/test/unit/parallel.rb must use the same
settings. However, some settings were copied and pasted, while some were
added only to test/runner.rb.
This changeset creates tool/test/init.rb for all settings of test-unit,
which is loaded not only by test/runner.rb but also
tool/lib/test/unit/parallel.rb.

Background: the GEM_HOME environment variable was removed in
test/runner.rb, which prohibit `require "rake"` (note that rake is a
bundled gem). However the parallel mode didn't refrect this setting,
i.e., `require "rake"` was allowed.
This leads to an inconsistency, which actually affected a test test
defines s test class *only when* `require "rake"` is successful.
(test/rubygems/test_gem_package_task.rb)

https://github.com/ruby/ruby/actions/runs/6807729617/job/18511055636#step:8:1714
```
  /home/runner/work/ruby/ruby/src/tool/lib/test/unit.rb:729:in `const_get': uninitialized constant TestGemPackageTask (NameError)

                suites.map! {|r| ::Object.const_get(r[:testcase])}
                                         ^^^^^^^^^^
```
2023-11-15 19:27:10 +09:00
Soutaro Matsumoto
6fb030e6f1 Skip TOPDIR test 2023-11-14 22:08:32 +09:00
Hiroshi SHIBATA
e6b2cd15e3
Skip test_diff_* from rbs tests. It used bundle command 2023-11-14 20:35:56 +09:00
Peter Zhu
68869e9bd9 Revert "Revert "Remove SHAPE_CAPACITY_CHANGE shapes""
This reverts commit 5f3fb4f4e397735783743fe52a7899b614bece20.
2023-11-13 18:26:36 -05:00
Sorah Fukumori
952de171c0 make-snapshot: update RUBY_PATCHLEVEL_STR regexp
the regexp to replace RUBY_PATCHLEVEL_STR for prerelease snapshots doesn't
match since GH-8578.

follow-up: https://github.com/ruby/ruby/pull/8578
follow-up: 68df43788dc237a1071f02b2d82768f844696315
2023-11-13 11:28:48 +09:00
Peter Zhu
5f3fb4f4e3 Revert "Remove SHAPE_CAPACITY_CHANGE shapes"
This reverts commit f6910a61122931e4193bcc0fad18d839c319b720.

We're seeing crashes in the test suite of Shopify's core monolith after
this change.
2023-11-10 11:27:49 -05:00
Peter Zhu
f6910a6112 Remove SHAPE_CAPACITY_CHANGE shapes
We don't need to create a shape to transition capacity as we can
transition the capacity when the capacity of the SHAPE_IVAR changes.
2023-11-09 09:25:02 -05:00
Nobuyoshi Nakada
f2d6b41c8e
Ignore warnings about currently unsupported .debug_macinfo 2023-11-07 23:19:51 +09:00
Nobuyoshi Nakada
f8456b650b
Ignore duplicate libraries warnings from gcc 13 2023-11-07 23:19:50 +09:00
Nobuyoshi Nakada
304194d73e Remove files which are newly added but to be ignored 2023-11-07 10:45:02 +09:00
yui-knk
a15aa259db Lrama v0.5.9 2023-11-05 12:04:52 +09:00
Nobuyoshi Nakada
6b2a3c84a5
Update newer version gems only 2023-11-04 11:29:42 +09:00
Peter Zhu
38ba040d8b Make every initial size pool shape a root shape
This commit makes every initial size pool shape a root shape and assigns
it a capacity of 0.
2023-11-02 13:42:11 -04:00
Kevin Newton
a7a70bce82
rm prism type templates 2023-10-30 12:27:03 -04:00
Nobuyoshi Nakada
6589af52d2
Print the date to STDERR if STDIN is a part of input [ci skip] 2023-10-28 14:12:10 +09:00
Jun Aruga
a0b7574e59 .travis.yml: Simplify Travis CI.
* Remove CI functions for make test-all.
  I want to simplify the `.travis.yml` for us to maintain it easily. When we
  need to skip a test, we can fix the test file directly.
  I removed the `tool/ci_functions.sh` too. I confirmed the file is not used in
  any other files.
* .travis.yml: Remove a notification for IRC channel.
  GitHub Actions don't use this notification. The setting is outdated.
* Fix to skip the commit including the document keyword.
  There were 2 `if` syntax lines in the file.
* Remove ccache.
2023-10-27 19:16:13 +02:00
Nobuyoshi Nakada
934beac118
Select the destination for the latest date by whether inplace mode 2023-10-27 16:57:21 +09:00
Kevin Newton
3ed317a441
Remove JavaScript templates 2023-10-26 09:50:40 -04:00
yui-knk
7d159a8787 Lrama v0.5.8 2023-10-26 17:15:38 +09:00
Hiroshi SHIBATA
634e0ac140 Fix test failure with __runner_options__ renaming 2023-10-26 12:39:13 +09:00
lukeg
7717684d16 tool test/unit/testcase: rename vars @passed, @@current
to @__passed__, @@__current__.
@passed is redefined in a few test suites, and this could lead to bugs.

Also rename @options (Runner#options) to @__runner_options__, which is
only used in make test-tool anyway.
2023-10-26 12:39:13 +09:00
Kazuhiro NISHIYAMA
a6a67b0524
Do not append latest_date to gems/bundled_gems [ci skip] 2023-10-25 13:10:28 +09:00
Nobuyoshi Nakada
c86c6a84f5 [Bug #19968] Revert RBS revision to test
This reverts the commits for the master branch of RBS:

- commit f717faac632dd8664d0967f8e639b84d5d032854: "Update rbs
  revision to test"

    The target revision to test is in master branch, not for 3.2.x.

- commit 9e93af5329f35092c3de3ea37d4e9e181b800bb2: "Skip RBS
  `RbConfig::TOPDIR` test that is `nil` before installation"

    RbConfig_test.rb is not updated in 3.2.x branch.
2023-10-24 22:59:09 +09:00
Nobuyoshi Nakada
bf93ceb26b
Set date in message to the latest gem date [ci skip] 2023-10-23 23:13:55 +09:00
Hiroshi SHIBATA
df5bf5bb59
Removed unnecessary libraries of sync_tool 2023-10-23 17:28:50 +09:00
Hiroshi SHIBATA
9844371c6f
sync_tool is unnecessary now.
We can use https://github.com/ruby/test-unit-ruby-core for testing the default gems.
2023-10-23 17:22:27 +09:00
yui-knk
2d468358a5 Lrama v0.5.7 2023-10-23 13:14:15 +09:00
Nobuyoshi Nakada
9e93af5329 Skip RBS RbConfig::TOPDIR test that is nil before installation 2023-10-22 08:44:52 +09:00
Nobuyoshi Nakada
0ca5182ae5 RBS no longer has test/stdlib/Prime_test.rb 2023-10-22 08:44:52 +09:00
Nobuyoshi Nakada
361bce8d2c
[Bug #19967] Ignore library before build 2023-10-21 23:47:29 +09:00
Nobuyoshi Nakada
38b79b05fd
Fallback job status to normal if no tty 2023-10-21 19:47:05 +09:00