dslimple 2.0.6 → 2.0.7

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: 1701e558aa2fed91d0b6c72af872774b72041f036bf02dd1068aa1709d5ccfd9
4
- data.tar.gz: 04fed2502ce2e1b0075fdebafc3c56fd298b8a46ba4b231e7fa1f2e69e3ee887
3
+ metadata.gz: fc9ec7f6ef9de3efe5c934aa77cfafab98892f0d9bd038b316224f1ad35d55d1
4
+ data.tar.gz: 52c380bba4abdebb732502feacece733a34d41e1b718a4b7aaf3b1c92ea9791f
5
5
  SHA512:
6
- metadata.gz: 910f9787ee627aad9b915e958e051d2e6d93cb5dd495d349631ffd2f535ea770720506dc9ed328522154a78d42d036eb83d57c6fbe86ea0d61d27b8b11aa9a46
7
- data.tar.gz: 449186cae4d50e07048486daef865183f8efd808ec5b3f0f275ed501847a156e421083711459f8b39d24aba36d1c52beef9c05cbb97a60358264f3faabaf97b5
6
+ metadata.gz: 889450090775d915618361e8d623b55fc377fee59b813aec91984436fbcfeaa9dae356690cbb462687885a24dd5e302c114c2723dcce8e0b0e401cc984ba09d1
7
+ data.tar.gz: 40ce7416b46795185e49f1f046ca45f69c3f0d3924c26917a0174ae648e0b0b8c28a79cebc6e437952fa9cd64761c6d4a28edcee2ea012bef909fd4072967916
@@ -30,14 +30,14 @@ class Dslimple::Client < Dnsimple::Client
30
30
 
31
31
  zones = []
32
32
  while response
33
- zones = zones + response.data.map do |domain|
34
- zone = Dslimple::Zone.new(domain.name)
33
+ zones = zones + response.data.map do |zone|
34
+ zone = Dslimple::Zone.new(zone.name)
35
35
  zone.records = all_records(zone) if with_records
36
36
  zone
37
37
  end
38
38
 
39
39
  response = if response.page < response.total_pages
40
- zones.list_zones(account_id, domain, page: response.page + 1)
40
+ zones.list_zones(account_id, page: response.page + 1)
41
41
  else
42
42
  nil
43
43
  end
@@ -58,7 +58,7 @@ class Dslimple::Client < Dnsimple::Client
58
58
  end
59
59
 
60
60
  response = if response.page < response.total_pages
61
- zones.list_records(account_id, domain, page: response.page + 1)
61
+ zones.list_zone_records(account_id, zone, page: response.page + 1)
62
62
  else
63
63
  nil
64
64
  end
@@ -1,3 +1,3 @@
1
1
  module Dslimple
2
- VERSION = '2.0.6'.freeze
2
+ VERSION = '2.0.7'.freeze
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: dslimple
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.0.6
4
+ version: 2.0.7
5
5
  platform: ruby
6
6
  authors:
7
7
  - Sho Kusano