From 6873f96abc2a924b264b6ed3818b2fe9cbf05d6c Mon Sep 17 00:00:00 2001 From: Kevin Newton Date: Wed, 18 Oct 2023 15:19:31 -0400 Subject: [PATCH] [ruby/prism] Bump to version 0.15.1 https://github.com/ruby/prism/commit/d906a8ceba --- lib/prism/prism.gemspec | 2 +- prism/extension.h | 2 +- prism/templates/lib/prism/serialize.rb.erb | 2 +- prism/util/pm_constant_pool.c | 2 +- prism/version.h | 4 ++-- 5 files changed, 6 insertions(+), 6 deletions(-) diff --git a/lib/prism/prism.gemspec b/lib/prism/prism.gemspec index dfd09f901c..2629262c4a 100644 --- a/lib/prism/prism.gemspec +++ b/lib/prism/prism.gemspec @@ -2,7 +2,7 @@ Gem::Specification.new do |spec| spec.name = "prism" - spec.version = "0.15.0" + spec.version = "0.15.1" spec.authors = ["Shopify"] spec.email = ["ruby@shopify.com"] diff --git a/prism/extension.h b/prism/extension.h index e246e72a76..e881d89b8e 100644 --- a/prism/extension.h +++ b/prism/extension.h @@ -1,7 +1,7 @@ #ifndef PRISM_EXT_NODE_H #define PRISM_EXT_NODE_H -#define EXPECTED_PRISM_VERSION "0.15.0" +#define EXPECTED_PRISM_VERSION "0.15.1" #include #include diff --git a/prism/templates/lib/prism/serialize.rb.erb b/prism/templates/lib/prism/serialize.rb.erb index 6b29a39848..2dda111d35 100644 --- a/prism/templates/lib/prism/serialize.rb.erb +++ b/prism/templates/lib/prism/serialize.rb.erb @@ -15,7 +15,7 @@ module Prism module Serialize MAJOR_VERSION = 0 MINOR_VERSION = 15 - PATCH_VERSION = 0 + PATCH_VERSION = 1 def self.load(input, serialized) input = input.dup diff --git a/prism/util/pm_constant_pool.c b/prism/util/pm_constant_pool.c index 63dd86a8d2..8ed97c86a3 100644 --- a/prism/util/pm_constant_pool.c +++ b/prism/util/pm_constant_pool.c @@ -197,7 +197,7 @@ pm_constant_pool_insert(pm_constant_pool_t *pool, const uint8_t *start, size_t l // constant and replace it with the shared constant. free((void *) constant->start); constant->start = start; - bucket->type = PM_CONSTANT_POOL_BUCKET_DEFAULT; + bucket->type = (unsigned int) (PM_CONSTANT_POOL_BUCKET_DEFAULT & 0x3); } return bucket->id; diff --git a/prism/version.h b/prism/version.h index 78ebfcf26a..55ed5da703 100644 --- a/prism/version.h +++ b/prism/version.h @@ -1,4 +1,4 @@ #define PRISM_VERSION_MAJOR 0 #define PRISM_VERSION_MINOR 15 -#define PRISM_VERSION_PATCH 0 -#define PRISM_VERSION "0.15.0" +#define PRISM_VERSION_PATCH 1 +#define PRISM_VERSION "0.15.1"