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
|
|
|
# stub: stringio 0.0.0 ruby lib
|
|
|
|
# stub: extconf.rb
|
|
|
|
|
2019-07-09 12:21:05 -04:00
|
|
|
source_version = ["", "ext/stringio/"].find do |dir|
|
|
|
|
begin
|
|
|
|
File.open(File.join(__dir__, "#{dir}stringio.c")) {|f|
|
|
|
|
f.gets("\n#define STRINGIO_VERSION ")
|
|
|
|
f.gets[/\s*(".+")/, 1].undump
|
|
|
|
}
|
|
|
|
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"]
|
|
|
|
s.required_ruby_version = Gem::Requirement.new(">= 2.2")
|
|
|
|
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
|