wlvalidate 0.3.7 → 0.3.8

Sign up to get free protection for your applications and to get access to all the features.
Files changed (2) hide show
  1. data/lib/wlvalidate.rb +6 -6
  2. metadata +2 -2
data/lib/wlvalidate.rb CHANGED
@@ -306,11 +306,11 @@ module WLValidate
306
306
  arrayDKIM1 = dns.getresources(strHost, Dnsruby::Types.TXT)
307
307
  arrayDKIM1.each do |r|
308
308
  if r.name.to_s.match %r{dkim.sendgrid.net}
309
- hashReturn = { "type" => "DKIM1", "result" => "PASS", "data" => r.name.to_s, "ext_data" => "CNAME" }
309
+ hashReturn = { "type" => "DKIM1", "result" => "PASS", "data" => r.name.to_s, "ext_data" => "CNAME", "rdata" => "(cname)" }
310
310
  boolFoundMatch = true
311
311
  end
312
312
  if ((r.name.to_s == strHost) && (r.data == strDKIM))
313
- hashReturn = { "type" => "DKIM1", "result" => "PASS", "data" => r.name.to_s, "ext_data" => "TXT" }
313
+ hashReturn = { "type" => "DKIM1", "result" => "PASS", "data" => r.name.to_s, "ext_data" => "TXT", "rdata" => r.data }
314
314
  boolFoundMatch = true
315
315
  end
316
316
  end
@@ -318,7 +318,7 @@ module WLValidate
318
318
  arrayDKIM1CNAME = dns.getresources(strHost, Dnsruby::Types.CNAME)
319
319
  arrayDKIM1CNAME.each do |c|
320
320
  if c.rdata_to_string.match %r{dkim.sendgrid.net}
321
- hashReturn = { "type" => "DKIM1", "result" => "PASS", "data" => c.name.to_s, "ext_data" => "CNAME" }
321
+ hashReturn = { "type" => "DKIM1", "result" => "PASS", "data" => c.name.to_s, "ext_data" => "CNAME", "rdata" => "(cname)" }
322
322
  boolFoundMatch = true
323
323
  end
324
324
  end
@@ -357,11 +357,11 @@ module WLValidate
357
357
  arrayDKIM2 = dns.getresources(strHost, Dnsruby::Types.TXT)
358
358
  arrayDKIM2.each do |r|
359
359
  if r.name.to_s.match %r{dkim.sendgrid.net}
360
- hashReturn = { "type" => "DKIM2", "result" => "PASS", "data" => r.name.to_s, "ext_data" => "CNAME" }
360
+ hashReturn = { "type" => "DKIM2", "result" => "PASS", "data" => r.name.to_s, "ext_data" => "CNAME", "rdata" => "(cname)" }
361
361
  boolFoundMatch = true
362
362
  end
363
363
  if ((r.name.to_s == strHost) && (r.data == strDKIM))
364
- hashReturn = { "type" => "DKIM2", "result" => "PASS", "data" => r.name.to_s, "ext_data" => "TXT" }
364
+ hashReturn = { "type" => "DKIM2", "result" => "PASS", "data" => r.name.to_s, "ext_data" => "TXT", "rdata" => r.data }
365
365
  boolFoundMatch = true
366
366
  end
367
367
  end
@@ -370,7 +370,7 @@ module WLValidate
370
370
  arrayDKIM2CNAME = dns.getresources(strHost, Dnsruby::Types.CNAME)
371
371
  arrayDKIM2CNAME.each do |c|
372
372
  if c.rdata_to_string.match %r{dkim.sendgrid.net}
373
- hashReturn = { "type" => "DKIM2", "result" => "PASS", "data" => c.name.to_s, "ext_data" => "CNAME" }
373
+ hashReturn = { "type" => "DKIM2", "result" => "PASS", "data" => c.name.to_s, "ext_data" => "CNAME", "rdata" => "(cname)" }
374
374
  boolFoundMatch = true
375
375
  end
376
376
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: wlvalidate
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.3.7
4
+ version: 0.3.8
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2013-02-20 00:00:00.000000000 Z
12
+ date: 2013-02-27 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: dnsruby