spf 0.0.31 → 0.0.32
Sign up to get free protection for your applications and to get access to all the features.
- data/lib/spf/model.rb +2 -2
- data/lib/spf/version.rb +1 -1
- data/spf.gemspec +1 -1
- metadata +1 -1
data/lib/spf/model.rb
CHANGED
@@ -681,7 +681,7 @@ class SPF::Mod < SPF::Term
|
|
681
681
|
|
682
682
|
def parse_end
|
683
683
|
unless @parse_text == ''
|
684
|
-
error(SPF::JunkInTermError.new("Junk encountered in modifier #{@text}"))
|
684
|
+
error(SPF::JunkInTermError.new("Junk encountered in modifier #{@text}", @text, @parse_text))
|
685
685
|
end
|
686
686
|
@parse_text = nil
|
687
687
|
end
|
@@ -856,7 +856,7 @@ class SPF::Record
|
|
856
856
|
term.errors << e if term
|
857
857
|
@errors << e
|
858
858
|
raise if @raise_exceptions
|
859
|
-
return if SPF::JunkInRecordError === e
|
859
|
+
return if SPF::JunkInRecordError === e or SPF::JunkInTermError === e
|
860
860
|
end
|
861
861
|
end
|
862
862
|
end
|
data/lib/spf/version.rb
CHANGED
data/spf.gemspec
CHANGED