lib/spf/model.rb in spf-0.0.43 vs lib/spf/model.rb in spf-0.0.44

- old
+ new

@@ -1,5 +1,6 @@ +# encoding: ASCII-8BIT require 'ip' require 'spf/util' @@ -427,11 +428,11 @@ end class SPF::Mech::Exists < SPF::Mech NAME = 'exists' - + def parse_params(required = true) @raw_params = @parse_text.dup self.parse_domain_spec(required) # Other method of denoting "potentially ~infinite" netblocks? @ip_netblocks << nil @@ -574,11 +575,11 @@ end end class SPF::Mech::MX < SPF::Mech - + NAME = 'mx' def parse_params(required = true) @raw_params = @parse_text.dup self.parse_domain_spec @@ -997,10 +998,10 @@ error(SPF::UnexpectedTermObjectError.new("Unexpected term object '#{term}' encountered.")) end end rescue SPF::Result => result # Process global modifiers in ascending order of precedence: - @global_mods.each do |global_mod| + global_mods.each do |global_mod| global_mod.process(server, request, result) end raise result if want_result end end