DNSUpdater 1.1.0 → 1.2.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/DNSUpdater.gemspec +1 -1
- data/Gemfile.lock +8 -8
- data/lib/dnsupdater/cli.rb +10 -5
- data/lib/dnsupdater/version.rb +1 -1
- metadata +8 -8
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: ff404119a6c42d8afa3c9580da9d5aa662b45b086ad1092d1c82f6ff212ea74e
|
4
|
+
data.tar.gz: 980c62a9c2ed35df952c518223ebb03b0c659e7ea223bc98a6a00ecc0644c4d7
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 97cedfb61604d8bd84aaf4785b53e3a566e172251a38bada0abbe4b75b10556f1fcf29afeebaa3ea4b3cb62579b414263d3801840e6c1100c733de7792c766c3
|
7
|
+
data.tar.gz: 3705aab16c8d7e797bf327e079bf4ae5dad55bdfaaa752218dc247e275920ac8536186344739a7e72324466881ff130efe3afb42ecc302740bf8b2208ba18d68
|
data/DNSUpdater.gemspec
CHANGED
@@ -41,7 +41,7 @@ Gem::Specification.new do |spec|
|
|
41
41
|
spec.add_development_dependency 'bundler', '~> 2.0'
|
42
42
|
spec.add_development_dependency 'irb'
|
43
43
|
spec.add_development_dependency 'rack-test'
|
44
|
-
spec.add_development_dependency 'rake', '~>
|
44
|
+
spec.add_development_dependency 'rake', '~> 13.0'
|
45
45
|
spec.add_development_dependency 'redcarpet'
|
46
46
|
spec.add_development_dependency 'rspec', '~> 3.0'
|
47
47
|
spec.add_development_dependency 'simplecov'
|
data/Gemfile.lock
CHANGED
@@ -15,7 +15,7 @@ PATH
|
|
15
15
|
GEM
|
16
16
|
remote: https://rubygems.org/
|
17
17
|
specs:
|
18
|
-
addressable (2.
|
18
|
+
addressable (2.8.0)
|
19
19
|
public_suffix (>= 2.0.2, < 5.0)
|
20
20
|
bcrypt_pbkdf (1.0.1)
|
21
21
|
crack (0.4.3)
|
@@ -30,16 +30,16 @@ GEM
|
|
30
30
|
reline (>= 0.0.1)
|
31
31
|
json (2.3.0)
|
32
32
|
net-ssh (5.2.0)
|
33
|
-
nio4r (2.5.
|
33
|
+
nio4r (2.5.8)
|
34
34
|
pdns_api (0.1.3)
|
35
|
-
public_suffix (4.0.
|
36
|
-
puma (
|
35
|
+
public_suffix (4.0.6)
|
36
|
+
puma (5.6.2)
|
37
37
|
nio4r (~> 2.0)
|
38
|
-
rack (2.
|
38
|
+
rack (2.2.3)
|
39
39
|
rack-test (1.1.0)
|
40
40
|
rack (>= 1.0, < 3)
|
41
|
-
rake (
|
42
|
-
redcarpet (3.5.
|
41
|
+
rake (13.0.1)
|
42
|
+
redcarpet (3.5.1)
|
43
43
|
reline (0.1.2)
|
44
44
|
io-console (~> 0.5)
|
45
45
|
rspec (3.9.0)
|
@@ -75,7 +75,7 @@ DEPENDENCIES
|
|
75
75
|
bundler (~> 2.0)
|
76
76
|
irb
|
77
77
|
rack-test
|
78
|
-
rake (~>
|
78
|
+
rake (~> 13.0)
|
79
79
|
redcarpet
|
80
80
|
rspec (~> 3.0)
|
81
81
|
simplecov
|
data/lib/dnsupdater/cli.rb
CHANGED
@@ -53,7 +53,7 @@ class DNSUpdater
|
|
53
53
|
def getOptions(args)
|
54
54
|
options = {
|
55
55
|
ConfigFile: 'config.yaml',
|
56
|
-
|
56
|
+
Targets: [],
|
57
57
|
Protocol: nil,
|
58
58
|
Serve: false
|
59
59
|
}
|
@@ -66,18 +66,23 @@ class DNSUpdater
|
|
66
66
|
warn e.message
|
67
67
|
raise SystemExit
|
68
68
|
end
|
69
|
-
options[:
|
69
|
+
options[:Targets] = args
|
70
70
|
options
|
71
71
|
end
|
72
72
|
|
73
73
|
def doSingleUpdate(options)
|
74
74
|
config = Config.new(options[:ConfigFile])
|
75
|
-
DNSUpdater.new(config)
|
76
|
-
|
75
|
+
updater = DNSUpdater.new(config)
|
76
|
+
options[:Targets].each do |target|
|
77
|
+
updater.update(target, options[:Protocol])
|
78
|
+
puts "Updated #{target}"
|
79
|
+
end
|
77
80
|
end
|
78
81
|
|
79
82
|
def serveWebUpdates(options)
|
80
|
-
|
83
|
+
target = nil
|
84
|
+
target = options[:Targets].first unless options[:Targets].empty?
|
85
|
+
params = prepareWebParams(target)
|
81
86
|
Web.startServer(options[:ConfigFile], options[:Protocol], params)
|
82
87
|
end
|
83
88
|
|
data/lib/dnsupdater/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: DNSUpdater
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.
|
4
|
+
version: 1.2.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Dāvis
|
8
|
-
autorequire:
|
8
|
+
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2022-03-07 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: addressable
|
@@ -184,14 +184,14 @@ dependencies:
|
|
184
184
|
requirements:
|
185
185
|
- - "~>"
|
186
186
|
- !ruby/object:Gem::Version
|
187
|
-
version: '
|
187
|
+
version: '13.0'
|
188
188
|
type: :development
|
189
189
|
prerelease: false
|
190
190
|
version_requirements: !ruby/object:Gem::Requirement
|
191
191
|
requirements:
|
192
192
|
- - "~>"
|
193
193
|
- !ruby/object:Gem::Version
|
194
|
-
version: '
|
194
|
+
version: '13.0'
|
195
195
|
- !ruby/object:Gem::Dependency
|
196
196
|
name: redcarpet
|
197
197
|
requirement: !ruby/object:Gem::Requirement
|
@@ -310,7 +310,7 @@ metadata:
|
|
310
310
|
homepage_uri: https://github.com/davispuh/DNSUpdater
|
311
311
|
source_code_uri: https://github.com/davispuh/DNSUpdater
|
312
312
|
changelog_uri: https://github.com/davispuh/DNSUpdater/blob/master/CHANGELOG.md
|
313
|
-
post_install_message:
|
313
|
+
post_install_message:
|
314
314
|
rdoc_options: []
|
315
315
|
require_paths:
|
316
316
|
- lib
|
@@ -325,8 +325,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
325
325
|
- !ruby/object:Gem::Version
|
326
326
|
version: '0'
|
327
327
|
requirements: []
|
328
|
-
rubygems_version: 3.
|
329
|
-
signing_key:
|
328
|
+
rubygems_version: 3.3.8
|
329
|
+
signing_key:
|
330
330
|
specification_version: 4
|
331
331
|
summary: An application to dynamically and remotely update DNS.
|
332
332
|
test_files: []
|