lib/spf/model.rb in spf-0.0.39 vs lib/spf/model.rb in spf-0.0.40
- old
+ new
@@ -903,19 +903,19 @@
mech_text = $1
mech_name = $2.downcase
mech_class = self.mech_classes[mech_name.to_sym]
exception = nil
unless mech_class
- exception = SPF::InvalidMechError.new("Unknown mechanism type '#{mech_name}' in '#{@version_tag}' record")
+ exception = SPF::InvalidMechError.new("Unknown mechanism type '#{mech_name}' in '#{self.version_tag}' record")
error(exception)
mech_class = SPF::Mech
end
term = mech = mech_class.new_from_string(mech_text, {:raise_exceptions => @raise_exceptions})
term.errors << exception if exception
@ip_netblocks << mech.ip_netblocks if mech.ip_netblocks
@terms << mech
if mech_class == SPF::Mech
- raise SPF::InvalidMechError.new("Unknown mechanism type '#{mech_name}' in '#{@version_tag}' record")
+ raise SPF::InvalidMechError.new("Unknown mechanism type '#{mech_name}' in '#{self.version_tag}' record")
end
elsif (
@parse_text.sub!(/
^
(