spf-query 0.1.2 → 0.1.3
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/ChangeLog.md +4 -0
- data/README.md +1 -1
- data/bin/spf-query +1 -1
- data/lib/spf/query/query.rb +2 -2
- data/lib/spf/query/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 1aaee47c91c92d11223cae3ab6c1be8d72fe2a1a
|
4
|
+
data.tar.gz: 6e46d9c6fad3583d82060eeb25fdcfcc4e256f0e
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 3e6b33218b3dcfdf66df6d96257a9a95dd75540950cbb2db636c93f8a558c4afd24ca7b3f1c5df329bc3c75905accb3924d5febf6ad49c1144ca3cefb16fa497
|
7
|
+
data.tar.gz: 46bf3af116a0483d330b04dc0d5cd8f837dba90e14b8128f9d406f37b42eae517a51da4dd7d74911de0b7c1ebfd2dca771d400b53f997b87d3814ab0d7038fae
|
data/ChangeLog.md
CHANGED
data/README.md
CHANGED
@@ -24,7 +24,7 @@ host uses standard spf 'selectors', and also check if they use their own
|
|
24
24
|
# => #<SPF::Query::Record: v=spf1 ip4:199.16.156.0/22 ip4:199.59.148.0/22 ip4:8.25.194.0/23 ip4:8.25.196.0/23 ip4:204.92.114.203 ip4:204.92.114.204/31 ip4:107.20.52.15 ip4:23.21.83.90 include:_spf.google.com include:_thirdparty.twitter.com -all>
|
25
25
|
|
26
26
|
|
27
|
-
##
|
27
|
+
## Synopsis
|
28
28
|
|
29
29
|
Query a domain:
|
30
30
|
|
data/bin/spf-query
CHANGED
data/lib/spf/query/query.rb
CHANGED
@@ -22,7 +22,7 @@ module SPF
|
|
22
22
|
begin
|
23
23
|
record = resolver.getresource(domain, Resolv::DNS::Resource::IN::SPF)
|
24
24
|
|
25
|
-
return record.strings.join
|
25
|
+
return record.strings.join(' ')
|
26
26
|
rescue Resolv::ResolvError
|
27
27
|
end
|
28
28
|
|
@@ -32,7 +32,7 @@ module SPF
|
|
32
32
|
records = resolver.getresources(host, Resolv::DNS::Resource::IN::TXT)
|
33
33
|
|
34
34
|
records.each do |record|
|
35
|
-
txt = record.strings.join
|
35
|
+
txt = record.strings.join(' ')
|
36
36
|
|
37
37
|
if txt.include?('v=spf1')
|
38
38
|
return txt
|
data/lib/spf/query/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: spf-query
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.3
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- nicktitle
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2015-
|
11
|
+
date: 2015-10-19 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: parslet
|