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
|
2018-05-15 01:53:18 -04:00
|
|
|
|
2019-10-02 11:55:19 -04:00
|
|
|
source_version = ["", "lib/"].find do |dir|
|
|
|
|
begin
|
|
|
|
break File.open(File.join(__dir__, "#{dir}fileutils.rb")) {|f|
|
|
|
|
f.gets("\n VERSION = ")
|
|
|
|
f.gets[/\s*"(.+)"/, 1]
|
|
|
|
}
|
|
|
|
rescue Errno::ENOENT
|
|
|
|
end
|
2018-10-20 03:03:55 -04:00
|
|
|
end
|
|
|
|
|
2017-02-06 04:51:17 -05:00
|
|
|
Gem::Specification.new do |s|
|
|
|
|
s.name = "fileutils"
|
2019-10-02 11:55:19 -04:00
|
|
|
s.version = source_version
|
2017-02-06 04:51:17 -05:00
|
|
|
s.summary = "Several file utility methods for copying, moving, removing, etc."
|
|
|
|
s.description = "Several file utility methods for copying, moving, removing, etc."
|
|
|
|
|
|
|
|
s.require_path = %w{lib}
|
2019-10-02 11:55:19 -04:00
|
|
|
s.files = ["LICENSE.txt", "README.md", "Rakefile", "fileutils.gemspec", "lib/fileutils.rb"]
|
2018-05-15 01:53:18 -04:00
|
|
|
s.required_ruby_version = ">= 2.3.0"
|
2017-02-06 04:51:17 -05:00
|
|
|
|
|
|
|
s.authors = ["Minero Aoki"]
|
|
|
|
s.email = [nil]
|
2017-05-19 19:39:58 -04:00
|
|
|
s.homepage = "https://github.com/ruby/fileutils"
|
2020-08-18 07:15:59 -04:00
|
|
|
s.licenses = ["Ruby", "BSD-2-Clause"]
|
2017-04-12 04:12:53 -04:00
|
|
|
|
2019-10-02 11:55:19 -04:00
|
|
|
s.metadata = {
|
|
|
|
"source_code_uri" => "https://github.com/ruby/fileutils"
|
|
|
|
}
|
2017-02-06 04:51:17 -05:00
|
|
|
end
|