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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: aea965c90cc80dc901915511b19a471ee7af1f24faa6769018f39f1ffc10d7e3
4
- data.tar.gz: 548c1f3c504ff40dfa84f1bd621c6387a5af394d97c38e823ee8e73671eb13d4
3
+ metadata.gz: e9f48a40d3262e148fff5aecff8c61e5f4f676bdc7f7bcb64e2964dc221ba078
4
+ data.tar.gz: 48a44aa9fc8a431653d09c1c524bcfee73ea09e6148ae9ff0552110b7db51173
5
5
  SHA512:
6
- metadata.gz: 922a521aecfaf335b40c5ee35b99a032fcc65f9e008922e38fc3d119450f0ff70479dc280cc8750b63f97c832c72350eabdffb97ba78aa684c1e91366b922ac6
7
- data.tar.gz: 0deaa3f97ec76c302d200768d0be1b7cd5aeeca8304f4a24cc5ee1ca58a1532298bb9742c795da878d795cfb4e6c0af48b268a305c0351abef1317fc6e0ca394
6
+ metadata.gz: cb623045bb1b2db82232eb037adaf05a13c234d9d82e760603075ec590b5528f2daeb6dfe1df28bd6cc1987ba379f8ee070547af3336bb11213651012d527f5b
7
+ data.tar.gz: 73618a9cbae3b16028bcaa7dba64dda74e4324427fda3e364c7df0087ed72828f36965dae239bc0a2c37c1c7aece20950e0a0556a325e4cd10082e74c2da3429
data/CHANGELOG.md CHANGED
@@ -1,5 +1,8 @@
1
1
  # CHANGELOG
2
2
 
3
+ ## 7.1.1
4
+ - Bugfix: Cloudflare provider now handles empty record sets properly
5
+
3
6
  ## 7.1.0
4
7
  - Add Cloudflare as a supported DNS provider
5
8
 
@@ -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.map do |api_body|
25
- build_from_api(api_body)
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.map { |zone| zone['name'] }
34
+ zones = client.get('/client/v4/zones').result_raw || []
35
+ zones.map { |zone| zone['name'] }
36
36
  end
37
37
  end
38
38
 
@@ -1,3 +1,3 @@
1
1
  module RecordStore
2
- VERSION = '7.1.0'.freeze
2
+ VERSION = '7.1.1'.freeze
3
3
  end
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.0
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-21 00:00:00.000000000 Z
12
+ date: 2024-10-22 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: activemodel