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 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::InvalidMech.new("Unknown mechanism type '#{mech_name}' in '#{@version_tag}' record")
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
@@ -1,5 +1,5 @@
1
1
  module SPF
2
- VERSION = '0.0.20'
2
+ VERSION = '0.0.21'
3
3
  end
4
4
 
5
5
  # vim:sw=2 sts=2
data/spf.gemspec CHANGED
@@ -5,7 +5,7 @@
5
5
 
6
6
  Gem::Specification.new do |s|
7
7
  s.name = "spf"
8
- s.version = "0.0.20"
8
+ s.version = "0.0.21"
9
9
 
10
10
  s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
11
11
  s.authors = ["Andrew Flury", "Julian Mehnle"]
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: spf
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.20
4
+ version: 0.0.21
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors: