[ruby/stringio] Get rid of String#undump for ruby 2.4 or earlier
https://github.com/ruby/stringio/commit/4dfd997e0a
This commit is contained in:
parent
94db8cda9b
commit
7f30783af7
@ -5,7 +5,7 @@ source_version = ["", "ext/stringio/"].find do |dir|
|
|||||||
begin
|
begin
|
||||||
break 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]
|
||||||
}
|
}
|
||||||
rescue Errno::ENOENT
|
rescue Errno::ENOENT
|
||||||
end
|
end
|
||||||
|
Loading…
x
Reference in New Issue
Block a user