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
|
2020-12-17 04:32:08 -05:00
|
|
|
#
|
|
|
|
source_version = ["", "ext/strscan/"].find do |dir|
|
|
|
|
begin
|
|
|
|
break File.open(File.join(__dir__, "#{dir}strscan.c")) {|f|
|
|
|
|
f.gets("\n#define STRSCAN_VERSION ")
|
|
|
|
f.gets[/\s*"(.+)"/, 1]
|
|
|
|
}
|
|
|
|
rescue Errno::ENOENT
|
|
|
|
end
|
|
|
|
end
|
|
|
|
|
2017-02-07 02:14:21 -05:00
|
|
|
Gem::Specification.new do |s|
|
|
|
|
s.name = "strscan"
|
2020-12-17 04:32:08 -05:00
|
|
|
s.version = source_version
|
2017-02-07 02:14:21 -05:00
|
|
|
s.summary = "Provides lexical scanning operations on a String."
|
|
|
|
s.description = "Provides lexical scanning operations on a String."
|
|
|
|
|
|
|
|
s.require_path = %w{lib}
|
2019-10-13 23:40:50 -04:00
|
|
|
s.files = %w{ext/strscan/extconf.rb ext/strscan/strscan.c}
|
2017-12-18 22:12:22 -05:00
|
|
|
s.extensions = %w{ext/strscan/extconf.rb}
|
|
|
|
s.required_ruby_version = ">= 2.4.0"
|
2017-02-07 02:14:21 -05:00
|
|
|
|
2019-10-13 23:40:50 -04:00
|
|
|
s.authors = ["Minero Aoki", "Sutou Kouhei"]
|
|
|
|
s.email = [nil, "kou@cozmixng.org"]
|
2017-09-15 19:46:46 -04:00
|
|
|
s.homepage = "https://github.com/ruby/strscan"
|
2020-08-18 07:15:59 -04:00
|
|
|
s.licenses = ["Ruby", "BSD-2-Clause"]
|
2017-02-07 02:14:21 -05:00
|
|
|
end
|