ruby-changes:58615
From: Hiroshi <ko1@a...>
Date: Thu, 7 Nov 2019 17:02:56 +0900 (JST)
Subject: [ruby-changes:58615] eb0b13596d (master): Promote net-pop to default gems
https://git.ruby-lang.org/ruby.git/commit/?id=eb0b13596d From eb0b13596d9130683937f11b207baf258b266edc Mon Sep 17 00:00:00 2001 From: Hiroshi SHIBATA <hsbt@r...> Date: Thu, 7 Nov 2019 15:24:59 +0900 Subject: Promote net-pop to default gems diff --git a/doc/maintainers.rdoc b/doc/maintainers.rdoc index b6b3615..888a936 100644 --- a/doc/maintainers.rdoc +++ b/doc/maintainers.rdoc @@ -64,8 +64,6 @@ Zachary Scott (zzak) https://github.com/ruby/ruby/blob/trunk/doc/maintainers.rdoc#L64 Shugo Maeda (shugo) [lib/net/http.rb, lib/net/https.rb] NARUSE, Yui (naruse) -[lib/net/pop.rb] - _unmaintained_ [lib/net/protocol.rb] _unmaintained_ [lib/net/smtp.rb] @@ -209,6 +207,10 @@ Zachary Scott (zzak) https://github.com/ruby/ruby/blob/trunk/doc/maintainers.rdoc#L207 Keiju ISHITSUKA (keiju) https://github.com/ruby/mutex_m https://rubygems.org/gems/mutex_m +[lib/net/pop.rb] + _unmaintained_ + https://github.com/ruby/net-pop + https://rubygems.org/gems/net-pop [lib/open3.rb] _unmaintained_ https://github.com/ruby/open3 diff --git a/doc/standard_library.rdoc b/doc/standard_library.rdoc index d38570e..3976d0f 100644 --- a/doc/standard_library.rdoc +++ b/doc/standard_library.rdoc @@ -21,7 +21,6 @@ Monitor:: Provides an object or module to use safely by more than one thread https://github.com/ruby/ruby/blob/trunk/doc/standard_library.rdoc#L21 Net::FTP:: Support for the File Transfer Protocol Net::HTTP:: HTTP client api for Ruby Net::IMAP:: Ruby client api for Internet Message Access Protocol -Net::POP3:: Ruby client library for POP3 Net::SMTP:: Simple Mail Transfer Protocol client library for Ruby Observable:: Provides a mechanism for publish/subscribe pattern in Ruby OpenURI:: An easy-to-use wrapper for Net::HTTP, Net::HTTPS and Net::FTP @@ -78,6 +77,7 @@ IRB:: Interactive Ruby command-line tool for REPL (Read Eval Print Loop) https://github.com/ruby/ruby/blob/trunk/doc/standard_library.rdoc#L77 Logger:: Provides a simple logging utility for outputting messages Matrix:: Represents a mathematical matrix. Mutex_m:: Mixin to extend objects to be handled like a Mutex +Net::POP3:: Ruby client library for POP3 Open3:: Provides access to stdin, stdout and stderr when running other programs OpenStruct:: Class to build custom data structures, similar to a Hash Prime:: Prime numbers and factorization library diff --git a/lib/net/pop.rb b/lib/net/pop.rb index e295394..8712345 100644 --- a/lib/net/pop.rb +++ b/lib/net/pop.rb @@ -21,7 +21,7 @@ https://github.com/ruby/ruby/blob/trunk/lib/net/pop.rb#L21 # See Net::POP3 for documentation. # -require_relative 'protocol' +require 'net/protocol' require 'digest/md5' require 'timeout' diff --git a/lib/net/pop/net-pop.gemspec b/lib/net/pop/net-pop.gemspec new file mode 100644 index 0000000..8166968 --- /dev/null +++ b/lib/net/pop/net-pop.gemspec @@ -0,0 +1,27 @@ https://github.com/ruby/ruby/blob/trunk/lib/net/pop/net-pop.gemspec#L1 +begin + require_relative "lib/net/pop/version" +rescue LoadError # Fallback to load version file in ruby core repository + require_relative "version" +end + +Gem::Specification.new do |spec| + spec.name = "net-pop" + spec.version = Net::POP3::VERSION + spec.authors = ["Yukihiro Matsumoto"] + spec.email = ["matz@r..."] + + spec.summary = %q{Ruby client library for POP3.} + spec.description = %q{Ruby client library for POP3.} + spec.homepage = "https://github.com/ruby/net-pop" + spec.license = "BSD-2-Clause" + + spec.metadata["homepage_uri"] = spec.homepage + spec.metadata["source_code_uri"] = spec.homepage + + 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/pop/version.rb b/lib/net/pop/version.rb new file mode 100644 index 0000000..4857d4d --- /dev/null +++ b/lib/net/pop/version.rb @@ -0,0 +1,5 @@ https://github.com/ruby/ruby/blob/trunk/lib/net/pop/version.rb#L1 +module Net + class POP3 + VERSION = "0.1.0" + end +end diff --git a/tool/sync_default_gems.rb b/tool/sync_default_gems.rb index 363f53c..7554358 100644 --- a/tool/sync_default_gems.rb +++ b/tool/sync_default_gems.rb @@ -39,6 +39,7 @@ https://github.com/ruby/ruby/blob/trunk/tool/sync_default_gems.rb#L39 # * https://github.com/ruby/pstore # * https://github.com/ruby/delegate # * https://github.com/ruby/benchmark +# * https://github.com/ruby/net-pop # require 'fileutils' @@ -85,6 +86,7 @@ $repositories = { https://github.com/ruby/ruby/blob/trunk/tool/sync_default_gems.rb#L86 pstore: "ruby/pstore", delegate: "ruby/delegate", benchmark: "ruby/benchmark", + netpop: "ruby/net-pop", } def sync_default_gems(gem) @@ -222,6 +224,9 @@ def sync_default_gems(gem) https://github.com/ruby/ruby/blob/trunk/tool/sync_default_gems.rb#L224 rm_rf("test/racc/lib") rm_rf("lib/racc/cparse-jruby.jar") `git checkout ext/racc/cparse/README ext/racc/cparse/depend` + when "netpop" + sync_lib "net-pop" + mv "lib/net-pop.gemspec", "lib/net/pop" else sync_lib gem end -- cgit v0.10.2 -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/