spf 0.0.7 → 0.0.8

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 CHANGED
@@ -166,8 +166,8 @@ class SPF::Term
166
166
  unless bits and bits >= 0 and bits <= 128 and $1 !~ /^0./
167
167
  raise SPF::TermIPv6PrefixLengthExpectedError.new(
168
168
  "Invalid IPv6 prefix length encountered in '#{@text}'")
169
- @ipv6_prefix_length = bits
170
169
  end
170
+ @ipv6_prefix_length = bits
171
171
  elsif required
172
172
  raise SPF::TermIPvPrefixLengthExpected.new(
173
173
  "Missing required IPv6 prefix length in '#{@text}'")
@@ -179,8 +179,6 @@ class SPF::Term
179
179
  def parse_ipv6_network(required = false)
180
180
  self.parse_ipv6_address(required)
181
181
  self.parse_ipv6_prefix_length
182
- # XXX we shouldn't need to check for this.
183
- @ipv6_prefix_length = self.default_ipv6_prefix_length unless @ipv6_prefix_length
184
182
  @ip_network = IP.new("#{@ip_address}/#{@ipv6_prefix_length}")
185
183
  end
186
184
 
data/lib/spf/version.rb CHANGED
@@ -1,5 +1,5 @@
1
1
  module SPF
2
- VERSION = '0.0.7'
2
+ VERSION = '0.0.8'
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.7"
8
+ s.version = "0.0.8"
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.7
4
+ version: 0.0.8
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors: