record_store 3.1.0 → 3.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
  SHA1:
3
- metadata.gz: d2211def6ef9324417dc03e12112531d3db725fb
4
- data.tar.gz: e82ffe91b6c00a806fc83fefe78e70a4abb670c3
3
+ metadata.gz: 0c5d880e4a5ac28d3e0762906f50f1c80c7e379f
4
+ data.tar.gz: 6cb4de217ff2b2dbc1c4d63420435014deaf2332
5
5
  SHA512:
6
- metadata.gz: 0f3e722058b4b71cf95f18946653a12148f267bd1757a2db7abe7ad370a36fef040cf3867cc608f42a6626afe1e6a0c9ffc68bad1c543bb652e5f4df57d3fae1
7
- data.tar.gz: e7867a56a4e0a957302bc27d6bf21b8574ee8a58b919426c439e3bb4e072636dbb203097a7d315655fbce14617ef6fe43272e0b9703174b29ec5012bca4a28b0
6
+ metadata.gz: 34cead07f463106c10a2730d13ca6ae3010cfb76bdbe92c31a98a74d1702995b61437222db7cd3b6f3370f9ff1aaefd582d405de6c81320cc4c9530282fe26cd
7
+ data.tar.gz: dc9cfc0dca5bd95cf7f0c58f5c1b6685c05108b97977bc04bb366b66cd6800ecff16bf8fe10f64c4e289ddd58ec0ff2ac1846ca2b713796ffe5a4a5365f25153
@@ -76,8 +76,8 @@ module RecordStore
76
76
  private
77
77
 
78
78
  def build_changeset
79
- current_records_set = (current_records - unchanged).group_by(&:key)
80
- desired_records_set = (desired_records - unchanged).group_by(&:key)
79
+ current_records_set = (current_records - unchanged).sort_by(&:to_s).group_by(&:key)
80
+ desired_records_set = (desired_records - unchanged).sort_by(&:to_s).group_by(&:key)
81
81
  current_records_set.default_proc = desired_records_set.default_proc = Proc.new{Array.new}
82
82
 
83
83
  record_keys = current_records_set.keys | desired_records_set.keys
@@ -33,7 +33,6 @@ module RecordStore
33
33
  end
34
34
 
35
35
  def update(id, record, zone)
36
- record_hash = api_hash(record, zone)
37
36
  session.update_record(zone, id, api_hash(record, zone))
38
37
  end
39
38
 
@@ -101,9 +100,9 @@ module RecordStore
101
100
  weight, port, host = api_record.fetch('content').split(' ')
102
101
 
103
102
  record.merge!(
104
- priority: api_record.fetch('prio'),
105
- weight: weight,
106
- port: port,
103
+ priority: api_record.fetch('prio').to_i,
104
+ weight: weight.to_i,
105
+ port: port.to_i,
107
106
  target: Record.ensure_ends_with_dot(host),
108
107
  )
109
108
  end
@@ -1,3 +1,3 @@
1
1
  module RecordStore
2
- VERSION = '3.1.0'
2
+ VERSION = '3.1.1'
3
3
  end
@@ -1,6 +1,7 @@
1
1
  dnsimple.example.com:
2
2
  config:
3
- provider: DNSimple
3
+ providers:
4
+ - DNSimple
4
5
  ignore_patterns:
5
6
  - type: NS
6
7
  fqdn: dnsimple.example.com.
@@ -1,6 +1,7 @@
1
1
  dynect.example.com:
2
2
  config:
3
- provider: DynECT
3
+ providers:
4
+ - DynECT
4
5
  ignore_patterns:
5
6
  - type: NS
6
7
  fqdn: dynect.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.0
4
+ version: 3.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: 2016-10-28 00:00:00.000000000 Z
12
+ date: 2016-10-30 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: thor