record_store 8.0.9 → 8.0.10
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/CHANGELOG.md +4 -0
- data/lib/record_store/provider/cloudflare.rb +2 -0
- data/lib/record_store/provider/dnsimple.rb +10 -1
- data/lib/record_store/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: bcaa697157000cc1bf04fd72aee445d2ecd8b8b34352eb99d8e5544903c92146
|
|
4
|
+
data.tar.gz: 453b90bf06d3555904e3d60177979a09cdaca5370a63aa5634fc3322f8527ea2
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 1386094b965dc6309249f816dc509fcfb6810e5dc2ae3601709a3ccddfb9a6ab1e6315cc8e5b5ac62c0edc09ad02cdfa428d2a593df8c5975bd6d35929254235
|
|
7
|
+
data.tar.gz: b927d38959ed6496c65e6fcb98525b9a189c96621b159ece23ec06b382b6df87c9b5b78da996d2fbe6524cad03c95e8d0cb6376b4627bf83c0be6c17a7d0c441
|
data/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,9 @@
|
|
|
1
1
|
# CHANGELOG
|
|
2
2
|
|
|
3
|
+
## 8.0.10
|
|
4
|
+
- Fix Cloudflare provider to skip empty changesets
|
|
5
|
+
- Add TXT record denormalization for DNSimple provider
|
|
6
|
+
|
|
3
7
|
## 8.0.9
|
|
4
8
|
- Update dnsimple requirement from >= 4.4, < 11.1 to >= 4.4, < 11.2
|
|
5
9
|
- Update rubocop requirement from ~> 1.80.2 to ~> 1.81.1
|
|
@@ -75,6 +75,14 @@ module RecordStore
|
|
|
75
75
|
super.fetch('dnsimple')
|
|
76
76
|
end
|
|
77
77
|
|
|
78
|
+
def denormalize_txt(content)
|
|
79
|
+
if content.start_with?('"') && content.end_with?('"')
|
|
80
|
+
content[1..-2].gsub('\"', '"')
|
|
81
|
+
else
|
|
82
|
+
content
|
|
83
|
+
end
|
|
84
|
+
end
|
|
85
|
+
|
|
78
86
|
def build_from_api(api_record, zone)
|
|
79
87
|
fqdn = api_record.name.present? ? "#{api_record.name}.#{zone}" : zone
|
|
80
88
|
fqdn = "#{fqdn}." unless fqdn.ends_with?('.')
|
|
@@ -117,7 +125,8 @@ module RecordStore
|
|
|
117
125
|
fingerprint: fingerprint,
|
|
118
126
|
)
|
|
119
127
|
when 'SPF', 'TXT'
|
|
120
|
-
|
|
128
|
+
content = denormalize_txt(api_record.content)
|
|
129
|
+
record.merge!(txtdata: Record.unescape(content).gsub(';', '\;'))
|
|
121
130
|
when 'SRV'
|
|
122
131
|
weight, port, host = api_record.content.split(' ')
|
|
123
132
|
|
data/lib/record_store/version.rb
CHANGED