2017-09-13 22:01:36 -04: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 09:03:06 -04:00
|
|
|
# frozen_string_literal: true
|
2019-09-29 05:21:17 -04: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-13 22:01:36 -04:00
|
|
|
Gem::Specification.new do |spec|
|
|
|
|
spec.name = "zlib"
|
2018-10-17 20:55:05 -04:00
|
|
|
spec.version = source_version
|
2017-09-13 22:01:36 -04:00
|
|
|
spec.authors = ["Yukihiro Matsumoto", "UENO Katsuhiro"]
|
|
|
|
spec.email = ["matz@ruby-lang.org", nil]
|
2017-02-03 07:39:04 -05:00
|
|
|
|
2017-09-13 22:01:36 -04: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"
|
|
|
|
spec.license = "BSD-2-Clause"
|
2017-02-03 07:39:04 -05:00
|
|
|
|
2017-09-13 22:01:36 -04:00
|
|
|
spec.files = [".gitignore", ".travis.yml", "Gemfile", "LICENSE.txt", "README.md", "Rakefile", "bin/console", "bin/setup", "ext/zlib/extconf.rb", "ext/zlib/zlib.c", "zlib.gemspec"]
|
|
|
|
spec.bindir = "exe"
|
|
|
|
spec.executables = spec.files.grep(%r{^exe/}) { |f| File.basename(f) }
|
|
|
|
spec.require_paths = ["lib"]
|
|
|
|
spec.extensions = "ext/zlib/extconf.rb"
|
2017-12-11 03:37:49 -05:00
|
|
|
spec.required_ruby_version = ">= 2.3.0"
|
2017-09-13 22:01:36 -04:00
|
|
|
|
|
|
|
spec.add_development_dependency "bundler"
|
|
|
|
spec.add_development_dependency "rake"
|
|
|
|
spec.add_development_dependency "rake-compiler"
|
2017-02-03 07:39:04 -05:00
|
|
|
end
|