ruby-changes:52927
From: nobu <ko1@a...>
Date: Thu, 18 Oct 2018 09:55:10 +0900 (JST)
Subject: [ruby-changes:52927] nobu:r65141 (trunk): zlib: fix Zlib::VERSION
nobu 2018-10-18 09:55:05 +0900 (Thu, 18 Oct 2018) New Revision: 65141 https://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=revision&revision=65141 Log: zlib: fix Zlib::VERSION Modified files: trunk/ext/zlib/zlib.c trunk/ext/zlib/zlib.gemspec Index: ext/zlib/zlib.c =================================================================== --- ext/zlib/zlib.c (revision 65140) +++ ext/zlib/zlib.c (revision 65141) @@ -25,7 +25,7 @@ https://github.com/ruby/ruby/blob/trunk/ext/zlib/zlib.c#L25 # define VALGRIND_MAKE_MEM_UNDEFINED(p, n) 0 #endif -#define RUBY_ZLIB_VERSION "0.6.0" +#define RUBY_ZLIB_VERSION "1.0.0" #ifndef GZIP_SUPPORT #define GZIP_SUPPORT 1 Index: ext/zlib/zlib.gemspec =================================================================== --- ext/zlib/zlib.gemspec (revision 65140) +++ ext/zlib/zlib.gemspec (revision 65141) @@ -1,8 +1,12 @@ https://github.com/ruby/ruby/blob/trunk/ext/zlib/zlib.gemspec#L1 # coding: utf-8 # frozen_string_literal: true +source_version = File.open(File.join(__dir__, "zlib.c")) {|f| + f.gets("\n#define RUBY_ZLIB_VERSION ") + f.gets[/\s*(".+")/, 1].undump +} Gem::Specification.new do |spec| spec.name = "zlib" - spec.version = "1.0.0" + spec.version = source_version spec.authors = ["Yukihiro Matsumoto", "UENO Katsuhiro"] spec.email = ["matz@r...", nil] -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/