Skip to content
This repository has been archived by the owner on Sep 30, 2020. It is now read-only.

Commit

Permalink
Version 3.1.1
Browse files Browse the repository at this point in the history
  • Loading branch information
Shogun committed Mar 10, 2014
1 parent 29d0330 commit 6600405
Show file tree
Hide file tree
Showing 20 changed files with 26 additions and 22 deletions.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
### 3.1.1 / 2014-03-09

* Minor typo fix.

### 3.1.0 / 2014-03-09

* Added `restart`, `clean` and `status` commands.
Expand Down
2 changes: 1 addition & 1 deletion doc/DevDNSd.html
Original file line number Diff line number Diff line change
Expand Up @@ -121,7 +121,7 @@ <h2>Overview</h2><div class="docstring">
</div>

<div id="footer">
Generated on Sun Mar 9 19:54:07 2014 by
Generated on Sun Mar 9 20:00:09 2014 by
<a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
0.8.7.3 (ruby-2.1.0).
</div>
Expand Down
2 changes: 1 addition & 1 deletion doc/DevDNSd/Application.html
Original file line number Diff line number Diff line change
Expand Up @@ -2541,7 +2541,7 @@ <h3 class="signature " id="on_stop-instance_method">
</div>

<div id="footer">
Generated on Sun Mar 9 19:54:08 2014 by
Generated on Sun Mar 9 20:00:10 2014 by
<a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
0.8.7.3 (ruby-2.1.0).
</div>
Expand Down
2 changes: 1 addition & 1 deletion doc/DevDNSd/ApplicationMethods.html
Original file line number Diff line number Diff line change
Expand Up @@ -116,7 +116,7 @@ <h2>Overview</h2><div class="docstring">
</div>

<div id="footer">
Generated on Sun Mar 9 19:54:07 2014 by
Generated on Sun Mar 9 20:00:09 2014 by
<a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
0.8.7.3 (ruby-2.1.0).
</div>
Expand Down
2 changes: 1 addition & 1 deletion doc/DevDNSd/ApplicationMethods/Aliases.html
Original file line number Diff line number Diff line change
Expand Up @@ -771,7 +771,7 @@ <h3 class="signature " id="manage_aliases-instance_method">
</div>

<div id="footer">
Generated on Sun Mar 9 19:54:07 2014 by
Generated on Sun Mar 9 20:00:09 2014 by
<a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
0.8.7.3 (ruby-2.1.0).
</div>
Expand Down
2 changes: 1 addition & 1 deletion doc/DevDNSd/ApplicationMethods/Server.html
Original file line number Diff line number Diff line change
Expand Up @@ -508,7 +508,7 @@ <h3 class="signature " id="process_rule_in_classes-instance_method">
</div>

<div id="footer">
Generated on Sun Mar 9 19:54:07 2014 by
Generated on Sun Mar 9 20:00:09 2014 by
<a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
0.8.7.3 (ruby-2.1.0).
</div>
Expand Down
2 changes: 1 addition & 1 deletion doc/DevDNSd/ApplicationMethods/System.html
Original file line number Diff line number Diff line change
Expand Up @@ -1347,7 +1347,7 @@ <h3 class="signature " id="resolver_path-instance_method">
</div>

<div id="footer">
Generated on Sun Mar 9 19:54:07 2014 by
Generated on Sun Mar 9 20:00:09 2014 by
<a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
0.8.7.3 (ruby-2.1.0).
</div>
Expand Down
2 changes: 1 addition & 1 deletion doc/DevDNSd/ApplicationMethods/System/ClassMethods.html
Original file line number Diff line number Diff line change
Expand Up @@ -529,7 +529,7 @@ <h3 class="signature " id="working_directory-instance_method">
</div>

<div id="footer">
Generated on Sun Mar 9 19:54:07 2014 by
Generated on Sun Mar 9 20:00:09 2014 by
<a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
0.8.7.3 (ruby-2.1.0).
</div>
Expand Down
2 changes: 1 addition & 1 deletion doc/DevDNSd/Configuration.html
Original file line number Diff line number Diff line change
Expand Up @@ -421,7 +421,7 @@ <h3 class="signature first" id="add_rule-instance_method">
</div>

<div id="footer">
Generated on Sun Mar 9 19:54:08 2014 by
Generated on Sun Mar 9 20:00:10 2014 by
<a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
0.8.7.3 (ruby-2.1.0).
</div>
Expand Down
2 changes: 1 addition & 1 deletion doc/DevDNSd/Errors.html
Original file line number Diff line number Diff line change
Expand Up @@ -116,7 +116,7 @@ <h2>Overview</h2><div class="docstring">
</div>

<div id="footer">
Generated on Sun Mar 9 19:54:07 2014 by
Generated on Sun Mar 9 20:00:09 2014 by
<a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
0.8.7.3 (ruby-2.1.0).
</div>
Expand Down
2 changes: 1 addition & 1 deletion doc/DevDNSd/Errors/InvalidRule.html
Original file line number Diff line number Diff line change
Expand Up @@ -124,7 +124,7 @@ <h2>Overview</h2><div class="docstring">
</div>

<div id="footer">
Generated on Sun Mar 9 19:54:07 2014 by
Generated on Sun Mar 9 20:00:10 2014 by
<a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
0.8.7.3 (ruby-2.1.0).
</div>
Expand Down
2 changes: 1 addition & 1 deletion doc/DevDNSd/Rule.html
Original file line number Diff line number Diff line change
Expand Up @@ -2927,7 +2927,7 @@ <h3 class="signature " id="resource_class-instance_method">
</div>

<div id="footer">
Generated on Sun Mar 9 19:54:07 2014 by
Generated on Sun Mar 9 20:00:10 2014 by
<a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
0.8.7.3 (ruby-2.1.0).
</div>
Expand Down
4 changes: 2 additions & 2 deletions doc/DevDNSd/Version.html
Original file line number Diff line number Diff line change
Expand Up @@ -149,7 +149,7 @@ <h2>Constant Summary</h2>

</div>
</dt>
<dd><pre class="code"><span class='int'>0</span></pre></dd>
<dd><pre class="code"><span class='int'>1</span></pre></dd>

<dt id="STRING-constant" class="">STRING =
<div class="docstring">
Expand Down Expand Up @@ -180,7 +180,7 @@ <h2>Constant Summary</h2>
</div>

<div id="footer">
Generated on Sun Mar 9 19:54:07 2014 by
Generated on Sun Mar 9 20:00:09 2014 by
<a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
0.8.7.3 (ruby-2.1.0).
</div>
Expand Down
2 changes: 1 addition & 1 deletion doc/_index.html
Original file line number Diff line number Diff line change
Expand Up @@ -237,7 +237,7 @@ <h2>Namespace Listing A-Z</h2>
</div>

<div id="footer">
Generated on Sun Mar 9 19:54:06 2014 by
Generated on Sun Mar 9 20:00:09 2014 by
<a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
0.8.7.3 (ruby-2.1.0).
</div>
Expand Down
2 changes: 1 addition & 1 deletion doc/file.README.html
Original file line number Diff line number Diff line change
Expand Up @@ -175,7 +175,7 @@ <h2 id="copyright">Copyright</h2>
</div></div>

<div id="footer">
Generated on Sun Mar 9 19:54:07 2014 by
Generated on Sun Mar 9 20:00:09 2014 by
<a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
0.8.7.3 (ruby-2.1.0).
</div>
Expand Down
2 changes: 1 addition & 1 deletion doc/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -175,7 +175,7 @@ <h2 id="copyright">Copyright</h2>
</div></div>

<div id="footer">
Generated on Sun Mar 9 19:54:07 2014 by
Generated on Sun Mar 9 20:00:09 2014 by
<a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
0.8.7.3 (ruby-2.1.0).
</div>
Expand Down
2 changes: 1 addition & 1 deletion doc/top-level-namespace.html
Original file line number Diff line number Diff line change
Expand Up @@ -103,7 +103,7 @@ <h2>Defined Under Namespace</h2>
</div>

<div id="footer">
Generated on Sun Mar 9 19:54:07 2014 by
Generated on Sun Mar 9 20:00:09 2014 by
<a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
0.8.7.3 (ruby-2.1.0).
</div>
Expand Down
4 changes: 2 additions & 2 deletions lib/devdnsd/application.rb
Original file line number Diff line number Diff line change
Expand Up @@ -335,7 +335,7 @@ def unload_agent(launch_agent, _)
def toggle_agent(launch_agent, operation, info_message, error_message, error_level)
begin
logger.info(i18n.send(info_message, launch_agent))
execute_command("launchctl #{operation} -w \"#{launch_agent}\" > /dev/null 2>&1")
execute_command("launchctl #{operation} -w \"#{launch_agent}\" > /dev/null 2&>1")
true
rescue
logger.send(error_level, i18n.send(error_message))
Expand Down Expand Up @@ -493,7 +493,7 @@ def generate_addresses(config, type)
# @param address [String] The address to manage.
# @return [String] The command to execute.
def build_command(type, address)
Mustache.render(config.send((type == :remove) ? :remove_command : :add_command), {interface: config.interface, address: address.to_s}) + " > /dev/null 2>&1"
Mustache.render(config.send((type == :remove) ? :remove_command : :add_command), {interface: config.interface, address: address.to_s}) + " > /dev/null 2&>1"
end

# Executes management.
Expand Down
2 changes: 1 addition & 1 deletion lib/devdnsd/version.rb
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ module Version
MINOR = 1

# The patch version.
PATCH = 0
PATCH = 1

# The current version number of DevDNSd.
STRING = [MAJOR, MINOR, PATCH].compact.join(".")
Expand Down
4 changes: 2 additions & 2 deletions spec/devdnsd/application_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -416,10 +416,10 @@ def respond!(*_)
end

it "should call the right system command" do
expect(application).to receive(:execute_command).with("sudo ifconfig lo0 alias 10.0.0.3 > /dev/null 2>&1")
expect(application).to receive(:execute_command).with("sudo ifconfig lo0 alias 10.0.0.3 > /dev/null 2&>1")
application.manage_address(:add, "10.0.0.3")

expect(application).to receive(:execute_command).with("sudo ifconfig lo0 -alias 10.0.0.3 > /dev/null 2>&1")
expect(application).to receive(:execute_command).with("sudo ifconfig lo0 -alias 10.0.0.3 > /dev/null 2&>1")
application.manage_address(:remove, "10.0.0.3")
end

Expand Down

0 comments on commit 6600405

Please sign in to comment.