[前][次][番号順一覧][スレッド一覧]

ruby-changes:47349

From: knu <ko1@a...>
Date: Wed, 2 Aug 2017 11:20:54 +0900 (JST)
Subject: [ruby-changes:47349] knu:r59465 (trunk): ipaddr is now a default gem with an upstream at: https://github.com/ruby/ipaddr

knu	2017-08-02 11:20:48 +0900 (Wed, 02 Aug 2017)

  New Revision: 59465

  https://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=revision&revision=59465

  Log:
    ipaddr is now a default gem with an upstream at: https://github.com/ruby/ipaddr

  Added files:
    trunk/lib/ipaddr.gemspec
  Modified files:
    trunk/tool/sync_default_gems.rb
Index: lib/ipaddr.gemspec
===================================================================
--- lib/ipaddr.gemspec	(nonexistent)
+++ lib/ipaddr.gemspec	(revision 59465)
@@ -0,0 +1,28 @@ https://github.com/ruby/ruby/blob/trunk/lib/ipaddr.gemspec#L1
+# 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@i...", "ume@m..."]
+
+  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
Index: tool/sync_default_gems.rb
===================================================================
--- tool/sync_default_gems.rb	(revision 59464)
+++ tool/sync_default_gems.rb	(revision 59465)
@@ -20,6 +20,7 @@ https://github.com/ruby/ruby/blob/trunk/tool/sync_default_gems.rb#L20
 # * 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 = { https://github.com/ruby/ruby/blob/trunk/tool/sync_default_gems.rb#L44
   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) https://github.com/ruby/ruby/blob/trunk/tool/sync_default_gems.rb#L182
     `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

--
ML: ruby-changes@q...
Info: http://www.atdot.net/~ko1/quickml/

[前][次][番号順一覧][スレッド一覧]