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 16:03:06 +03:00
|
|
|
# frozen_string_literal: true
|
2018-05-15 08:53:18 +03:00
|
|
|
|
2019-10-02 18:55:19 +03: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 10:03:55 +03:00
|
|
|
end
|
|
|
|
|
2017-02-06 12:51:17 +03:00
|
|
|
Gem::Specification.new do |s|
|
|
|
|
s.name = "fileutils"
|
2019-10-02 18:55:19 +03:00
|
|
|
s.version = source_version
|
2017-02-06 12:51:17 +03: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 18:55:19 +03:00
|
|
|
s.files = ["LICENSE.txt", "README.md", "Rakefile", "fileutils.gemspec", "lib/fileutils.rb"]
|
2021-01-17 05:48:25 +03:00
|
|
|
s.required_ruby_version = ">= 2.5.0"
|
2017-02-06 12:51:17 +03:00
|
|
|
|
|
|
|
s.authors = ["Minero Aoki"]
|
|
|
|
s.email = [nil]
|
2017-05-20 02:39:58 +03:00
|
|
|
s.homepage = "https://github.com/ruby/fileutils"
|
2020-08-18 14:15:59 +03:00
|
|
|
s.licenses = ["Ruby", "BSD-2-Clause"]
|
2017-04-12 11:12:53 +03:00
|
|
|
|
2019-10-02 18:55:19 +03:00
|
|
|
s.metadata = {
|
|
|
|
"source_code_uri" => "https://github.com/ruby/fileutils"
|
|
|
|
}
|
2017-02-06 12:51:17 +03:00
|
|
|
end
|