spf 0.0.19 → 0.0.20

Sign up to get free protection for your applications and to get access to all the features.
data/lib/spf/model.rb CHANGED
@@ -165,7 +165,7 @@ class SPF::Term
165
165
  @ip_address = $1
166
166
  elsif required
167
167
  error(SPF::TermIPv6AddressExpected.new(
168
- "Missing required IPv6 address in '#{@text}'"))
168
+ "Missing or invalid required IPv6 address in '#{@text}'"))
169
169
  end
170
170
  @ip_address = @parse_text.dup unless @ip_address
171
171
  end
@@ -474,7 +474,7 @@ class SPF::Mech < SPF::Term
474
474
 
475
475
  def params
476
476
  return nil unless @ip_network
477
- result @ip_network if String === @ip_network
477
+ return @ip_network if String === @ip_network
478
478
  params = @ip_network.to_addr
479
479
  params += '/' + @ip_network.pfxlen.to_s if
480
480
  @ip_network.pfxlen != self.default_ipv6_prefix_length
data/lib/spf/version.rb CHANGED
@@ -1,5 +1,5 @@
1
1
  module SPF
2
- VERSION = '0.0.19'
2
+ VERSION = '0.0.20'
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.19"
8
+ s.version = "0.0.20"
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.19
4
+ version: 0.0.20
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors: