spf 0.0.15 → 0.0.16
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 +10 -8
- data/lib/spf/version.rb +1 -1
- data/spf.gemspec +2 -2
- metadata +2 -2
data/lib/spf/model.rb
CHANGED
@@ -365,7 +365,7 @@ class SPF::Mech < SPF::Term
|
|
365
365
|
if @ipv4_prefix_length and @ipv4_prefix_length != self.default_ipv4_prefix_length
|
366
366
|
params += '/' + @ipv4_prefix_length.to_s
|
367
367
|
end
|
368
|
-
if @ipv6_prefix_length and @ipv6_prefix_length !=
|
368
|
+
if @ipv6_prefix_length and @ipv6_prefix_length != self.default_ipv6_prefix_length
|
369
369
|
params += '//' + @ipv6_prefix_length.to_s
|
370
370
|
end
|
371
371
|
return params
|
@@ -458,9 +458,9 @@ class SPF::Mech < SPF::Term
|
|
458
458
|
end
|
459
459
|
|
460
460
|
def params
|
461
|
-
params =
|
462
|
-
params += '/' + @ip_network.pfxlen if
|
463
|
-
@ip_network.pfxlen !=
|
461
|
+
params = @ip_network.to_addr
|
462
|
+
params += '/' + @ip_network.pfxlen.to_s if
|
463
|
+
@ip_network.pfxlen != self.default_ipv6_prefix_length
|
464
464
|
return params
|
465
465
|
end
|
466
466
|
|
@@ -543,7 +543,7 @@ class SPF::Mech < SPF::Term
|
|
543
543
|
if @ipv4_prefix_length and @ipv4_prefix_length != self.default_ipv4_prefix_length
|
544
544
|
params += '/' + @ipv4_prefix_length
|
545
545
|
end
|
546
|
-
if @ipv6_prefix_length and @ipv6_prefix_length !=
|
546
|
+
if @ipv6_prefix_length and @ipv6_prefix_length != self.default_ipv6_prefix_length
|
547
547
|
params += '//' + @ipv6_prefix_length
|
548
548
|
end
|
549
549
|
return params
|
@@ -667,12 +667,13 @@ class SPF::Mod < SPF::Term
|
|
667
667
|
NAME = 'uknown'
|
668
668
|
end
|
669
669
|
|
670
|
-
class SPF::Mod::Exp < SPF::
|
670
|
+
class SPF::Mod::Exp < SPF::GlobalMod
|
671
671
|
|
672
672
|
attr_reader :domain_spec
|
673
673
|
|
674
674
|
NAME = 'exp'
|
675
|
-
|
675
|
+
|
676
|
+
def precedence; 0.2; end
|
676
677
|
|
677
678
|
def parse_params(required = true)
|
678
679
|
self.parse_domain_spec(required)
|
@@ -714,7 +715,8 @@ class SPF::Mod < SPF::Term
|
|
714
715
|
attr_reader :domain_spec
|
715
716
|
|
716
717
|
NAME = 'redirect'
|
717
|
-
|
718
|
+
|
719
|
+
def precedence; 0.8; end
|
718
720
|
|
719
721
|
def init(options = {})
|
720
722
|
super(options)
|
data/lib/spf/version.rb
CHANGED
data/spf.gemspec
CHANGED
@@ -5,11 +5,11 @@
|
|
5
5
|
|
6
6
|
Gem::Specification.new do |s|
|
7
7
|
s.name = "spf"
|
8
|
-
s.version = "0.0.
|
8
|
+
s.version = "0.0.16"
|
9
9
|
|
10
10
|
s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
|
11
11
|
s.authors = ["Andrew Flury", "Julian Mehnle"]
|
12
|
-
s.date = "2013-
|
12
|
+
s.date = "2013-11-05"
|
13
13
|
s.description = " An object-oriented Ruby implementation of the Sender Policy Framework (SPF)\n e-mail sender authentication system, fully compliant with RFC 4408.\n"
|
14
14
|
s.email = ["code@agari.com", "aflury@agari.com", "jmehnle@agari.com"]
|
15
15
|
s.extra_rdoc_files = [
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: spf
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.16
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -10,7 +10,7 @@ authors:
|
|
10
10
|
autorequire:
|
11
11
|
bindir: bin
|
12
12
|
cert_chain: []
|
13
|
-
date: 2013-
|
13
|
+
date: 2013-11-05 00:00:00.000000000 Z
|
14
14
|
dependencies:
|
15
15
|
- !ruby/object:Gem::Dependency
|
16
16
|
name: rspec
|