record_store 3.1.4 → 4.0.0

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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: c7212344267f94b88a62e49f4c402cef86db472c
4
- data.tar.gz: 45515331baf4c773fb6b52fdae8b850099933eac
3
+ metadata.gz: 27444f2a6a94ae153ac609d1d9af8de4983fa83a
4
+ data.tar.gz: 2912b8103f87b7973347317ad819f545cb0315d9
5
5
  SHA512:
6
- metadata.gz: afd5cc1e752d3778168105e198a4cea4cc6128ffeb400782fe9b169c37fe889ebc4cb7029cca943e449796e7409cf1cc619145ab74695400e4c6b5487d660caf
7
- data.tar.gz: acfa8d70c8bf468c99003afb79e283a51b12abeece0344a7b988867e75e514f9f6371586e47bb019470f0618ef5d0aec96ffecb72c5a23c19b36efb415cdf2fc
6
+ metadata.gz: cea447ecaddf9ff5a365ab8618f9158e2e3cf72e7ca1666fcb93e18998fb4ff6678bc05c91156cba60b386cf7dc16c486f9f56a7ad358081f32ae334cf548336
7
+ data.tar.gz: 751d3dc5034b23097d83bbe1fc0122b880628b1ba0fcdd99feb7c21c8a4cd91d68caf07f3a67e71f9e95205672ff5c9d8d4ff3b92bbf240d92d7d7ffbf5315a6
data/README.md CHANGED
@@ -15,7 +15,6 @@ record-store list # Lists out records in YAML zonefiles
15
15
  record-store secrets # Decrypts DynECT credentials
16
16
  record-store sort -n, --name=NAME # Sorts the zonefile alphabetically e.g. record-store sort --name=shopify.io
17
17
  record-store thaw # Thaws all zones under management to allow manual edits
18
- record-store validate_all_present # Validates that all the zones that are expected are defined
19
18
  record-store validate_change_size # Validates no more then particular limit of DNS records are removed per zone at a time
20
19
  record-store validate_initial_state # Validates state hasn't diverged since the last deploy
21
20
  record-store validate_records # Validates that all DNS records have valid definitions
data/Rakefile CHANGED
@@ -12,7 +12,6 @@ end
12
12
  task :validate do
13
13
  record_store = RecordStore::CLI.new
14
14
  record_store.validate_records
15
- record_store.validate_all_present
16
15
  end
17
16
 
18
17
  task default: [:test]
@@ -228,23 +228,6 @@ module RecordStore
228
228
  end
229
229
  end
230
230
 
231
- desc 'validate_all_present', 'Validates that all the zones that are expected are defined'
232
- def validate_all_present
233
- defined_zones = Set.new(RecordStore.defined_zones)
234
- expected_zones = Set.new(RecordStore.expected_zones)
235
-
236
- missing_zones = expected_zones - defined_zones
237
- extra_zones = defined_zones - expected_zones
238
-
239
- unless missing_zones.empty?
240
- abort "The following zones are missing: #{missing_zones.to_a.join(', ')}"
241
- end
242
-
243
- unless extra_zones.empty?
244
- abort "The following unexpected zones are defined: #{extra_zones.to_a.join(', ')}"
245
- end
246
- end
247
-
248
231
  SKIP_CHECKS = 'SKIP_DEPLOY_VALIDATIONS'
249
232
  desc 'validate_initial_state', "Validates state hasn't diverged since the last deploy"
250
233
  def validate_initial_state
@@ -19,15 +19,6 @@ module RecordStore
19
19
 
20
20
  def self.build_from_yaml_definition(yaml_definition)
21
21
  record_type = yaml_definition.fetch(:type)
22
-
23
- # TODO: remove backward compatibility support for ALIAS records using cname attribute instead of alias
24
- # REMOVE after merging https://github.com/Shopify/record-store/pull/781
25
- case record_type
26
- when 'ALIAS'
27
- if yaml_definition.key?(:cname)
28
- yaml_definition[:alias] = yaml_definition.delete(:cname)
29
- end
30
- end
31
22
  Record.const_get(record_type).new(yaml_definition)
32
23
  end
33
24
 
@@ -1,3 +1,3 @@
1
1
  module RecordStore
2
- VERSION = '3.1.4'
2
+ VERSION = '4.0.0'
3
3
  end
data/template/bin/test CHANGED
@@ -2,4 +2,3 @@
2
2
  set -x
3
3
 
4
4
  bundle exec record-store validate_records
5
- bundle exec record-store validate_all_present
data/template/config.yml CHANGED
@@ -1,5 +1,2 @@
1
1
  zones_path: zones/
2
2
  secrets_path: secrets.json
3
- zones:
4
- - dynect.example.com.
5
- - dnsimple.example.com.
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: 3.1.4
4
+ version: 4.0.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Willem van Bergen
@@ -267,7 +267,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
267
267
  version: '0'
268
268
  requirements: []
269
269
  rubyforge_project:
270
- rubygems_version: 2.5.1
270
+ rubygems_version: 2.6.7
271
271
  signing_key:
272
272
  specification_version: 4
273
273
  summary: Manage DNS using git