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
|
2017-02-27 04:20:39 -05:00
|
|
|
|
2019-07-09 23:33:29 -04:00
|
|
|
version = ["", "ext/etc/"].find do |dir|
|
|
|
|
begin
|
|
|
|
break File.open(File.expand_path("../#{dir}/etc.c", __FILE__)) do |f|
|
|
|
|
f.gets "\n#define RUBY_ETC_VERSION "
|
|
|
|
f.gets[/"(.+)"/, 1]
|
|
|
|
end
|
|
|
|
rescue
|
|
|
|
next
|
|
|
|
end
|
|
|
|
end
|
|
|
|
|
2017-04-11 05:46:53 -04:00
|
|
|
Gem::Specification.new do |spec|
|
|
|
|
spec.name = "etc"
|
2019-07-09 23:33:29 -04:00
|
|
|
spec.version = version
|
2017-04-11 05:46:53 -04:00
|
|
|
spec.authors = ["Yukihiro Matsumoto"]
|
|
|
|
spec.email = ["matz@ruby-lang.org"]
|
2017-02-27 04:20:39 -05:00
|
|
|
|
2017-04-11 05:46:53 -04:00
|
|
|
spec.summary = %q{Provides access to information typically stored in UNIX /etc directory.}
|
2019-07-09 23:32:35 -04:00
|
|
|
spec.description = spec.summary
|
2017-04-11 05:46:53 -04:00
|
|
|
spec.homepage = "https://github.com/ruby/etc"
|
|
|
|
spec.license = "BSD-2-Clause"
|
|
|
|
|
2017-04-11 18:41:21 -04:00
|
|
|
spec.files = %w[
|
|
|
|
LICENSE.txt
|
|
|
|
README.md
|
2019-07-09 23:32:35 -04:00
|
|
|
ext/etc/constdefs.h
|
2017-04-11 18:41:21 -04:00
|
|
|
ext/etc/etc.c
|
|
|
|
ext/etc/extconf.rb
|
|
|
|
ext/etc/mkconstants.rb
|
2019-07-09 23:32:35 -04:00
|
|
|
stub/etc.rb
|
2017-04-11 18:41:21 -04:00
|
|
|
test/etc/test_etc.rb
|
|
|
|
]
|
2017-04-11 05:46:53 -04:00
|
|
|
spec.bindir = "exe"
|
|
|
|
spec.require_paths = ["lib"]
|
2017-04-11 18:41:21 -04:00
|
|
|
spec.extensions = %w{ext/etc/extconf.rb}
|
2017-04-11 05:46:53 -04:00
|
|
|
|
2017-12-13 00:52:47 -05:00
|
|
|
spec.required_ruby_version = ">= 2.3.0"
|
2017-04-11 05:46:53 -04:00
|
|
|
|
|
|
|
spec.add_development_dependency "bundler"
|
|
|
|
spec.add_development_dependency "rake"
|
|
|
|
spec.add_development_dependency "rake-compiler"
|
|
|
|
spec.add_development_dependency "test-unit"
|
2017-02-27 04:20:39 -05:00
|
|
|
end
|