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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: d1638f899b4b783311b17f68746530bcdc3c86540aa057b5984b79b84b7ce610
4
- data.tar.gz: 325ebdae66a07395fd5f3fd7c898d8e1449f55dd52c1f7814b9eec1eb8ba4f14
3
+ metadata.gz: 06ecccfe4ba43d5e277050ab85ff73728c85316e2ee121ed02c0b6171e2d5c16
4
+ data.tar.gz: c908ffd98fb4df027951d177c5eca7f8baf8f383332f2c41e6734dd86cc242cf
5
5
  SHA512:
6
- metadata.gz: 776c109e79468e64f7752da08b6cf9b8987a46b6bbfac19eff244953aef26f2b415e1798c845da4a32efc0a3bc246598aa031a73b30ece868e1c836e6e3c99c8
7
- data.tar.gz: 2c3dd3e9900293106ba9b72edbdd80ae358bb7f168fcf3457fbbbd5b84781ef05c2a458d31b825f9f16ded23f4d232d8bac17b4d555043fdc2aa3d2810103020
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 }`
@@ -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, [])))
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module IParty
4
- VERSION = "0.1.4"
4
+ VERSION = "0.1.5"
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: iparty
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.4
4
+ version: 0.1.5
5
5
  platform: ruby
6
6
  authors:
7
7
  - Sven Pachnit