1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00

Use the found version number

This commit is contained in:
Nobuyoshi Nakada 2019-07-10 02:07:13 +09:00
parent 9c48472b1e
commit de4889ce5c
No known key found for this signature in database
GPG key ID: 4BC7D6DF58D8DF60

View file

@ -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
}