2017-09-14 05:01:36 +03:00
|
|
|
# coding: utf-8
|
Make string literal to frozen object on gemspec of defulte gems.
Added following gemspecs.
* extensions: date, dbm, etc, fiddle, gdbm, sdbm, stringio, strscan, zlib
* pure ruby libraries: cmath, csv, fileutils, scanf, webrick
psych and rdoc is out of scope of this commit. I will merge after
upstream was change to `frozen_string_literal: true`.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@59115 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2017-06-19 16:03:06 +03:00
|
|
|
# frozen_string_literal: true
|
2019-09-29 12:21:17 +03:00
|
|
|
|
|
|
|
source_version = ["", "ext/zlib/"].find do |dir|
|
|
|
|
begin
|
|
|
|
break File.open(File.join(__dir__, "#{dir}zlib.c")) {|f|
|
|
|
|
f.gets("\n#define RUBY_ZLIB_VERSION ")
|
|
|
|
f.gets[/\s*"(.+)"/, 1]
|
|
|
|
}
|
|
|
|
rescue Errno::ENOENT
|
|
|
|
end
|
|
|
|
end
|
|
|
|
|
2017-09-14 05:01:36 +03:00
|
|
|
Gem::Specification.new do |spec|
|
|
|
|
spec.name = "zlib"
|
2018-10-18 03:55:05 +03:00
|
|
|
spec.version = source_version
|
2017-09-14 05:01:36 +03:00
|
|
|
spec.authors = ["Yukihiro Matsumoto", "UENO Katsuhiro"]
|
|
|
|
spec.email = ["matz@ruby-lang.org", nil]
|
2017-02-03 15:39:04 +03:00
|
|
|
|
2017-09-14 05:01:36 +03:00
|
|
|
spec.summary = %q{Ruby interface for the zlib compression/decompression library}
|
|
|
|
spec.description = %q{Ruby interface for the zlib compression/decompression library}
|
|
|
|
spec.homepage = "https://github.com/ruby/zlib"
|
2020-08-18 14:15:59 +03:00
|
|
|
spec.licenses = ["Ruby", "BSD-2-Clause"]
|
2017-02-03 15:39:04 +03:00
|
|
|
|
2021-03-31 16:40:39 +03:00
|
|
|
spec.files = ["LICENSE.txt", "README.md", "ext/zlib/extconf.rb", "ext/zlib/zlib.c", "zlib.gemspec"]
|
2017-09-14 05:01:36 +03:00
|
|
|
spec.bindir = "exe"
|
2021-03-31 16:40:39 +03:00
|
|
|
spec.executables = []
|
2017-09-14 05:01:36 +03:00
|
|
|
spec.require_paths = ["lib"]
|
|
|
|
spec.extensions = "ext/zlib/extconf.rb"
|
2023-11-07 11:38:21 +03:00
|
|
|
spec.required_ruby_version = ">= 2.5.0"
|
2017-02-03 15:39:04 +03:00
|
|
|
end
|