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

79846 Коммитов

Автор SHA1 Сообщение Дата
Soutaro Matsumoto b72e320733
Bundle RBS 3.2.2 2023-09-28 11:30:08 +09:00
Nobuyoshi Nakada 81c0d0e2fb
[CI] Fix conditional for `RUBYOPT`
Since GitHub has no real ternary [operator], the second expression
must be "truthy" value instead of an empty string which is evaluated
as `0`.

- Some bundler tests seem trying to install old Rack where
  `Rack::Utils.byte_ranges` method has been deprecated once.

- Racc tests do not seem aware about warnings very well.

[operator]: https://docs.github.com/actions/learn-github-actions/expressions#operators
2023-09-28 10:10:11 +09:00
Nobuyoshi Nakada aa6764e66d
[CI] Fix indentation to concatenate the lines and pass the options 2023-09-28 08:16:36 +09:00
Nobuyoshi Nakada dd5814ed1a
Suppress void context warnings 2023-09-28 08:01:35 +09:00
eileencodes 54bbf9a6e9 [PRISM] Implement MatchLastLineNode
This PR implements `MatchLastLineNode` for Prism.

Related: ruby/prism#1335
2023-09-27 18:36:23 -04:00
Kevin Newton 175ac32c62 Use new constant pool layout for prism 2023-09-27 15:41:05 -04:00
Nathan Froyd 2955513095 [ruby/prism] rearrange the constant pool so IDs can be used for indexing
https://github.com/ruby/prism/commit/6f243de0c7
2023-09-27 15:41:05 -04:00
Nathan Froyd 5b6a51ad9d [ruby/prism] shrink `yp_constant_t` by 8 bytes
https://github.com/ruby/prism/commit/5c01eb5e6f
2023-09-27 15:41:05 -04:00
Jeremy Evans 62181e17da Make {Queue,SizedQueue}#freeze raise TypeError
Fixes [Bug #17146]
2023-09-27 19:57:50 +01:00
BurdetteLamar 84312e688f [DOC] Fix minor inconsistencies 2023-09-27 14:42:50 -04:00
Kevin Newton 224e76ada7 Include recently added parse_test code in rename 2023-09-27 13:57:38 -04:00
Kevin Newton 3d0a46796b Rename YARP symbols to prism 2023-09-27 13:57:38 -04:00
Kevin Newton 4f73a7c2f7 Sync to prism rename commits 2023-09-27 13:57:38 -04:00
Kevin Newton 8ab56869a6 Rename YARP filepaths to prism filepaths 2023-09-27 13:57:38 -04:00
Kevin Newton 7e0971eb5d Update YARP build targets 2023-09-27 12:10:23 -04:00
Kevin Newton 758e70d3d4 Update YARP gitignore 2023-09-27 12:10:23 -04:00
Kevin Newton 5f905026bc [ruby/yarp] Move node ext and parse result to their own files
https://github.com/ruby/yarp/commit/916828767c
2023-09-27 12:10:23 -04:00
Kevin Newton 7d11f58b6e [ruby/yarp] Move lex compat into its own file
https://github.com/ruby/yarp/commit/e90f88f21f
2023-09-27 12:10:23 -04:00
Kevin Newton 3e8aa3d1cc [ruby/yarp] Move node inspector into its own file
https://github.com/ruby/yarp/commit/1c843d2f22
2023-09-27 12:10:23 -04:00
Kevin Newton 978f91a10c [ruby/yarp] Move debug into its own file
https://github.com/ruby/yarp/commit/139362c90a
2023-09-27 12:10:23 -04:00
Kevin Newton aeb53cb50e [ruby/yarp] More documentation for desugar compiler
https://github.com/ruby/yarp/commit/4a6df3c2a4
2023-09-27 12:10:23 -04:00
Kevin Newton b18e05b18f [ruby/yarp] Split up compiler versus visitor
https://github.com/ruby/yarp/commit/2e6baa3f19
2023-09-27 12:10:23 -04:00
Kevin Newton 3cec94624b Rename compiler test to iseq test 2023-09-27 12:10:23 -04:00
Kevin Newton 0517ca3aac Delete mutation visitor manually so sync can run 2023-09-27 12:10:23 -04:00
Kevin Newton 2a4a55f896 [ruby/yarp] Move DSL into its own file
https://github.com/ruby/yarp/commit/3d34404d80
2023-09-27 12:10:23 -04:00
Kevin Newton 1c049c64c0 [ruby/yarp] Move BasicVisitor below ParseResult in yarp.rb
https://github.com/ruby/yarp/commit/d51014582a
2023-09-27 12:10:23 -04:00
Kevin Newton 28cc144b63 [ruby/yarp] Move more features under autoload
https://github.com/ruby/yarp/commit/2f1f3fa448
2023-09-27 12:10:23 -04:00
Kevin Newton af8d475281 [ruby/yarp] Move dispatcher into its own autoload
https://github.com/ruby/yarp/commit/52bd001ea2
2023-09-27 12:10:23 -04:00
Kevin Newton be861053c5 [ruby/yarp] Use less magical numbers for regular expression flags
https://github.com/ruby/yarp/commit/c6a0abdd24
2023-09-27 12:10:23 -04:00
eileencodes 2bc243b3dc [YARP] Implement regex flags
This fixes the TODO in the code that was passing 0 instead of the regex
flags.
2023-09-27 11:25:53 -04:00
Jemma Issroff 2000cf9183
[YARP] Implemented BlockArgumentNode (#8499) 2023-09-27 11:08:54 -04:00
Nobuyoshi Nakada 5b36c11e21 Out of place jumps are valid in `defined?` 2023-09-27 21:53:01 +09:00
Nobuyoshi Nakada 29e5fca718 Syntax check of `retry` in the parser 2023-09-27 21:53:01 +09:00
Nobuyoshi Nakada ff8278e52c Fix error token location 2023-09-27 21:53:01 +09:00
Nobuyoshi Nakada 9fd342f8d2 Block exits are now syntax error in ripper 2023-09-27 21:53:01 +09:00
Nobuyoshi Nakada e1250a5f97 Syntax check of block exits in the parser 2023-09-27 21:53:01 +09:00
Nobuyoshi Nakada 50520cc193
[DOC] Missing comment markers 2023-09-27 16:18:05 +09:00
Nobuyoshi Nakada 262a0cc868
[DOC] Missing comment marker 2023-09-27 15:50:37 +09:00
Ry Biesemeyer bece880874 [rubygems/rubygems] Centralize logic using `Pathname#relative_path_from`
To avoid potential crashes when trying to jump from a drive to another
on Windows, and take the change refactor things a bit.

https://github.com/rubygems/rubygems/commit/7c9a9a431a
2023-09-27 05:20:58 +00:00
David Rodriguez a812f1fed0 [rubygems/rubygems] Reword a couple of error messages
When a path does not make a lot of sense.

https://github.com/rubygems/rubygems/commit/d173c79e9a
2023-09-27 05:20:57 +00:00
krororo bc664609df [rubygems/rubygems] Refactor full sha revision match logic
https://github.com/rubygems/rubygems/commit/f0d8255ebd
2023-09-27 05:18:10 +00:00
krororo fbee93fc19 [rubygems/rubygems] Fix bundle install when older revisions of git source
https://github.com/rubygems/rubygems/commit/a30712c0fc
2023-09-27 05:18:10 +00:00
David Rodriguez 57c3e45ee8 [rubygems/rubygems] Fix `bundle lock --minor --update <dep>` edge case
When the latest allowed minor of `dep` adds a new dependency, that new
dependency would be incorrectly resolved to the latest minor of the
first major version.

https://github.com/rubygems/rubygems/commit/fd50c9d4f3
2023-09-27 03:29:37 +00:00
Kevin Newton 705bd6439d [ruby/yarp] Ensure newlines are sorted in newline test
https://github.com/ruby/yarp/commit/3bfefc44c4
2023-09-26 18:23:59 +00:00
Kevin Newton a436805d3b [ruby/yarp] Remove visitor usage to not rely on overriding visit
https://github.com/ruby/yarp/commit/6903860981
2023-09-26 18:07:55 +00:00
Peter Zhu 154bd04ee2 [DOC] Fix link in process.c 2023-09-26 11:28:36 -04:00
BurdetteLamar a40ab12768 [DOC] Refactor doc in process.c 2023-09-26 11:26:19 -04:00
Nobuyoshi Nakada 8bbaa81454
Clean also YARP build directory [ci skip] 2023-09-27 00:16:56 +09:00
Adam Hess ef59175a68 fix iseq kwargs table and original_iseq leaks
[bug #19903]

Co-authored-by: Peter Zhu <peter@peterzhu.ca>
2023-09-26 11:12:21 -04:00
Haldun Bayhantopcu 3f511a1d09 [ruby/yarp] Check predicate of while and until
https://github.com/ruby/yarp/commit/f57a6066b5
2023-09-26 15:08:25 +00:00