akaer 1.5.8 → 2.0.0
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.
- data/.travis-gemfile +13 -0
- data/.travis.yml +6 -4
- data/Gemfile +12 -1
- data/README.md +7 -4
- data/Rakefile +2 -9
- data/akaer.gemspec +5 -10
- data/bin/akaer +19 -17
- data/doc/Akaer/Application.html +1186 -860
- data/doc/Akaer/ApplicationMethods/General.html +365 -0
- data/doc/Akaer/ApplicationMethods/System.html +456 -0
- data/doc/Akaer/{Errors.html → ApplicationMethods.html} +21 -11
- data/doc/Akaer/Configuration.html +3 -3
- data/doc/Akaer/Version.html +6 -6
- data/doc/Akaer.html +6 -6
- data/doc/_index.html +41 -4
- data/doc/class_list.html +1 -1
- data/doc/file.README.html +53 -42
- data/doc/frames.html +1 -1
- data/doc/index.html +53 -42
- data/doc/method_list.html +30 -22
- data/doc/top-level-namespace.html +3 -3
- data/lib/akaer/application.rb +323 -199
- data/lib/akaer/configuration.rb +13 -13
- data/lib/akaer/version.rb +4 -4
- data/lib/akaer.rb +2 -1
- data/locales/en.yml +52 -0
- data/locales/it.yml +52 -0
- data/spec/akaer/application_spec.rb +25 -25
- data/spec/akaer/configuration_spec.rb +3 -3
- data/spec/coverage_helper.rb +6 -9
- data/spec/spec_helper.rb +1 -2
- metadata +18 -115
- data/doc/Akaer/Errors/InvalidConfiguration.html +0 -123
- data/doc/Akaer/Logger.html +0 -596
- data/doc/Fixnum.html +0 -200
data/locales/en.yml
ADDED
@@ -0,0 +1,52 @@
|
|
1
|
+
# encoding: utf-8
|
2
|
+
#
|
3
|
+
# This file is part of the akaer gem. Copyright (C) 2013 and above Shogun <shogun_panda@me.com>.
|
4
|
+
# Licensed under the MIT license, which can be found at http://www.opensource.org/licenses/mit-license.php.
|
5
|
+
#
|
6
|
+
|
7
|
+
---
|
8
|
+
akaer:
|
9
|
+
removing: "Removing"
|
10
|
+
adding: "Adding"
|
11
|
+
remove: "remove"
|
12
|
+
add: "add"
|
13
|
+
to: "to "
|
14
|
+
from: "from "
|
15
|
+
general_error: "Cannot {mark=bright}%1{/mark} address {mark=bright}%2{/mark} %3interface {mark=bright}%4{/mark}."
|
16
|
+
add_empty: "No valid addresses to add to the interface found."
|
17
|
+
remove_empty: "No valid addresses to remove from the interface found."
|
18
|
+
run: "%1 {mark=bright}%2{/mark} address {mark=bright}%3{/mark} %4interface {mark=bright}%5{/mark}..."
|
19
|
+
dry_run: "%1 I will {mark=bright}%2{/mark} address {mark=bright}%3{/mark} %4interface {mark=bright}%5{/mark}..."
|
20
|
+
no_agent: "Installing akaer on autolaunch is only available on MacOSX."
|
21
|
+
agent_creating: "Creating the launch agent in {mark=bright}%1{/mark} ..."
|
22
|
+
agent_creating_error: "Cannot create the launch agent."
|
23
|
+
agent_deleting: "Deleting the launch agent %1 ..."
|
24
|
+
agent_deleting_error: "Cannot delete the launch agent."
|
25
|
+
agent_loading: "Loading the launch agent %1 ..."
|
26
|
+
agent_loading_error: "Cannot load the launch agent."
|
27
|
+
agent_unloading: "Unloading the launch agent %1 ..."
|
28
|
+
agent_unloading_error: "Cannot unload the launch agent."
|
29
|
+
logging_failed: "Cannot log to {mark=bright}%1{/mark}. Exiting..."
|
30
|
+
application_description: "A small utility to add aliases to network interfaces."
|
31
|
+
application_help_configuration: "The configuration file to use. Default is \"~/.akaer_config\"."
|
32
|
+
application_help_interface: "The interface to manage. Default is \"lo0\"."
|
33
|
+
application_help_addresses: "The list of aliases to add. Overrides sequential list."
|
34
|
+
application_help_start_address: "The starting address for sequential aliases. Default is \"10.0.0.1\"."
|
35
|
+
application_help_aliases: "The number of aliases to add. Default is 5."
|
36
|
+
application_help_add_command: "The command to run for adding an alias. Default is \"sudo ifconfig @INTERFACE@ alias @ALIAS@\"."
|
37
|
+
application_help_remove_command: "The command to run for removing an alias. Default is \"sudo ifconfig @INTERFACE@ -alias @ALIAS@\"."
|
38
|
+
application_help_log_file: "The log file to use. Default is standard output."
|
39
|
+
application_help_log_level: "The log level to use. Valid values are from 0 to 5 where 0 means \"all messages\". Default is 1."
|
40
|
+
application_help_dry_run: "Only show which modifications will be done."
|
41
|
+
application_help_quiet: "Do not show any message."
|
42
|
+
application_command_add: "Adds aliases."
|
43
|
+
application_command_remove: "Removes aliases."
|
44
|
+
application_command_install: "Installs the application to autolaunch."
|
45
|
+
application_command_uninstall: "Uninstalls the application from autolaunch."
|
46
|
+
application_meta_file: "FILE"
|
47
|
+
application_meta_interface: "INTERFACE"
|
48
|
+
application_meta_address: "ADDRESS"
|
49
|
+
application_meta_addresses: "ADDRESSES"
|
50
|
+
application_meta_aliases: "ALIASES"
|
51
|
+
application_meta_command: "COMMAND"
|
52
|
+
application_meta_level: "LEVEL"
|
data/locales/it.yml
ADDED
@@ -0,0 +1,52 @@
|
|
1
|
+
# encoding: utf-8
|
2
|
+
#
|
3
|
+
# This file is part of the akaer gem. Copyright (C) 2013 and above Shogun <shogun_panda@me.com>.
|
4
|
+
# Licensed under the MIT license, which can be found at http://www.opensource.org/licenses/mit-license.php.
|
5
|
+
#
|
6
|
+
|
7
|
+
---
|
8
|
+
akaer:
|
9
|
+
removing: "Rimuovo"
|
10
|
+
adding: "Aggiungo"
|
11
|
+
remove: "rimuovere"
|
12
|
+
add: "aggiungere"
|
13
|
+
to: "all'"
|
14
|
+
from: "dall'"
|
15
|
+
general_error: "Impossibile {mark=bright}%1{/mark} l'indirizzo {mark=bright}%2{/mark} %3interfaccia {mark=bright}%4{/mark}."
|
16
|
+
add_empty: "Nessun indirizzo valido da aggiungere all'interfaccia trovato."
|
17
|
+
remove_empty: "Nessun indirizzo valido da rimuovere dall'interfaccia trovato."
|
18
|
+
run: "%1 {mark=bright}%2{/mark} l'indirizzo {mark=bright}%3{/mark} %4interfaccia {mark=bright}%5{/mark}..."
|
19
|
+
dry_run: "%1 Sto per {mark=bright}%2{/mark} l'indirizzo {mark=bright}%3{/mark} %4interfaccia {mark=bright}%5{/mark}..."
|
20
|
+
no_agent: "Installare akaer all'avvio automatico è disponibile solo su MacOSX."
|
21
|
+
agent_creating: "Creo il launch agent in {mark=bright}%1{/mark} ..."
|
22
|
+
agent_creating_error: "Impossibile creare il launch agent."
|
23
|
+
agent_deleting: "Cancello il launch agent %1 ..."
|
24
|
+
agent_deleting_error: "Impossibile cancellare launch agent."
|
25
|
+
agent_loading: "Avvio il launch agent %1 ..."
|
26
|
+
agent_loading_error: "Impossibile avviare il launch agent."
|
27
|
+
agent_unloading: "Fermo il launch agent %1 ..."
|
28
|
+
agent_unloading_error: "Impossible fermare il launch agent."
|
29
|
+
logging_failed: "Impossibile eseguire il logging in {mark=bright}%1{/mark}. Esco..."
|
30
|
+
application_description: "Una piccola utility per aggiungere alias alle interfacce di rete."
|
31
|
+
application_help_configuration: "Il file di configurazione da utilizzare. Il predefinito è \"~/.akaer_config\"."
|
32
|
+
application_help_interface: "L'interfaccia da gestire. L'interfaccia predefinita è \"lo0\"."
|
33
|
+
application_help_addresses: "La lista di indirizzi da aggiungere. Sovrascrive la lista sequenziale."
|
34
|
+
application_help_start_address: "L'indirizzo iniziale per gli indirizzi sequenziali. L'indirizzo predefinito è \"10.0.0.1\"."
|
35
|
+
application_help_aliases: "Il numero di indirizzi da aggiungere. Il numero predefinito è 5."
|
36
|
+
application_help_add_command: "Il comando da eseguire per aggiungere un indirizzo. Il comando predefinito è \"sudo ifconfig @INTERFACE@ alias @ALIAS@\"."
|
37
|
+
application_help_remove_command: "Il comando da eseguire per rimuovere un indirizzo. Il comando predefinito è \"sudo ifconfig @INTERFACE@ -alias @ALIAS@\"."
|
38
|
+
application_help_log_file: "Il file di log da utilizzare. Di default usa lo standard output."
|
39
|
+
application_help_log_level: "Il livello di log da utilizzare. I valori validi sono da 0 a 5 dove 0 significa \"tutti i messaggi\". Il valore predefinito è 1."
|
40
|
+
application_help_dry_run: "Mostra solo quali modifiche sarebbero applicato"
|
41
|
+
application_help_quiet: "Non mostra alcun messaggio"
|
42
|
+
application_command_add: "Aggiungi indirizzi"
|
43
|
+
application_command_remove: "Rimuovi indirizzi."
|
44
|
+
application_command_install: "Installa l'applicazione all'avvio automatico."
|
45
|
+
application_command_uninstall: "Disinstalla l'applicazione all'avvio automatico."
|
46
|
+
application_meta_file: "FILE"
|
47
|
+
application_meta_interface: "INTERFACCIA"
|
48
|
+
application_meta_address: "INDIRIZZO"
|
49
|
+
application_meta_addresses: "INDIRIZZI"
|
50
|
+
application_meta_aliases: "ALIAS"
|
51
|
+
application_meta_command: "COMANDO"
|
52
|
+
application_meta_level: "LIVELLO"
|
@@ -1,6 +1,6 @@
|
|
1
1
|
# encoding: utf-8
|
2
2
|
#
|
3
|
-
# This file is part of the akaer gem. Copyright (C)
|
3
|
+
# This file is part of the akaer gem. Copyright (C) 2013 and above Shogun <shogun_panda@me.com>.
|
4
4
|
# Licensed under the MIT license, which can be found at http://www.opensource.org/licenses/mit-license.php.
|
5
5
|
#
|
6
6
|
|
@@ -8,21 +8,21 @@ require "spec_helper"
|
|
8
8
|
|
9
9
|
describe Akaer::Application do
|
10
10
|
def create_application(overrides)
|
11
|
-
mamertes_app = Mamertes::App(:
|
12
|
-
option
|
13
|
-
option
|
14
|
-
option
|
15
|
-
option
|
16
|
-
option
|
17
|
-
option
|
18
|
-
option
|
19
|
-
option
|
20
|
-
option
|
21
|
-
option
|
22
|
-
option
|
23
|
-
end
|
24
|
-
|
25
|
-
::Akaer::Application.new(mamertes_app)
|
11
|
+
mamertes_app = Mamertes::App(run: false) do
|
12
|
+
option :configuration, [], {type: String, default: overrides["configuration"] || "/dev/null"}
|
13
|
+
option :interface, [], {type: String, default: overrides["interface"] || "lo0"}
|
14
|
+
option :addresses, [], {type: Array, default: overrides["addresses"] || []}
|
15
|
+
option :start_address, [], {type: String, default: overrides["start-address"] || "10.0.0.1"}
|
16
|
+
option :aliases, [:S], {type: Integer, default: overrides["aliases"] || 5}
|
17
|
+
option :add_command, [:A], {type: String, default: overrides["add-command"] || "sudo ifconfig {{interface}} alias {{alias}}"}
|
18
|
+
option :remove_command, [:R], {type: String, default: overrides["remove-command"] || "sudo ifconfig {{interface}} -alias {{alias}}"}
|
19
|
+
option :log_file, [], {type: String, default: overrides["log-file"] || "/dev/null"}
|
20
|
+
option :log_level, [:L], {type: Integer, default: overrides["log-level"] || 1}
|
21
|
+
option :dry_run, [:n], {default: overrides["dry-run"] || false}
|
22
|
+
option :quiet, [], {default: overrides["quiet"] || false}
|
23
|
+
end
|
24
|
+
|
25
|
+
::Akaer::Application.new(mamertes_app, :en)
|
26
26
|
end
|
27
27
|
|
28
28
|
before(:each) do
|
@@ -34,8 +34,8 @@ describe Akaer::Application do
|
|
34
34
|
|
35
35
|
describe ".instance" do
|
36
36
|
it("should call .new with the passed arguments") do
|
37
|
-
::Akaer::Application.should_receive(:new).with("FOO")
|
38
|
-
::Akaer::Application.instance("FOO")
|
37
|
+
::Akaer::Application.should_receive(:new).with("FOO", :es)
|
38
|
+
::Akaer::Application.instance("FOO", :es)
|
39
39
|
end
|
40
40
|
|
41
41
|
it("should return the same instance") do
|
@@ -47,7 +47,7 @@ describe Akaer::Application do
|
|
47
47
|
it("should return a new instance if requested to") do
|
48
48
|
::Akaer::Application.stub(:new) do Time.now end
|
49
49
|
instance = ::Akaer::Application.instance("")
|
50
|
-
expect(::Akaer::Application.instance({"log-file" => "/dev/null"}, true)).not_to be(instance)
|
50
|
+
expect(::Akaer::Application.instance({"log-file" => "/dev/null"}, nil, true)).not_to be(instance)
|
51
51
|
end
|
52
52
|
end
|
53
53
|
|
@@ -151,7 +151,7 @@ describe Akaer::Application do
|
|
151
151
|
it "considering all address" do
|
152
152
|
expect(create_application({"log-file" => log_file, "start-address" => "10.0.1.1"}).compute_addresses).to eq(["10.0.1.1", "10.0.1.2", "10.0.1.3", "10.0.1.4", "10.0.1.5"])
|
153
153
|
expect(create_application({"log-file" => log_file, "aliases" => 3}).compute_addresses).to eq(["10.0.0.1", "10.0.0.2", "10.0.0.3"])
|
154
|
-
expect(create_application({"log-file" => log_file, "start-address" => "10.0.1.1", :
|
154
|
+
expect(create_application({"log-file" => log_file, "start-address" => "10.0.1.1", aliases: -1}).compute_addresses).to eq(["10.0.1.1", "10.0.1.2", "10.0.1.3", "10.0.1.4", "10.0.1.5"])
|
155
155
|
end
|
156
156
|
|
157
157
|
it "considering only IPv4" do
|
@@ -189,7 +189,7 @@ describe Akaer::Application do
|
|
189
189
|
end
|
190
190
|
|
191
191
|
it "should return true if the command succeded" do
|
192
|
-
other_application = create_application({"add-command" => "echo
|
192
|
+
other_application = create_application({"add-command" => "echo {{interface}}", "quiet" => true})
|
193
193
|
expect(other_application.manage(:add, "10.0.0.3")).to be_true
|
194
194
|
end
|
195
195
|
|
@@ -265,7 +265,7 @@ describe Akaer::Application do
|
|
265
265
|
end
|
266
266
|
|
267
267
|
describe "#action_install" do
|
268
|
-
if ::
|
268
|
+
if ::RbConfig::CONFIG['host_os'] =~ /^darwin/ then
|
269
269
|
it "should create the agent" do
|
270
270
|
application.stub(:launch_agent_path).and_return(launch_agent_path)
|
271
271
|
::File.unlink(application.launch_agent_path) if ::File.exists?(application.launch_agent_path)
|
@@ -300,13 +300,13 @@ describe Akaer::Application do
|
|
300
300
|
|
301
301
|
it "should raise an exception if not running on OSX" do
|
302
302
|
application.stub(:is_osx?).and_return(false)
|
303
|
-
application.logger.should_receive(:fatal).with("
|
303
|
+
application.logger.should_receive(:fatal).with("Installing akaer on autolaunch is only available on MacOSX.")
|
304
304
|
expect(application.action_install).to be_false
|
305
305
|
end
|
306
306
|
end
|
307
307
|
|
308
308
|
describe "#action_uninstall" do
|
309
|
-
if ::
|
309
|
+
if ::RbConfig::CONFIG['host_os'] =~ /^darwin/ then
|
310
310
|
it "should remove the agent" do
|
311
311
|
application.stub(:launch_agent_path).and_return(launch_agent_path)
|
312
312
|
::File.unlink(application.launch_agent_path) if ::File.exists?(application.launch_agent_path)
|
@@ -349,7 +349,7 @@ describe Akaer::Application do
|
|
349
349
|
|
350
350
|
it "should raise an exception if not running on OSX" do
|
351
351
|
application.stub(:is_osx?).and_return(false)
|
352
|
-
application.logger.should_receive(:fatal).with("
|
352
|
+
application.logger.should_receive(:fatal).with("Installing akaer on autolaunch is only available on MacOSX.")
|
353
353
|
expect(application.action_uninstall).to be_false
|
354
354
|
end
|
355
355
|
end
|
@@ -1,6 +1,6 @@
|
|
1
1
|
# encoding: utf-8
|
2
2
|
#
|
3
|
-
# This file is part of the akaer gem. Copyright (C)
|
3
|
+
# This file is part of the akaer gem. Copyright (C) 2013 and above Shogun <shogun_panda@me.com>.
|
4
4
|
# Licensed under the MIT license, which can be found at http://www.opensource.org/licenses/mit-license.php.
|
5
5
|
#
|
6
6
|
|
@@ -14,8 +14,8 @@ describe Akaer::Configuration do
|
|
14
14
|
expect(config.addresses).to eq([])
|
15
15
|
expect(config.start_address).to eq("10.0.0.1")
|
16
16
|
expect(config.aliases).to eq(5)
|
17
|
-
expect(config.add_command).to eq("sudo ifconfig
|
18
|
-
expect(config.remove_command).to eq("sudo ifconfig
|
17
|
+
expect(config.add_command).to eq("sudo ifconfig {{interface}} alias {{alias}}")
|
18
|
+
expect(config.remove_command).to eq("sudo ifconfig {{interface}} -alias {{alias}}")
|
19
19
|
expect(config.log_file).to eq($stdout)
|
20
20
|
expect(config.log_level).to eq(Logger::INFO)
|
21
21
|
end
|
data/spec/coverage_helper.rb
CHANGED
@@ -1,20 +1,17 @@
|
|
1
1
|
# encoding: utf-8
|
2
2
|
#
|
3
|
-
# This file is part of the akaer gem. Copyright (C)
|
3
|
+
# This file is part of the akaer gem. Copyright (C) 2013 and above Shogun <shogun_panda@me.com>.
|
4
4
|
# Licensed under the MIT license, which can be found at http://www.opensource.org/licenses/mit-license.php.
|
5
5
|
#
|
6
6
|
|
7
7
|
require "pathname"
|
8
|
+
require "simplecov"
|
8
9
|
|
9
|
-
|
10
|
-
require "simplecov"
|
11
|
-
|
10
|
+
SimpleCov.start do
|
12
11
|
root = Pathname.new(File.dirname(__FILE__)) + ".."
|
13
12
|
|
14
|
-
|
15
|
-
|
16
|
-
|
17
|
-
path !~ /^(bin|lib)/
|
18
|
-
end
|
13
|
+
add_filter do |src_file|
|
14
|
+
path = Pathname.new(src_file.filename).relative_path_from(root).to_s
|
15
|
+
path !~ /^(bin|lib)/
|
19
16
|
end
|
20
17
|
end
|
data/spec/spec_helper.rb
CHANGED
@@ -1,12 +1,11 @@
|
|
1
1
|
# encoding: utf-8
|
2
2
|
#
|
3
|
-
# This file is part of the akaer gem. Copyright (C)
|
3
|
+
# This file is part of the akaer gem. Copyright (C) 2013 and above Shogun <shogun_panda@me.com>.
|
4
4
|
# Licensed under the MIT license, which can be found at http://www.opensource.org/licenses/mit-license.php.
|
5
5
|
#
|
6
6
|
|
7
7
|
require "rubygems"
|
8
8
|
require "bundler/setup"
|
9
|
-
require "coverage_helper"
|
10
9
|
require "akaer"
|
11
10
|
|
12
11
|
RSpec.configure do |config|
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: akaer
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version:
|
4
|
+
version: 2.0.0
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -9,7 +9,7 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date:
|
12
|
+
date: 2013-02-10 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: mamertes
|
@@ -18,7 +18,7 @@ dependencies:
|
|
18
18
|
requirements:
|
19
19
|
- - ~>
|
20
20
|
- !ruby/object:Gem::Version
|
21
|
-
version:
|
21
|
+
version: 2.0.6
|
22
22
|
type: :runtime
|
23
23
|
prerelease: false
|
24
24
|
version_requirements: !ruby/object:Gem::Requirement
|
@@ -26,119 +26,23 @@ dependencies:
|
|
26
26
|
requirements:
|
27
27
|
- - ~>
|
28
28
|
- !ruby/object:Gem::Version
|
29
|
-
version:
|
29
|
+
version: 2.0.6
|
30
30
|
- !ruby/object:Gem::Dependency
|
31
|
-
name:
|
31
|
+
name: mustache
|
32
32
|
requirement: !ruby/object:Gem::Requirement
|
33
33
|
none: false
|
34
34
|
requirements:
|
35
35
|
- - ~>
|
36
36
|
- !ruby/object:Gem::Version
|
37
|
-
version:
|
38
|
-
type: :
|
39
|
-
prerelease: false
|
40
|
-
version_requirements: !ruby/object:Gem::Requirement
|
41
|
-
none: false
|
42
|
-
requirements:
|
43
|
-
- - ~>
|
44
|
-
- !ruby/object:Gem::Version
|
45
|
-
version: 2.11.0
|
46
|
-
- !ruby/object:Gem::Dependency
|
47
|
-
name: rake
|
48
|
-
requirement: !ruby/object:Gem::Requirement
|
49
|
-
none: false
|
50
|
-
requirements:
|
51
|
-
- - ~>
|
52
|
-
- !ruby/object:Gem::Version
|
53
|
-
version: 0.9.0
|
54
|
-
type: :development
|
55
|
-
prerelease: false
|
56
|
-
version_requirements: !ruby/object:Gem::Requirement
|
57
|
-
none: false
|
58
|
-
requirements:
|
59
|
-
- - ~>
|
60
|
-
- !ruby/object:Gem::Version
|
61
|
-
version: 0.9.0
|
62
|
-
- !ruby/object:Gem::Dependency
|
63
|
-
name: simplecov
|
64
|
-
requirement: !ruby/object:Gem::Requirement
|
65
|
-
none: false
|
66
|
-
requirements:
|
67
|
-
- - ~>
|
68
|
-
- !ruby/object:Gem::Version
|
69
|
-
version: 0.7.0
|
70
|
-
type: :development
|
71
|
-
prerelease: false
|
72
|
-
version_requirements: !ruby/object:Gem::Requirement
|
73
|
-
none: false
|
74
|
-
requirements:
|
75
|
-
- - ~>
|
76
|
-
- !ruby/object:Gem::Version
|
77
|
-
version: 0.7.0
|
78
|
-
- !ruby/object:Gem::Dependency
|
79
|
-
name: pry
|
80
|
-
requirement: !ruby/object:Gem::Requirement
|
81
|
-
none: false
|
82
|
-
requirements:
|
83
|
-
- - ! '>='
|
84
|
-
- !ruby/object:Gem::Version
|
85
|
-
version: '0'
|
86
|
-
type: :development
|
87
|
-
prerelease: false
|
88
|
-
version_requirements: !ruby/object:Gem::Requirement
|
89
|
-
none: false
|
90
|
-
requirements:
|
91
|
-
- - ! '>='
|
92
|
-
- !ruby/object:Gem::Version
|
93
|
-
version: '0'
|
94
|
-
- !ruby/object:Gem::Dependency
|
95
|
-
name: yard
|
96
|
-
requirement: !ruby/object:Gem::Requirement
|
97
|
-
none: false
|
98
|
-
requirements:
|
99
|
-
- - ~>
|
100
|
-
- !ruby/object:Gem::Version
|
101
|
-
version: 0.8.0
|
102
|
-
type: :development
|
103
|
-
prerelease: false
|
104
|
-
version_requirements: !ruby/object:Gem::Requirement
|
105
|
-
none: false
|
106
|
-
requirements:
|
107
|
-
- - ~>
|
108
|
-
- !ruby/object:Gem::Version
|
109
|
-
version: 0.8.0
|
110
|
-
- !ruby/object:Gem::Dependency
|
111
|
-
name: redcarpet
|
112
|
-
requirement: !ruby/object:Gem::Requirement
|
113
|
-
none: false
|
114
|
-
requirements:
|
115
|
-
- - ~>
|
116
|
-
- !ruby/object:Gem::Version
|
117
|
-
version: 2.2.2
|
118
|
-
type: :development
|
119
|
-
prerelease: false
|
120
|
-
version_requirements: !ruby/object:Gem::Requirement
|
121
|
-
none: false
|
122
|
-
requirements:
|
123
|
-
- - ~>
|
124
|
-
- !ruby/object:Gem::Version
|
125
|
-
version: 2.2.2
|
126
|
-
- !ruby/object:Gem::Dependency
|
127
|
-
name: github-markup
|
128
|
-
requirement: !ruby/object:Gem::Requirement
|
129
|
-
none: false
|
130
|
-
requirements:
|
131
|
-
- - ~>
|
132
|
-
- !ruby/object:Gem::Version
|
133
|
-
version: 0.7.0
|
134
|
-
type: :development
|
37
|
+
version: 0.99.4
|
38
|
+
type: :runtime
|
135
39
|
prerelease: false
|
136
40
|
version_requirements: !ruby/object:Gem::Requirement
|
137
41
|
none: false
|
138
42
|
requirements:
|
139
43
|
- - ~>
|
140
44
|
- !ruby/object:Gem::Version
|
141
|
-
version: 0.
|
45
|
+
version: 0.99.4
|
142
46
|
description: A small utility to add aliases to network interfaces.
|
143
47
|
email:
|
144
48
|
- shogun_panda@me.com
|
@@ -148,6 +52,7 @@ extensions: []
|
|
148
52
|
extra_rdoc_files: []
|
149
53
|
files:
|
150
54
|
- .gitignore
|
55
|
+
- .travis-gemfile
|
151
56
|
- .travis.yml
|
152
57
|
- .yardopts
|
153
58
|
- Gemfile
|
@@ -157,12 +62,11 @@ files:
|
|
157
62
|
- bin/akaer
|
158
63
|
- doc/Akaer.html
|
159
64
|
- doc/Akaer/Application.html
|
65
|
+
- doc/Akaer/ApplicationMethods.html
|
66
|
+
- doc/Akaer/ApplicationMethods/General.html
|
67
|
+
- doc/Akaer/ApplicationMethods/System.html
|
160
68
|
- doc/Akaer/Configuration.html
|
161
|
-
- doc/Akaer/Errors.html
|
162
|
-
- doc/Akaer/Errors/InvalidConfiguration.html
|
163
|
-
- doc/Akaer/Logger.html
|
164
69
|
- doc/Akaer/Version.html
|
165
|
-
- doc/Fixnum.html
|
166
70
|
- doc/_index.html
|
167
71
|
- doc/class_list.html
|
168
72
|
- doc/css/common.css
|
@@ -181,11 +85,13 @@ files:
|
|
181
85
|
- lib/akaer/application.rb
|
182
86
|
- lib/akaer/configuration.rb
|
183
87
|
- lib/akaer/version.rb
|
88
|
+
- locales/en.yml
|
89
|
+
- locales/it.yml
|
184
90
|
- spec/akaer/application_spec.rb
|
185
91
|
- spec/akaer/configuration_spec.rb
|
186
92
|
- spec/coverage_helper.rb
|
187
93
|
- spec/spec_helper.rb
|
188
|
-
homepage: http://
|
94
|
+
homepage: http://sw.cow.tc/akaer
|
189
95
|
licenses: []
|
190
96
|
post_install_message:
|
191
97
|
rdoc_options: []
|
@@ -196,10 +102,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
196
102
|
requirements:
|
197
103
|
- - ! '>='
|
198
104
|
- !ruby/object:Gem::Version
|
199
|
-
version:
|
200
|
-
segments:
|
201
|
-
- 0
|
202
|
-
hash: -2005523174660840616
|
105
|
+
version: 1.9.3
|
203
106
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
204
107
|
none: false
|
205
108
|
requirements:
|
@@ -208,10 +111,10 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
208
111
|
version: '0'
|
209
112
|
segments:
|
210
113
|
- 0
|
211
|
-
hash: -
|
114
|
+
hash: -4087462064860462212
|
212
115
|
requirements: []
|
213
116
|
rubyforge_project: akaer
|
214
|
-
rubygems_version: 1.8.
|
117
|
+
rubygems_version: 1.8.25
|
215
118
|
signing_key:
|
216
119
|
specification_version: 3
|
217
120
|
summary: A small utility to add aliases to network interfaces.
|
@@ -1,123 +0,0 @@
|
|
1
|
-
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
|
2
|
-
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
|
3
|
-
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
|
4
|
-
<head>
|
5
|
-
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
|
6
|
-
<title>
|
7
|
-
Exception: Akaer::Errors::InvalidConfiguration
|
8
|
-
|
9
|
-
— Documentation by YARD 0.8.2.1
|
10
|
-
|
11
|
-
</title>
|
12
|
-
|
13
|
-
<link rel="stylesheet" href="../../css/style.css" type="text/css" media="screen" charset="utf-8" />
|
14
|
-
|
15
|
-
<link rel="stylesheet" href="../../css/common.css" type="text/css" media="screen" charset="utf-8" />
|
16
|
-
|
17
|
-
<script type="text/javascript" charset="utf-8">
|
18
|
-
hasFrames = window.top.frames.main ? true : false;
|
19
|
-
relpath = '../../';
|
20
|
-
framesUrl = "../../frames.html#!" + escape(window.location.href);
|
21
|
-
</script>
|
22
|
-
|
23
|
-
|
24
|
-
<script type="text/javascript" charset="utf-8" src="../../js/jquery.js"></script>
|
25
|
-
|
26
|
-
<script type="text/javascript" charset="utf-8" src="../../js/app.js"></script>
|
27
|
-
|
28
|
-
|
29
|
-
</head>
|
30
|
-
<body>
|
31
|
-
<div id="header">
|
32
|
-
<div id="menu">
|
33
|
-
|
34
|
-
<a href="../../_index.html">Index (I)</a> »
|
35
|
-
<span class='title'><span class='object_link'><a href="../../Akaer.html" title="Akaer (module)">Akaer</a></span></span> » <span class='title'><span class='object_link'><a href="../Errors.html" title="Akaer::Errors (module)">Errors</a></span></span>
|
36
|
-
»
|
37
|
-
<span class="title">InvalidConfiguration</span>
|
38
|
-
|
39
|
-
|
40
|
-
<div class="noframes"><span class="title">(</span><a href="." target="_top">no frames</a><span class="title">)</span></div>
|
41
|
-
</div>
|
42
|
-
|
43
|
-
<div id="search">
|
44
|
-
|
45
|
-
<a class="full_list_link" id="class_list_link"
|
46
|
-
href="../../class_list.html">
|
47
|
-
Class List
|
48
|
-
</a>
|
49
|
-
|
50
|
-
<a class="full_list_link" id="method_list_link"
|
51
|
-
href="../../method_list.html">
|
52
|
-
Method List
|
53
|
-
</a>
|
54
|
-
|
55
|
-
<a class="full_list_link" id="file_list_link"
|
56
|
-
href="../../file_list.html">
|
57
|
-
File List
|
58
|
-
</a>
|
59
|
-
|
60
|
-
</div>
|
61
|
-
<div class="clear"></div>
|
62
|
-
</div>
|
63
|
-
|
64
|
-
<iframe id="search_frame"></iframe>
|
65
|
-
|
66
|
-
<div id="content"><h1>Exception: Akaer::Errors::InvalidConfiguration
|
67
|
-
|
68
|
-
|
69
|
-
|
70
|
-
</h1>
|
71
|
-
|
72
|
-
<dl class="box">
|
73
|
-
|
74
|
-
<dt class="r1">Inherits:</dt>
|
75
|
-
<dd class="r1">
|
76
|
-
<span class="inheritName">ArgumentError</span>
|
77
|
-
|
78
|
-
<ul class="fullTree">
|
79
|
-
<li>Object</li>
|
80
|
-
|
81
|
-
<li class="next">ArgumentError</li>
|
82
|
-
|
83
|
-
<li class="next">Akaer::Errors::InvalidConfiguration</li>
|
84
|
-
|
85
|
-
</ul>
|
86
|
-
<a href="#" class="inheritanceTree">show all</a>
|
87
|
-
|
88
|
-
</dd>
|
89
|
-
|
90
|
-
|
91
|
-
|
92
|
-
|
93
|
-
|
94
|
-
|
95
|
-
|
96
|
-
|
97
|
-
|
98
|
-
<dt class="r2 last">Defined in:</dt>
|
99
|
-
<dd class="r2 last">lib/akaer/errors.rb</dd>
|
100
|
-
|
101
|
-
</dl>
|
102
|
-
<div class="clear"></div>
|
103
|
-
|
104
|
-
|
105
|
-
|
106
|
-
|
107
|
-
|
108
|
-
|
109
|
-
|
110
|
-
|
111
|
-
|
112
|
-
|
113
|
-
|
114
|
-
</div>
|
115
|
-
|
116
|
-
<div id="footer">
|
117
|
-
Generated on Tue Jul 24 15:51:18 2012 by
|
118
|
-
<a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
|
119
|
-
0.8.2.1 (ruby-1.9.2).
|
120
|
-
</div>
|
121
|
-
|
122
|
-
</body>
|
123
|
-
</html>
|