record_store 7.1.0 → 7.1.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +3 -0
- data/lib/record_store/provider/cloudflare.rb +4 -4
- data/lib/record_store/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: e9f48a40d3262e148fff5aecff8c61e5f4f676bdc7f7bcb64e2964dc221ba078
|
4
|
+
data.tar.gz: 48a44aa9fc8a431653d09c1c524bcfee73ea09e6148ae9ff0552110b7db51173
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: cb623045bb1b2db82232eb037adaf05a13c234d9d82e760603075ec590b5528f2daeb6dfe1df28bd6cc1987ba379f8ee070547af3336bb11213651012d527f5b
|
7
|
+
data.tar.gz: 73618a9cbae3b16028bcaa7dba64dda74e4324427fda3e364c7df0087ed72828f36965dae239bc0a2c37c1c7aece20950e0a0556a325e4cd10082e74c2da3429
|
data/CHANGELOG.md
CHANGED
@@ -21,9 +21,8 @@ module RecordStore
|
|
21
21
|
zone_id = zone_name_to_id(zone)
|
22
22
|
|
23
23
|
retry_on_connection_errors do
|
24
|
-
client.get("/client/v4/zones/#{zone_id}/dns_records").result_raw
|
25
|
-
|
26
|
-
end
|
24
|
+
records = client.get("/client/v4/zones/#{zone_id}/dns_records").result_raw || []
|
25
|
+
records.map { |api_body| build_from_api(api_body) }
|
27
26
|
end
|
28
27
|
end
|
29
28
|
|
@@ -32,7 +31,8 @@ module RecordStore
|
|
32
31
|
# Can implement filtering in request if needed
|
33
32
|
def zones
|
34
33
|
retry_on_connection_errors do
|
35
|
-
client.get('/client/v4/zones').result_raw
|
34
|
+
zones = client.get('/client/v4/zones').result_raw || []
|
35
|
+
zones.map { |zone| zone['name'] }
|
36
36
|
end
|
37
37
|
end
|
38
38
|
|
data/lib/record_store/version.rb
CHANGED
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: record_store
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 7.1.
|
4
|
+
version: 7.1.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Willem van Bergen
|
@@ -9,7 +9,7 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date: 2024-10-
|
12
|
+
date: 2024-10-22 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: activemodel
|