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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 45302044aaba7f575bcd49cd55780d710fdac60f87ff22917d2b58e4ec8cc0c6
4
- data.tar.gz: 5caa809cd4c2987a10a485990a477520aabe3fd619270b59610a6e34ce80fcf6
3
+ metadata.gz: b84abff77df7d77d0f88940c816abfcc5b1082cda8083cbfcf5476f5e046c3e6
4
+ data.tar.gz: 1f8c8c7bb693cadf2554cc6f5ff761c22d6d4f91da62d53f09ed9d3f4b986e96
5
5
  SHA512:
6
- metadata.gz: 86da22286d6c1f32d1a0fb052deb9733db90c6a05802a10cef63c72e5b7da20fbb2fa012502d1a2d95d31c2567153f94a883bf92790b8ddfcf24b05558791a8a
7
- data.tar.gz: 1da0b2120b182a26eb1274b4e9200ffcee306c31a27714abf74fcc35fd4fd71a8b13c650eb6b540c6ee931d8aa1bed6b19cacb64b9166ada7d733801c7497d8e
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
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Zonesync
4
- VERSION = "0.5.0"
4
+ VERSION = "0.5.2"
5
5
  end
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.0
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-01 00:00:00.000000000 Z
12
+ date: 2024-02-06 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: dns-zonefile