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:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 0c5d880e4a5ac28d3e0762906f50f1c80c7e379f
|
4
|
+
data.tar.gz: 6cb4de217ff2b2dbc1c4d63420435014deaf2332
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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
|
data/lib/record_store/version.rb
CHANGED
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
|
+
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-
|
12
|
+
date: 2016-10-30 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: thor
|