aboutsummaryrefslogtreecommitdiffstats
path: root/lib/ipaddr.rb
Commit message (Collapse)AuthorAgeFilesLines
* * {ext,lib,test}/**/*.rb: removed trailing spaces.nobu2009-03-061-9/+9
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@22784 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* Added changes needed for miniunit. usually from using internal calls that ↵ryan2008-09-231-1/+0
| | | | | | aren't needed anymore. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@19504 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * lib/ipaddr.rb (IPAddr#initialize): get rid of ArgumentError innobu2008-07-071-1/+1
| | | | | | | | 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/trunk@17940 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * lib/ipaddr.rb: Say that I am the current maintainer.knu2008-03-211-0/+4
| | | | | | | | | | | * lib/set.rb: Ditto. * lib/shellwords.rb: Ditto. * ext/syslog/syslog.txt: Ditto. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@15821 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * lib/ipaddr.rb (in_addr, in6_addr, addr_mask): Make some minorknu2007-10-041-14/+6
| | | | | | | code optimization. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@13629 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * lib/ipaddr.rb (<=>): Implement IPAddr#<=> and make IPAddrknu2007-10-041-0/+31
| | | | | | | | | | | | | | comparable. * lib/ipaddr.rb (succ): Implement IPAddr#succ. You can now create a range between two IPAddr's, which (Range) object is enumeratable. * lib/ipaddr.rb (to_range): A new method to create a Range object for the (network) address. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@13628 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * lib/ipaddr.rb (coerce_other): Support type coercion and make &,knu2007-10-041-34/+55
| | | | | | | | | | | | |, == 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/trunk@13627 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* Move Example so RDoc picks it up.drbrain2006-08-041-23/+22
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@10674 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* Documentation cleanup.drbrain2006-08-041-15/+15
| | | | | | | | | | Includes patches by Hugh Sasse: * ping.rb * weakref.rb * mailread.rb git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@10668 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * object.c (rb_mod_attr): make Module#attr to be an alias tomatz2006-07-201-1/+1
| | | | | | | | | | attr_reader. [RCR#331] * ruby.h: export classes/modules to implement sandbox. [ruby-core:08283] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@10577 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * lib/ipaddr.rb (test_s_new): typo.usa2005-01-191-0/+1
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@7790 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * lib/ipaddr.rb (to_s, test_to_s): too many colons with some cases.usa2005-01-191-1/+5
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@7788 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* lib/ipaddr.rb (initialize): rescue StandardError.eban2003-12-181-1/+1
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@5210 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * lib/ipaddr.rb (IPSocket::getaddress): merge usa's patch.eban2003-12-181-3/+53
| | | | | | | [ruby-dev:21678] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@5208 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * ext/socket/socket.c (Init_socket): IPv6 is not supported althougheban2003-12-141-0/+12
| | | | | | | | | | 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
* * lib/ipaddr.rb (include?): Support non-IPAddr parameters by Dave Thomas. ↵nobu2003-04-241-3/+13
| | | | | | [ruby-core:00980] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@3718 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * MANIFEST, lib/README, lib/ipaddr.rb: Add ipaddr.rb from rough.knu2002-12-231-0/+690
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@3201 b2dd03c8-39d4-4d8f-98ff-823fe69b080e