dnsmadeeasy_verify 0.0.3 → 0.0.4

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: b886b403f175f39f3ac1935fe27a1e5e437823bf
4
- data.tar.gz: f3649ce4f85095beb8c4462b858b0be10f80ac19
3
+ metadata.gz: 392566216326903b31b369978e4f5a4cb82ce273
4
+ data.tar.gz: 1cb092c9fe473ffcda41e0b94f64f7faad17ef7d
5
5
  SHA512:
6
- metadata.gz: b4574f98d6d91cf284c1de7e6f5440a2f390d6fd581ac8ce0a7b13d7bfd08aa2a5e664f932ab5a3415e715f62bd7214db6a7c08001b3bd85a99017268c7d9776
7
- data.tar.gz: 7df867d0498eb427cf1968b854578101e150fc94f4f632728b6063d4989cf0900786a78c40735fa2a13589d8014772fd5c4c5ac70cc830273fabea500e7fe476
6
+ metadata.gz: 3d77a51f550f5e7a62b35d93175332214a31298db778b71d8dd72d7c97923e89eaafef2a7724543a6b07d973f04b46f88d39408af3102fafe4e0a954593751b0
7
+ data.tar.gz: 7ea8ec9a1852f6b3665b03b903818135578cb2a4efa1ed1ab0c45fe18efb1145ba7303a3bc0bf1f2d679074dfbac7a236e41f25c07c4c43f8ec582584cca5d9c
@@ -16,16 +16,15 @@ module Dnsmadeeasy_verify
16
16
  data = JSON.parse(response.body)
17
17
 
18
18
  data['data'].each do |child|
19
- domains[child["name"]] = Domain.new(child["name"])
19
+ domains[child["name"]] = Domain.new(child["id"],child["name"])
20
20
  end
21
-
22
21
  end
23
22
 
24
23
  domains
25
24
  end
26
25
 
27
26
  # Returns all domains that are not correctly setup on DNS Made Easy
28
- def self.domains_not_on_dnsmadeeasy()
27
+ def self.domains_not_on_dnsmadeeasy
29
28
  domains = self.list_domains
30
29
  domains_not_on_dnsmadeeasy = Hash.new
31
30
  domains.each do |k, v|
@@ -5,9 +5,10 @@ module Dnsmadeeasy_verify
5
5
  class Domain
6
6
  include Dnsruby
7
7
 
8
- attr_accessor :name
8
+ attr_accessor :id, :name
9
9
 
10
- def initialize(name)
10
+ def initialize(id, name)
11
+ @id = id
11
12
  @name = name
12
13
  end
13
14
 
@@ -1,3 +1,3 @@
1
1
  module Dnsmadeeasy_verify
2
- VERSION = "0.0.3"
2
+ VERSION = "0.0.4"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: dnsmadeeasy_verify
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.3
4
+ version: 0.0.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - Tom Holder