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

15 commits

Author SHA1 Message Date
nobu
e12e0b337d * 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/trunk@17940 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-07-07 08:12:23 +00:00
knu
47d42038b3 * 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/trunk@15821 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-03-21 12:15:06 +00:00
knu
228bb8ea4c * lib/ipaddr.rb (in_addr, in6_addr, addr_mask): Make some minor
code optimization.


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@13629 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2007-10-04 19:03:56 +00:00
knu
2a3528a051 * 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
  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
2007-10-04 18:56:32 +00:00
knu
7a796ddefc * 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/trunk@13627 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2007-10-04 18:23:22 +00:00
drbrain
e2c017a8ce Move Example so RDoc picks it up.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@10674 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2006-08-04 20:39:28 +00:00
drbrain
52c034aecb Documentation cleanup.
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
2006-08-04 18:05:50 +00:00
matz
c09cea5e1b * object.c (rb_mod_attr): make Module#attr to be an alias to
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
2006-07-20 17:36:36 +00:00
usa
d85815fbca * lib/ipaddr.rb (test_s_new): typo.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@7790 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2005-01-19 09:14:42 +00:00
usa
2512210f8e * lib/ipaddr.rb (to_s, test_to_s): too many colons with some cases.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@7788 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2005-01-19 09:05:50 +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