phpipam2masq 1.0.3 → 1.0.7

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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: bdfa6fce3a2f12fbfe0844ee15c9d331ad43e4e4a267490ab32f184136e105ed
4
- data.tar.gz: f437e08008dd874957fdc6f4dc422ee210313bb9824fb1bbc9124223b19ab795
3
+ metadata.gz: 3d2b2e2e68a3163105329070cf3ea53d876742fe1b7157e382f28a2e600a24f5
4
+ data.tar.gz: 0e92a708a4bed3f0fdc3d5625c42a47afb255122a3a1969d62e2972ab7163ff4
5
5
  SHA512:
6
- metadata.gz: 730fe2449828280400e396c20eb2b40ec1f6a4f0d3d1ca94227a6113fca47053b7e3c313ee32bfdbb65ad97c89bb9a47400a5a31cf5c2047941476742bdaab2e
7
- data.tar.gz: 5ad003c92a6163d912adff30a15808d7ca7fc2348f31c4206d264b243146711ace2dcf43bd9137fade3b6bb7fef294dbfb13dbfed31052a4d9944c631b7c0445
6
+ metadata.gz: bdd78b35bd2d85b2473f147a39cd8296649aba17dcfbffe86e00cd7f3eb39fe33ef44b5ff8f73d51f718a4138e260ab169e75f8a3bcb5852b42b793e6e8cf682
7
+ data.tar.gz: 174f3ddf9937410039ade2d10982099b8f17659e1b14f65f2d41877cf08d187077ed72246d4fae282188c2693f38997c0a4af512213fb351d957908ea75766a5
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- phpipam2masq (0.1.4)
4
+ phpipam2masq (1.0.7)
5
5
  awesome_print (~> 1.0)
6
6
  facets (~> 3.0)
7
7
  faraday (~> 0.15)
@@ -36,7 +36,7 @@ GEM
36
36
  json (2.1.0)
37
37
  method_source (0.9.0)
38
38
  multipart-post (2.0.0)
39
- mustermann (1.0.2)
39
+ mustermann (1.0.3)
40
40
  nesty (1.0.2)
41
41
  pry (0.11.3)
42
42
  coderay (~> 1.1.0)
@@ -58,7 +58,7 @@ GEM
58
58
  rack-protection (= 2.0.3)
59
59
  tilt (~> 2.0)
60
60
  tilt (2.0.8)
61
- trollop (2.1.2)
61
+ trollop (2.9.9)
62
62
 
63
63
  PLATFORMS
64
64
  ruby
data/LICENSE ADDED
@@ -0,0 +1,21 @@
1
+ MIT License
2
+
3
+ Copyright (c) 2018 David Parker
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in all
13
+ copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
+ SOFTWARE.
@@ -9,6 +9,8 @@ get '/updateDnsmasq' do
9
9
  output += Time.now.to_s
10
10
  output += "\n#{%x(phpipam2masq.rb 2>&1)}"
11
11
  output += Time.now.to_s
12
+ output += "\n#{%x(systemctl restart dnsmasq 2>&1 ; echo "Restart exit: $?")}"
13
+ output += Time.now.to_s
12
14
  %Q(<pre>#{output}</pre>)
13
15
  end
14
16
 
@@ -89,7 +89,7 @@ hosts_entries = Array.new
89
89
  dhcp_hosts_entries = Array.new
90
90
  cnames_entries = Array.new
91
91
  addresses.values.each { |host|
92
- if host[:tag] != config[:dhcptag] and host[:hostname].size > 0
92
+ if host[:tag] != config[:dhcptag] and not host[:hostname].nil? and host[:hostname].size > 0
93
93
  if host[:mac] and host[:mac].size > 0
94
94
  # static dhcp assignment
95
95
  if host[:optiontag]
@@ -1,3 +1,3 @@
1
1
  module Phpipam2masq
2
- VERSION = "1.0.3"
2
+ VERSION = "1.0.7"
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: phpipam2masq
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.3
4
+ version: 1.0.7
5
5
  platform: ruby
6
6
  authors:
7
7
  - Dave Parker
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2018-07-07 00:00:00.000000000 Z
11
+ date: 2018-09-09 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler
@@ -147,6 +147,7 @@ extra_rdoc_files: []
147
147
  files:
148
148
  - Gemfile
149
149
  - Gemfile.lock
150
+ - LICENSE
150
151
  - Procfile
151
152
  - README.md
152
153
  - bin/console