mirror of
https://github.com/ruby/ruby.git
synced 2025-09-15 16:44:01 +02:00
parent
b30783e02e
commit
79d0879536
2 changed files with 3 additions and 2 deletions
|
@ -12,7 +12,8 @@
|
|||
|
||||
**********************************************************************/
|
||||
|
||||
#define STRINGIO_VERSION "3.0.9"
|
||||
static const char *const
|
||||
STRINGIO_VERSION = "3.0.9";
|
||||
|
||||
#include "ruby.h"
|
||||
#include "ruby/io.h"
|
||||
|
|
|
@ -4,7 +4,7 @@
|
|||
source_version = ["", "ext/stringio/"].find do |dir|
|
||||
begin
|
||||
break File.open(File.join(__dir__, "#{dir}stringio.c")) {|f|
|
||||
f.gets("\n#define STRINGIO_VERSION ")
|
||||
f.gets("\nSTRINGIO_VERSION ")
|
||||
f.gets[/\s*"(.+)"/, 1]
|
||||
}
|
||||
rescue Errno::ENOENT
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue