spf 0.0.55 → 0.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/Gemfile.lock +3 -3
- data/lib/spf/ext/resolv.rb +1 -1
- data/lib/spf/request.rb +4 -4
- data/lib/spf/version.rb +1 -3
- data/spf.gemspec +3 -3
- metadata +6 -6
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 59999aa0ea90d50e8b64f0d4a5507c7ae41dd23aa48b78a912ab8c6fed0ba7a4
|
4
|
+
data.tar.gz: 8223c61d32fc75606a4d497e68b2c36f7a8aa0ca65b16a23e9b97cf041e9c95e
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 3171492870fe154190babfb585a2a1a430cc825024cdcb41abe356a13cd62a532fa34aad515a694029c5e8321acce98361f5d5adb0a1e9137b1d089eb44881c7
|
7
|
+
data.tar.gz: 63599c8282aed28bb4d23fd1036fd22c773413243bfc22f44532f5bc65acb36e65220beb6c24787370c1896f807d0780c127ebb800865513a237a83f5c1a41b2
|
data/Gemfile.lock
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
PATH
|
2
2
|
remote: .
|
3
3
|
specs:
|
4
|
-
spf (0.
|
4
|
+
spf (0.1)
|
5
5
|
ruby-ip (~> 0.9.1)
|
6
6
|
|
7
7
|
GEM
|
@@ -36,7 +36,7 @@ PLATFORMS
|
|
36
36
|
ruby
|
37
37
|
|
38
38
|
DEPENDENCIES
|
39
|
-
bundler (
|
39
|
+
bundler (>= 2.4.13)
|
40
40
|
rake (>= 10)
|
41
41
|
rdoc (>= 6.3.0)
|
42
42
|
rspec (~> 3.10)
|
@@ -44,4 +44,4 @@ DEPENDENCIES
|
|
44
44
|
spf!
|
45
45
|
|
46
46
|
BUNDLED WITH
|
47
|
-
|
47
|
+
2.4.13
|
data/lib/spf/ext/resolv.rb
CHANGED
@@ -65,7 +65,7 @@ class Resolv
|
|
65
65
|
end
|
66
66
|
|
67
67
|
|
68
|
-
# Fix for (unreported) "nil can't be coerced into
|
68
|
+
# Fix for (unreported) "nil can't be coerced into Integer" TypeError exception
|
69
69
|
# caused by truncated (or otherwise malformed) answer packets.
|
70
70
|
###############################################################################
|
71
71
|
|
data/lib/spf/request.rb
CHANGED
@@ -42,11 +42,11 @@ class SPF::Request
|
|
42
42
|
|
43
43
|
# Versions:
|
44
44
|
if @versions
|
45
|
-
if
|
46
|
-
# Single version specified as a
|
45
|
+
if Integer === @versions
|
46
|
+
# Single version specified as a Integer:
|
47
47
|
@versions = [@versions]
|
48
48
|
elsif not Array === @versions
|
49
|
-
# Something other than
|
49
|
+
# Something other than Integer or array specified:
|
50
50
|
raise SPF::InvalidOptionValueError.new("'versions' option must be symbol or array")
|
51
51
|
end
|
52
52
|
|
@@ -137,7 +137,7 @@ class SPF::Request
|
|
137
137
|
raise SPF::OptionRequiredError.new('Field name required')
|
138
138
|
end
|
139
139
|
if value
|
140
|
-
if
|
140
|
+
if Integer === value
|
141
141
|
@state[field] = 0 unless @state[field]
|
142
142
|
return (@state[field] += value)
|
143
143
|
else
|
data/lib/spf/version.rb
CHANGED
data/spf.gemspec
CHANGED
@@ -48,14 +48,14 @@ Gem::Specification.new do |s|
|
|
48
48
|
s.add_development_dependency(%q<rake>, [">= 10"])
|
49
49
|
s.add_development_dependency(%q<rspec>, ["~> 3.10"])
|
50
50
|
s.add_development_dependency(%q<rdoc>, [">= 6.3.0"])
|
51
|
-
s.add_development_dependency(%q<bundler>, ["
|
51
|
+
s.add_development_dependency(%q<bundler>, [">= 2.4.13"])
|
52
52
|
s.add_development_dependency(%q<simplecov>)
|
53
53
|
else
|
54
54
|
s.add_dependency(%q<ruby-ip>, ["~> 0.9.1"])
|
55
55
|
s.add_dependency(%q<rake>, [">= 10"])
|
56
56
|
s.add_dependency(%q<rspec>, ["~> 3.10"])
|
57
57
|
s.add_dependency(%q<rdoc>, [">= 6.3.0"])
|
58
|
-
s.add_dependency(%q<bundler>, ["
|
58
|
+
s.add_dependency(%q<bundler>, [">= 2.4.13"])
|
59
59
|
s.add_dependency(%q<simplecov>)
|
60
60
|
end
|
61
61
|
else
|
@@ -63,7 +63,7 @@ Gem::Specification.new do |s|
|
|
63
63
|
s.add_dependency(%q<rake>, [">= 10"])
|
64
64
|
s.add_dependency(%q<rspec>, ["~> 3.10"])
|
65
65
|
s.add_dependency(%q<rdoc>, [">= 6.3.0"])
|
66
|
-
s.add_dependency(%q<bundler>, ["
|
66
|
+
s.add_dependency(%q<bundler>, [">= 2.4.13"])
|
67
67
|
s.add_dependency(%q<simplecov>)
|
68
68
|
end
|
69
69
|
end
|
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.
|
4
|
+
version: '0.1'
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Andrew Flury
|
@@ -72,16 +72,16 @@ dependencies:
|
|
72
72
|
name: bundler
|
73
73
|
requirement: !ruby/object:Gem::Requirement
|
74
74
|
requirements:
|
75
|
-
- - "
|
75
|
+
- - ">="
|
76
76
|
- !ruby/object:Gem::Version
|
77
|
-
version:
|
77
|
+
version: 2.4.13
|
78
78
|
type: :development
|
79
79
|
prerelease: false
|
80
80
|
version_requirements: !ruby/object:Gem::Requirement
|
81
81
|
requirements:
|
82
|
-
- - "
|
82
|
+
- - ">="
|
83
83
|
- !ruby/object:Gem::Version
|
84
|
-
version:
|
84
|
+
version: 2.4.13
|
85
85
|
- !ruby/object:Gem::Dependency
|
86
86
|
name: simplecov
|
87
87
|
requirement: !ruby/object:Gem::Requirement
|
@@ -147,7 +147,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
147
147
|
- !ruby/object:Gem::Version
|
148
148
|
version: '0'
|
149
149
|
requirements: []
|
150
|
-
rubygems_version: 3.
|
150
|
+
rubygems_version: 3.4.6
|
151
151
|
signing_key:
|
152
152
|
specification_version: 4
|
153
153
|
summary: Implementation of the Sender Policy Framework
|