spf 0.0.31 → 0.0.32
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 +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