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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 3f08907e297e77ca52db4ffb426fa8d45fd5f87a
4
- data.tar.gz: 36acdb178979d12cf7ad78a9a2f7627597dfff63
3
+ metadata.gz: 1aaee47c91c92d11223cae3ab6c1be8d72fe2a1a
4
+ data.tar.gz: 6e46d9c6fad3583d82060eeb25fdcfcc4e256f0e
5
5
  SHA512:
6
- metadata.gz: f5095e9712837d7ab82489e6c30f90eeb87ad51801f3b849e4b499455b246d28f0bd16908d1d2430ebf3bd3cd36d3531cdd4a6b3518661e2081a51c5ff4f3c5a
7
- data.tar.gz: bb9e67f1784092715923ff03abe85d1311841af967672e14396bc412de915ad8bd6e5cf9a1ef33496f3374c05d170da5b21f4b265004a1ad99dbcd485ff18de8
6
+ metadata.gz: 3e6b33218b3dcfdf66df6d96257a9a95dd75540950cbb2db636c93f8a558c4afd24ca7b3f1c5df329bc3c75905accb3924d5febf6ad49c1144ca3cefb16fa497
7
+ data.tar.gz: 46bf3af116a0483d330b04dc0d5cd8f837dba90e14b8128f9d406f37b42eae517a51da4dd7d74911de0b7c1ebfd2dca771d400b53f997b87d3814ab0d7038fae
@@ -1,3 +1,7 @@
1
+ ### 0.1.3 / 2015-10-19
2
+
3
+ * Join multi-part DNS responses together with a `' '` instead of nothing.
4
+
1
5
  ### 0.1.2 / 2015-07-07
2
6
 
3
7
  #### parser
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
- ## Symopsis
27
+ ## Synopsis
28
28
 
29
29
  Query a domain:
30
30
 
@@ -14,7 +14,7 @@ ARGV.each do |arg|
14
14
  puts "____________________________\n"
15
15
  puts "SPF record search for #{arg}"
16
16
 
17
- if (spf = SPFParse::Record.query(arg))
17
+ if (spf = SPF::Query::Record.query(arg))
18
18
  puts " - found SPF record for #{arg}"
19
19
  puts " v=#{spf.version}"
20
20
 
@@ -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
@@ -1,5 +1,5 @@
1
1
  module SPF
2
2
  module Query
3
- VERSION = '0.1.2'
3
+ VERSION = '0.1.3'
4
4
  end
5
5
  end
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.2
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-07-08 00:00:00.000000000 Z
11
+ date: 2015-10-19 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: parslet