summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--doc/maintainers.rdoc6
-rw-r--r--doc/standard_library.rdoc2
-rw-r--r--lib/net/pop.rb2
-rw-r--r--lib/net/pop/net-pop.gemspec27
-rw-r--r--lib/net/pop/version.rb5
-rw-r--r--tool/sync_default_gems.rb5
6 files changed, 43 insertions, 4 deletions
diff --git a/doc/maintainers.rdoc b/doc/maintainers.rdoc
index b6b361588a..888a936bab 100644
--- a/doc/maintainers.rdoc
+++ b/doc/maintainers.rdoc
@@ -64,8 +64,6 @@ Zachary Scott (zzak)
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)
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 d38570e6cf..3976d0f902 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
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)
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 e295394b5c..8712345301 100644
--- a/lib/net/pop.rb
+++ b/lib/net/pop.rb
@@ -21,7 +21,7 @@
# 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 0000000000..8166968d7d
--- /dev/null
+++ b/lib/net/pop/net-pop.gemspec
@@ -0,0 +1,27 @@
+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@ruby-lang.org"]
+
+ 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 0000000000..4857d4de62
--- /dev/null
+++ b/lib/net/pop/version.rb
@@ -0,0 +1,5 @@
+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 363f53c235..7554358501 100644
--- a/tool/sync_default_gems.rb
+++ b/tool/sync_default_gems.rb
@@ -39,6 +39,7 @@
# * 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 = {
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)
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