sprinkle_dns 1.0.1 → 1.0.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +27 -0
- data/lib/sprinkle_dns/cli/propagated_change_request_printer.rb +1 -1
- data/lib/sprinkle_dns/version.rb +1 -1
- data/spec/unit/sprinkle_dns_spec.rb +26 -0
- metadata +3 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 5b3535eda69750742757aa7f7c7bcf14b811e2a596ef14efa626db61de75b69d
|
4
|
+
data.tar.gz: 0f6e5928450f857ca7b304e1d0482c19e9112f6fa56c65d3716e0c14ec7a3638
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: c613e559b39c52375aad712a395eeb894802dce620adfff24114664f6ecf1519f881e209e3be682a4472369e9d6218642390bcd64dda3f6a5f3f2a0189fce264
|
7
|
+
data.tar.gz: d3297e82d02cba1b8a07d82323c3dbdf20988e5fa779edd7d4d3e02e90bda5773dd441bbc8c9b8b1f85458fc66598983d183e5af585c6341a683aa6c62eb8df9
|
data/CHANGELOG.md
ADDED
@@ -0,0 +1,27 @@
|
|
1
|
+
# Changelog
|
2
|
+
All notable changes to this project will be documented in this file.
|
3
|
+
|
4
|
+
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/).
|
5
|
+
|
6
|
+
## [Unreleased]
|
7
|
+
|
8
|
+
## [1.0.2] - 2019-05-11
|
9
|
+
### Fixed
|
10
|
+
- Fixed issue with the non-interactive printer https://github.com/gfish/sprinkle_dns/commit/1e43591c46e056aab9711ccb37eaf91c904969cc
|
11
|
+
|
12
|
+
## [1.0.1] - 2019-05-10
|
13
|
+
### Added
|
14
|
+
- Introduced the `show_untouched: false` configuration option that will tell the differ to hide the entries that aren't created/updated/deleted, https://github.com/gfish/sprinkle_dns/commit/6e8c003d723bcdb20957200a6e22ffb324003b5d
|
15
|
+
- Introduced a premature exit in case of no changes detected, https://github.com/gfish/sprinkle_dns/commit/9c88b20a8c005092bfbe0902499156206eed4666
|
16
|
+
|
17
|
+
### Fixed
|
18
|
+
- There is a bug where Route53 will not allow you to change the order of entry-values, so when we compare it looks like the entries need an update, that was solved by sorting before we compare, https://github.com/gfish/sprinkle_dns/commit/d6358f5413fd1652f496b9a4d625b1cbf381e9ca
|
19
|
+
|
20
|
+
## [1.0.0] - 2019-05-10
|
21
|
+
### Added
|
22
|
+
- Support for having setting configuration options that changes how SprinkleDNS behaves.
|
23
|
+
- Support for printing a diff with the configuration option `diff: true`.
|
24
|
+
- Support for ALIAS-entries with the `.alias`-method, before we only had the `.entry`-method.
|
25
|
+
- Support for deleting entries that aren't referenced.
|
26
|
+
- Support for creating hosted zones if they are referenced, but don't exist yet.
|
27
|
+
- Updated the README with configuration examples and AWS policy.
|
@@ -9,7 +9,7 @@ module SprinkleDNS::CLI
|
|
9
9
|
@printed = []
|
10
10
|
end
|
11
11
|
|
12
|
-
def draw(change_requests, sync_word
|
12
|
+
def draw(change_requests, sync_word = "SYNCING", synced_word = "SYNCED")
|
13
13
|
change_requests.each do |change_request|
|
14
14
|
if change_request.in_sync
|
15
15
|
hosted_zone_name = change_request.hosted_zone.name
|
data/lib/sprinkle_dns/version.rb
CHANGED
@@ -321,4 +321,30 @@ RSpec.describe SprinkleDNS::Client do
|
|
321
321
|
end
|
322
322
|
end
|
323
323
|
end
|
324
|
+
|
325
|
+
context 'progress' do
|
326
|
+
before(:each) do
|
327
|
+
hz = SprinkleDNS::HostedZone.new('dota2tequila.com.')
|
328
|
+
pe01 = sprinkle_entry('A', 'bar.dota2tequila.com', '80.80.24.24', 80, 'dota2tequila.com.')
|
329
|
+
|
330
|
+
# We are emulating that these records are already live, mark them as persisted
|
331
|
+
[pe01].each do |persisted|
|
332
|
+
persisted.persisted!
|
333
|
+
hz.resource_record_sets << persisted
|
334
|
+
end
|
335
|
+
@client = SprinkleDNS::MockClient.new([hz])
|
336
|
+
end
|
337
|
+
|
338
|
+
it 'interactive' do
|
339
|
+
sdns = SprinkleDNS::Client.new(@client, interactive_progress: true)
|
340
|
+
sdns.entry('A', 'bar.dota2tequila.com', '70.70.99.99', 80)
|
341
|
+
sdns.sprinkle!
|
342
|
+
end
|
343
|
+
|
344
|
+
it 'non-interactive' do
|
345
|
+
sdns = SprinkleDNS::Client.new(@client, interactive_progress: false)
|
346
|
+
sdns.entry('A', 'bar.dota2tequila.com', '70.70.99.99', 80)
|
347
|
+
sdns.sprinkle!
|
348
|
+
end
|
349
|
+
end
|
324
350
|
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: sprinkle_dns
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.0.
|
4
|
+
version: 1.0.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Kasper Grubbe
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2019-05-
|
11
|
+
date: 2019-05-10 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: aws-sdk-route53
|
@@ -118,6 +118,7 @@ files:
|
|
118
118
|
- ".gitignore"
|
119
119
|
- ".rspec"
|
120
120
|
- ".ruby-version"
|
121
|
+
- CHANGELOG.md
|
121
122
|
- Gemfile
|
122
123
|
- Gemfile.lock
|
123
124
|
- LICENSE
|