Commit graph

77079 commits

Author SHA1 Message Date
Koichi Sasada
3931921607 add debug print for the failure
http://ci.rvm.jp/results/trunk-gc-asserts@ruby-sp2-docker/4364584

```
  1) Failure:
TestObjSpace#test_dump_all [/tmp/ruby/src/trunk-gc-asserts/test/objspace/test_objspace.rb:599]:
number of strings.
<2> expected but was
<3>.
```
2022-12-28 15:46:16 +09:00
Nobuyoshi Nakada
c6c7f5900f Test bundler and bundled gems by exam 2022-12-28 09:15:31 +09:00
Nobuyoshi Nakada
84a4f1b3b2 Order test-bundler-parallel dependency 2022-12-28 09:15:31 +09:00
Mau Magnaguagno
ec7e082906 [ruby/irb] Refactor RubyLex#process_literal_type
(https://github.com/ruby/irb/pull/350)

Simplify part of regex ``[_a-zA-Z0-9]`` with equivalent shorthand ``\w``.
Replace case-when with match ``$1`` or default value ``?"``, making intention more clear.
2022-12-27 17:05:32 +00:00
Stan Lo
140c93e2dc [ruby/irb] Add dynamic prompt test case for quoted heredoc
(https://github.com/ruby/irb/pull/486)

31cfbeacbb
2022-12-27 16:43:44 +00:00
Eric Wong
db19714b17 load.c: remove unneeded rb_str_freeze calls
rb_fstring already resizes and freezes the string, so there's no
need to use rb_str_freeze.
2022-12-27 01:32:07 +00:00
Hiroshi SHIBATA
c09f342d04 [ruby/irb] Fix wrong conf path with XDG_CONFIG_HOME. It should be under the HOME directory, not current directory
33a5e55ffd
2022-12-27 00:09:12 +00:00
BurdetteLamar
8f678d61a5 [ruby/net-http] Adding links to references
1c8151aaf3
2022-12-26 22:17:18 +00:00
Takashi Kokubun
d5985049c7 Sync IRB master: tool/sync_default_gems.rb irb
It looks like tool/sync_default_gems.rb is not capable of cherry-picking
commits from ruby/irb. I just executed `tool/sync_default_gems.rb irb`
to fix the sync status.

I'm not sure if what's the cause. It could be related to some diff that
doesn't exist in ruby/ruby, or it might be related to non-linear history
due to merge commits. For next time, I'd like to at least exclude the
second possibility, so I disabled merge commits in ruby/irb.
2022-12-26 13:10:37 -08:00
Nobuyoshi Nakada
d01bcf378b [ruby/irb] Suppress "switching inspect mode" messages
565eeb3c19
2022-12-26 13:04:04 -08:00
Stan Lo
87988756d0 [ruby/irb] Remove unnecessary warning check on help command
It's not an intentional behavior of the command and it behaves
differently in different environments. So checking it actually brings
more problem than benefit.

b3203bc784
2022-12-26 13:04:04 -08:00
Stan Lo
148eb05ec1 [ruby/irb] Remove unnecessary test setup
cc6e6d26b6
2022-12-26 13:04:03 -08:00
st0012
8038bf239a [ruby/irb] Add test for the help command
9cacb5f352
2022-12-26 13:04:03 -08:00
tompng
953d4c22ed [ruby/irb] fix indent depth calculation after heredoc and embdoc
b7973dd2d2
2022-12-26 13:03:07 -08:00
tompng
f20aac5c59 [ruby/irb] fix auto-indent after multiline string
f65ec49684
2022-12-26 13:03:07 -08:00
dependabot[bot]
82ca477886 [rubygems/rubygems] Bump rb-sys
Bumps [rb-sys](https://github.com/oxidize-rb/rb-sys) from 0.9.52 to 0.9.53.
- [Release notes](https://github.com/oxidize-rb/rb-sys/releases)
- [Commits](https://github.com/oxidize-rb/rb-sys/compare/v0.9.52...v0.9.53)

---
updated-dependencies:
- dependency-name: rb-sys
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2022-12-26 20:09:30 +00:00
Gustavo Ribeiro
f5a035daf9 [rubygems/rubygems] deprecate gem build -C flag
fac241d4ef
2022-12-26 19:08:55 +00:00
Gustavo Ribeiro
08f6196bda [rubygems/rubygems] add global flag (-C) to change execution directory
312fc36711
2022-12-26 19:08:55 +00:00
dependabot[bot]
28a1743650 [rubygems/rubygems] Bump rb-sys in /test/rubygems/test_gem_ext_cargo_builder/custom_name
Bumps [rb-sys](https://github.com/oxidize-rb/rb-sys) from 0.9.52 to 0.9.53.
- [Release notes](https://github.com/oxidize-rb/rb-sys/releases)
- [Commits](https://github.com/oxidize-rb/rb-sys/compare/v0.9.52...v0.9.53)

---
updated-dependencies:
- dependency-name: rb-sys
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2022-12-26 17:20:26 +00:00
Nobuyoshi Nakada
a968d783a3 [ruby/irb] Test colors with enabling colors
998b7a74fa
2022-12-26 15:28:38 +00:00
Benoit Daloze
d93d786338 Try to fix RDoc markup for Enumerator 2022-12-26 15:28:37 +01:00
Koichi Sasada
c182d46d24 check NO_COLOR envval
Support `NO_COLOR` (https://no-color.org/) to make parsing output easy.
2022-12-26 23:06:35 +09:00
Kenta Murata
9f2378959e
numeric.c: Fix round_half_even for specific values (#7023)
Handle the integert and the float parts separately in round_half_even
to prevent error occursions in floating point calculation.
2022-12-26 21:02:47 +09:00
Nobuyoshi Nakada
bb60e4615f [DOC] Un-capitalize headings 2022-12-26 20:29:56 +09:00
Nobuyoshi Nakada
cb820bff33 [DOC] Update extension.rdoc
Refine the uses of word "Data", which were often ambiguous.  Also,
that word now refers the new class unrelated to `T_DATA`.
2022-12-26 20:29:56 +09:00
Nobuyoshi Nakada
b37e9c77fe
Suppress method redefinition warnings 2022-12-26 20:29:06 +09:00
Marco Costa
5e54c57d83 [DOC] Surface existing MonitorMixin documentation 2022-12-26 17:40:11 +09:00
yui-knk
adc29351f7 EXPR_DOT is set when next token is tANDDOT ("&.") [ci skip] 2022-12-26 17:34:57 +09:00
Nobuyoshi Nakada
b466f1a5fb Reset ABI version [ci skip] 2022-12-26 17:11:57 +09:00
Nobuyoshi Nakada
324656e5a5 make matz [ci skip] 2022-12-26 17:11:57 +09:00
Takashi Kokubun
fc03ba50f1 MJIT: Fix JIT code for multiple values in a single case
[Bug #19263]
2022-12-25 22:48:36 -08:00
git
39a96b4344 Update default gems list at b7ad60a794 [ci skip] 2022-12-26 06:10:05 +00:00
Hiroshi SHIBATA
b7ad60a794 Merge RubyGems/Bundler master
from 72fd3dd209
2022-12-26 15:09:21 +09:00
Sutou Kouhei
10c9ce9d4c bump up to 3.0.5 2022-12-26 15:09:21 +09:00
Kazuki Yamaguchi
24c9adcaeb [ruby/openssl] test/openssl/test_pkey.rb: allow failures in test_s_generate_parameters
Commit f2e2a5e5ed ("test/openssl/test_pkey.rb: allow failures in
test_s_generate_parameters", 2022-12-23) was completely bogus. The
problem in OpenSSL 3.0.0-3.0.5 is that errors from the callback are
sometimes silently suppressed.

ccc1594492
2022-12-26 15:09:21 +09:00
Junichi Ito
cea6951ecf [ruby/optparse] Add symbolize_names to getopts
3e63d878f8
2022-12-26 15:09:21 +09:00
Nobuyoshi Nakada
4c767c1354 [ruby/optparse] bump up to 0.4.0.pre.1
73661899ad
2022-12-26 15:09:21 +09:00
Burdette Lamar
8c8645f578 [ruby/net-http] [DOC] Adding links to references
(https://github.com/ruby/net-http/pull/97)

768115167a
2022-12-26 15:09:21 +09:00
BurdetteLamar
35aba09e7f [ruby/net-http] Adding links to references
b85530e6b8
2022-12-26 15:09:21 +09:00
Sutou Kouhei
50e58df0e3 [ruby/csv] Bump version
8606ee83e0
2022-12-26 15:09:21 +09:00
Sutou Kouhei
79ad045214 [ruby/strscan] Bump version
3ada12613d
2022-12-26 15:09:21 +09:00
Mau Magnaguagno
8df574a492 [ruby/fiddle] Prefer String#unpack1 in Fiddle::ValueUtil
(https://github.com/ruby/fiddle/pull/118)

String#unpack1 is available since Ruby 2.4, and support for older than
Ruby 2.5 was dropped by #85.
Also simplified a common return statement.
2022-12-26 15:09:21 +09:00
Sutou Kouhei
1dc8c18b72 [ruby/fiddle] Bump version
3033266902
2022-12-26 15:09:21 +09:00
Hiroshi SHIBATA
cc25e81fb7 Update generated version of racc on parser headers 2022-12-26 15:09:21 +09:00
Nobuyoshi Nakada
5df7118445
Skip insanely memory consuming tests
These tests do not only consume hundreds GiB bytes memory, result in
`rb_bug` when `RUBY_DEBUG` is enabled.
2022-12-26 15:01:44 +09:00
Takashi Kokubun
509da028c2
Rewrite Kernel#loop in Ruby (#6983)
* Rewrite Kernel#loop in Ruby

* Use enum_for(:loop) { Float::INFINITY }

Co-authored-by: Ufuk Kayserilioglu <ufuk@paralaus.com>

* Limit the scope to rescue StopIteration

Co-authored-by: Ufuk Kayserilioglu <ufuk@paralaus.com>
2022-12-25 21:46:29 -08:00
Hiroshi SHIBATA
a236661a62
Skip some examples for Ruby 3.3 2022-12-26 13:52:48 +09:00
Hiroshi SHIBATA
5ec94ff740
Generate parser-text.rb of racc when sync it 2022-12-26 13:17:33 +09:00
Jeremy Evans
1066d42ca8 Enable arm64 coroutine implementation on OpenBSD/arm64
Tested by another OpenBSD developer and confirmed to significantly
improve things.
2022-12-25 19:14:13 -08:00
git
d29096f4a8 Update default gems list at cd6c7613f3 [ci skip] 2022-12-26 03:08:21 +00:00