[前][次][番号順一覧][スレッド一覧]

ruby-changes:66078

From: Hiroshi <ko1@a...>
Date: Thu, 6 May 2021 15:21:00 +0900 (JST)
Subject: [ruby-changes:66078] 5de6f1ab47 (master): Move net-imap.gemspec to under the lib/net/imap directory.

https://git.ruby-lang.org/ruby.git/commit/?id=5de6f1ab47

From 5de6f1ab4751f02670239ebe537e599c477dc4bf Mon Sep 17 00:00:00 2001
From: Hiroshi SHIBATA <hsbt@r...>
Date: Thu, 6 May 2021 14:16:41 +0900
Subject: Move net-imap.gemspec to under the lib/net/imap directory.

---
 lib/net/imap/net-imap.gemspec | 37 +++++++++++++++++++++++++++++++++++++
 lib/net/net-imap.gemspec      | 37 -------------------------------------
 tool/sync_default_gems.rb     |  5 +++--
 3 files changed, 40 insertions(+), 39 deletions(-)
 create mode 100644 lib/net/imap/net-imap.gemspec
 delete mode 100644 lib/net/net-imap.gemspec

diff --git a/lib/net/imap/net-imap.gemspec b/lib/net/imap/net-imap.gemspec
new file mode 100644
index 0000000..d7c341c
--- /dev/null
+++ b/lib/net/imap/net-imap.gemspec
@@ -0,0 +1,37 @@ https://github.com/ruby/ruby/blob/trunk/lib/net/imap/net-imap.gemspec#L1
+# frozen_string_literal: true
+
+name = File.basename(__FILE__, ".gemspec")
+version = ["lib", Array.new(name.count("-"), "..").join("/")].find do |dir|
+  break File.foreach(File.join(__dir__, dir, "#{name.tr('-', '/')}.rb")) do |line|
+    /^\s*VERSION\s*=\s*"(.*)"/ =~ line and break $1
+  end rescue nil
+end
+
+Gem::Specification.new do |spec|
+  spec.name          = name
+  spec.version       = version
+  spec.authors       = ["Shugo Maeda"]
+  spec.email         = ["shugo@r..."]
+
+  spec.summary       = %q{Ruby client api for Internet Message Access Protocol}
+  spec.description   = %q{Ruby client api for Internet Message Access Protocol}
+  spec.homepage      = "https://github.com/ruby/net-imap"
+  spec.required_ruby_version = Gem::Requirement.new(">= 2.5.0")
+  spec.licenses       = ["Ruby", "BSD-2-Clause"]
+
+  spec.metadata["homepage_uri"] = spec.homepage
+  spec.metadata["source_code_uri"] = spec.homepage
+
+  # Specify which files should be added to the gem when it is released.
+  # The `git ls-files -z` loads the files in the RubyGem that have been added into git.
+  spec.files         = Dir.chdir(File.expand_path('..', __FILE__)) do
+    `git ls-files -z 2>/dev/null`.split("\x0").reject { |f| f.match(%r{^(test|spec|features)/}) }
+  end
+  spec.bindir        = "exe"
+  spec.executables   = spec.files.grep(%r{^exe/}) { |f| File.basename(f) }
+  spec.require_paths = ["lib"]
+
+  spec.add_dependency "net-protocol"
+  spec.add_dependency "digest"
+  spec.add_dependency "strscan"
+end
diff --git a/lib/net/net-imap.gemspec b/lib/net/net-imap.gemspec
deleted file mode 100644
index d7c341c..0000000
--- a/lib/net/net-imap.gemspec
+++ /dev/null
@@ -1,37 +0,0 @@ https://github.com/ruby/ruby/blob/trunk/lib/net/imap/net-imap.gemspec#L0
-# frozen_string_literal: true
-
-name = File.basename(__FILE__, ".gemspec")
-version = ["lib", Array.new(name.count("-"), "..").join("/")].find do |dir|
-  break File.foreach(File.join(__dir__, dir, "#{name.tr('-', '/')}.rb")) do |line|
-    /^\s*VERSION\s*=\s*"(.*)"/ =~ line and break $1
-  end rescue nil
-end
-
-Gem::Specification.new do |spec|
-  spec.name          = name
-  spec.version       = version
-  spec.authors       = ["Shugo Maeda"]
-  spec.email         = ["shugo@r..."]
-
-  spec.summary       = %q{Ruby client api for Internet Message Access Protocol}
-  spec.description   = %q{Ruby client api for Internet Message Access Protocol}
-  spec.homepage      = "https://github.com/ruby/net-imap"
-  spec.required_ruby_version = Gem::Requirement.new(">= 2.5.0")
-  spec.licenses       = ["Ruby", "BSD-2-Clause"]
-
-  spec.metadata["homepage_uri"] = spec.homepage
-  spec.metadata["source_code_uri"] = spec.homepage
-
-  # Specify which files should be added to the gem when it is released.
-  # The `git ls-files -z` loads the files in the RubyGem that have been added into git.
-  spec.files         = Dir.chdir(File.expand_path('..', __FILE__)) do
-    `git ls-files -z 2>/dev/null`.split("\x0").reject { |f| f.match(%r{^(test|spec|features)/}) }
-  end
-  spec.bindir        = "exe"
-  spec.executables   = spec.files.grep(%r{^exe/}) { |f| File.basename(f) }
-  spec.require_paths = ["lib"]
-
-  spec.add_dependency "net-protocol"
-  spec.add_dependency "digest"
-  spec.add_dependency "strscan"
-end
diff --git a/tool/sync_default_gems.rb b/tool/sync_default_gems.rb
index ae13621..7f0ecba 100644
--- a/tool/sync_default_gems.rb
+++ b/tool/sync_default_gems.rb
@@ -275,10 +275,11 @@ def sync_default_gems(gem) https://github.com/ruby/ruby/blob/trunk/tool/sync_default_gems.rb#L275
     cp_r("#{upstream}/test/net/protocol", "test/net")
     cp_r("#{upstream}/net-protocol.gemspec", "lib/net")
   when "net-imap"
-    rm_rf(%w[lib/net/imap.rb lib/net/net-imap.gemspec test/net/imap])
+    rm_rf(%w[lib/net/imap.rb lib/net/imap test/net/imap])
     cp_r("#{upstream}/lib/net/imap.rb", "lib/net")
+    cp_r("#{upstream}/lib/net/imap", "lib/net")
     cp_r("#{upstream}/test/net/imap", "test/net")
-    cp_r("#{upstream}/net-imap.gemspec", "lib/net")
+    cp_r("#{upstream}/net-imap.gemspec", "lib/net/imap")
   when "net-ftp"
     rm_rf(%w[lib/net/ftp.rb lib/net/net-ftp.gemspec test/net/ftp])
     cp_r("#{upstream}/lib/net/ftp.rb", "lib/net")
-- 
cgit v1.1


--
ML: ruby-changes@q...
Info: http://www.atdot.net/~ko1/quickml/

[前][次][番号順一覧][スレッド一覧]