зеркало из https://github.com/github/ruby.git
Use the found version number
This commit is contained in:
Родитель
9c48472b1e
Коммит
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
|
||||
}
|
||||
|
|
Загрузка…
Ссылка в новой задаче