diff options
author | Nobuyoshi Nakada <nobu@ruby-lang.org> | 2023-11-04 17:43:39 +0900 |
---|---|---|
committer | Nobuyoshi Nakada <nobu@ruby-lang.org> | 2023-11-04 19:28:49 +0900 |
commit | 79d0879536cb28ce2dc5887fc46afdca170fdc76 (patch) | |
tree | 7e281dd9084c1ebca52f9d68382cf06e8210a36d /ext | |
parent | b30783e02ea8cfd89b657f85b261d14920448e46 (diff) | |
download | ruby-79d0879536cb28ce2dc5887fc46afdca170fdc76.tar.gz |
[ruby/stringio] Make STRINGIO_VERSION uniform
https://github.com/ruby/stringio/commit/4400bf3380
Diffstat (limited to 'ext')
-rw-r--r-- | ext/stringio/stringio.c | 3 | ||||
-rw-r--r-- | ext/stringio/stringio.gemspec | 2 |
2 files changed, 3 insertions, 2 deletions
diff --git a/ext/stringio/stringio.c b/ext/stringio/stringio.c index d5753a97a0..43ce0d6a8a 100644 --- a/ext/stringio/stringio.c +++ b/ext/stringio/stringio.c @@ -12,7 +12,8 @@ **********************************************************************/ -#define STRINGIO_VERSION "3.0.9" +static const char *const +STRINGIO_VERSION = "3.0.9"; #include "ruby.h" #include "ruby/io.h" diff --git a/ext/stringio/stringio.gemspec b/ext/stringio/stringio.gemspec index c73fc3a17a..8c950f8ff9 100644 --- a/ext/stringio/stringio.gemspec +++ b/ext/stringio/stringio.gemspec @@ -4,7 +4,7 @@ source_version = ["", "ext/stringio/"].find do |dir| begin break File.open(File.join(__dir__, "#{dir}stringio.c")) {|f| - f.gets("\n#define STRINGIO_VERSION ") + f.gets("\nSTRINGIO_VERSION ") f.gets[/\s*"(.+)"/, 1] } rescue Errno::ENOENT |