iparty 0.1.4 → 0.1.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/CHANGELOG.md +8 -0
- data/lib/iparty/address.rb +3 -2
- data/lib/iparty/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 06ecccfe4ba43d5e277050ab85ff73728c85316e2ee121ed02c0b6171e2d5c16
|
|
4
|
+
data.tar.gz: c908ffd98fb4df027951d177c5eca7f8baf8f383332f2c41e6734dd86cc242cf
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: cdd11b2fa555cb1ef33fe535f5f6a3aa765069024fefe6e8e387ec878913ec9b6315569704d83b13103a35f7ca386e973605456ad7c738d81d9d294730125cac
|
|
7
|
+
data.tar.gz: 9e692af3e8f4642d89abc9d90040cb278938ad4f0bfcc3dee9e25dcd352ce39fc10764f441ba18c97d15664ce851168a8956c9d92b51b756fa3f0a8ef9b59866
|
data/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,13 @@
|
|
|
1
1
|
## [Unreleased]
|
|
2
2
|
|
|
3
|
+
## [0.1.5] - 2026-05-31
|
|
4
|
+
|
|
5
|
+
* Allow arbitrary data on annotation hash by using a Symbol as key
|
|
6
|
+
* Fix: `significant: true` option on insignificant ipv6 IParty::Address#size
|
|
7
|
+
* Test all methods with significant keyword on equality
|
|
8
|
+
|
|
9
|
+
|
|
10
|
+
|
|
3
11
|
## [0.1.4] - 2026-05-30
|
|
4
12
|
|
|
5
13
|
* Add to ASN `define_attr(:autonomous_system_name, aliases: :name, export: true) { "AS#{number}" if number }`
|
data/lib/iparty/address.rb
CHANGED
|
@@ -37,9 +37,9 @@ module IParty
|
|
|
37
37
|
2**(32 - prefix)
|
|
38
38
|
elsif ipv6?
|
|
39
39
|
if significant || force_significant?
|
|
40
|
-
2**(128 - prefix)
|
|
40
|
+
2**(128 - prefix(significant: true))
|
|
41
41
|
else
|
|
42
|
-
2**[0, 128 - prefix - 64].max
|
|
42
|
+
2**[0, 128 - prefix(significant: false) - 64].max
|
|
43
43
|
end
|
|
44
44
|
end
|
|
45
45
|
end
|
|
@@ -135,6 +135,7 @@ module IParty
|
|
|
135
135
|
|
|
136
136
|
result = {}
|
|
137
137
|
IParty.config.annotations&.each do |ipp, adata|
|
|
138
|
+
next if ipp.is_a?(Symbol)
|
|
138
139
|
next unless ipp.include?(self)
|
|
139
140
|
|
|
140
141
|
result.merge!(adata.merge(tags: result.fetch(:tags, []) | adata.fetch(:tags, [])))
|
data/lib/iparty/version.rb
CHANGED