dns_incrementor 1.0.0 → 1.0.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/bin/dns_incrementor +2 -3
- data/dns_incrementor.gemspec +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA1:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: ef22210d6a60e8ab61c630331c3508ace46e00f6
|
|
4
|
+
data.tar.gz: 563a092008e91601994d7ab85e7b753dd92f6416
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: be9ca8adc52a4df3bc0cff15b20bbcef480c3f6b265dd600d59dd7a3a6a28762a61ee1ddbc43bcbb04ee05e6b81bf6e62b88c88410e2ba138829d998bdf062cc
|
|
7
|
+
data.tar.gz: 43fc84bcfe9b628a41bf77df38c663901aa2c4874895db6de2dfd49d29a0ee6db492290a5e75f78f23c04a3d12359b3c984e527ea7dbe39a183bc5e9c8ca059a
|
data/bin/dns_incrementor
CHANGED
|
@@ -29,8 +29,7 @@ file_name = ARGV[0]
|
|
|
29
29
|
begin
|
|
30
30
|
zone = File.read(file_name)
|
|
31
31
|
rescue
|
|
32
|
-
|
|
33
|
-
exit
|
|
32
|
+
abort "Could not read #{file_name}"
|
|
34
33
|
end
|
|
35
34
|
if zone =~ /(?<date>20\d\d(0[1-9]|1[0-2])(0[1-9]|1\d|2\d|30|31))(?<num>\d\d)/
|
|
36
35
|
match = Regexp.last_match(0)
|
|
@@ -44,6 +43,6 @@ if zone =~ /(?<date>20\d\d(0[1-9]|1[0-2])(0[1-9]|1\d|2\d|30|31))(?<num>\d\d)/
|
|
|
44
43
|
begin
|
|
45
44
|
File.open(file_name, 'w') {|file| file << zone}
|
|
46
45
|
rescue
|
|
47
|
-
|
|
46
|
+
abort "Could not write to file #{file_name}"
|
|
48
47
|
end
|
|
49
48
|
end
|
data/dns_incrementor.gemspec
CHANGED
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: dns_incrementor
|
|
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
|
- Dafydd Crosby
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: bin
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date: 2014-01-
|
|
11
|
+
date: 2014-01-30 00:00:00.000000000 Z
|
|
12
12
|
dependencies: []
|
|
13
13
|
description: Increment serial in DNS zone files
|
|
14
14
|
email: dafydd@dafyddcrosby.com
|