mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
zlib: fix Zlib::VERSION
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@65141 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
6db7b1c55a
commit
fd360dd93a
2 changed files with 6 additions and 2 deletions
|
@ -25,7 +25,7 @@
|
|||
# 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
|
||||
|
|
|
@ -1,8 +1,12 @@
|
|||
# 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@ruby-lang.org", nil]
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue