Skip to content

Commit 096d01c

Browse files
authored
Merge pull request ruby#2730 from ruby/update-version
Bump to v0.27.0
2 parents f6d0193 + c9edeef commit 096d01c

File tree

23 files changed

+61
-42
lines changed

23 files changed

+61
-42
lines changed

.github/workflows/main.yml

+17-17
Original file line numberDiff line numberDiff line change
@@ -38,23 +38,23 @@ jobs:
3838
env:
3939
LANG: "C"
4040

41-
typecheck:
42-
runs-on: ubuntu-latest
43-
env:
44-
BUNDLE_GEMFILE: gemfiles/typecheck/Gemfile
45-
steps:
46-
- uses: actions/checkout@v4
47-
- name: Set up Ruby
48-
uses: ruby/setup-ruby@v1
49-
with:
50-
ruby-version: "3.3"
51-
bundler-cache: true
52-
# - name: Check Sorbet
53-
# run: bundle exec rake typecheck:tapioca typecheck:sorbet
54-
- name: Check Steep
55-
run: bundle exec rake typecheck:steep
56-
- name: Check field kinds
57-
run: rm lib/prism/node.rb && CHECK_FIELD_KIND=true bundle exec rake
41+
# typecheck:
42+
# runs-on: ubuntu-latest
43+
# env:
44+
# BUNDLE_GEMFILE: gemfiles/typecheck/Gemfile
45+
# steps:
46+
# - uses: actions/checkout@v4
47+
# - name: Set up Ruby
48+
# uses: ruby/setup-ruby@v1
49+
# with:
50+
# ruby-version: "3.3"
51+
# bundler-cache: true
52+
# - name: Check Sorbet
53+
# run: bundle exec rake typecheck:tapioca typecheck:sorbet
54+
# - name: Check Steep
55+
# run: bundle exec rake typecheck:steep
56+
# - name: Check field kinds
57+
# run: rm lib/prism/node.rb && CHECK_FIELD_KIND=true bundle exec rake
5858

5959
build:
6060
strategy:

CHANGELOG.md

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

77
## [Unreleased]
88

9+
## [0.27.0] - 2024-04-23
10+
11+
### Added
12+
13+
- Implemented `===` for each of the nodes, which will check if equality but ignore the specific ranges of locations.
14+
15+
### Changed
16+
17+
- Fix translation of `ItParametersNode` for parser translation.
18+
- Fix translation of `dstr` for ruby_parser translation.
19+
- Do not allow omitted hash values whose keys end with `!` or `?`.
20+
- Split up `Prism::ParseResult` into `Prism::Result` with subclasses `Prism::ParseResult`, `Prism::LexResult`, `Prism::ParseLexResult`, and `Prism::LexCompat::Result`.
21+
- Change reflection classes to have only a single `IntegerField` class and rename `DoubleField` to `FloatField`.
22+
- Fall back to default `AR` and `CC` in `Makefile`.
23+
- Use GC-able symbols for the syntax tree to avoid adding to the global symbol table.
24+
- Fix a bug with karatsuba_multiply that would result in a stack overflow.
25+
- Fix parser translation when looking for tokens with `srange_find`.
26+
927
## [0.26.0] - 2024-04-18
1028

1129
### Added
@@ -458,7 +476,8 @@ The format is based on [Keep a Changelog](http://keepachangelog.com/en/1.0.0/) a
458476

459477
- 🎉 Initial release! 🎉
460478

461-
[unreleased]: https://github.com/ruby/prism/compare/v0.26.0...HEAD
479+
[unreleased]: https://github.com/ruby/prism/compare/v0.27.0...HEAD
480+
[0.27.0]: https://github.com/ruby/prism/compare/v0.26.0...v0.27.0
462481
[0.26.0]: https://github.com/ruby/prism/compare/v0.25.0...v0.26.0
463482
[0.25.0]: https://github.com/ruby/prism/compare/v0.24.0...v0.25.0
464483
[0.24.0]: https://github.com/ruby/prism/compare/v0.23.0...v0.24.0

Gemfile.lock

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
PATH
22
remote: .
33
specs:
4-
prism (0.26.0)
4+
prism (0.27.0)
55

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

ext/prism/extension.h

+1-1
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.26.0"
4+
#define EXPECTED_PRISM_VERSION "0.27.0"
55

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

gemfiles/2.7/Gemfile.lock

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
PATH
22
remote: ../..
33
specs:
4-
prism (0.26.0)
4+
prism (0.27.0)
55

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

gemfiles/3.0/Gemfile.lock

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
PATH
22
remote: ../..
33
specs:
4-
prism (0.26.0)
4+
prism (0.27.0)
55

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

gemfiles/3.1/Gemfile.lock

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
PATH
22
remote: ../..
33
specs:
4-
prism (0.26.0)
4+
prism (0.27.0)
55

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

gemfiles/3.2/Gemfile.lock

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
PATH
22
remote: ../..
33
specs:
4-
prism (0.26.0)
4+
prism (0.27.0)
55

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

gemfiles/3.3/Gemfile.lock

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
PATH
22
remote: ../..
33
specs:
4-
prism (0.26.0)
4+
prism (0.27.0)
55

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

gemfiles/3.4/Gemfile.lock

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
PATH
22
remote: ../..
33
specs:
4-
prism (0.26.0)
4+
prism (0.27.0)
55

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

gemfiles/jruby/Gemfile.lock

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
PATH
22
remote: ../..
33
specs:
4-
prism (0.26.0)
4+
prism (0.27.0)
55

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

gemfiles/truffleruby/Gemfile.lock

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
PATH
22
remote: ../..
33
specs:
4-
prism (0.26.0)
4+
prism (0.27.0)
55

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

gemfiles/typecheck/Gemfile.lock

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
PATH
22
remote: ../..
33
specs:
4-
prism (0.26.0)
4+
prism (0.27.0)
55

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

include/prism/version.h

+2-2
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
/**
1515
* The minor version of the Prism library as an int.
1616
*/
17-
#define PRISM_VERSION_MINOR 26
17+
#define PRISM_VERSION_MINOR 27
1818

1919
/**
2020
* The patch version of the Prism library as an int.
@@ -24,6 +24,6 @@
2424
/**
2525
* The version of the Prism library as a constant string.
2626
*/
27-
#define PRISM_VERSION "0.26.0"
27+
#define PRISM_VERSION "0.27.0"
2828

2929
#endif

javascript/package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@ruby/prism",
3-
"version": "0.26.0",
3+
"version": "0.27.0",
44
"description": "Prism Ruby parser",
55
"type": "module",
66
"main": "src/index.js",

prism.gemspec

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
Gem::Specification.new do |spec|
44
spec.name = "prism"
5-
spec.version = "0.26.0"
5+
spec.version = "0.27.0"
66
spec.authors = ["Shopify"]
77
spec.email = ["[email protected]"]
88

rust/Cargo.lock

+2-2
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

rust/ruby-prism-sys/Cargo.toml

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[package]
22
name = "ruby-prism-sys"
3-
version = "0.26.0"
3+
version = "0.27.0"
44
edition = "2021"
55
license-file = "../../LICENSE.md"
66
repository = "https://github.com/ruby/prism"

rust/ruby-prism-sys/tests/utils_tests.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ fn version_test() {
1212
CStr::from_ptr(version)
1313
};
1414

15-
assert_eq!(&cstring.to_string_lossy(), "0.26.0");
15+
assert_eq!(&cstring.to_string_lossy(), "0.27.0");
1616
}
1717

1818
#[test]

rust/ruby-prism/Cargo.toml

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[package]
22
name = "ruby-prism"
3-
version = "0.26.0"
3+
version = "0.27.0"
44
edition = "2021"
55
license-file = "../../LICENSE.md"
66
repository = "https://github.com/ruby/prism"
@@ -26,7 +26,7 @@ serde = { version = "1.0", features = ["derive"] }
2626
serde_yaml = "0.9"
2727

2828
[dependencies]
29-
ruby-prism-sys = { version = "0.26.0", path = "../ruby-prism-sys" }
29+
ruby-prism-sys = { version = "0.27.0", path = "../ruby-prism-sys" }
3030

3131
[features]
3232
default = ["vendored"]

templates/java/org/prism/Loader.java.erb

+1-1
Original file line numberDiff line numberDiff line change
@@ -101,7 +101,7 @@ public class Loader {
101101
expect((byte) 'M', "incorrect prism header");
102102

103103
expect((byte) 0, "prism major version does not match");
104-
expect((byte) 26, "prism minor version does not match");
104+
expect((byte) 27, "prism minor version does not match");
105105
expect((byte) 0, "prism patch version does not match");
106106

107107
expect((byte) 1, "Loader.java requires no location fields in the serialized output");

templates/javascript/src/deserialize.js.erb

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import * as nodes from "./nodes.js";
22

33
const MAJOR_VERSION = 0;
4-
const MINOR_VERSION = 26;
4+
const MINOR_VERSION = 27;
55
const PATCH_VERSION = 0;
66

77
// The DataView getFloat64 function takes an optional second argument that

templates/lib/prism/serialize.rb.erb

+1-1
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ module Prism
1010

1111
# The minor version of prism that we are expecting to find in the serialized
1212
# strings.
13-
MINOR_VERSION = 26
13+
MINOR_VERSION = 27
1414

1515
# The patch version of prism that we are expecting to find in the serialized
1616
# strings.

0 commit comments

Comments
 (0)