record_store 8.0.1 → 8.0.2

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: 7680653d3944e3a5c8de1a31055e38266a379d4caed36f7eb30bb5ae27217d71
4
- data.tar.gz: 5487a8cbcd8079815fbe3e0276e99360a16d954b02b6ed819639bd73e016bc5e
3
+ metadata.gz: 6e518dfc9c19dd1015387da818e7771977370cd0d4bf461eda200d378978b29e
4
+ data.tar.gz: f056671c6d1f39a9b0a12a0574be13fe4adb152a9dbcf90015a4642bb241e4ea
5
5
  SHA512:
6
- metadata.gz: 0ba282fe4046bf7169648d3eecb0137fefd8882dc4c7dbf3c5af0f17cf0ef56ba948d0235668057656c53c709f9372ee155e6aa3aab211c265fdc322e1d9c4ba
7
- data.tar.gz: f4e9646af425cdbe7a6827f0fd88e8c24717c6ea21921228ab72164a7e1b019071533f2576ba25b77bf02e3477a22e2d00d0a4df0d1cbfb985e6137c562dd1f1
6
+ metadata.gz: 95ac97176d1adc48e315db207c32aa1e1c394906e0b3026cac517ee43f130fcedd3d62003a08cbcfb387e36844aa5bdb580797588370278829002e0c3b952976
7
+ data.tar.gz: d6c9176b3a0a85e7a34076a04a226f9e4311b23ec6c32f569c69d6a460b0f75a3e5bc8f69b6a637781d5f6ca4950270ce0338adba73c742a5f0dda18f558113a
data/CHANGELOG.md CHANGED
@@ -1,5 +1,8 @@
1
1
  # CHANGELOG
2
2
 
3
+ ## 8.0.2
4
+ - Fix Changesets to be case-insensitive
5
+
3
6
  ## 8.0.1
4
7
  - Fix Cloudflare provider to handle paginated returns from API
5
8
 
@@ -55,8 +55,8 @@ module RecordStore
55
55
  end
56
56
 
57
57
  def initialize(current_records: [], desired_records: [], provider:, zone:)
58
- @current_records = Set.new(current_records)
59
- @desired_records = Set.new(desired_records)
58
+ @current_records = Set.new(normalize_records(current_records))
59
+ @desired_records = Set.new(normalize_records(desired_records))
60
60
  @provider = provider
61
61
  @zone = zone
62
62
 
@@ -114,5 +114,18 @@ module RecordStore
114
114
  end
115
115
  end
116
116
  end
117
+
118
+ def normalize_records(records)
119
+ records.map do |record|
120
+ record.dup.tap do |r|
121
+ r.fqdn = r.fqdn.downcase
122
+ r.rdata.each do |key, value|
123
+ next if key == :txtdata
124
+
125
+ r.send("#{key}=", value.downcase) if value.is_a?(String)
126
+ end
127
+ end
128
+ end
129
+ end
117
130
  end
118
131
  end
@@ -1,3 +1,3 @@
1
1
  module RecordStore
2
- VERSION = '8.0.1'.freeze
2
+ VERSION = '8.0.2'.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: 8.0.1
4
+ version: 8.0.2
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-29 00:00:00.000000000 Z
12
+ date: 2024-11-04 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: activemodel