aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorknu <knu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2017-08-02 02:20:48 +0000
committerknu <knu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2017-08-02 02:20:48 +0000
commit71d16ad5aa18623456f54f60be29994ede7e6514 (patch)
tree7002f1e2d5cfa93303c64ff92c612319208e3fa7
parent8397de0091fb98a905fc2d025bc1b08f4d125851 (diff)
downloadruby-71d16ad5aa18623456f54f60be29994ede7e6514.tar.gz
ipaddr is now a default gem with an upstream at: https://github.com/ruby/ipaddr
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@59465 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
-rw-r--r--lib/ipaddr.gemspec28
-rw-r--r--tool/sync_default_gems.rb7
2 files changed, 35 insertions, 0 deletions
diff --git a/lib/ipaddr.gemspec b/lib/ipaddr.gemspec
new file mode 100644
index 0000000000..a53611da20
--- /dev/null
+++ b/lib/ipaddr.gemspec
@@ -0,0 +1,28 @@
+# coding: utf-8
+lib = File.expand_path("../lib", __FILE__)
+$LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
+
+Gem::Specification.new do |spec|
+ spec.name = "ipaddr"
+ spec.version = "1.0.0"
+ spec.authors = ["Akinori MUSHA", "Hajimu UMEMOTO"]
+ spec.email = ["knu@idaemons.org", "ume@mahoroba.org"]
+
+ spec.summary = %q{A class to manipulate an IP address in ruby}
+ spec.description = <<-'DESCRIPTION'
+IPAddr provides a set of methods to manipulate an IP address.
+Both IPv4 and IPv6 are supported.
+ DESCRIPTION
+ spec.homepage = "https://github.com/ruby/ipaddr"
+
+ spec.files = `git ls-files -z`.split("\x0").reject do |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"]
+
+ spec.add_development_dependency "bundler", "~> 1.15"
+ spec.add_development_dependency "rake", "~> 10.0"
+ spec.add_development_dependency "test-unit"
+end
diff --git a/tool/sync_default_gems.rb b/tool/sync_default_gems.rb
index 50007e1088..e943a6420d 100644
--- a/tool/sync_default_gems.rb
+++ b/tool/sync_default_gems.rb
@@ -20,6 +20,7 @@
# * https://github.com/ruby/scanf
# * https://github.com/ruby/cmath
# * https://github.com/ruby/strscan
+# * https://github.com/ruby/ipaddr
#
$repositories = {
@@ -43,6 +44,7 @@ $repositories = {
scanf: 'ruby/scanf',
cmath: 'ruby/cmath',
strscan: 'ruby/strscan',
+ ipaddr: 'ruby/ipaddr',
}
def sync_default_gems(gem)
@@ -180,6 +182,11 @@ def sync_default_gems(gem)
`cp -f ../strscan/strscan.gemspec ext/strscan`
`rm -f ext/strscan/regenc.h ext/strscan/regint.h`
`git checkout ext/strscan/depend`
+ when "ipaddr"
+ `rm -rf lib/ipaddr.rb test/test_ipaddr.rb`
+ `cp -rf ../ipaddr/lib/* lib`
+ `cp -rf ../ipaddr/test/test_ipaddr.rb test`
+ `cp -f ../ipaddr/ipaddr.gemspec lib`
else
end
end