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 +4 -4
- data/lib/dslimple/client.rb +4 -4
- data/lib/dslimple/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: fc9ec7f6ef9de3efe5c934aa77cfafab98892f0d9bd038b316224f1ad35d55d1
|
4
|
+
data.tar.gz: 52c380bba4abdebb732502feacece733a34d41e1b718a4b7aaf3b1c92ea9791f
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 889450090775d915618361e8d623b55fc377fee59b813aec91984436fbcfeaa9dae356690cbb462687885a24dd5e302c114c2723dcce8e0b0e401cc984ba09d1
|
7
|
+
data.tar.gz: 40ce7416b46795185e49f1f046ca45f69c3f0d3924c26917a0174ae648e0b0b8c28a79cebc6e437952fa9cd64761c6d4a28edcee2ea012bef909fd4072967916
|
data/lib/dslimple/client.rb
CHANGED
@@ -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 |
|
34
|
-
zone = Dslimple::Zone.new(
|
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,
|
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.
|
61
|
+
zones.list_zone_records(account_id, zone, page: response.page + 1)
|
62
62
|
else
|
63
63
|
nil
|
64
64
|
end
|
data/lib/dslimple/version.rb
CHANGED