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

21 Коммитов

Автор SHA1 Сообщение Дата
Haldun Bayhantopcu 499eb3990f [ruby/yarp] Fix tests
https://github.com/ruby/yarp/commit/50e745767e
2023-07-26 14:46:20 +00:00
Haldun Bayhantopcu c680ae2ce1 [ruby/yarp] Added locations to errors tests
https://github.com/ruby/yarp/commit/108d1221ef
2023-07-26 14:46:19 +00:00
Haldun Bayhantopcu bd5cc4d6a0 [ruby/yarp] Add comments test
https://github.com/ruby/yarp/commit/6484af4165
2023-07-26 14:46:18 +00:00
Jemma Issroff 25267fdd69 [ruby/yarp] Exclude heredoc_nested test for Rubies < 3.3
Ripper's lexemes were slightly different in Ruby 3.2 for Heredocs.
We ignored this complex heredoc test in this case because
Ripper's output has changed

https://github.com/ruby/yarp/commit/59d3d4a899
2023-07-21 15:48:19 +00:00
Jemma Issroff 134d874173
Sync YARP gemspec (#8101)
* Sync YARP gemspec

We were previously not syncing the YARP gemspec over which meant
that the Ruby YARP gem was out of sync.

* Sync YARP node / lex_compat files
2023-07-20 14:51:17 -04:00
Aaron Patterson abce8583e2 [ruby/yarp] Fix heredocs inside %W and %w lists
The problem was that we were treating heredoc bodies as part of the %W
list because we didn't push the scanning cursor past the heredoc after
lexing out the here doc.  To fix this, we changed the whitespace
scanning function to quit scanning when it reaches a newline but only in
the case that a heredoc is present.

Additionally, we need to prevent double counting newlines in the case of
a heredoc.  For example:

```ruby
%W(<<foo 123)
foo
```

The newline after the `)` is counted as part of scanning the heredoc, so
we added logic to prevent double counting the newline when scanning the
rest of the %W list.

https://github.com/ruby/yarp/commit/eb090d8126

Co-authored-by: Jemma Issroff <jemmaissroff@gmail.com>
2023-07-20 14:58:11 +00:00
Jemma Issroff a02f5eb56a
YARP resync (#8059) 2023-07-12 12:46:38 -04:00
Jemma Issroff 53c5601565
[ruby/yarp] Fix endless method definitions binding power to accept args (#8051) 2023-07-10 10:54:12 -04:00
Jemma Issroff 06c2d3e0a0
Resync YARP (#8036)
It got out of sync again. After this re-sync, it should happen
cherry-picking automatically.
2023-07-06 13:26:26 -04:00
Jemma Issroff bfb933371d Manual YARP resync 2023-07-05 16:58:55 -04:00
Nobuyoshi Nakada 97152d44dc [ruby/yarp] Name test methods from relative paths
Full path name of the source directory is a useless noise as tests.

https://github.com/ruby/yarp/commit/44a7ae2e64
2023-06-24 15:32:11 +09:00
Takashi Kokubun 711cabec26 Sync ruby/yarp to 89a00203af 2023-06-22 09:23:07 -07:00
Jemma Issroff e8fb84265c [ruby/yarp] Allow for block statements after elsif and else
https://github.com/ruby/yarp/commit/4560cab235
2023-06-22 09:20:40 -07:00
Takashi Kokubun edd488109f Sync ruby/yarp with sync_default_gems 2023-06-22 08:59:04 -07:00
Kevin Newton 010b8a29dc [ruby/yarp] Set default external encoding for parse tests
https://github.com/ruby/yarp/commit/e757fde3ed
2023-06-21 22:05:10 +00:00
Kevin Newton 39a40af14f [ruby/yarp] Truly fix snapshot testing on Ruby CI
https://github.com/ruby/yarp/commit/c4e835711e
2023-06-21 21:28:30 +00:00
Kevin Newton 51ff9cd747 [ruby/yarp] Actually fix snapshot tests
https://github.com/ruby/yarp/commit/ba9e5b447e
2023-06-21 21:23:17 +00:00
Kevin Newton 23e1c69717 [ruby/yarp] Fix snapshot checking
https://github.com/ruby/yarp/commit/05a60a0774
2023-06-21 20:30:40 +00:00
Kevin Newton 585dbccb51 [ruby/yarp] Use binary for normalizing printed ASTs
https://github.com/ruby/yarp/commit/814326de34
2023-06-21 19:55:45 +00:00
Jemma Issroff b0a3a6ade0 [ruby/yarp] Fix invalid unescape sequence error for lower w
https://github.com/ruby/yarp/commit/5a2c78367a
2023-06-21 18:40:25 +00:00
Jemma Issroff cc7f765f2c [Feature #19741] Sync all files in yarp
This commit is the initial sync of all files from ruby/yarp
into ruby/ruby. Notably, it does the following:

* Sync all ruby/yarp/lib/ files to ruby/ruby/lib/yarp
* Sync all ruby/yarp/src/ files to ruby/ruby/yarp/
* Sync all ruby/yarp/test/ files to ruby/ruby/test/yarp
2023-06-21 11:25:39 -07:00