Use the found version number
This commit is contained in:
parent
9c48472b1e
commit
de4889ce5c
@ -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
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user