Skip to content

Commit 7b5e412

Browse files
committed
merge revision(s) f27ed98: [Backport #21183]
[ruby/prism] Freeze `Prism::VERSION` Closes ruby/prism#3422 ruby/prism@b488a84253
1 parent e630a0f commit 7b5e412

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

prism/extension.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1251,7 +1251,7 @@ Init_prism(void) {
12511251
/**
12521252
* The version of the prism library.
12531253
*/
1254-
rb_define_const(rb_cPrism, "VERSION", rb_str_new2(EXPECTED_PRISM_VERSION));
1254+
rb_define_const(rb_cPrism, "VERSION", rb_str_freeze(rb_str_new_cstr(EXPECTED_PRISM_VERSION)));
12551255

12561256
// First, the functions that have to do with lexing and parsing.
12571257
rb_define_singleton_method(rb_cPrism, "lex", lex, -1);

version.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
# define RUBY_VERSION_MINOR RUBY_API_VERSION_MINOR
1212
#define RUBY_VERSION_TEENY 2
1313
#define RUBY_RELEASE_DATE RUBY_RELEASE_YEAR_STR"-"RUBY_RELEASE_MONTH_STR"-"RUBY_RELEASE_DAY_STR
14-
#define RUBY_PATCHLEVEL 29
14+
#define RUBY_PATCHLEVEL 30
1515

1616
#include "ruby/version.h"
1717
#include "ruby/internal/abi.h"

0 commit comments

Comments
 (0)