spf 0.0.8 → 0.0.9

Sign up to get free protection for your applications and to get access to all the features.
data/lib/spf/eval.rb CHANGED
@@ -86,9 +86,9 @@ class SPF::Server
86
86
  end
87
87
 
88
88
  def process(request)
89
- request.state(:authority_explanation, nil)
90
- request.state(:dns_interactive_term_count, 0)
91
- request.state(:void_dns_lookups_count, 0)
89
+ request.state(:authority_explanation, nil)
90
+ request.state(:dns_interactive_terms_count, 0)
91
+ request.state(:void_dns_lookups_count, 0)
92
92
 
93
93
  result = nil
94
94
 
@@ -275,6 +275,7 @@ class SPF::Server
275
275
  raise SPF::ProcessingLimitExceededError.new(
276
276
  "Maximum DNS-interactive terms limit (#{@max_dns_interactive_terms}) exceeded")
277
277
  end
278
+ return dns_interactive_terms_count
278
279
  end
279
280
 
280
281
  def count_void_dns_lookup(request)
@@ -284,6 +285,7 @@ class SPF::Server
284
285
  raise SPF::ProcessingLimitExceeded.new(
285
286
  "Maximum void DNS look-ups limit (#{@max_void_dns_lookups}) exceeded")
286
287
  end
288
+ return void_dns_lookups_count
287
289
  end
288
290
  end
289
291
 
data/lib/spf/model.rb CHANGED
@@ -85,7 +85,7 @@ class SPF::Term
85
85
  ::
86
86
  "
87
87
 
88
- attr_reader :errors, :ip_netblocks, :ip_address, :ip_network, :ipv4_prefix_length, :ipv6_prefix_length
88
+ attr_reader :errors, :ip_netblocks, :ip_address, :ip_network, :ipv4_prefix_length, :ipv6_prefix_length, :domain_spec
89
89
 
90
90
  def initialize(options = {})
91
91
  @ip_address = nil
@@ -814,7 +814,6 @@ class SPF::Record
814
814
  raise SPF::InvalidRecordVersionError.new(
815
815
  "Not a '#{self.version_tag}' record: '#{@text}'")
816
816
  end
817
-
818
817
  end
819
818
 
820
819
  def parse_term
@@ -868,6 +867,7 @@ class SPF::Record
868
867
  @terms << mod
869
868
  end
870
869
  end
870
+
871
871
  else
872
872
  raise SPF::JunkInRecordError.new("Junk encountered in record '#{@text}'")
873
873
  end
data/lib/spf/version.rb CHANGED
@@ -1,5 +1,5 @@
1
1
  module SPF
2
- VERSION = '0.0.8'
2
+ VERSION = '0.0.9'
3
3
  end
4
4
 
5
5
  # vim:sw=2 sts=2
data/spf.gemspec CHANGED
@@ -5,7 +5,7 @@
5
5
 
6
6
  Gem::Specification.new do |s|
7
7
  s.name = "spf"
8
- s.version = "0.0.8"
8
+ s.version = "0.0.9"
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"]
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.8
4
+ version: 0.0.9
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors: