2017-03-21 21:58:17 -04:00
|
|
|
# -*- encoding: 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
|
2017-03-21 21:58:17 -04:00
|
|
|
|
2019-07-09 12:21:05 -04:00
|
|
|
source_version = ["", "ext/stringio/"].find do |dir|
|
|
|
|
begin
|
2019-07-09 13:07:13 -04:00
|
|
|
break File.open(File.join(__dir__, "#{dir}stringio.c")) {|f|
|
2019-07-09 12:21:05 -04:00
|
|
|
f.gets("\n#define STRINGIO_VERSION ")
|
2019-09-29 05:13:00 -04:00
|
|
|
f.gets[/\s*"(.+)"/, 1]
|
2019-07-09 12:21:05 -04:00
|
|
|
}
|
|
|
|
rescue Errno::ENOENT
|
|
|
|
end
|
|
|
|
end
|
2017-03-21 21:58:17 -04:00
|
|
|
Gem::Specification.new do |s|
|
2019-07-09 12:57:18 -04:00
|
|
|
s.name = "stringio"
|
2019-07-09 12:21:05 -04:00
|
|
|
s.version = source_version
|
2017-03-21 21:58:17 -04:00
|
|
|
|
2019-07-09 12:57:18 -04:00
|
|
|
s.required_rubygems_version = Gem::Requirement.new(">= 2.6")
|
|
|
|
s.require_paths = ["lib"]
|
|
|
|
s.authors = ["Nobu Nakada"]
|
|
|
|
s.description = "Pseudo `IO` class from/to `String`."
|
|
|
|
s.email = "nobu@ruby-lang.org"
|
|
|
|
s.extensions = ["ext/stringio/extconf.rb"]
|
|
|
|
s.files = ["README.md", "ext/stringio/extconf.rb", "ext/stringio/stringio.c"]
|
|
|
|
s.homepage = "https://github.com/ruby/stringio"
|
|
|
|
s.licenses = ["BSD-2-Clause"]
|
2019-11-30 01:16:13 -05:00
|
|
|
s.required_ruby_version = ">= 2.5"
|
2019-07-09 12:57:18 -04:00
|
|
|
s.rubygems_version = "2.6.11"
|
|
|
|
s.summary = "Pseudo IO on String"
|
2018-11-27 21:38:29 -05:00
|
|
|
|
|
|
|
# s.cert_chain = %w[certs/nobu.pem]
|
|
|
|
# s.signing_key = File.expand_path("~/.ssh/gem-private_key.pem") if $0 =~ /gem\z/
|
2017-09-13 22:01:36 -04:00
|
|
|
|
|
|
|
s.add_development_dependency 'rake-compiler'
|
2017-03-21 21:58:17 -04:00
|
|
|
end
|