devdnsd 3.1.0 → 3.1.1
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/CHANGELOG.md +4 -0
- data/doc/DevDNSd.html +1 -1
- data/doc/DevDNSd/Application.html +1 -1
- data/doc/DevDNSd/ApplicationMethods.html +1 -1
- data/doc/DevDNSd/ApplicationMethods/Aliases.html +1 -1
- data/doc/DevDNSd/ApplicationMethods/Server.html +1 -1
- data/doc/DevDNSd/ApplicationMethods/System.html +1 -1
- data/doc/DevDNSd/ApplicationMethods/System/ClassMethods.html +1 -1
- data/doc/DevDNSd/Configuration.html +1 -1
- data/doc/DevDNSd/Errors.html +1 -1
- data/doc/DevDNSd/Errors/InvalidRule.html +1 -1
- data/doc/DevDNSd/Rule.html +1 -1
- data/doc/DevDNSd/Version.html +2 -2
- data/doc/_index.html +1 -1
- data/doc/file.README.html +1 -1
- data/doc/index.html +1 -1
- data/doc/top-level-namespace.html +1 -1
- data/lib/devdnsd/application.rb +2 -2
- data/lib/devdnsd/version.rb +1 -1
- data/spec/devdnsd/application_spec.rb +2 -2
- metadata +1 -1
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA1:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 1ed4108bb900c89f5d35a664ac91e9f15c4140f2
|
|
4
|
+
data.tar.gz: 1c1e00f638074e705fb969d6ac992b2471663397
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 2ea69219c5543de30628acd20721d9f68af4b309c4efd4529607d6be739e7ee8e4b68b14e63320f39891a51301b585bb99ab7d5f5ca74db670cdde2b2a3aff25
|
|
7
|
+
data.tar.gz: 79c4a1bef6589fa251f53a0b6f536974e6c3220b8dfa4425d386c2cb21ae6ef72fe2e3058454b6ed3283c66a34179b4046a6a349e3aa00b25875fa9f1bd6c9e8
|
data/CHANGELOG.md
CHANGED
data/doc/DevDNSd.html
CHANGED
|
@@ -121,7 +121,7 @@ Licensed under the MIT license, which can be found at http://www.opensource.org/
|
|
|
121
121
|
</div>
|
|
122
122
|
|
|
123
123
|
<div id="footer">
|
|
124
|
-
Generated on Sun Mar 9
|
|
124
|
+
Generated on Sun Mar 9 20:00:09 2014 by
|
|
125
125
|
<a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
|
|
126
126
|
0.8.7.3 (ruby-2.1.0).
|
|
127
127
|
</div>
|
|
@@ -2541,7 +2541,7 @@
|
|
|
2541
2541
|
</div>
|
|
2542
2542
|
|
|
2543
2543
|
<div id="footer">
|
|
2544
|
-
Generated on Sun Mar 9
|
|
2544
|
+
Generated on Sun Mar 9 20:00:10 2014 by
|
|
2545
2545
|
<a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
|
|
2546
2546
|
0.8.7.3 (ruby-2.1.0).
|
|
2547
2547
|
</div>
|
|
@@ -116,7 +116,7 @@
|
|
|
116
116
|
</div>
|
|
117
117
|
|
|
118
118
|
<div id="footer">
|
|
119
|
-
Generated on Sun Mar 9
|
|
119
|
+
Generated on Sun Mar 9 20:00:09 2014 by
|
|
120
120
|
<a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
|
|
121
121
|
0.8.7.3 (ruby-2.1.0).
|
|
122
122
|
</div>
|
|
@@ -771,7 +771,7 @@
|
|
|
771
771
|
</div>
|
|
772
772
|
|
|
773
773
|
<div id="footer">
|
|
774
|
-
Generated on Sun Mar 9
|
|
774
|
+
Generated on Sun Mar 9 20:00:09 2014 by
|
|
775
775
|
<a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
|
|
776
776
|
0.8.7.3 (ruby-2.1.0).
|
|
777
777
|
</div>
|
|
@@ -508,7 +508,7 @@
|
|
|
508
508
|
</div>
|
|
509
509
|
|
|
510
510
|
<div id="footer">
|
|
511
|
-
Generated on Sun Mar 9
|
|
511
|
+
Generated on Sun Mar 9 20:00:09 2014 by
|
|
512
512
|
<a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
|
|
513
513
|
0.8.7.3 (ruby-2.1.0).
|
|
514
514
|
</div>
|
|
@@ -1347,7 +1347,7 @@
|
|
|
1347
1347
|
</div>
|
|
1348
1348
|
|
|
1349
1349
|
<div id="footer">
|
|
1350
|
-
Generated on Sun Mar 9
|
|
1350
|
+
Generated on Sun Mar 9 20:00:09 2014 by
|
|
1351
1351
|
<a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
|
|
1352
1352
|
0.8.7.3 (ruby-2.1.0).
|
|
1353
1353
|
</div>
|
|
@@ -529,7 +529,7 @@
|
|
|
529
529
|
</div>
|
|
530
530
|
|
|
531
531
|
<div id="footer">
|
|
532
|
-
Generated on Sun Mar 9
|
|
532
|
+
Generated on Sun Mar 9 20:00:09 2014 by
|
|
533
533
|
<a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
|
|
534
534
|
0.8.7.3 (ruby-2.1.0).
|
|
535
535
|
</div>
|
|
@@ -421,7 +421,7 @@ config.add_rule("match.dev", "10.0.0.1")
|
|
|
421
421
|
</div>
|
|
422
422
|
|
|
423
423
|
<div id="footer">
|
|
424
|
-
Generated on Sun Mar 9
|
|
424
|
+
Generated on Sun Mar 9 20:00:10 2014 by
|
|
425
425
|
<a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
|
|
426
426
|
0.8.7.3 (ruby-2.1.0).
|
|
427
427
|
</div>
|
data/doc/DevDNSd/Errors.html
CHANGED
|
@@ -116,7 +116,7 @@
|
|
|
116
116
|
</div>
|
|
117
117
|
|
|
118
118
|
<div id="footer">
|
|
119
|
-
Generated on Sun Mar 9
|
|
119
|
+
Generated on Sun Mar 9 20:00:09 2014 by
|
|
120
120
|
<a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
|
|
121
121
|
0.8.7.3 (ruby-2.1.0).
|
|
122
122
|
</div>
|
|
@@ -124,7 +124,7 @@
|
|
|
124
124
|
</div>
|
|
125
125
|
|
|
126
126
|
<div id="footer">
|
|
127
|
-
Generated on Sun Mar 9
|
|
127
|
+
Generated on Sun Mar 9 20:00:10 2014 by
|
|
128
128
|
<a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
|
|
129
129
|
0.8.7.3 (ruby-2.1.0).
|
|
130
130
|
</div>
|
data/doc/DevDNSd/Rule.html
CHANGED
|
@@ -2927,7 +2927,7 @@
|
|
|
2927
2927
|
</div>
|
|
2928
2928
|
|
|
2929
2929
|
<div id="footer">
|
|
2930
|
-
Generated on Sun Mar 9
|
|
2930
|
+
Generated on Sun Mar 9 20:00:10 2014 by
|
|
2931
2931
|
<a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
|
|
2932
2932
|
0.8.7.3 (ruby-2.1.0).
|
|
2933
2933
|
</div>
|
data/doc/DevDNSd/Version.html
CHANGED
|
@@ -149,7 +149,7 @@
|
|
|
149
149
|
|
|
150
150
|
</div>
|
|
151
151
|
</dt>
|
|
152
|
-
<dd><pre class="code"><span class='int'>
|
|
152
|
+
<dd><pre class="code"><span class='int'>1</span></pre></dd>
|
|
153
153
|
|
|
154
154
|
<dt id="STRING-constant" class="">STRING =
|
|
155
155
|
<div class="docstring">
|
|
@@ -180,7 +180,7 @@
|
|
|
180
180
|
</div>
|
|
181
181
|
|
|
182
182
|
<div id="footer">
|
|
183
|
-
Generated on Sun Mar 9
|
|
183
|
+
Generated on Sun Mar 9 20:00:09 2014 by
|
|
184
184
|
<a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
|
|
185
185
|
0.8.7.3 (ruby-2.1.0).
|
|
186
186
|
</div>
|
data/doc/_index.html
CHANGED
|
@@ -237,7 +237,7 @@
|
|
|
237
237
|
</div>
|
|
238
238
|
|
|
239
239
|
<div id="footer">
|
|
240
|
-
Generated on Sun Mar 9
|
|
240
|
+
Generated on Sun Mar 9 20:00:09 2014 by
|
|
241
241
|
<a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
|
|
242
242
|
0.8.7.3 (ruby-2.1.0).
|
|
243
243
|
</div>
|
data/doc/file.README.html
CHANGED
|
@@ -175,7 +175,7 @@ This argument is ignored if you pass the block, as it assumes that the second ar
|
|
|
175
175
|
</div></div>
|
|
176
176
|
|
|
177
177
|
<div id="footer">
|
|
178
|
-
Generated on Sun Mar 9
|
|
178
|
+
Generated on Sun Mar 9 20:00:09 2014 by
|
|
179
179
|
<a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
|
|
180
180
|
0.8.7.3 (ruby-2.1.0).
|
|
181
181
|
</div>
|
data/doc/index.html
CHANGED
|
@@ -175,7 +175,7 @@ This argument is ignored if you pass the block, as it assumes that the second ar
|
|
|
175
175
|
</div></div>
|
|
176
176
|
|
|
177
177
|
<div id="footer">
|
|
178
|
-
Generated on Sun Mar 9
|
|
178
|
+
Generated on Sun Mar 9 20:00:09 2014 by
|
|
179
179
|
<a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
|
|
180
180
|
0.8.7.3 (ruby-2.1.0).
|
|
181
181
|
</div>
|
|
@@ -103,7 +103,7 @@
|
|
|
103
103
|
</div>
|
|
104
104
|
|
|
105
105
|
<div id="footer">
|
|
106
|
-
Generated on Sun Mar 9
|
|
106
|
+
Generated on Sun Mar 9 20:00:09 2014 by
|
|
107
107
|
<a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
|
|
108
108
|
0.8.7.3 (ruby-2.1.0).
|
|
109
109
|
</div>
|
data/lib/devdnsd/application.rb
CHANGED
|
@@ -335,7 +335,7 @@ module DevDNSd
|
|
|
335
335
|
def toggle_agent(launch_agent, operation, info_message, error_message, error_level)
|
|
336
336
|
begin
|
|
337
337
|
logger.info(i18n.send(info_message, launch_agent))
|
|
338
|
-
execute_command("launchctl #{operation} -w \"#{launch_agent}\" > /dev/null 2
|
|
338
|
+
execute_command("launchctl #{operation} -w \"#{launch_agent}\" > /dev/null 2&>1")
|
|
339
339
|
true
|
|
340
340
|
rescue
|
|
341
341
|
logger.send(error_level, i18n.send(error_message))
|
|
@@ -493,7 +493,7 @@ module DevDNSd
|
|
|
493
493
|
# @param address [String] The address to manage.
|
|
494
494
|
# @return [String] The command to execute.
|
|
495
495
|
def build_command(type, address)
|
|
496
|
-
Mustache.render(config.send((type == :remove) ? :remove_command : :add_command), {interface: config.interface, address: address.to_s}) + " > /dev/null 2
|
|
496
|
+
Mustache.render(config.send((type == :remove) ? :remove_command : :add_command), {interface: config.interface, address: address.to_s}) + " > /dev/null 2&>1"
|
|
497
497
|
end
|
|
498
498
|
|
|
499
499
|
# Executes management.
|
data/lib/devdnsd/version.rb
CHANGED
|
@@ -416,10 +416,10 @@ describe DevDNSd::Application do
|
|
|
416
416
|
end
|
|
417
417
|
|
|
418
418
|
it "should call the right system command" do
|
|
419
|
-
expect(application).to receive(:execute_command).with("sudo ifconfig lo0 alias 10.0.0.3 > /dev/null 2
|
|
419
|
+
expect(application).to receive(:execute_command).with("sudo ifconfig lo0 alias 10.0.0.3 > /dev/null 2&>1")
|
|
420
420
|
application.manage_address(:add, "10.0.0.3")
|
|
421
421
|
|
|
422
|
-
expect(application).to receive(:execute_command).with("sudo ifconfig lo0 -alias 10.0.0.3 > /dev/null 2
|
|
422
|
+
expect(application).to receive(:execute_command).with("sudo ifconfig lo0 -alias 10.0.0.3 > /dev/null 2&>1")
|
|
423
423
|
application.manage_address(:remove, "10.0.0.3")
|
|
424
424
|
end
|
|
425
425
|
|