Граф коммитов

74789 Коммитов

Автор SHA1 Сообщение Дата
Takashi Kokubun 9c13fc614c
MJIT: Make it parsable by Solargraph (#6827)
* Revert "Revert "MJIT: Make it parsable by Solargraph""

This reverts commit 8e18761da1.

* Call rb_gc_register_mark_object
2022-11-28 21:33:55 -08:00
Takashi Kokubun acb76663ba MJIT: Rename mjit_compiler.h to mjit_c.h
because it exists primarily for generating mjit_c.rb.
2022-11-28 21:23:14 -08:00
Shugo Maeda 74bdf09215
Add tests for [Feature #19134]
https://bugs.ruby-lang.org/issues/19134?next_issue_id=19133&prev_issue_id=19135#note-4
2022-11-29 14:18:16 +09:00
git 4db429d211 Update default gems list at 4f8c6711dd [ci skip] 2022-11-29 04:59:09 +00:00
Takashi Kokubun 4f8c6711dd [ruby/erb] Version 4.0.2
https://github.com/ruby/erb/commit/8c8ff1551b
2022-11-29 04:58:29 +00:00
Takashi Kokubun 129d208f9a [ruby/erb] Fix line numbers after multi-line <%#
(https://github.com/ruby/erb/pull/42)

https://github.com/ruby/erb/commit/526885923e
2022-11-29 04:56:03 +00:00
Shugo Maeda b5726892d0 Use rbs HEAD for [Feature #19134] 2022-11-29 11:22:09 +09:00
Shugo Maeda a0e4dc52b0 Use idFWD_* instead of ANON_*_ID 2022-11-29 11:22:09 +09:00
Shugo Maeda 4fc668a4f3 Allow ** in def foo(...)
[Feature #19134]
2022-11-29 11:22:09 +09:00
Burdette Lamar ee49fe5d34 [ruby/net-http] Enhanced RDoc for header Range
(https://github.com/ruby/net-http/pull/82)

https://github.com/ruby/net-http/commit/a26f62a2e5
2022-11-28 23:33:15 +00:00
moenodedev 579c8cb01c [rubygems/rubygems] Remove pointer to RVM documentation
https://github.com/rubygems/rubygems/commit/7467019d87
2022-11-28 23:20:59 +00:00
Maxime Chevalier-Boisvert 8a74361b41
Update yjit.md to mention `RUBY_YJIT_ENABLE` 2022-11-28 16:45:42 -05:00
git 612b528c8a Update default gems list at d13de3a62e [ci skip] 2022-11-28 18:45:17 +00:00
Takashi Kokubun d13de3a62e [ruby/irb] Version 1.5.1
https://github.com/ruby/irb/commit/f9507923fa
2022-11-28 18:44:36 +00:00
Takashi Kokubun c5279db75f [ruby/irb] Fix the debug.gem force-loader for Ruby 3.2
(https://github.com/ruby/irb/pull/458)

* Fix the debug.gem force-loader for Ruby 3.2

* Support 1.7.0dev format as well
2022-11-28 18:42:59 +00:00
Yusuke Endoh f3ad68dd16 [ruby/optparse] Fix the test failure i ruby/ruby
```
$ make test-all TESTS=test/optparse/
...

[148/178] TestOptionParserDidYouMean#test_raise_unknown = 0.00 s
  1) Failure:
TestOptionParserDidYouMean#test_raise_unknown [/home/mame/work/ruby/test/optparse/test_optparse.rb:106]:
<["--bar"]> expected but was
<[]>.
```

In the old test/unit (bundled in ruby/ruby), when a test class inherits from
another test class, the child class runs all the tests defined in the parent
class.
However, it looks like the new test/unit does not do so. This is because the
test failure does not occur in ruby/optparse.

As a tentative solution, this changes the option names in TestOptionParser to
avoid the name conflict with TestOptionParserDidYouMean.

https://github.com/ruby/optparse/commit/fee86ef7a4
2022-11-28 16:20:40 +00:00
Nobuyoshi Nakada b649850d4a
Force to update revision.h after the source updated [ci skip] 2022-11-28 23:36:58 +09:00
Nobuyoshi Nakada 0bfb185654 [ruby/optparse] Add `raise_unknown` flag
(https://github.com/ruby/optparse/pull/38)

https://github.com/ruby/optparse/commit/12529653cd
2022-11-28 14:24:06 +00:00
git dcf94e719c Update default gems list at 476700c06f [ci skip] 2022-11-28 12:50:43 +00:00
schneems 476700c06f
[ruby/syntax_suggest] v1.0.0
https://github.com/ruby/syntax_suggest/commit/f142fcbf96
2022-11-28 20:55:42 +09:00
schneems f64ba0fadd
[ruby/syntax_suggest] Do not output "Syntax OK" when there's an error
Due to a problem with ripper we do not recognize `break` as invalid code. It's confusing that "Syntax OK" is output in that case.

When there's no syntax error, the algorithm should not say anything. The exception is in the CLI and that's for compatibility with `ruby -wc`

```
$ cat /tmp/break.rb
break
️ 3.1.2 🚀 /Users/rschneeman/Documents/projects/syntax_suggest (schneems/no-syntax-not-okay-break)
$ ruby -wc /tmp/break.rb
Syntax OK
```

> Note that this is invalid, running this code will raise a Syntax error.

```
$ exe/syntax_suggest /tmp/break.rb
Syntax OK
```

Close https://github.com/ruby/syntax_suggest/pull/157

https://github.com/ruby/syntax_suggest/commit/d7bd8f03a2
2022-11-28 20:55:41 +09:00
schneems 4d51a0b495
[ruby/syntax_suggest] Failing test for #157
https://github.com/ruby/syntax_suggest/commit/14e8cdc916
2022-11-28 20:55:41 +09:00
Nobuyoshi Nakada ee11090b28 sync_default_gems.rb: move default_branch to REPOSITORIES
`sync_default_gems_with_commits` also needs the default branch.
2022-11-28 20:55:09 +09:00
Nobuyoshi Nakada 6559ba3b5c sync_default_gems.rb: suppress a duplicated range warning 2022-11-28 20:55:09 +09:00
Nobuyoshi Nakada d72f6749cb sync_default_gems.rb: adjust indent [ci skip] 2022-11-28 20:55:09 +09:00
Hiroshi SHIBATA 8bac8772df Added permission restrictions for GitHub actions 2022-11-28 18:28:31 +09:00
Nobuyoshi Nakada 906a2f067d
sync_default_gems.rb: extend for singleton methods 2022-11-28 17:17:06 +09:00
Takashi Kokubun 8e18761da1
Revert "MJIT: Make it parsable by Solargraph"
This reverts commit ccd8dd6ad3.

Revert "MJIT: Fix miniruby with MJIT_FORCE_ENABLE"

This reverts commit b033775ed9.

GitHub Actions is failing. I ran out of time today to investigate it.
will try it again tomorrow.
2022-11-28 00:13:23 -08:00
Takashi Kokubun b033775ed9 MJIT: Fix miniruby with MJIT_FORCE_ENABLE 2022-11-27 23:58:50 -08:00
Takashi Kokubun ccd8dd6ad3 MJIT: Make it parsable by Solargraph 2022-11-27 23:46:59 -08:00
Nobuyoshi Nakada 93e87c0217 Fix the case of multiple trailers 2022-11-28 16:30:40 +09:00
Nobuyoshi Nakada 5a171ee4c0 Add tests for sync_default_gems.rb 2022-11-28 16:30:40 +09:00
Takashi Kokubun fb599523cd MJIT: Do not document a dynamic type [ci skip]
Solargraph complains about it
2022-11-27 23:29:44 -08:00
Takashi Kokubun 1d1200555f MJIT: Avoid hanging on mjit_wait with a JIT failure 2022-11-27 23:06:29 -08:00
Takashi Kokubun 168b0e1f02 Make the timeout of test_system_sigpipe longer
https://github.com/ruby/ruby/actions/runs/3562236318/jobs/5983796689
2022-11-27 22:48:19 -08:00
Takashi Kokubun 2c1c0d3df0 MJIT: Get rid of C.fprintf
Faster code generation and cleaner code.
2022-11-27 22:47:46 -08:00
Takashi Kokubun 87e7b640eb Suppress warnings again 2022-11-27 22:14:48 -08:00
Takashi Kokubun 880e8fd1f9 Relax a too strict timeout
Regexp tests are flaky.
http://rubyci.s3.amazonaws.com/s390x/ruby-master/log/20221128T050004Z.fail.html.gz
2022-11-27 21:48:32 -08:00
Takashi Kokubun a22c684c59 MJIT: Refactor invokebuiltin_delegate_leave
You shouldn't assume bf->compiler is always non-zero. While struct
aref/aset is no longer a builtin function since
https://github.com/ruby/ruby/pull/5131, it seems like you could still
load such an iseq binary.

The refactored code fallbacks to compile_insn_default correctly when
bf->compiler is zero.
2022-11-27 21:44:28 -08:00
Takashi Kokubun 6844bcc6b4 MJIT: Use a String buffer in builtin compilers
instead of FILE*.

Using C.fprintf is slower than String manipulation on memory. I'm going
to change the way MJIT writes files, and this is a prerequisite for it.
2022-11-27 21:11:33 -08:00
Takashi Kokubun 6d26f78f68 MJIT: Clear .cache/clangd on bindgen if exists 2022-11-27 21:04:41 -08:00
Kazuhiro NISHIYAMA 833545a211
NEWS.md: sort [ci skip] 2022-11-28 13:57:50 +09:00
git 529e58d610 Update default gems list at b335d899ff [ci skip] 2022-11-28 04:41:36 +00:00
Hiroshi SHIBATA b335d899ff [ruby/cgi] Bump up 0.3.6
https://github.com/ruby/cgi/commit/827b7d43cc
2022-11-28 04:40:26 +00:00
Sven Riedel e0901f46b7 [ruby/rdoc] Add `--no-skipping-tests` option
https://github.com/ruby/rdoc/commit/33925f885f
2022-11-28 04:36:29 +00:00
Xenor Chang 745dcf5326 [ruby/cgi] Loosen the domain regex to accept '.'
(https://github.com/ruby/cgi/pull/29)

* Loosen the domain regex to accept '.'

Co-authored-by: Nobuyoshi Nakada <nobu@ruby-lang.org>

https://github.com/ruby/cgi/commit/5e09d632f3
Co-authored-by: Hiroshi SHIBATA <hsbt@ruby-lang.org>
2022-11-28 04:34:11 +00:00
git 1612d57691 Update default gems list at 98074a57ca [ci skip] 2022-11-28 03:35:19 +00:00
Hiroshi SHIBATA 98074a57ca [ruby/cgi] Prepare to release 0.3.6
https://github.com/ruby/cgi/commit/710a647855
2022-11-28 03:34:42 +00:00
Soutaro Matsumoto 1a744417f2
Bundle RBS 2.8.1 (#6819)
Update `bundled_gems` to bundle RBS 2.8.1
2022-11-28 12:31:17 +09:00
git 0096d99eff Update bundled gems list at 2022-11-28 2022-11-28 02:57:48 +00:00