1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00

Promote net-imap to the default gems

This commit is contained in:
Hiroshi SHIBATA 2020-02-20 21:22:56 +09:00
parent f5abcf767e
commit e9d872a06e
No known key found for this signature in database
GPG key ID: F9CF13417264FAC2
4 changed files with 36 additions and 1 deletions

View file

@ -18,7 +18,7 @@ require "socket"
require "monitor"
require "digest/md5"
require "strscan"
require_relative 'protocol'
require 'net/protocol'
begin
require "openssl"
rescue LoadError

View file

@ -0,0 +1,25 @@
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@ruby-lang.org"]
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

5
lib/net/imap/version.rb Normal file
View file

@ -0,0 +1,5 @@
module Net
module Imap
VERSION = "0.1.0"
end
end

View file

@ -60,6 +60,7 @@
# * 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 = {
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)
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")