diff options
author | Nobuyoshi Nakada <[email protected]> | 2019-07-10 02:07:13 +0900 |
---|---|---|
committer | Nobuyoshi Nakada <[email protected]> | 2019-07-10 02:07:42 +0900 |
commit | de4889ce5c5177ed276dfc840a5c07f69317096c (patch) | |
tree | 7a34b51b3de3c8bce697e3cfe69cf85cfd0fe3fc /ext | |
parent | 9c48472b1e895156c4a577cab4f06b74f4844fe5 (diff) |
Use the found version number
Diffstat (limited to 'ext')
-rw-r--r-- | ext/stringio/stringio.gemspec | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/ext/stringio/stringio.gemspec b/ext/stringio/stringio.gemspec index 83654d5a93..77c9e79b7e 100644 --- a/ext/stringio/stringio.gemspec +++ b/ext/stringio/stringio.gemspec @@ -5,7 +5,7 @@ source_version = ["", "ext/stringio/"].find do |dir| begin - File.open(File.join(__dir__, "#{dir}stringio.c")) {|f| + break File.open(File.join(__dir__, "#{dir}stringio.c")) {|f| f.gets("\n#define STRINGIO_VERSION ") f.gets[/\s*(".+")/, 1].undump } |