From d76f2952deff2e48077484ce406b94f867dd2dbd Mon Sep 17 00:00:00 2001 From: Kevin Newton Date: Fri, 3 Nov 2023 13:58:11 -0400 Subject: [PATCH] Bump to version 0.17.1 --- CHANGELOG.md | 9 ++++++++- Gemfile.lock | 2 +- ext/prism/extension.h | 2 +- include/prism/version.h | 4 ++-- javascript/package.json | 2 +- prism.gemspec | 2 +- rust/prism-sys/Cargo.lock | 2 +- rust/prism-sys/Cargo.toml | 2 +- rust/prism-sys/tests/utils_tests.rs | 2 +- rust/prism/Cargo.lock | 4 ++-- rust/prism/Cargo.toml | 2 +- templates/java/org/prism/Loader.java.erb | 2 +- templates/javascript/src/deserialize.js.erb | 2 +- templates/lib/prism/serialize.rb.erb | 2 +- 14 files changed, 23 insertions(+), 16 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index bcb5aa6ef30..3fef48088e9 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -6,6 +6,12 @@ The format is based on [Keep a Changelog](http://keepachangelog.com/en/1.0.0/) a ## [Unreleased] +## [0.17.1] - 2023-11-03 + +### Changed + +- Do not use constant nesting in RBI files. + ## [0.17.0] - 2023-11-03 ### Added @@ -233,7 +239,8 @@ The format is based on [Keep a Changelog](http://keepachangelog.com/en/1.0.0/) a - 🎉 Initial release! 🎉 -[unreleased]: https://github.com/ruby/prism/compare/v0.17.0...HEAD +[unreleased]: https://github.com/ruby/prism/compare/v0.17.1...HEAD +[0.17.1]: https://github.com/ruby/prism/compare/v0.17.0...v0.17.1 [0.17.0]: https://github.com/ruby/prism/compare/v0.16.0...v0.17.0 [0.16.0]: https://github.com/ruby/prism/compare/v0.15.1...v0.16.0 [0.15.1]: https://github.com/ruby/prism/compare/v0.15.0...v0.15.1 diff --git a/Gemfile.lock b/Gemfile.lock index 4e363afa95f..67d036bf19e 100644 --- a/Gemfile.lock +++ b/Gemfile.lock @@ -1,7 +1,7 @@ PATH remote: . specs: - prism (0.17.0) + prism (0.17.1) GEM remote: https://rubygems.org/ diff --git a/ext/prism/extension.h b/ext/prism/extension.h index fb629de2eb6..4803aabe5e8 100644 --- a/ext/prism/extension.h +++ b/ext/prism/extension.h @@ -1,7 +1,7 @@ #ifndef PRISM_EXT_NODE_H #define PRISM_EXT_NODE_H -#define EXPECTED_PRISM_VERSION "0.17.0" +#define EXPECTED_PRISM_VERSION "0.17.1" #include #include diff --git a/include/prism/version.h b/include/prism/version.h index 37ac3b76a7b..6d0bea616de 100644 --- a/include/prism/version.h +++ b/include/prism/version.h @@ -19,11 +19,11 @@ /** * The patch version of the Prism library as an int. */ -#define PRISM_VERSION_PATCH 0 +#define PRISM_VERSION_PATCH 1 /** * The version of the Prism library as a constant string. */ -#define PRISM_VERSION "0.17.0" +#define PRISM_VERSION "0.17.1" #endif diff --git a/javascript/package.json b/javascript/package.json index 764fd6dac70..9727f641b33 100644 --- a/javascript/package.json +++ b/javascript/package.json @@ -1,6 +1,6 @@ { "name": "@ruby/prism", - "version": "0.17.0", + "version": "0.17.1", "description": "Prism Ruby parser", "type": "module", "main": "src/index.js", diff --git a/prism.gemspec b/prism.gemspec index 8031f40cb18..ef23a461949 100644 --- a/prism.gemspec +++ b/prism.gemspec @@ -2,7 +2,7 @@ Gem::Specification.new do |spec| spec.name = "prism" - spec.version = "0.17.0" + spec.version = "0.17.1" spec.authors = ["Shopify"] spec.email = ["ruby@shopify.com"] diff --git a/rust/prism-sys/Cargo.lock b/rust/prism-sys/Cargo.lock index bb06c250ea4..7d638a5965c 100644 --- a/rust/prism-sys/Cargo.lock +++ b/rust/prism-sys/Cargo.lock @@ -167,7 +167,7 @@ dependencies = [ [[package]] name = "prism-sys" -version = "0.17.0" +version = "0.17.1" dependencies = [ "bindgen", "cc", diff --git a/rust/prism-sys/Cargo.toml b/rust/prism-sys/Cargo.toml index 5cdbaa1f25d..bf2eac11b60 100644 --- a/rust/prism-sys/Cargo.toml +++ b/rust/prism-sys/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "prism-sys" -version = "0.17.0" +version = "0.17.1" edition = "2021" license-file = "../../LICENSE.md" repository = "https://github.com/ruby/prism" diff --git a/rust/prism-sys/tests/utils_tests.rs b/rust/prism-sys/tests/utils_tests.rs index 414500cc1bd..a5adc9c6ad9 100644 --- a/rust/prism-sys/tests/utils_tests.rs +++ b/rust/prism-sys/tests/utils_tests.rs @@ -12,7 +12,7 @@ fn version_test() { CStr::from_ptr(version) }; - assert_eq!(&cstring.to_string_lossy(), "0.17.0"); + assert_eq!(&cstring.to_string_lossy(), "0.17.1"); } #[test] diff --git a/rust/prism/Cargo.lock b/rust/prism/Cargo.lock index d9792bc9523..49a8fe444ce 100644 --- a/rust/prism/Cargo.lock +++ b/rust/prism/Cargo.lock @@ -195,7 +195,7 @@ dependencies = [ [[package]] name = "prism" -version = "0.17.0" +version = "0.17.1" dependencies = [ "prism-sys", "serde", @@ -204,7 +204,7 @@ dependencies = [ [[package]] name = "prism-sys" -version = "0.17.0" +version = "0.17.1" dependencies = [ "bindgen", "cc", diff --git a/rust/prism/Cargo.toml b/rust/prism/Cargo.toml index 6df979972ce..801c4a6c044 100644 --- a/rust/prism/Cargo.toml +++ b/rust/prism/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "prism" -version = "0.17.0" +version = "0.17.1" edition = "2021" license-file = "../../LICENSE.md" repository = "https://github.com/ruby/prism" diff --git a/templates/java/org/prism/Loader.java.erb b/templates/java/org/prism/Loader.java.erb index a3fa120a306..2bc39d9990f 100644 --- a/templates/java/org/prism/Loader.java.erb +++ b/templates/java/org/prism/Loader.java.erb @@ -97,7 +97,7 @@ public class Loader { expect((byte) 0, "prism version does not match"); expect((byte) 17, "prism version does not match"); - expect((byte) 0, "prism version does not match"); + expect((byte) 1, "prism version does not match"); expect((byte) 1, "Loader.java requires no location fields in the serialized output"); diff --git a/templates/javascript/src/deserialize.js.erb b/templates/javascript/src/deserialize.js.erb index fcd4045f9a4..2c615a7c66f 100644 --- a/templates/javascript/src/deserialize.js.erb +++ b/templates/javascript/src/deserialize.js.erb @@ -2,7 +2,7 @@ import * as nodes from "./nodes.js"; const MAJOR_VERSION = 0; const MINOR_VERSION = 17; -const PATCH_VERSION = 0; +const PATCH_VERSION = 1; class SerializationBuffer { constructor(source, array) { diff --git a/templates/lib/prism/serialize.rb.erb b/templates/lib/prism/serialize.rb.erb index e31e514743c..28375045439 100644 --- a/templates/lib/prism/serialize.rb.erb +++ b/templates/lib/prism/serialize.rb.erb @@ -24,7 +24,7 @@ module Prism # The patch version of prism that we are expecting to find in the serialized # strings. - PATCH_VERSION = 0 + PATCH_VERSION = 1 # Deserialize the AST represented by the given string into a parse result. def self.load(input, serialized)