prism 0.23.0 → 0.24.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +16 -1
- data/docs/releasing.md +1 -1
- data/ext/prism/api_node.c +2232 -1787
- data/ext/prism/extension.h +1 -1
- data/include/prism/util/pm_newline_list.h +4 -3
- data/include/prism/version.h +2 -2
- data/lib/prism/desugar_compiler.rb +225 -80
- data/lib/prism/dsl.rb +302 -299
- data/lib/prism/ffi.rb +102 -76
- data/lib/prism/node.rb +3624 -2114
- data/lib/prism/parse_result.rb +12 -4
- data/lib/prism/serialize.rb +594 -298
- data/lib/prism/translation/parser/compiler.rb +1 -1
- data/lib/prism/translation/parser/rubocop.rb +11 -3
- data/lib/prism/translation/parser.rb +15 -3
- data/lib/prism/translation/parser33.rb +12 -0
- data/lib/prism/translation/parser34.rb +12 -0
- data/lib/prism/translation/ripper.rb +144 -25
- data/prism.gemspec +3 -1
- data/src/prettyprint.c +3 -3
- data/src/prism.c +48 -33
- data/src/util/pm_newline_list.c +6 -3
- metadata +4 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 827194fd8b477f9f021677ca386e35fd8300daa86a09fc11fe66a85ee54da97d
|
4
|
+
data.tar.gz: 2a44a3cf5e31260a949965aaf2aa5fba0cd8b1ac910ae694d22fd8e42f4d6b9b
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 41dab6cd85f9f57bf2e2256e7b7fd7ac44c46883ad6d79c0056bff3b34500b2ecb28a1febeb1deed5a49b862c4f4382856ad2195639f86e770c006d1b6a41f8e
|
7
|
+
data.tar.gz: 0474d64c9bbd3385f65b00bf83e6b2d3c9543785c85b42d50bce59327e6af7a8fc13d54e5b485b6c930997dabe0fd81c43835243fc96fb28beb3523395ddde71
|
data/CHANGELOG.md
CHANGED
@@ -6,6 +6,20 @@ The format is based on [Keep a Changelog](http://keepachangelog.com/en/1.0.0/) a
|
|
6
6
|
|
7
7
|
## [Unreleased]
|
8
8
|
|
9
|
+
## [0.24.0] - 2024-02-15
|
10
|
+
|
11
|
+
### Added
|
12
|
+
|
13
|
+
- More support for `Prism::Translation::Ripper` is added.
|
14
|
+
- Support multiple versions for `Prism::Translation::Parser`.
|
15
|
+
- Improved memory usage in the FFI backend.
|
16
|
+
- Very large speed and memory improvements for creating the Ruby AST.
|
17
|
+
|
18
|
+
### Changed
|
19
|
+
|
20
|
+
- Fix location for empty symbol in hash key.
|
21
|
+
- Fix parsing a rescue modifier on the value of an assignment when the LHS is a method call with arguments and no parentheses.
|
22
|
+
|
9
23
|
## [0.23.0] - 2024-02-14
|
10
24
|
|
11
25
|
### Added
|
@@ -378,7 +392,8 @@ The format is based on [Keep a Changelog](http://keepachangelog.com/en/1.0.0/) a
|
|
378
392
|
|
379
393
|
- 🎉 Initial release! 🎉
|
380
394
|
|
381
|
-
[unreleased]: https://github.com/ruby/prism/compare/v0.
|
395
|
+
[unreleased]: https://github.com/ruby/prism/compare/v0.24.0...HEAD
|
396
|
+
[0.24.0]: https://github.com/ruby/prism/compare/v0.23.0...v0.24.0
|
382
397
|
[0.23.0]: https://github.com/ruby/prism/compare/v0.22.0...v0.23.0
|
383
398
|
[0.22.0]: https://github.com/ruby/prism/compare/v0.21.0...v0.22.0
|
384
399
|
[0.21.0]: https://github.com/ruby/prism/compare/v0.20.0...v0.21.0
|
data/docs/releasing.md
CHANGED
@@ -34,7 +34,7 @@ ruby -pi -e 'gsub(/MINOR_VERSION = \d+/, %Q{MINOR_VERSION = #{ENV["PRISM_MINOR"]
|
|
34
34
|
ruby -pi -e 'gsub(/PATCH_VERSION = \d+/, %Q{PATCH_VERSION = #{ENV["PRISM_PATCH"]}})' templates/lib/prism/serialize.rb.erb
|
35
35
|
ruby -pi -e 'gsub(/^version = ".+?"/, %Q{version = "#{ENV["PRISM_VERSION"]}"})' rust/ruby-prism-sys/Cargo.toml
|
36
36
|
ruby -pi -e 'gsub(/^version = ".+?"/, %Q{version = "#{ENV["PRISM_VERSION"]}"})' rust/ruby-prism/Cargo.toml
|
37
|
-
ruby -pi -e 'gsub(/^ruby-prism-sys = { version = ".+?"/, %Q{ruby-prism-sys = { version = "#{ENV["PRISM_VERSION"]}"})' rust/ruby-prism/Cargo.toml
|
37
|
+
ruby -pi -e 'gsub(/^ruby-prism-sys = \{ version = ".+?"/, %Q{ruby-prism-sys = \{ version = "#{ENV["PRISM_VERSION"]}"})' rust/ruby-prism/Cargo.toml
|
38
38
|
```
|
39
39
|
|
40
40
|
* Update the `Gemfile.lock` file:
|