csd 0.1.5 → 0.1.6
Sign up to get free protection for your applications and to get access to all the features.
- data/COPYING +1 -2
- data/README.rdoc +7 -1
- data/Rakefile +7 -2
- data/VERSION +1 -1
- data/csd.gemspec +18 -216
- data/lib/csd.rb +6 -16
- data/lib/csd/application.rb +2 -2
- data/lib/csd/application/default.rb +15 -14
- data/lib/csd/application/default/base.rb +1 -1
- data/lib/csd/application/minisip.rb +43 -11
- data/lib/csd/application/minisip/about.yml +5 -5
- data/lib/csd/application/minisip/base.rb +82 -70
- data/lib/csd/application/minisip/error.rb +1 -1
- data/lib/csd/application/minisip/options/common.rb +1 -1
- data/lib/csd/application/minisip/options/compile.rb +1 -1
- data/lib/csd/application/minisip/options/package.rb +1 -1
- data/lib/csd/application/minisip/unix.rb +40 -27
- data/lib/csd/application/minisip/unix/darwin.rb +12 -0
- data/lib/csd/application/minisip/unix/linux.rb +1 -11
- data/lib/csd/application/minisip/unix/linux/debian.rb +14 -25
- data/lib/csd/application/minisip/unix/linux/debian/ubuntu10.rb +12 -13
- data/lib/csd/applications.rb +5 -5
- data/lib/csd/commands.rb +164 -89
- data/lib/csd/container.rb +61 -0
- data/lib/csd/error.rb +10 -1
- data/lib/csd/extensions.rb +3 -2
- data/lib/csd/extensions/core/array.rb +29 -1
- data/lib/csd/extensions/core/dir.rb +15 -24
- data/lib/csd/extensions/core/object.rb +10 -2
- data/lib/csd/extensions/core/option_parser.rb +22 -3
- data/lib/csd/extensions/core/pathname.rb +30 -2
- data/lib/csd/extensions/core/string.rb +51 -4
- data/lib/csd/extensions/gem/platform.rb +18 -3
- data/lib/csd/{options.rb → options_parser.rb} +16 -20
- data/lib/csd/path_container.rb +24 -0
- data/lib/csd/user_interface.rb +2 -0
- data/lib/csd/user_interface/base.rb +26 -0
- data/lib/csd/user_interface/cli.rb +37 -0
- data/lib/csd/vendor/active_support/MIT-LICENSE +20 -0
- data/lib/csd/vendor/active_support/inflector.rb +155 -0
- data/lib/csd/vendor/term/GPL2-LICENSE +339 -0
- data/lib/csd/vendor/term/ansicolor.rb +113 -0
- data/lib/csd/version.rb +13 -4
- data/test/application/test_minisip.rb +45 -0
- data/test/functional/test_applications.rb +10 -16
- data/test/functional/test_commands.rb +260 -23
- data/test/unit/test_string.rb +1 -1
- metadata +18 -216
- data/lib/active_support.rb +0 -75
- data/lib/active_support/all.rb +0 -3
- data/lib/active_support/backtrace_cleaner.rb +0 -94
- data/lib/active_support/base64.rb +0 -42
- data/lib/active_support/basic_object.rb +0 -21
- data/lib/active_support/benchmarkable.rb +0 -60
- data/lib/active_support/buffered_logger.rb +0 -132
- data/lib/active_support/builder.rb +0 -6
- data/lib/active_support/cache.rb +0 -626
- data/lib/active_support/cache/compressed_mem_cache_store.rb +0 -13
- data/lib/active_support/cache/file_store.rb +0 -188
- data/lib/active_support/cache/mem_cache_store.rb +0 -191
- data/lib/active_support/cache/memory_store.rb +0 -159
- data/lib/active_support/cache/strategy/local_cache.rb +0 -164
- data/lib/active_support/cache/synchronized_memory_store.rb +0 -11
- data/lib/active_support/callbacks.rb +0 -600
- data/lib/active_support/concern.rb +0 -29
- data/lib/active_support/configurable.rb +0 -36
- data/lib/active_support/core_ext.rb +0 -3
- data/lib/active_support/core_ext/array.rb +0 -7
- data/lib/active_support/core_ext/array/access.rb +0 -46
- data/lib/active_support/core_ext/array/conversions.rb +0 -164
- data/lib/active_support/core_ext/array/extract_options.rb +0 -29
- data/lib/active_support/core_ext/array/grouping.rb +0 -100
- data/lib/active_support/core_ext/array/random_access.rb +0 -20
- data/lib/active_support/core_ext/array/uniq_by.rb +0 -17
- data/lib/active_support/core_ext/array/wrap.rb +0 -22
- data/lib/active_support/core_ext/benchmark.rb +0 -7
- data/lib/active_support/core_ext/big_decimal.rb +0 -1
- data/lib/active_support/core_ext/big_decimal/conversions.rb +0 -27
- data/lib/active_support/core_ext/cgi.rb +0 -1
- data/lib/active_support/core_ext/cgi/escape_skipping_slashes.rb +0 -19
- data/lib/active_support/core_ext/class.rb +0 -4
- data/lib/active_support/core_ext/class/attribute.rb +0 -67
- data/lib/active_support/core_ext/class/attribute_accessors.rb +0 -63
- data/lib/active_support/core_ext/class/delegating_attributes.rb +0 -44
- data/lib/active_support/core_ext/class/inheritable_attributes.rb +0 -232
- data/lib/active_support/core_ext/class/subclasses.rb +0 -55
- data/lib/active_support/core_ext/date/acts_like.rb +0 -8
- data/lib/active_support/core_ext/date/calculations.rb +0 -240
- data/lib/active_support/core_ext/date/conversions.rb +0 -99
- data/lib/active_support/core_ext/date/freeze.rb +0 -31
- data/lib/active_support/core_ext/date_time/acts_like.rb +0 -13
- data/lib/active_support/core_ext/date_time/calculations.rb +0 -113
- data/lib/active_support/core_ext/date_time/conversions.rb +0 -102
- data/lib/active_support/core_ext/date_time/zones.rb +0 -17
- data/lib/active_support/core_ext/enumerable.rb +0 -119
- data/lib/active_support/core_ext/exception.rb +0 -3
- data/lib/active_support/core_ext/file.rb +0 -2
- data/lib/active_support/core_ext/file/atomic.rb +0 -41
- data/lib/active_support/core_ext/file/path.rb +0 -5
- data/lib/active_support/core_ext/float.rb +0 -1
- data/lib/active_support/core_ext/float/rounding.rb +0 -19
- data/lib/active_support/core_ext/hash.rb +0 -8
- data/lib/active_support/core_ext/hash/conversions.rb +0 -150
- data/lib/active_support/core_ext/hash/deep_merge.rb +0 -16
- data/lib/active_support/core_ext/hash/diff.rb +0 -13
- data/lib/active_support/core_ext/hash/except.rb +0 -24
- data/lib/active_support/core_ext/hash/indifferent_access.rb +0 -14
- data/lib/active_support/core_ext/hash/keys.rb +0 -45
- data/lib/active_support/core_ext/hash/reverse_merge.rb +0 -28
- data/lib/active_support/core_ext/hash/slice.rb +0 -38
- data/lib/active_support/core_ext/integer.rb +0 -3
- data/lib/active_support/core_ext/integer/inflections.rb +0 -14
- data/lib/active_support/core_ext/integer/multiple.rb +0 -6
- data/lib/active_support/core_ext/integer/time.rb +0 -39
- data/lib/active_support/core_ext/kernel.rb +0 -5
- data/lib/active_support/core_ext/kernel/agnostics.rb +0 -11
- data/lib/active_support/core_ext/kernel/debugger.rb +0 -16
- data/lib/active_support/core_ext/kernel/reporting.rb +0 -62
- data/lib/active_support/core_ext/kernel/requires.rb +0 -26
- data/lib/active_support/core_ext/kernel/singleton_class.rb +0 -13
- data/lib/active_support/core_ext/load_error.rb +0 -23
- data/lib/active_support/core_ext/logger.rb +0 -146
- data/lib/active_support/core_ext/module.rb +0 -12
- data/lib/active_support/core_ext/module/aliasing.rb +0 -70
- data/lib/active_support/core_ext/module/anonymous.rb +0 -24
- data/lib/active_support/core_ext/module/attr_accessor_with_default.rb +0 -31
- data/lib/active_support/core_ext/module/attr_internal.rb +0 -32
- data/lib/active_support/core_ext/module/attribute_accessors.rb +0 -66
- data/lib/active_support/core_ext/module/delegation.rb +0 -146
- data/lib/active_support/core_ext/module/deprecation.rb +0 -9
- data/lib/active_support/core_ext/module/introspection.rb +0 -88
- data/lib/active_support/core_ext/module/method_names.rb +0 -14
- data/lib/active_support/core_ext/module/reachable.rb +0 -10
- data/lib/active_support/core_ext/module/remove_method.rb +0 -6
- data/lib/active_support/core_ext/module/synchronization.rb +0 -42
- data/lib/active_support/core_ext/name_error.rb +0 -18
- data/lib/active_support/core_ext/numeric.rb +0 -2
- data/lib/active_support/core_ext/numeric/bytes.rb +0 -44
- data/lib/active_support/core_ext/numeric/time.rb +0 -77
- data/lib/active_support/core_ext/object.rb +0 -14
- data/lib/active_support/core_ext/object/acts_like.rb +0 -10
- data/lib/active_support/core_ext/object/blank.rb +0 -76
- data/lib/active_support/core_ext/object/conversions.rb +0 -4
- data/lib/active_support/core_ext/object/duplicable.rb +0 -65
- data/lib/active_support/core_ext/object/extending.rb +0 -11
- data/lib/active_support/core_ext/object/instance_variables.rb +0 -67
- data/lib/active_support/core_ext/object/misc.rb +0 -2
- data/lib/active_support/core_ext/object/returning.rb +0 -42
- data/lib/active_support/core_ext/object/to_param.rb +0 -49
- data/lib/active_support/core_ext/object/to_query.rb +0 -27
- data/lib/active_support/core_ext/object/try.rb +0 -36
- data/lib/active_support/core_ext/object/with_options.rb +0 -26
- data/lib/active_support/core_ext/proc.rb +0 -14
- data/lib/active_support/core_ext/process.rb +0 -1
- data/lib/active_support/core_ext/process/daemon.rb +0 -23
- data/lib/active_support/core_ext/range.rb +0 -4
- data/lib/active_support/core_ext/range/blockless_step.rb +0 -29
- data/lib/active_support/core_ext/range/conversions.rb +0 -21
- data/lib/active_support/core_ext/range/include_range.rb +0 -21
- data/lib/active_support/core_ext/range/overlaps.rb +0 -8
- data/lib/active_support/core_ext/regexp.rb +0 -5
- data/lib/active_support/core_ext/rexml.rb +0 -46
- data/lib/active_support/core_ext/string.rb +0 -12
- data/lib/active_support/core_ext/string/access.rb +0 -99
- data/lib/active_support/core_ext/string/behavior.rb +0 -7
- data/lib/active_support/core_ext/string/conversions.rb +0 -61
- data/lib/active_support/core_ext/string/encoding.rb +0 -11
- data/lib/active_support/core_ext/string/exclude.rb +0 -6
- data/lib/active_support/core_ext/string/filters.rb +0 -49
- data/lib/active_support/core_ext/string/inflections.rb +0 -149
- data/lib/active_support/core_ext/string/interpolation.rb +0 -2
- data/lib/active_support/core_ext/string/multibyte.rb +0 -72
- data/lib/active_support/core_ext/string/output_safety.rb +0 -109
- data/lib/active_support/core_ext/string/starts_ends_with.rb +0 -4
- data/lib/active_support/core_ext/string/xchar.rb +0 -18
- data/lib/active_support/core_ext/time/acts_like.rb +0 -8
- data/lib/active_support/core_ext/time/calculations.rb +0 -282
- data/lib/active_support/core_ext/time/conversions.rb +0 -85
- data/lib/active_support/core_ext/time/marshal.rb +0 -56
- data/lib/active_support/core_ext/time/publicize_conversion_methods.rb +0 -10
- data/lib/active_support/core_ext/time/zones.rb +0 -78
- data/lib/active_support/core_ext/uri.rb +0 -22
- data/lib/active_support/dependencies.rb +0 -628
- data/lib/active_support/dependencies/autoload.rb +0 -50
- data/lib/active_support/deprecation.rb +0 -18
- data/lib/active_support/deprecation/behaviors.rb +0 -38
- data/lib/active_support/deprecation/method_wrappers.rb +0 -29
- data/lib/active_support/deprecation/proxy_wrappers.rb +0 -74
- data/lib/active_support/deprecation/reporting.rb +0 -56
- data/lib/active_support/duration.rb +0 -105
- data/lib/active_support/gzip.rb +0 -25
- data/lib/active_support/hash_with_indifferent_access.rb +0 -145
- data/lib/active_support/i18n.rb +0 -8
- data/lib/active_support/inflections.rb +0 -56
- data/lib/active_support/inflector.rb +0 -7
- data/lib/active_support/inflector/inflections.rb +0 -211
- data/lib/active_support/inflector/methods.rb +0 -141
- data/lib/active_support/inflector/transliterate.rb +0 -97
- data/lib/active_support/json.rb +0 -2
- data/lib/active_support/json/backends/jsongem.rb +0 -43
- data/lib/active_support/json/backends/yajl.rb +0 -40
- data/lib/active_support/json/backends/yaml.rb +0 -90
- data/lib/active_support/json/decoding.rb +0 -51
- data/lib/active_support/json/encoding.rb +0 -254
- data/lib/active_support/json/variable.rb +0 -11
- data/lib/active_support/lazy_load_hooks.rb +0 -27
- data/lib/active_support/locale/en.yml +0 -36
- data/lib/active_support/memoizable.rb +0 -103
- data/lib/active_support/message_encryptor.rb +0 -71
- data/lib/active_support/message_verifier.rb +0 -62
- data/lib/active_support/multibyte.rb +0 -44
- data/lib/active_support/multibyte/chars.rb +0 -480
- data/lib/active_support/multibyte/exceptions.rb +0 -8
- data/lib/active_support/multibyte/unicode.rb +0 -393
- data/lib/active_support/multibyte/utils.rb +0 -60
- data/lib/active_support/notifications.rb +0 -81
- data/lib/active_support/notifications/fanout.rb +0 -93
- data/lib/active_support/notifications/instrumenter.rb +0 -56
- data/lib/active_support/option_merger.rb +0 -25
- data/lib/active_support/ordered_hash.rb +0 -158
- data/lib/active_support/ordered_options.rb +0 -27
- data/lib/active_support/railtie.rb +0 -100
- data/lib/active_support/rescuable.rb +0 -114
- data/lib/active_support/ruby/shim.rb +0 -22
- data/lib/active_support/secure_random.rb +0 -199
- data/lib/active_support/string_inquirer.rb +0 -21
- data/lib/active_support/test_case.rb +0 -42
- data/lib/active_support/testing/assertions.rb +0 -82
- data/lib/active_support/testing/declarative.rb +0 -40
- data/lib/active_support/testing/default.rb +0 -9
- data/lib/active_support/testing/deprecation.rb +0 -55
- data/lib/active_support/testing/isolation.rb +0 -154
- data/lib/active_support/testing/pending.rb +0 -48
- data/lib/active_support/testing/performance.rb +0 -455
- data/lib/active_support/testing/setup_and_teardown.rb +0 -111
- data/lib/active_support/time.rb +0 -34
- data/lib/active_support/time/autoload.rb +0 -5
- data/lib/active_support/time_with_zone.rb +0 -341
- data/lib/active_support/values/time_zone.rb +0 -377
- data/lib/active_support/values/unicode_tables.dat +0 -0
- data/lib/active_support/version.rb +0 -10
- data/lib/active_support/whiny_nil.rb +0 -60
- data/lib/active_support/xml_mini.rb +0 -158
- data/lib/active_support/xml_mini/jdom.rb +0 -168
- data/lib/active_support/xml_mini/libxml.rb +0 -80
- data/lib/active_support/xml_mini/libxmlsax.rb +0 -85
- data/lib/active_support/xml_mini/nokogiri.rb +0 -78
- data/lib/active_support/xml_mini/nokogirisax.rb +0 -83
- data/lib/active_support/xml_mini/rexml.rb +0 -129
- data/lib/csd/extensions/core/file.rb +0 -14
- data/lib/csd/global_open_struct.rb +0 -19
- data/lib/csd/path.rb +0 -32
- data/lib/csd/ui.rb +0 -2
- data/lib/csd/ui/cli.rb +0 -8
- data/lib/csd/ui/ui.rb +0 -45
- data/lib/term/ansicolor.rb +0 -102
- data/lib/term/ansicolor/.keep +0 -0
- data/lib/term/ansicolor/version.rb +0 -10
data/COPYING
CHANGED
@@ -1,8 +1,7 @@
|
|
1
1
|
Copyright (C) Communication Systems Design
|
2
2
|
|
3
3
|
"CSD gem" refers to every file in this software, except the
|
4
|
-
|
5
|
-
"lib/active_support" and "lib/term" and their contents, respectively.
|
4
|
+
directory "lib/vendor" and its sub-directories, respectively.
|
6
5
|
|
7
6
|
The CSD gem is free software; you can redistribute it and/or
|
8
7
|
modify it under the terms of the GNU General Public License
|
data/README.rdoc
CHANGED
data/Rakefile
CHANGED
@@ -19,8 +19,8 @@ begin
|
|
19
19
|
|
20
20
|
You can run it by typing `ai´ in your command line.
|
21
21
|
|
22
|
-
Note: On Debian and Ubuntu the executable `ai´ is not in your PATH by default.
|
23
|
-
|
22
|
+
Note: On Debian and Ubuntu the executable `ai´ is maybe not in your PATH by default.
|
23
|
+
If that is the case, you can fix it by running this command:
|
24
24
|
|
25
25
|
echo "export PATH=\$PATH:$(gem env | grep "E D" | sed "s/[^\w]* //")" >> ~/.bashrc;. ~/.bashrc
|
26
26
|
|
@@ -33,6 +33,11 @@ end
|
|
33
33
|
|
34
34
|
require 'rake/testtask'
|
35
35
|
Rake::TestTask.new(:test) do |test|
|
36
|
+
test.libs << 'lib' << 'test'
|
37
|
+
test.test_files = FileList['test/functional/**/test*.rb', 'test/unit/**/test_*.rb']
|
38
|
+
end
|
39
|
+
|
40
|
+
Rake::TestTask.new('test:all') do |test|
|
36
41
|
test.libs << 'lib' << 'test'
|
37
42
|
test.pattern = 'test/**/test_*.rb'
|
38
43
|
test.verbose = true
|
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
0.1.
|
1
|
+
0.1.6
|
data/csd.gemspec
CHANGED
@@ -5,11 +5,11 @@
|
|
5
5
|
|
6
6
|
Gem::Specification.new do |s|
|
7
7
|
s.name = %q{csd}
|
8
|
-
s.version = "0.1.
|
8
|
+
s.version = "0.1.6"
|
9
9
|
|
10
10
|
s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
|
11
11
|
s.authors = ["Technology Transfer Alliance Team"]
|
12
|
-
s.date = %q{2010-07-
|
12
|
+
s.date = %q{2010-07-20}
|
13
13
|
s.default_executable = %q{ai}
|
14
14
|
s.description = %q{CSD stands for Communication Systems Design and is a project of the Telecommunication Systems Laboratory (TSLab) of the Royal Institute of Technology in Stockholm, Sweden. Within CSD many software tools are used to build up various networks and services. This gem is supposed to automate processes to handle the compilation and installation of these software tools. Technology Transfer Alliance (TTA) is the project team, which maintains this code.}
|
15
15
|
s.email = %q{mtoday11@gmail.com}
|
@@ -26,207 +26,6 @@ Gem::Specification.new do |s|
|
|
26
26
|
"VERSION",
|
27
27
|
"bin/ai",
|
28
28
|
"csd.gemspec",
|
29
|
-
"lib/active_support.rb",
|
30
|
-
"lib/active_support/all.rb",
|
31
|
-
"lib/active_support/backtrace_cleaner.rb",
|
32
|
-
"lib/active_support/base64.rb",
|
33
|
-
"lib/active_support/basic_object.rb",
|
34
|
-
"lib/active_support/benchmarkable.rb",
|
35
|
-
"lib/active_support/buffered_logger.rb",
|
36
|
-
"lib/active_support/builder.rb",
|
37
|
-
"lib/active_support/cache.rb",
|
38
|
-
"lib/active_support/cache/compressed_mem_cache_store.rb",
|
39
|
-
"lib/active_support/cache/file_store.rb",
|
40
|
-
"lib/active_support/cache/mem_cache_store.rb",
|
41
|
-
"lib/active_support/cache/memory_store.rb",
|
42
|
-
"lib/active_support/cache/strategy/local_cache.rb",
|
43
|
-
"lib/active_support/cache/synchronized_memory_store.rb",
|
44
|
-
"lib/active_support/callbacks.rb",
|
45
|
-
"lib/active_support/concern.rb",
|
46
|
-
"lib/active_support/configurable.rb",
|
47
|
-
"lib/active_support/core_ext.rb",
|
48
|
-
"lib/active_support/core_ext/array.rb",
|
49
|
-
"lib/active_support/core_ext/array/access.rb",
|
50
|
-
"lib/active_support/core_ext/array/conversions.rb",
|
51
|
-
"lib/active_support/core_ext/array/extract_options.rb",
|
52
|
-
"lib/active_support/core_ext/array/grouping.rb",
|
53
|
-
"lib/active_support/core_ext/array/random_access.rb",
|
54
|
-
"lib/active_support/core_ext/array/uniq_by.rb",
|
55
|
-
"lib/active_support/core_ext/array/wrap.rb",
|
56
|
-
"lib/active_support/core_ext/benchmark.rb",
|
57
|
-
"lib/active_support/core_ext/big_decimal.rb",
|
58
|
-
"lib/active_support/core_ext/big_decimal/conversions.rb",
|
59
|
-
"lib/active_support/core_ext/cgi.rb",
|
60
|
-
"lib/active_support/core_ext/cgi/escape_skipping_slashes.rb",
|
61
|
-
"lib/active_support/core_ext/class.rb",
|
62
|
-
"lib/active_support/core_ext/class/attribute.rb",
|
63
|
-
"lib/active_support/core_ext/class/attribute_accessors.rb",
|
64
|
-
"lib/active_support/core_ext/class/delegating_attributes.rb",
|
65
|
-
"lib/active_support/core_ext/class/inheritable_attributes.rb",
|
66
|
-
"lib/active_support/core_ext/class/subclasses.rb",
|
67
|
-
"lib/active_support/core_ext/date/acts_like.rb",
|
68
|
-
"lib/active_support/core_ext/date/calculations.rb",
|
69
|
-
"lib/active_support/core_ext/date/conversions.rb",
|
70
|
-
"lib/active_support/core_ext/date/freeze.rb",
|
71
|
-
"lib/active_support/core_ext/date_time/acts_like.rb",
|
72
|
-
"lib/active_support/core_ext/date_time/calculations.rb",
|
73
|
-
"lib/active_support/core_ext/date_time/conversions.rb",
|
74
|
-
"lib/active_support/core_ext/date_time/zones.rb",
|
75
|
-
"lib/active_support/core_ext/enumerable.rb",
|
76
|
-
"lib/active_support/core_ext/exception.rb",
|
77
|
-
"lib/active_support/core_ext/file.rb",
|
78
|
-
"lib/active_support/core_ext/file/atomic.rb",
|
79
|
-
"lib/active_support/core_ext/file/path.rb",
|
80
|
-
"lib/active_support/core_ext/float.rb",
|
81
|
-
"lib/active_support/core_ext/float/rounding.rb",
|
82
|
-
"lib/active_support/core_ext/hash.rb",
|
83
|
-
"lib/active_support/core_ext/hash/conversions.rb",
|
84
|
-
"lib/active_support/core_ext/hash/deep_merge.rb",
|
85
|
-
"lib/active_support/core_ext/hash/diff.rb",
|
86
|
-
"lib/active_support/core_ext/hash/except.rb",
|
87
|
-
"lib/active_support/core_ext/hash/indifferent_access.rb",
|
88
|
-
"lib/active_support/core_ext/hash/keys.rb",
|
89
|
-
"lib/active_support/core_ext/hash/reverse_merge.rb",
|
90
|
-
"lib/active_support/core_ext/hash/slice.rb",
|
91
|
-
"lib/active_support/core_ext/integer.rb",
|
92
|
-
"lib/active_support/core_ext/integer/inflections.rb",
|
93
|
-
"lib/active_support/core_ext/integer/multiple.rb",
|
94
|
-
"lib/active_support/core_ext/integer/time.rb",
|
95
|
-
"lib/active_support/core_ext/kernel.rb",
|
96
|
-
"lib/active_support/core_ext/kernel/agnostics.rb",
|
97
|
-
"lib/active_support/core_ext/kernel/debugger.rb",
|
98
|
-
"lib/active_support/core_ext/kernel/reporting.rb",
|
99
|
-
"lib/active_support/core_ext/kernel/requires.rb",
|
100
|
-
"lib/active_support/core_ext/kernel/singleton_class.rb",
|
101
|
-
"lib/active_support/core_ext/load_error.rb",
|
102
|
-
"lib/active_support/core_ext/logger.rb",
|
103
|
-
"lib/active_support/core_ext/module.rb",
|
104
|
-
"lib/active_support/core_ext/module/aliasing.rb",
|
105
|
-
"lib/active_support/core_ext/module/anonymous.rb",
|
106
|
-
"lib/active_support/core_ext/module/attr_accessor_with_default.rb",
|
107
|
-
"lib/active_support/core_ext/module/attr_internal.rb",
|
108
|
-
"lib/active_support/core_ext/module/attribute_accessors.rb",
|
109
|
-
"lib/active_support/core_ext/module/delegation.rb",
|
110
|
-
"lib/active_support/core_ext/module/deprecation.rb",
|
111
|
-
"lib/active_support/core_ext/module/introspection.rb",
|
112
|
-
"lib/active_support/core_ext/module/method_names.rb",
|
113
|
-
"lib/active_support/core_ext/module/reachable.rb",
|
114
|
-
"lib/active_support/core_ext/module/remove_method.rb",
|
115
|
-
"lib/active_support/core_ext/module/synchronization.rb",
|
116
|
-
"lib/active_support/core_ext/name_error.rb",
|
117
|
-
"lib/active_support/core_ext/numeric.rb",
|
118
|
-
"lib/active_support/core_ext/numeric/bytes.rb",
|
119
|
-
"lib/active_support/core_ext/numeric/time.rb",
|
120
|
-
"lib/active_support/core_ext/object.rb",
|
121
|
-
"lib/active_support/core_ext/object/acts_like.rb",
|
122
|
-
"lib/active_support/core_ext/object/blank.rb",
|
123
|
-
"lib/active_support/core_ext/object/conversions.rb",
|
124
|
-
"lib/active_support/core_ext/object/duplicable.rb",
|
125
|
-
"lib/active_support/core_ext/object/extending.rb",
|
126
|
-
"lib/active_support/core_ext/object/instance_variables.rb",
|
127
|
-
"lib/active_support/core_ext/object/misc.rb",
|
128
|
-
"lib/active_support/core_ext/object/returning.rb",
|
129
|
-
"lib/active_support/core_ext/object/to_param.rb",
|
130
|
-
"lib/active_support/core_ext/object/to_query.rb",
|
131
|
-
"lib/active_support/core_ext/object/try.rb",
|
132
|
-
"lib/active_support/core_ext/object/with_options.rb",
|
133
|
-
"lib/active_support/core_ext/proc.rb",
|
134
|
-
"lib/active_support/core_ext/process.rb",
|
135
|
-
"lib/active_support/core_ext/process/daemon.rb",
|
136
|
-
"lib/active_support/core_ext/range.rb",
|
137
|
-
"lib/active_support/core_ext/range/blockless_step.rb",
|
138
|
-
"lib/active_support/core_ext/range/conversions.rb",
|
139
|
-
"lib/active_support/core_ext/range/include_range.rb",
|
140
|
-
"lib/active_support/core_ext/range/overlaps.rb",
|
141
|
-
"lib/active_support/core_ext/regexp.rb",
|
142
|
-
"lib/active_support/core_ext/rexml.rb",
|
143
|
-
"lib/active_support/core_ext/string.rb",
|
144
|
-
"lib/active_support/core_ext/string/access.rb",
|
145
|
-
"lib/active_support/core_ext/string/behavior.rb",
|
146
|
-
"lib/active_support/core_ext/string/conversions.rb",
|
147
|
-
"lib/active_support/core_ext/string/encoding.rb",
|
148
|
-
"lib/active_support/core_ext/string/exclude.rb",
|
149
|
-
"lib/active_support/core_ext/string/filters.rb",
|
150
|
-
"lib/active_support/core_ext/string/inflections.rb",
|
151
|
-
"lib/active_support/core_ext/string/interpolation.rb",
|
152
|
-
"lib/active_support/core_ext/string/multibyte.rb",
|
153
|
-
"lib/active_support/core_ext/string/output_safety.rb",
|
154
|
-
"lib/active_support/core_ext/string/starts_ends_with.rb",
|
155
|
-
"lib/active_support/core_ext/string/xchar.rb",
|
156
|
-
"lib/active_support/core_ext/time/acts_like.rb",
|
157
|
-
"lib/active_support/core_ext/time/calculations.rb",
|
158
|
-
"lib/active_support/core_ext/time/conversions.rb",
|
159
|
-
"lib/active_support/core_ext/time/marshal.rb",
|
160
|
-
"lib/active_support/core_ext/time/publicize_conversion_methods.rb",
|
161
|
-
"lib/active_support/core_ext/time/zones.rb",
|
162
|
-
"lib/active_support/core_ext/uri.rb",
|
163
|
-
"lib/active_support/dependencies.rb",
|
164
|
-
"lib/active_support/dependencies/autoload.rb",
|
165
|
-
"lib/active_support/deprecation.rb",
|
166
|
-
"lib/active_support/deprecation/behaviors.rb",
|
167
|
-
"lib/active_support/deprecation/method_wrappers.rb",
|
168
|
-
"lib/active_support/deprecation/proxy_wrappers.rb",
|
169
|
-
"lib/active_support/deprecation/reporting.rb",
|
170
|
-
"lib/active_support/duration.rb",
|
171
|
-
"lib/active_support/gzip.rb",
|
172
|
-
"lib/active_support/hash_with_indifferent_access.rb",
|
173
|
-
"lib/active_support/i18n.rb",
|
174
|
-
"lib/active_support/inflections.rb",
|
175
|
-
"lib/active_support/inflector.rb",
|
176
|
-
"lib/active_support/inflector/inflections.rb",
|
177
|
-
"lib/active_support/inflector/methods.rb",
|
178
|
-
"lib/active_support/inflector/transliterate.rb",
|
179
|
-
"lib/active_support/json.rb",
|
180
|
-
"lib/active_support/json/backends/jsongem.rb",
|
181
|
-
"lib/active_support/json/backends/yajl.rb",
|
182
|
-
"lib/active_support/json/backends/yaml.rb",
|
183
|
-
"lib/active_support/json/decoding.rb",
|
184
|
-
"lib/active_support/json/encoding.rb",
|
185
|
-
"lib/active_support/json/variable.rb",
|
186
|
-
"lib/active_support/lazy_load_hooks.rb",
|
187
|
-
"lib/active_support/locale/en.yml",
|
188
|
-
"lib/active_support/memoizable.rb",
|
189
|
-
"lib/active_support/message_encryptor.rb",
|
190
|
-
"lib/active_support/message_verifier.rb",
|
191
|
-
"lib/active_support/multibyte.rb",
|
192
|
-
"lib/active_support/multibyte/chars.rb",
|
193
|
-
"lib/active_support/multibyte/exceptions.rb",
|
194
|
-
"lib/active_support/multibyte/unicode.rb",
|
195
|
-
"lib/active_support/multibyte/utils.rb",
|
196
|
-
"lib/active_support/notifications.rb",
|
197
|
-
"lib/active_support/notifications/fanout.rb",
|
198
|
-
"lib/active_support/notifications/instrumenter.rb",
|
199
|
-
"lib/active_support/option_merger.rb",
|
200
|
-
"lib/active_support/ordered_hash.rb",
|
201
|
-
"lib/active_support/ordered_options.rb",
|
202
|
-
"lib/active_support/railtie.rb",
|
203
|
-
"lib/active_support/rescuable.rb",
|
204
|
-
"lib/active_support/ruby/shim.rb",
|
205
|
-
"lib/active_support/secure_random.rb",
|
206
|
-
"lib/active_support/string_inquirer.rb",
|
207
|
-
"lib/active_support/test_case.rb",
|
208
|
-
"lib/active_support/testing/assertions.rb",
|
209
|
-
"lib/active_support/testing/declarative.rb",
|
210
|
-
"lib/active_support/testing/default.rb",
|
211
|
-
"lib/active_support/testing/deprecation.rb",
|
212
|
-
"lib/active_support/testing/isolation.rb",
|
213
|
-
"lib/active_support/testing/pending.rb",
|
214
|
-
"lib/active_support/testing/performance.rb",
|
215
|
-
"lib/active_support/testing/setup_and_teardown.rb",
|
216
|
-
"lib/active_support/time.rb",
|
217
|
-
"lib/active_support/time/autoload.rb",
|
218
|
-
"lib/active_support/time_with_zone.rb",
|
219
|
-
"lib/active_support/values/time_zone.rb",
|
220
|
-
"lib/active_support/values/unicode_tables.dat",
|
221
|
-
"lib/active_support/version.rb",
|
222
|
-
"lib/active_support/whiny_nil.rb",
|
223
|
-
"lib/active_support/xml_mini.rb",
|
224
|
-
"lib/active_support/xml_mini/jdom.rb",
|
225
|
-
"lib/active_support/xml_mini/libxml.rb",
|
226
|
-
"lib/active_support/xml_mini/libxmlsax.rb",
|
227
|
-
"lib/active_support/xml_mini/nokogiri.rb",
|
228
|
-
"lib/active_support/xml_mini/nokogirisax.rb",
|
229
|
-
"lib/active_support/xml_mini/rexml.rb",
|
230
29
|
"lib/csd.rb",
|
231
30
|
"lib/csd/application.rb",
|
232
31
|
"lib/csd/application/default.rb",
|
@@ -239,32 +38,34 @@ Gem::Specification.new do |s|
|
|
239
38
|
"lib/csd/application/minisip/options/compile.rb",
|
240
39
|
"lib/csd/application/minisip/options/package.rb",
|
241
40
|
"lib/csd/application/minisip/unix.rb",
|
41
|
+
"lib/csd/application/minisip/unix/darwin.rb",
|
242
42
|
"lib/csd/application/minisip/unix/linux.rb",
|
243
43
|
"lib/csd/application/minisip/unix/linux/debian.rb",
|
244
44
|
"lib/csd/application/minisip/unix/linux/debian/ubuntu10.rb",
|
245
45
|
"lib/csd/application/opensips/about.yml",
|
246
46
|
"lib/csd/applications.rb",
|
247
47
|
"lib/csd/commands.rb",
|
48
|
+
"lib/csd/container.rb",
|
248
49
|
"lib/csd/error.rb",
|
249
50
|
"lib/csd/extensions.rb",
|
250
51
|
"lib/csd/extensions/core/array.rb",
|
251
52
|
"lib/csd/extensions/core/dir.rb",
|
252
|
-
"lib/csd/extensions/core/file.rb",
|
253
53
|
"lib/csd/extensions/core/object.rb",
|
254
54
|
"lib/csd/extensions/core/option_parser.rb",
|
255
55
|
"lib/csd/extensions/core/pathname.rb",
|
256
56
|
"lib/csd/extensions/core/string.rb",
|
257
57
|
"lib/csd/extensions/gem/platform.rb",
|
258
|
-
"lib/csd/
|
259
|
-
"lib/csd/
|
260
|
-
"lib/csd/
|
261
|
-
"lib/csd/
|
262
|
-
"lib/csd/
|
263
|
-
"lib/csd/
|
58
|
+
"lib/csd/options_parser.rb",
|
59
|
+
"lib/csd/path_container.rb",
|
60
|
+
"lib/csd/user_interface.rb",
|
61
|
+
"lib/csd/user_interface/base.rb",
|
62
|
+
"lib/csd/user_interface/cli.rb",
|
63
|
+
"lib/csd/vendor/active_support/MIT-LICENSE",
|
64
|
+
"lib/csd/vendor/active_support/inflector.rb",
|
65
|
+
"lib/csd/vendor/term/GPL2-LICENSE",
|
66
|
+
"lib/csd/vendor/term/ansicolor.rb",
|
264
67
|
"lib/csd/version.rb",
|
265
|
-
"
|
266
|
-
"lib/term/ansicolor/.keep",
|
267
|
-
"lib/term/ansicolor/version.rb",
|
68
|
+
"test/application/test_minisip.rb",
|
268
69
|
"test/functional/test_applications.rb",
|
269
70
|
"test/functional/test_commands.rb",
|
270
71
|
"test/functional/test_options.rb",
|
@@ -281,8 +82,8 @@ Gem::Specification.new do |s|
|
|
281
82
|
|
282
83
|
You can run it by typing `ai´ in your command line.
|
283
84
|
|
284
|
-
Note: On Debian and Ubuntu the executable `ai´ is not in your PATH by default.
|
285
|
-
|
85
|
+
Note: On Debian and Ubuntu the executable `ai´ is maybe not in your PATH by default.
|
86
|
+
If that is the case, you can fix it by running this command:
|
286
87
|
|
287
88
|
echo "export PATH=\$PATH:$(gem env | grep "E D" | sed "s/[^\w]* //")" >> ~/.bashrc;. ~/.bashrc
|
288
89
|
|
@@ -293,7 +94,8 @@ Gem::Specification.new do |s|
|
|
293
94
|
s.rubygems_version = %q{1.3.7}
|
294
95
|
s.summary = %q{Installation and compilation handler for software used in CSD projects.}
|
295
96
|
s.test_files = [
|
296
|
-
"test/
|
97
|
+
"test/application/test_minisip.rb",
|
98
|
+
"test/functional/test_applications.rb",
|
297
99
|
"test/functional/test_commands.rb",
|
298
100
|
"test/functional/test_options.rb",
|
299
101
|
"test/helper.rb",
|
data/lib/csd.rb
CHANGED
@@ -1,15 +1,10 @@
|
|
1
|
-
|
2
|
-
|
3
|
-
# Loading vendor libraries
|
4
|
-
require 'active_support'
|
5
|
-
require 'term/ansicolor'
|
1
|
+
#-- encoding: UTF-8
|
6
2
|
|
7
3
|
# Loading all files in the subdirectory `csd´
|
8
|
-
Dir[File.join(File.dirname(__FILE__), 'csd', '*.rb')].sort.each
|
9
|
-
require "csd/#{File.basename(path, '.rb')}"
|
10
|
-
end
|
4
|
+
Dir[File.join(File.dirname(__FILE__), 'csd', '*.rb')].sort.each { |path| require "csd/#{File.basename(path, '.rb')}" }
|
11
5
|
|
12
6
|
# The CSD namespace is given to the entire gem.
|
7
|
+
# It stands for Communication Systems Design (see http://www.tslab.ssvl.kth.se/csd).
|
13
8
|
#
|
14
9
|
module CSD
|
15
10
|
class << self
|
@@ -26,12 +21,6 @@ module CSD
|
|
26
21
|
Applications.current.instance.send("#{Options.action}".to_sym)
|
27
22
|
end
|
28
23
|
|
29
|
-
# This method chooses and holds the user interface instance
|
30
|
-
#
|
31
|
-
def ui
|
32
|
-
@@ui ||= CLI.new
|
33
|
-
end
|
34
|
-
|
35
24
|
private
|
36
25
|
|
37
26
|
# This method check the arguments the user has provided and terminates the AI with
|
@@ -71,8 +60,8 @@ module CSD
|
|
71
60
|
UI.info " The AI can assist you with the following tasks regarding #{Applications.current.human}: "
|
72
61
|
OptionParser.new do |opts|
|
73
62
|
opts.banner = ''
|
74
|
-
actions = Applications.current.actions[
|
75
|
-
actions << Applications.current.actions[
|
63
|
+
actions = Applications.current.actions['public']
|
64
|
+
actions << Applications.current.actions['developer'] if Options.developer
|
76
65
|
actions.flatten.each { |action| opts.list_item(action.keys.first, action.values.first) }
|
77
66
|
UI.info opts.help
|
78
67
|
end
|
@@ -86,4 +75,5 @@ module CSD
|
|
86
75
|
end
|
87
76
|
|
88
77
|
end
|
78
|
+
|
89
79
|
end
|
data/lib/csd/application.rb
CHANGED
@@ -1,3 +1,3 @@
|
|
1
|
-
# encoding:
|
2
|
-
require
|
1
|
+
# -*- encoding: UTF-8 -*-
|
2
|
+
require "csd/application/default"
|
3
3
|
|
@@ -1,35 +1,36 @@
|
|
1
|
-
# encoding:
|
2
|
-
require
|
1
|
+
# -*- encoding: UTF-8 -*-
|
2
|
+
require 'csd/application/default/base'
|
3
3
|
|
4
4
|
module CSD
|
5
5
|
# This namespace holds all individual application Modules
|
6
6
|
#
|
7
7
|
module Application
|
8
|
-
|
8
|
+
|
9
9
|
# This is the root class of all Applications
|
10
10
|
#
|
11
11
|
module Default
|
12
|
-
|
12
|
+
|
13
13
|
def name
|
14
|
-
|
14
|
+
self.to_s.demodulize.underscorize
|
15
15
|
end
|
16
|
-
|
16
|
+
|
17
17
|
def description
|
18
18
|
about.description
|
19
19
|
end
|
20
|
-
|
20
|
+
|
21
21
|
def human
|
22
22
|
about.human
|
23
23
|
end
|
24
|
-
|
24
|
+
|
25
25
|
def actions
|
26
26
|
about.actions
|
27
27
|
end
|
28
|
-
|
28
|
+
|
29
29
|
def scopes(action)
|
30
|
-
about.scopes[:action]
|
30
|
+
# TODO: about.scopes[:action]
|
31
|
+
[]
|
31
32
|
end
|
32
|
-
|
33
|
+
|
33
34
|
def options(action='')
|
34
35
|
options_dir = File.join(Path.applications, name, 'options')
|
35
36
|
common_file = File.join(options_dir, "common.rb")
|
@@ -38,14 +39,14 @@ module CSD
|
|
38
39
|
specific_options = File.file?(specific_file) ? File.read(specific_file) : ''
|
39
40
|
specific_options + common_options
|
40
41
|
end
|
41
|
-
|
42
|
+
|
42
43
|
protected
|
43
|
-
|
44
|
+
|
44
45
|
def about
|
45
46
|
about_file = File.join(Path.applications, name, 'about.yml')
|
46
47
|
OpenStruct.new YAML.load_file(about_file)
|
47
48
|
end
|
48
|
-
|
49
|
+
|
49
50
|
end
|
50
51
|
end
|
51
52
|
end
|