[前][次][番号順一覧][スレッド一覧]

ruby-changes:58008

From: Nobuyoshi <ko1@a...>
Date: Sun, 29 Sep 2019 18:59:50 +0900 (JST)
Subject: [ruby-changes:58008] 7f30783af7 (master): [ruby/stringio] Get rid of String#undump for ruby 2.4 or earlier

https://git.ruby-lang.org/ruby.git/commit/?id=7f30783af7

From 7f30783af73bb484912365c28da4e7292f1d8211 Mon Sep 17 00:00:00 2001
From: Nobuyoshi Nakada <nobu@r...>
Date: Sun, 29 Sep 2019 18:13:00 +0900
Subject: [ruby/stringio] Get rid of String#undump for ruby 2.4 or earlier

https://github.com/ruby/stringio/commit/4dfd997e0a

diff --git a/ext/stringio/stringio.gemspec b/ext/stringio/stringio.gemspec
index 75fe8b9..96beb36 100644
--- a/ext/stringio/stringio.gemspec
+++ b/ext/stringio/stringio.gemspec
@@ -5,7 +5,7 @@ source_version = ["", "ext/stringio/"].find do |dir| https://github.com/ruby/ruby/blob/trunk/ext/stringio/stringio.gemspec#L5
   begin
     break File.open(File.join(__dir__, "#{dir}stringio.c")) {|f|
       f.gets("\n#define STRINGIO_VERSION ")
-      f.gets[/\s*(".+")/, 1].undump
+      f.gets[/\s*"(.+)"/, 1]
     }
   rescue Errno::ENOENT
   end
-- 
cgit v0.10.2


--
ML: ruby-changes@q...
Info: http://www.atdot.net/~ko1/quickml/

[前][次][番号順一覧][スレッド一覧]