ruby-changes:56406
From: Nobuyoshi <ko1@a...>
Date: Wed, 10 Jul 2019 02:08:19 +0900 (JST)
Subject: [ruby-changes:56406] Nobuyoshi Nakada: de4889ce5c (master): Use the found version number
https://git.ruby-lang.org/ruby.git/commit/?id=de4889ce5c From de4889ce5c5177ed276dfc840a5c07f69317096c Mon Sep 17 00:00:00 2001 From: Nobuyoshi Nakada <nobu@r...> Date: Wed, 10 Jul 2019 02:07:13 +0900 Subject: Use the found version number diff --git a/ext/stringio/stringio.gemspec b/ext/stringio/stringio.gemspec index 83654d5..77c9e79 100644 --- a/ext/stringio/stringio.gemspec +++ b/ext/stringio/stringio.gemspec @@ -5,7 +5,7 @@ https://github.com/ruby/ruby/blob/trunk/ext/stringio/stringio.gemspec#L5 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 } -- cgit v0.10.2 -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/