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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: acad517a9250f092a037f41bcd766fdbae07f5bd0bda3b74205e7f29b770baef
4
- data.tar.gz: 9df3f5184ad058000f94726d572e6081e819f09f0ec005c6e22ca4d19cd73b0a
3
+ metadata.gz: ff404119a6c42d8afa3c9580da9d5aa662b45b086ad1092d1c82f6ff212ea74e
4
+ data.tar.gz: 980c62a9c2ed35df952c518223ebb03b0c659e7ea223bc98a6a00ecc0644c4d7
5
5
  SHA512:
6
- metadata.gz: 7c45dfeeca387c657efd5fd59dfb033ec496aef40697667446f60dc1b091f3e4f03ef19d4bf4b2ebed4bbe1efc42dd633131ee9d644f329811df6ff5c0f00b2c
7
- data.tar.gz: '08f992625ea6e84f680944c0dade50ca806d1a3791fca2b36dcb8c63ea71ccab66a89654bc2d615963883d62c90cc6d633c1ea66c2923c5031bf00f97e30ccfd'
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', '~> 10.0'
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.7.0)
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.2)
33
+ nio4r (2.5.8)
34
34
  pdns_api (0.1.3)
35
- public_suffix (4.0.2)
36
- puma (4.3.1)
35
+ public_suffix (4.0.6)
36
+ puma (5.6.2)
37
37
  nio4r (~> 2.0)
38
- rack (2.0.8)
38
+ rack (2.2.3)
39
39
  rack-test (1.1.0)
40
40
  rack (>= 1.0, < 3)
41
- rake (10.5.0)
42
- redcarpet (3.5.0)
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 (~> 10.0)
78
+ rake (~> 13.0)
79
79
  redcarpet
80
80
  rspec (~> 3.0)
81
81
  simplecov
@@ -53,7 +53,7 @@ class DNSUpdater
53
53
  def getOptions(args)
54
54
  options = {
55
55
  ConfigFile: 'config.yaml',
56
- Target: nil,
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[:Target] = args.first unless args.empty?
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).update(options[:Target], options[:Protocol])
76
- puts 'Updated!'
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
- params = prepareWebParams(options[:Target])
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
 
@@ -2,5 +2,5 @@
2
2
 
3
3
  class DNSUpdater
4
4
  # Version
5
- VERSION = '1.1.0'
5
+ VERSION = '1.2.0'
6
6
  end
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.1.0
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: 2020-01-03 00:00:00.000000000 Z
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: '10.0'
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: '10.0'
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.1.2
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: []