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:
parent
9c48472b1e
commit
de4889ce5c
1 changed files with 1 additions and 1 deletions
|
@ -5,7 +5,7 @@
|
||||||
|
|
||||||
source_version = ["", "ext/stringio/"].find do |dir|
|
source_version = ["", "ext/stringio/"].find do |dir|
|
||||||
begin
|
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("\n#define STRINGIO_VERSION ")
|
||||||
f.gets[/\s*(".+")/, 1].undump
|
f.gets[/\s*(".+")/, 1].undump
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue