spf 0.0.5 → 0.0.6
Sign up to get free protection for your applications and to get access to all the features.
- data/lib/spf/model.rb +4 -6
- data/lib/spf/util.rb +2 -0
- data/lib/spf/version.rb +1 -1
- data/spf.gemspec +2 -2
- metadata +5 -2
data/lib/spf/model.rb
CHANGED
@@ -85,8 +85,7 @@ class SPF::Term
|
|
85
85
|
::
|
86
86
|
"
|
87
87
|
|
88
|
-
attr_reader :ip_address, :ip_network, :ipv4_prefix_length, :ipv6_prefix_length
|
89
|
-
attr_accessor :errors
|
88
|
+
attr_reader :errors, :ip_netblocks, :ip_address, :ip_network, :ipv4_prefix_length, :ipv6_prefix_length
|
90
89
|
|
91
90
|
def initialize(options = {})
|
92
91
|
@ip_address = nil
|
@@ -94,6 +93,7 @@ class SPF::Term
|
|
94
93
|
@ipv4_prefix_length = nil
|
95
94
|
@ipv6_prefix_length = nil
|
96
95
|
@errors = []
|
96
|
+
@ip_netblocks = []
|
97
97
|
end
|
98
98
|
|
99
99
|
def error(exception)
|
@@ -205,8 +205,6 @@ end
|
|
205
205
|
|
206
206
|
class SPF::Mech < SPF::Term
|
207
207
|
|
208
|
-
attr_reader :ip_netblocks, :errors
|
209
|
-
|
210
208
|
DEFAULT_QUALIFIER = SPF::Record::DEFAULT_QUALIFIER
|
211
209
|
def default_ipv4_prefix_length; 32; end
|
212
210
|
def default_ipv6_prefix_length; 128; end
|
@@ -224,8 +222,6 @@ class SPF::Mech < SPF::Term
|
|
224
222
|
def initialize(options)
|
225
223
|
super(options)
|
226
224
|
|
227
|
-
@ip_netblocks = []
|
228
|
-
|
229
225
|
@text = options[:text]
|
230
226
|
if not self.instance_variable_defined?(:@parse_text)
|
231
227
|
@parse_text = @text.dup
|
@@ -602,6 +598,8 @@ end
|
|
602
598
|
class SPF::Mod < SPF::Term
|
603
599
|
|
604
600
|
def initialize(options = {})
|
601
|
+
super
|
602
|
+
|
605
603
|
@parse_text = options[:parse_text]
|
606
604
|
@text = options[:text]
|
607
605
|
@domain_spec = options[:domain_spec]
|
data/lib/spf/util.rb
CHANGED
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.6"
|
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-10-
|
12
|
+
s.date = "2013-10-25"
|
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.6
|
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-10-
|
13
|
+
date: 2013-10-25 00:00:00.000000000 Z
|
14
14
|
dependencies:
|
15
15
|
- !ruby/object:Gem::Dependency
|
16
16
|
name: rspec
|
@@ -119,6 +119,9 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
119
119
|
- - ! '>='
|
120
120
|
- !ruby/object:Gem::Version
|
121
121
|
version: '0'
|
122
|
+
segments:
|
123
|
+
- 0
|
124
|
+
hash: 3002258988282268889
|
122
125
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
123
126
|
none: false
|
124
127
|
requirements:
|