Skip to content

Commit a78dd20

Browse files
committed
Merge branch 'main' into prism_has_mmap
2 parents c37d69e + c539857 commit a78dd20

File tree

41 files changed

+852
-314
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

41 files changed

+852
-314
lines changed

CHANGELOG.md

Lines changed: 16 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,20 @@ The format is based on [Keep a Changelog](http://keepachangelog.com/en/1.0.0/) a
66

77
## [Unreleased]
88

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+
923
## [0.23.0] - 2024-02-14
1024

1125
### Added
@@ -378,7 +392,8 @@ The format is based on [Keep a Changelog](http://keepachangelog.com/en/1.0.0/) a
378392

379393
- 🎉 Initial release! 🎉
380394

381-
[unreleased]: https://github.com/ruby/prism/compare/v0.23.0...HEAD
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
382397
[0.23.0]: https://github.com/ruby/prism/compare/v0.22.0...v0.23.0
383398
[0.22.0]: https://github.com/ruby/prism/compare/v0.21.0...v0.22.0
384399
[0.21.0]: https://github.com/ruby/prism/compare/v0.20.0...v0.21.0

Gemfile.lock

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
PATH
22
remote: .
33
specs:
4-
prism (0.23.0)
4+
prism (0.24.0)
55

66
GEM
77
remote: https://rubygems.org/

bin/prism

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -220,7 +220,7 @@ module Prism
220220
source, filepath = read_source(argv)
221221

222222
ripper = Ripper.sexp_raw(source)
223-
prism = Prism::RipperCompat.sexp_raw(source)
223+
prism = Prism::Translation::Ripper.sexp_raw(source) rescue :parse_error
224224

225225
puts "Ripper:"
226226
pp ripper

docs/releasing.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ ruby -pi -e 'gsub(/MINOR_VERSION = \d+/, %Q{MINOR_VERSION = #{ENV["PRISM_MINOR"]
3434
ruby -pi -e 'gsub(/PATCH_VERSION = \d+/, %Q{PATCH_VERSION = #{ENV["PRISM_PATCH"]}})' templates/lib/prism/serialize.rb.erb
3535
ruby -pi -e 'gsub(/^version = ".+?"/, %Q{version = "#{ENV["PRISM_VERSION"]}"})' rust/ruby-prism-sys/Cargo.toml
3636
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
3838
```
3939

4040
* Update the `Gemfile.lock` file:

ext/prism/extension.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
#ifndef PRISM_EXT_NODE_H
22
#define PRISM_EXT_NODE_H
33

4-
#define EXPECTED_PRISM_VERSION "0.23.0"
4+
#define EXPECTED_PRISM_VERSION "0.24.0"
55

66
#include <ruby.h>
77
#include <ruby/encoding.h>

gemfiles/2.7/Gemfile.lock

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
PATH
22
remote: ../..
33
specs:
4-
prism (0.23.0)
4+
prism (0.24.0)
55

66
GEM
77
remote: https://rubygems.org/

gemfiles/3.0/Gemfile.lock

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
PATH
22
remote: ../..
33
specs:
4-
prism (0.23.0)
4+
prism (0.24.0)
55

66
GEM
77
remote: https://rubygems.org/

gemfiles/3.1/Gemfile.lock

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
PATH
22
remote: ../..
33
specs:
4-
prism (0.23.0)
4+
prism (0.24.0)
55

66
GEM
77
remote: https://rubygems.org/

gemfiles/3.2/Gemfile.lock

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
PATH
22
remote: ../..
33
specs:
4-
prism (0.23.0)
4+
prism (0.24.0)
55

66
GEM
77
remote: https://rubygems.org/

gemfiles/3.3/Gemfile.lock

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
PATH
22
remote: ../..
33
specs:
4-
prism (0.23.0)
4+
prism (0.24.0)
55

66
GEM
77
remote: https://rubygems.org/

0 commit comments

Comments
 (0)