aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--doc/maintainers.rdoc6
-rw-r--r--doc/standard_library.rdoc2
-rw-r--r--lib/net/smtp.rb2
-rw-r--r--lib/net/smtp/net-smtp.gemspec27
-rw-r--r--lib/net/smtp/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 888a936bab..64089cc501 100644
--- a/doc/maintainers.rdoc
+++ b/doc/maintainers.rdoc
@@ -66,8 +66,6 @@ Zachary Scott (zzak)
NARUSE, Yui (naruse)
[lib/net/protocol.rb]
_unmaintained_
-[lib/net/smtp.rb]
- _unmaintained_
[lib/observer.rb]
_unmaintained_
[lib/open-uri.rb]
@@ -211,6 +209,10 @@ Zachary Scott (zzak)
_unmaintained_
https://github.com/ruby/net-pop
https://rubygems.org/gems/net-pop
+[lib/net/smtp.rb]
+ _unmaintained_
+ https://github.com/ruby/net-smtp
+ https://rubygems.org/gems/net-smtp
[lib/open3.rb]
_unmaintained_
https://github.com/ruby/open3
diff --git a/doc/standard_library.rdoc b/doc/standard_library.rdoc
index 3976d0f902..b6b0eb41de 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::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
OptionParser:: Ruby-oriented class for command-line option analysis
@@ -78,6 +77,7 @@ 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
+Net::SMTP:: Simple Mail Transfer Protocol client library for Ruby
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/smtp.rb b/lib/net/smtp.rb
index 56600a077a..8e10dc24b3 100644
--- a/lib/net/smtp.rb
+++ b/lib/net/smtp.rb
@@ -17,7 +17,7 @@
# See Net::SMTP for documentation.
#
-require_relative 'protocol'
+require 'net/protocol'
require 'digest/md5'
require 'timeout'
begin
diff --git a/lib/net/smtp/net-smtp.gemspec b/lib/net/smtp/net-smtp.gemspec
new file mode 100644
index 0000000000..e9635cd091
--- /dev/null
+++ b/lib/net/smtp/net-smtp.gemspec
@@ -0,0 +1,27 @@
+begin
+ require_relative "lib/net/smtp/version"
+rescue LoadError # Fallback to load version file in ruby core repository
+ require_relative "version"
+end
+
+Gem::Specification.new do |spec|
+ spec.name = "net-smtp"
+ spec.version = Net::SMTP::VERSION
+ spec.authors = ["Yukihiro Matsumoto"]
+ spec.email = ["matz@ruby-lang.org"]
+
+ spec.summary = %q{Simple Mail Transfer Protocol client library for Ruby.}
+ spec.description = %q{Simple Mail Transfer Protocol client library for Ruby.}
+ spec.homepage = "https://github.com/ruby/net-smtp"
+ 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/smtp/version.rb b/lib/net/smtp/version.rb
new file mode 100644
index 0000000000..86c4ed1bf3
--- /dev/null
+++ b/lib/net/smtp/version.rb
@@ -0,0 +1,5 @@
+module Net
+ module SMTP
+ VERSION = "0.1.0"
+ end
+end
diff --git a/tool/sync_default_gems.rb b/tool/sync_default_gems.rb
index 7554358501..5f5825e22a 100644
--- a/tool/sync_default_gems.rb
+++ b/tool/sync_default_gems.rb
@@ -40,6 +40,7 @@
# * https://github.com/ruby/delegate
# * https://github.com/ruby/benchmark
# * https://github.com/ruby/net-pop
+# * https://github.com/ruby/net-smtp
#
require 'fileutils'
@@ -87,6 +88,7 @@ $repositories = {
delegate: "ruby/delegate",
benchmark: "ruby/benchmark",
netpop: "ruby/net-pop",
+ netsmtp: "ruby/net-smtp",
}
def sync_default_gems(gem)
@@ -227,6 +229,9 @@ def sync_default_gems(gem)
when "netpop"
sync_lib "net-pop"
mv "lib/net-pop.gemspec", "lib/net/pop"
+ when "netsmtp"
+ sync_lib "net-smtp"
+ mv "lib/net-smtp.gemspec", "lib/net/smtp"
else
sync_lib gem
end