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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 9c91328eae46ee1fbeb825637677aa6b7199d3aab7eb4efba01b66faaaac4356
4
- data.tar.gz: c1d10ce64fc2f56ee91874b66cef3c824c678b07c41daf5ef76e5794c1dfe1b5
3
+ metadata.gz: 59999aa0ea90d50e8b64f0d4a5507c7ae41dd23aa48b78a912ab8c6fed0ba7a4
4
+ data.tar.gz: 8223c61d32fc75606a4d497e68b2c36f7a8aa0ca65b16a23e9b97cf041e9c95e
5
5
  SHA512:
6
- metadata.gz: a387983fdc1703852077aaadf68f780021aed736e9cd4374d0ad3e2cbb1408b0e1111944c30c558b66063c77757f56ade37661ef204345385f49f04165a93a06
7
- data.tar.gz: 67075b593384a1c48a6d18e3dfcf8163f74efd60001c36b45211c25877e674c007cb94fc6f0ba0772f53f2406bf590699d6171ee03d85f272829ed454d51896c
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.0.55)
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 (~> 1.2)
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
- 1.17.3
47
+ 2.4.13
@@ -65,7 +65,7 @@ class Resolv
65
65
  end
66
66
 
67
67
 
68
- # Fix for (unreported) "nil can't be coerced into Fixnum" TypeError exception
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 Fixnum === @versions
46
- # Single version specified as a Fixnum:
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 Fixnum or array specified:
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 Fixnum === value
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
@@ -1,6 +1,4 @@
1
1
  # encoding: ASCII-8BIT
2
2
  module SPF
3
- VERSION = '0.0.55'
3
+ VERSION = '0.1'
4
4
  end
5
-
6
- # vim:sw=2 sts=2
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>, ["~> 1.2"])
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>, ["~> 1.2"])
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>, ["~> 1.2"])
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.0.55
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: '1.2'
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: '1.2'
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.3.5
150
+ rubygems_version: 3.4.6
151
151
  signing_key:
152
152
  specification_version: 4
153
153
  summary: Implementation of the Sender Policy Framework