ruby-changes:60138
From: Hiroshi <ko1@a...>
Date: Thu, 20 Feb 2020 21:28:58 +0900 (JST)
Subject: [ruby-changes:60138] e9d872a06e (master): Promote net-imap to the default gems
https://git.ruby-lang.org/ruby.git/commit/?id=e9d872a06e From e9d872a06e0847c72edda793e21b116ce269d854 Mon Sep 17 00:00:00 2001 From: Hiroshi SHIBATA <hsbt@r...> Date: Thu, 20 Feb 2020 21:22:56 +0900 Subject: Promote net-imap to the default gems diff --git a/lib/net/imap.rb b/lib/net/imap.rb index 720acbc..704fdef 100644 --- a/lib/net/imap.rb +++ b/lib/net/imap.rb @@ -18,7 +18,7 @@ require "socket" https://github.com/ruby/ruby/blob/trunk/lib/net/imap.rb#L18 require "monitor" require "digest/md5" require "strscan" -require_relative 'protocol' +require 'net/protocol' begin require "openssl" rescue LoadError diff --git a/lib/net/imap/net-imap.gemspec b/lib/net/imap/net-imap.gemspec new file mode 100644 index 0000000..bd4e450 --- /dev/null +++ b/lib/net/imap/net-imap.gemspec @@ -0,0 +1,25 @@ https://github.com/ruby/ruby/blob/trunk/lib/net/imap/net-imap.gemspec#L1 +require_relative 'lib/net/imap/version' + +Gem::Specification.new do |spec| + spec.name = "net-imap" + spec.version = Net::Imap::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.3.0") + + 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`.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"] +end diff --git a/lib/net/imap/version.rb b/lib/net/imap/version.rb new file mode 100644 index 0000000..47d3de4 --- /dev/null +++ b/lib/net/imap/version.rb @@ -0,0 +1,5 @@ https://github.com/ruby/ruby/blob/trunk/lib/net/imap/version.rb#L1 +module Net + module Imap + VERSION = "0.1.0" + end +end diff --git a/tool/sync_default_gems.rb b/tool/sync_default_gems.rb index 2ca3c24..db0db12 100644 --- a/tool/sync_default_gems.rb +++ b/tool/sync_default_gems.rb @@ -60,6 +60,7 @@ https://github.com/ruby/ruby/blob/trunk/tool/sync_default_gems.rb#L60 # * https://github.com/ruby/tmpdir # * https://github.com/ruby/English # * https://github.com/ruby/net-protocol +# * https://github.com/ruby/net-imap # require 'fileutils' @@ -118,6 +119,7 @@ $repositories = { https://github.com/ruby/ruby/blob/trunk/tool/sync_default_gems.rb#L119 tmpdir: "ruby/tmpdir", English: "ruby/English", "net-protocol": "ruby/net-protocol", + "net-imap": "ruby/net-imap", } def sync_default_gems(gem) @@ -279,6 +281,9 @@ def sync_default_gems(gem) https://github.com/ruby/ruby/blob/trunk/tool/sync_default_gems.rb#L281 when "net-protocol" sync_lib "net-protocol" mv "lib/net-protocol.gemspec", "lib/net/protocol" + when "net-imap" + sync_lib "net-imap" + mv "lib/net-imap.gemspec", "lib/net/imap" when "readline-ext" rm_rf(%w[ext/readline test/readline]) cp_r("#{upstream}/ext/readline", "ext") -- cgit v0.10.2 -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/