| 1 |
# frozen_string_literal: true |
| 2 |
|
| 3 |
source_version = ["", "lib/"].find do |dir| |
| 4 |
begin |
| 5 |
break File.open(File.join(__dir__, "#{dir}fileutils.rb")) {|f| |
| 6 |
f.gets("\n VERSION = ") |
| 7 |
f.gets[/\s*"(.+)"/, 1] |
| 8 |
} |
| 9 |
rescue Errno::ENOENT |
| 10 |
end |
| 11 |
end |
| 12 |
|
| 13 |
Gem::Specification.new do |s| |
| 14 |
s.name = "fileutils" |
| 15 |
s.version = source_version |
| 16 |
s.summary = "Several file utility methods for copying, moving, removing, etc." |
| 17 |
s.description = "Several file utility methods for copying, moving, removing, etc." |
| 18 |
|
| 19 |
s.require_path = %w{lib} |
| 20 |
s.files = ["LICENSE.txt", "README.md", "Rakefile", "fileutils.gemspec", "lib/fileutils.rb"] |
| 21 |
s.required_ruby_version = ">= 2.5.0" |
| 22 |
|
| 23 |
s.authors = ["Minero Aoki"] |
| 24 |
s.email = [nil] |
| 25 |
s.homepage = "https://github.com/ruby/fileutils" |
| 26 |
s.licenses = ["Ruby", "BSD-2-Clause"] |
| 27 |
|
| 28 |
s.metadata = { |
| 29 |
"source_code_uri" => "https://github.com/ruby/fileutils" |
| 30 |
} |
| 31 |
end |