spf 0.0.20 → 0.0.21
Sign up to get free protection for your applications and to get access to all the features.
- data/lib/spf/model.rb +2 -1
- data/lib/spf/version.rb +1 -1
- data/spf.gemspec +1 -1
- metadata +1 -1
data/lib/spf/model.rb
CHANGED
@@ -537,6 +537,7 @@ class SPF::Mech < SPF::Term
|
|
537
537
|
def nested_record(server=nil, request=nil)
|
538
538
|
return @nested_record if @nested_record
|
539
539
|
authority_domain = self.domain(server, request)
|
540
|
+
return nil unless request
|
540
541
|
sub_request = request.new_sub_request({:authority_domain => authority_domain})
|
541
542
|
return @nested_record = server.select_record(sub_request)
|
542
543
|
end
|
@@ -868,7 +869,7 @@ class SPF::Record
|
|
868
869
|
mech_class = self.mech_classes[mech_name.to_sym]
|
869
870
|
exception = nil
|
870
871
|
unless mech_class
|
871
|
-
exception = SPF::
|
872
|
+
exception = SPF::InvalidMechError.new("Unknown mechanism type '#{mech_name}' in '#{@version_tag}' record")
|
872
873
|
error(exception)
|
873
874
|
mech_class = SPF::Mech
|
874
875
|
end
|
data/lib/spf/version.rb
CHANGED
data/spf.gemspec
CHANGED