spf 0.0.11 → 0.0.12
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.
- data/lib/spf/model.rb +5 -5
- data/lib/spf/version.rb +1 -1
- data/spf.gemspec +1 -1
- metadata +1 -1
data/lib/spf/model.rb
CHANGED
@@ -424,9 +424,9 @@ class SPF::Mech < SPF::Term
|
|
424
424
|
end
|
425
425
|
|
426
426
|
def params
|
427
|
-
result = @ip_network.
|
428
|
-
if @ip_network.
|
429
|
-
result += "/#{@ip_network.
|
427
|
+
result = @ip_network.to_addr
|
428
|
+
if @ip_network.pfxlen != @default_ipv4_prefix_length
|
429
|
+
result += "/#{@ip_network.pfxlen}"
|
430
430
|
end
|
431
431
|
return result
|
432
432
|
end
|
@@ -451,8 +451,8 @@ class SPF::Mech < SPF::Term
|
|
451
451
|
|
452
452
|
def params
|
453
453
|
params = ':' + @ip_network.short
|
454
|
-
params += '/' + @ip_network.
|
455
|
-
@ip_network.
|
454
|
+
params += '/' + @ip_network.pfxlen if
|
455
|
+
@ip_network.pfxlen != DEFAULT_IPV6_PREFIX_LENGTH
|
456
456
|
return params
|
457
457
|
end
|
458
458
|
|
data/lib/spf/version.rb
CHANGED
data/spf.gemspec
CHANGED