ruby-changes:58998
From: Hiroshi <ko1@a...>
Date: Sun, 1 Dec 2019 01:55:03 +0900 (JST)
Subject: [ruby-changes:58998] 3b9e1c0b2e (master): Move gemspec of fileutils under the toplevel of lib directory.
https://git.ruby-lang.org/ruby.git/commit/?id=3b9e1c0b2e From 3b9e1c0b2e5b3c507c94fd36c87288e789ee9c2a Mon Sep 17 00:00:00 2001 From: Hiroshi SHIBATA <hsbt@r...> Date: Sat, 30 Nov 2019 17:32:38 +0900 Subject: Move gemspec of fileutils under the toplevel of lib directory. diff --git a/lib/fileutils.gemspec b/lib/fileutils.gemspec new file mode 100644 index 0000000..cd35c09 --- /dev/null +++ b/lib/fileutils.gemspec @@ -0,0 +1,31 @@ https://github.com/ruby/ruby/blob/trunk/lib/fileutils.gemspec#L1 +# frozen_string_literal: true + +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 +end + +Gem::Specification.new do |s| + s.name = "fileutils" + s.version = source_version + 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} + s.files = ["LICENSE.txt", "README.md", "Rakefile", "fileutils.gemspec", "lib/fileutils.rb"] + s.required_ruby_version = ">= 2.3.0" + + s.authors = ["Minero Aoki"] + s.email = [nil] + s.homepage = "https://github.com/ruby/fileutils" + s.license = "BSD-2-Clause" + + s.metadata = { + "source_code_uri" => "https://github.com/ruby/fileutils" + } +end diff --git a/lib/fileutils/fileutils.gemspec b/lib/fileutils/fileutils.gemspec deleted file mode 100644 index cd35c09..0000000 --- a/lib/fileutils/fileutils.gemspec +++ /dev/null @@ -1,31 +0,0 @@ https://github.com/ruby/ruby/blob/trunk/lib/fileutils.gemspec#L0 -# frozen_string_literal: true - -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 -end - -Gem::Specification.new do |s| - s.name = "fileutils" - s.version = source_version - 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} - s.files = ["LICENSE.txt", "README.md", "Rakefile", "fileutils.gemspec", "lib/fileutils.rb"] - s.required_ruby_version = ">= 2.3.0" - - s.authors = ["Minero Aoki"] - s.email = [nil] - s.homepage = "https://github.com/ruby/fileutils" - s.license = "BSD-2-Clause" - - s.metadata = { - "source_code_uri" => "https://github.com/ruby/fileutils" - } -end -- cgit v0.10.2 -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/