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

11 commits

Author SHA1 Message Date
nobu
82fe6d2be5 * lib/ipaddr.rb (IPAddr#initialize): get rid of ArgumentError in
IPAddr#to_range.  a patch from okkez <okkez000 AT gmail.com> in
  [ruby-dev:35091].


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@17940 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-07-07 08:12:23 +00:00
knu
bb786c14bd * lib/ipaddr.rb: Say that I am the current maintainer.
* lib/set.rb: Ditto.

* lib/shellwords.rb: Ditto.

* ext/syslog/syslog.txt: Ditto.


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@15822 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-03-21 12:16:15 +00:00
knu
7390246b40 Merge from trunk.
* NEWS: Mention ipaddr enhancements.

* lib/ipaddr.rb (in_addr, in6_addr, addr_mask): Make some minor
  code optimization.

* lib/ipaddr.rb (<=>): Implement IPAddr#<=> and make IPAddr
  comparable.

* lib/ipaddr.rb (succ): Implement IPAddr#succ.  You can now create
  a range between two IPAddr's, which (Range) object is
  enumerable.

* lib/ipaddr.rb (to_range): A new method to create a Range object
  for the (network) address.

* lib/ipaddr.rb (coerce_other): Support type coercion and make &,
  |, == and include? accept a string or an integer instead of an
  IPAddr object as the argument.

* lib/ipaddr.rb (initialize): Give better error messages.

* lib/ipaddr.rb: Improve documentation.


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@13710 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2007-10-15 13:14:48 +00:00
drbrain
91edcb053b Merge RDoc changes from HEAD.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@10679 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2006-08-04 22:00:31 +00:00
usa
3f89d1660a * lib/ipaddr.rb (test_s_new): typo.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@7790 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2005-01-19 09:14:42 +00:00
usa
418ea6a442 * lib/ipaddr.rb (to_s, test_to_s): too many colons with some cases.
(backported from CVS HEAD)


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@7789 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2005-01-19 09:08:39 +00:00
eban
41a8d90e7b lib/ipaddr.rb (initialize): rescue StandardError.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@5210 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2003-12-18 06:46:06 +00:00
eban
60f87fe599 * lib/ipaddr.rb (IPSocket::getaddress): merge usa's patch.
[ruby-dev:21678]


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@5208 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2003-12-18 06:38:30 +00:00
eban
cd4d74e9be * ext/socket/socket.c (Init_socket): IPv6 is not supported although
AF_INET6 is defined on MinGW.

* lib/ipaddr.rb (AF_INET6): workaround in the environment which does
  not support IPv6.


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@5187 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2003-12-14 10:04:35 +00:00
nobu
8e19c02e8f * lib/ipaddr.rb (include?): Support non-IPAddr parameters by Dave Thomas. [ruby-core:00980]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@3718 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2003-04-24 06:08:32 +00:00
knu
9ec0a96ad4 * MANIFEST, lib/README, lib/ipaddr.rb: Add ipaddr.rb from rough.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@3201 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2002-12-23 17:07:49 +00:00