<feed xmlns='http://www.w3.org/2005/Atom'>
<title>ruby.git/test/test_ipaddr.rb, branch v3_4_9</title>
<subtitle>The Ruby Programming Language</subtitle>
<link rel='alternate' type='text/html' href='https://git.ruby-lang.org/ruby.git/'/>
<entry>
<title>[ruby/ipaddr] Added to_json/as_json method</title>
<updated>2024-10-18T15:00:37+00:00</updated>
<author>
<name>Taketo Takashima</name>
<email>t.taketo1113@gmail.com</email>
</author>
<published>2023-11-16T08:53:32+00:00</published>
<link rel='alternate' type='text/html' href='https://git.ruby-lang.org/ruby.git/commit/?id=eb8cf1d60e4436bfebf52fbf4342ee6e5e18ba05'/>
<id>eb8cf1d60e4436bfebf52fbf4342ee6e5e18ba05</id>
<content type='text'>
Updated to use cidr method when return address with prefix in #as_json

https://github.com/ruby/ipaddr/commit/cf8181d53e
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Updated to use cidr method when return address with prefix in #as_json

https://github.com/ruby/ipaddr/commit/cf8181d53e
</pre>
</div>
</content>
</entry>
<entry>
<title>[ruby/ipaddr] Add IPAddr.cidr to return ip address in cidr notation</title>
<updated>2024-04-18T01:27:19+00:00</updated>
<author>
<name>Ben Fritsch</name>
<email>beanie@benle.de</email>
</author>
<published>2020-04-03T14:48:15+00:00</published>
<link rel='alternate' type='text/html' href='https://git.ruby-lang.org/ruby.git/commit/?id=6ac8f6a10eb011147a6cdaf4cf4154c41a7d9080'/>
<id>6ac8f6a10eb011147a6cdaf4cf4154c41a7d9080</id>
<content type='text'>
https://github.com/ruby/ipaddr/commit/f5b006741f
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
https://github.com/ruby/ipaddr/commit/f5b006741f
</pre>
</div>
</content>
</entry>
<entry>
<title>[ruby/ipaddr] Added IPAddr#wildcard_mask</title>
<updated>2024-04-10T10:30:53+00:00</updated>
<author>
<name>Taketo Takashima</name>
<email>t.taketo1113@gmail.com</email>
</author>
<published>2022-08-08T15:50:44+00:00</published>
<link rel='alternate' type='text/html' href='https://git.ruby-lang.org/ruby.git/commit/?id=f9f25d0ed001ae7c7a335c32fb3c5f0895709b9b'/>
<id>f9f25d0ed001ae7c7a335c32fb3c5f0895709b9b</id>
<content type='text'>
https://github.com/ruby/ipaddr/commit/2093cebc1d
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
https://github.com/ruby/ipaddr/commit/2093cebc1d
</pre>
</div>
</content>
</entry>
<entry>
<title>[ruby/ipaddr] Consider IPv4-mapped IPv6 addresses link local/loopback if IPV4 address is private</title>
<updated>2023-12-25T12:12:49+00:00</updated>
<author>
<name>Earlopain</name>
<email>14981592+Earlopain@users.noreply.github.com</email>
</author>
<published>2023-12-16T12:58:58+00:00</published>
<link rel='alternate' type='text/html' href='https://git.ruby-lang.org/ruby.git/commit/?id=86fa418dea646e52929b9df9163902c4728442d1'/>
<id>86fa418dea646e52929b9df9163902c4728442d1</id>
<content type='text'>
Same as #57

https://github.com/ruby/ipaddr/commit/d56acecb80
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Same as #57

https://github.com/ruby/ipaddr/commit/d56acecb80
</pre>
</div>
</content>
</entry>
<entry>
<title>[ruby/ipaddr] ntop: Measure address size in bytes</title>
<updated>2023-12-25T12:12:49+00:00</updated>
<author>
<name>Kasumi Hanazuki</name>
<email>kasumi@rollingapple.net</email>
</author>
<published>2023-11-27T04:15:48+00:00</published>
<link rel='alternate' type='text/html' href='https://git.ruby-lang.org/ruby.git/commit/?id=eb53131367d6e1d3da16b0cd6bc44284ea3589ea'/>
<id>eb53131367d6e1d3da16b0cd6bc44284ea3589ea</id>
<content type='text'>
`IPAddr.ntop` takes the binary representation of an IP address, whose
length should be 4 or 16 *bytes* (not characters/codepoints).

The current implementation accepts strings in any encoding, but for
some values in non-BINARY encoding, it fails proper length check and
raises an `AddressFamilyError`. Since passing strings in a multibyte
encoding has never worked correctly for years, this patch makes it an
explicit error with an `InvalidAddressError`.

Fixes: https://github.com/ruby/ipaddr/issues/56

https://github.com/ruby/ipaddr/commit/a33fd14d4a
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
`IPAddr.ntop` takes the binary representation of an IP address, whose
length should be 4 or 16 *bytes* (not characters/codepoints).

The current implementation accepts strings in any encoding, but for
some values in non-BINARY encoding, it fails proper length check and
raises an `AddressFamilyError`. Since passing strings in a multibyte
encoding has never worked correctly for years, this patch makes it an
explicit error with an `InvalidAddressError`.

Fixes: https://github.com/ruby/ipaddr/issues/56

https://github.com/ruby/ipaddr/commit/a33fd14d4a
</pre>
</div>
</content>
</entry>
<entry>
<title>[ruby/ipaddr] Consider IPv4-mapped IPv6 addresses private if IPv4 address is private</title>
<updated>2023-06-22T16:40:46+00:00</updated>
<author>
<name>Jeremy Evans</name>
<email>code@jeremyevans.net</email>
</author>
<published>2023-06-22T16:11:03+00:00</published>
<link rel='alternate' type='text/html' href='https://git.ruby-lang.org/ruby.git/commit/?id=de51a4a13eab2c4c5917de923edde33dfed6f22f'/>
<id>de51a4a13eab2c4c5917de923edde33dfed6f22f</id>
<content type='text'>
Fixes [Bug #19479]

https://github.com/ruby/ipaddr/commit/7faa0768d3
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Fixes [Bug #19479]

https://github.com/ruby/ipaddr/commit/7faa0768d3
</pre>
</div>
</content>
</entry>
<entry>
<title>[ruby/ipaddr] Fix exception calling `to_range' after `freeze'</title>
<updated>2022-02-10T08:18:05+00:00</updated>
<author>
<name>Espartaco Palma</name>
<email>git@esparta.co</email>
</author>
<published>2021-12-13T09:12:07+00:00</published>
<link rel='alternate' type='text/html' href='https://git.ruby-lang.org/ruby.git/commit/?id=9b768012f6bf5b5896d2d34feb69605d4ccc9ca3'/>
<id>9b768012f6bf5b5896d2d34feb69605d4ccc9ca3</id>
<content type='text'>
https://github.com/ruby/ipaddr/commit/77fe1fca0a
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
https://github.com/ruby/ipaddr/commit/77fe1fca0a
</pre>
</div>
</content>
</entry>
<entry>
<title>[ruby/ipaddr] Ipaddr#native must also coerce `@mask_addr`</title>
<updated>2022-02-10T08:18:05+00:00</updated>
<author>
<name>Jean Boussier</name>
<email>jean.boussier@gmail.com</email>
</author>
<published>2021-12-02T09:56:39+00:00</published>
<link rel='alternate' type='text/html' href='https://git.ruby-lang.org/ruby.git/commit/?id=100253c7f0f4d105ae88340a0314506cde69cfd2'/>
<id>100253c7f0f4d105ae88340a0314506cde69cfd2</id>
<content type='text'>
Before it would be left as an IPv6 mask causing `to_range` to fail.

```
&gt;&gt; IPAddr.new("::2").native.to_range
/opt/rubies/3.0.3/lib/ruby/3.0.0/ipaddr.rb:479:in `set': invalid address (IPAddr::InvalidAddressError)
```

https://github.com/ruby/ipaddr/commit/af485192f3
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Before it would be left as an IPv6 mask causing `to_range` to fail.

```
&gt;&gt; IPAddr.new("::2").native.to_range
/opt/rubies/3.0.3/lib/ruby/3.0.0/ipaddr.rb:479:in `set': invalid address (IPAddr::InvalidAddressError)
```

https://github.com/ruby/ipaddr/commit/af485192f3
</pre>
</div>
</content>
</entry>
<entry>
<title>[ruby/ipaddr] Make IPAddr#include? consider range of argument</title>
<updated>2021-10-11T04:50:54+00:00</updated>
<author>
<name>Jeremy Evans</name>
<email>code@jeremyevans.net</email>
</author>
<published>2019-10-31T17:06:13+00:00</published>
<link rel='alternate' type='text/html' href='https://git.ruby-lang.org/ruby.git/commit/?id=9a321dd9b2fb929873a6b50b41efdf3bd3119536'/>
<id>9a321dd9b2fb929873a6b50b41efdf3bd3119536</id>
<content type='text'>
It would be nice to use Range#cover? here, but it doesn't work
correctly before Ruby 2.6. Switch to manual checks of the beginning
of end of the ranges.

Fixes Ruby Bug 14119

https://github.com/ruby/ipaddr/commit/f45630da31
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
It would be nice to use Range#cover? here, but it doesn't work
correctly before Ruby 2.6. Switch to manual checks of the beginning
of end of the ranges.

Fixes Ruby Bug 14119

https://github.com/ruby/ipaddr/commit/f45630da31
</pre>
</div>
</content>
</entry>
<entry>
<title>[ruby/ipaddr] Support zone identifiers in IPv6 addresses</title>
<updated>2021-10-07T09:22:43+00:00</updated>
<author>
<name>Jeremy Evans</name>
<email>code@jeremyevans.net</email>
</author>
<published>2020-07-13T16:36:06+00:00</published>
<link rel='alternate' type='text/html' href='https://git.ruby-lang.org/ruby.git/commit/?id=bd6e1a0f0883dba7b02f30cefe5ebec96d02cb90'/>
<id>bd6e1a0f0883dba7b02f30cefe5ebec96d02cb90</id>
<content type='text'>
These are supported by Ruby's socket library if the operating system
supports zone indentifiers, so they should be supported by ipaddr.
See RFCs 4007 and 6874 for additional information.

Implements Ruby Feature #10911

https://github.com/ruby/ipaddr/commit/09a6408fb2
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
These are supported by Ruby's socket library if the operating system
supports zone indentifiers, so they should be supported by ipaddr.
See RFCs 4007 and 6874 for additional information.

Implements Ruby Feature #10911

https://github.com/ruby/ipaddr/commit/09a6408fb2
</pre>
</div>
</content>
</entry>
</feed>
