zonesync 0.5.0 → 0.5.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/zonesync/diff.rb +2 -2
- data/lib/zonesync/version.rb +1 -1
- data/lib/zonesync.rb +2 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: b84abff77df7d77d0f88940c816abfcc5b1082cda8083cbfcf5476f5e046c3e6
|
4
|
+
data.tar.gz: 1f8c8c7bb693cadf2554cc6f5ff761c22d6d4f91da62d53f09ed9d3f4b986e96
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 9734a3e1fcc8f9bef842f1cab50d2e4cd2f31d284b3a022c0aa7cbc165357fbada8f932ef87c89d74ee0721ad56cebaa84d582e8bc9bd2500a437d0612e21930
|
7
|
+
data.tar.gz: e325c240e820c5417bdda7c65b7767ced3d1d373c20c5e37c976ba18052dedf140d694d5d03d99c8a41104f49b10a91532216470bc7ddfcf980eef6e2e859dbb
|
data/lib/zonesync/diff.rb
CHANGED
@@ -11,11 +11,11 @@ module Zonesync
|
|
11
11
|
changes.map do |change|
|
12
12
|
case change.action
|
13
13
|
when "-"
|
14
|
-
[:remove, change.old_element.to_h]
|
14
|
+
[:remove, [change.old_element.to_h]]
|
15
15
|
when "!"
|
16
16
|
[:change, [change.old_element.to_h, change.new_element.to_h]]
|
17
17
|
when "+"
|
18
|
-
[:add, change.new_element.to_h]
|
18
|
+
[:add, [change.new_element.to_h]]
|
19
19
|
end
|
20
20
|
end.compact
|
21
21
|
end
|
data/lib/zonesync/version.rb
CHANGED
data/lib/zonesync.rb
CHANGED
@@ -14,6 +14,7 @@ module Zonesync
|
|
14
14
|
end
|
15
15
|
|
16
16
|
def self.default_credentials
|
17
|
+
require "active_support"
|
17
18
|
require "active_support/encrypted_configuration"
|
18
19
|
require "active_support/core_ext/hash/keys"
|
19
20
|
ActiveSupport::EncryptedConfiguration.new(
|
@@ -35,7 +36,7 @@ module Zonesync
|
|
35
36
|
operations = Diff.call(from: destination, to: source)
|
36
37
|
operations.each do |method, args|
|
37
38
|
Logger.log(method, args, dry_run: dry_run)
|
38
|
-
destination.send(method, args) unless dry_run
|
39
|
+
destination.send(method, *args) unless dry_run
|
39
40
|
end
|
40
41
|
end
|
41
42
|
end
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: zonesync
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.5.
|
4
|
+
version: 0.5.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Micah Geisel
|
@@ -9,7 +9,7 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: exe
|
11
11
|
cert_chain: []
|
12
|
-
date: 2024-02-
|
12
|
+
date: 2024-02-06 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: dns-zonefile
|