csd 0.1.5 → 0.1.6

Sign up to get free protection for your applications and to get access to all the features.
Files changed (258) hide show
  1. data/COPYING +1 -2
  2. data/README.rdoc +7 -1
  3. data/Rakefile +7 -2
  4. data/VERSION +1 -1
  5. data/csd.gemspec +18 -216
  6. data/lib/csd.rb +6 -16
  7. data/lib/csd/application.rb +2 -2
  8. data/lib/csd/application/default.rb +15 -14
  9. data/lib/csd/application/default/base.rb +1 -1
  10. data/lib/csd/application/minisip.rb +43 -11
  11. data/lib/csd/application/minisip/about.yml +5 -5
  12. data/lib/csd/application/minisip/base.rb +82 -70
  13. data/lib/csd/application/minisip/error.rb +1 -1
  14. data/lib/csd/application/minisip/options/common.rb +1 -1
  15. data/lib/csd/application/minisip/options/compile.rb +1 -1
  16. data/lib/csd/application/minisip/options/package.rb +1 -1
  17. data/lib/csd/application/minisip/unix.rb +40 -27
  18. data/lib/csd/application/minisip/unix/darwin.rb +12 -0
  19. data/lib/csd/application/minisip/unix/linux.rb +1 -11
  20. data/lib/csd/application/minisip/unix/linux/debian.rb +14 -25
  21. data/lib/csd/application/minisip/unix/linux/debian/ubuntu10.rb +12 -13
  22. data/lib/csd/applications.rb +5 -5
  23. data/lib/csd/commands.rb +164 -89
  24. data/lib/csd/container.rb +61 -0
  25. data/lib/csd/error.rb +10 -1
  26. data/lib/csd/extensions.rb +3 -2
  27. data/lib/csd/extensions/core/array.rb +29 -1
  28. data/lib/csd/extensions/core/dir.rb +15 -24
  29. data/lib/csd/extensions/core/object.rb +10 -2
  30. data/lib/csd/extensions/core/option_parser.rb +22 -3
  31. data/lib/csd/extensions/core/pathname.rb +30 -2
  32. data/lib/csd/extensions/core/string.rb +51 -4
  33. data/lib/csd/extensions/gem/platform.rb +18 -3
  34. data/lib/csd/{options.rb → options_parser.rb} +16 -20
  35. data/lib/csd/path_container.rb +24 -0
  36. data/lib/csd/user_interface.rb +2 -0
  37. data/lib/csd/user_interface/base.rb +26 -0
  38. data/lib/csd/user_interface/cli.rb +37 -0
  39. data/lib/csd/vendor/active_support/MIT-LICENSE +20 -0
  40. data/lib/csd/vendor/active_support/inflector.rb +155 -0
  41. data/lib/csd/vendor/term/GPL2-LICENSE +339 -0
  42. data/lib/csd/vendor/term/ansicolor.rb +113 -0
  43. data/lib/csd/version.rb +13 -4
  44. data/test/application/test_minisip.rb +45 -0
  45. data/test/functional/test_applications.rb +10 -16
  46. data/test/functional/test_commands.rb +260 -23
  47. data/test/unit/test_string.rb +1 -1
  48. metadata +18 -216
  49. data/lib/active_support.rb +0 -75
  50. data/lib/active_support/all.rb +0 -3
  51. data/lib/active_support/backtrace_cleaner.rb +0 -94
  52. data/lib/active_support/base64.rb +0 -42
  53. data/lib/active_support/basic_object.rb +0 -21
  54. data/lib/active_support/benchmarkable.rb +0 -60
  55. data/lib/active_support/buffered_logger.rb +0 -132
  56. data/lib/active_support/builder.rb +0 -6
  57. data/lib/active_support/cache.rb +0 -626
  58. data/lib/active_support/cache/compressed_mem_cache_store.rb +0 -13
  59. data/lib/active_support/cache/file_store.rb +0 -188
  60. data/lib/active_support/cache/mem_cache_store.rb +0 -191
  61. data/lib/active_support/cache/memory_store.rb +0 -159
  62. data/lib/active_support/cache/strategy/local_cache.rb +0 -164
  63. data/lib/active_support/cache/synchronized_memory_store.rb +0 -11
  64. data/lib/active_support/callbacks.rb +0 -600
  65. data/lib/active_support/concern.rb +0 -29
  66. data/lib/active_support/configurable.rb +0 -36
  67. data/lib/active_support/core_ext.rb +0 -3
  68. data/lib/active_support/core_ext/array.rb +0 -7
  69. data/lib/active_support/core_ext/array/access.rb +0 -46
  70. data/lib/active_support/core_ext/array/conversions.rb +0 -164
  71. data/lib/active_support/core_ext/array/extract_options.rb +0 -29
  72. data/lib/active_support/core_ext/array/grouping.rb +0 -100
  73. data/lib/active_support/core_ext/array/random_access.rb +0 -20
  74. data/lib/active_support/core_ext/array/uniq_by.rb +0 -17
  75. data/lib/active_support/core_ext/array/wrap.rb +0 -22
  76. data/lib/active_support/core_ext/benchmark.rb +0 -7
  77. data/lib/active_support/core_ext/big_decimal.rb +0 -1
  78. data/lib/active_support/core_ext/big_decimal/conversions.rb +0 -27
  79. data/lib/active_support/core_ext/cgi.rb +0 -1
  80. data/lib/active_support/core_ext/cgi/escape_skipping_slashes.rb +0 -19
  81. data/lib/active_support/core_ext/class.rb +0 -4
  82. data/lib/active_support/core_ext/class/attribute.rb +0 -67
  83. data/lib/active_support/core_ext/class/attribute_accessors.rb +0 -63
  84. data/lib/active_support/core_ext/class/delegating_attributes.rb +0 -44
  85. data/lib/active_support/core_ext/class/inheritable_attributes.rb +0 -232
  86. data/lib/active_support/core_ext/class/subclasses.rb +0 -55
  87. data/lib/active_support/core_ext/date/acts_like.rb +0 -8
  88. data/lib/active_support/core_ext/date/calculations.rb +0 -240
  89. data/lib/active_support/core_ext/date/conversions.rb +0 -99
  90. data/lib/active_support/core_ext/date/freeze.rb +0 -31
  91. data/lib/active_support/core_ext/date_time/acts_like.rb +0 -13
  92. data/lib/active_support/core_ext/date_time/calculations.rb +0 -113
  93. data/lib/active_support/core_ext/date_time/conversions.rb +0 -102
  94. data/lib/active_support/core_ext/date_time/zones.rb +0 -17
  95. data/lib/active_support/core_ext/enumerable.rb +0 -119
  96. data/lib/active_support/core_ext/exception.rb +0 -3
  97. data/lib/active_support/core_ext/file.rb +0 -2
  98. data/lib/active_support/core_ext/file/atomic.rb +0 -41
  99. data/lib/active_support/core_ext/file/path.rb +0 -5
  100. data/lib/active_support/core_ext/float.rb +0 -1
  101. data/lib/active_support/core_ext/float/rounding.rb +0 -19
  102. data/lib/active_support/core_ext/hash.rb +0 -8
  103. data/lib/active_support/core_ext/hash/conversions.rb +0 -150
  104. data/lib/active_support/core_ext/hash/deep_merge.rb +0 -16
  105. data/lib/active_support/core_ext/hash/diff.rb +0 -13
  106. data/lib/active_support/core_ext/hash/except.rb +0 -24
  107. data/lib/active_support/core_ext/hash/indifferent_access.rb +0 -14
  108. data/lib/active_support/core_ext/hash/keys.rb +0 -45
  109. data/lib/active_support/core_ext/hash/reverse_merge.rb +0 -28
  110. data/lib/active_support/core_ext/hash/slice.rb +0 -38
  111. data/lib/active_support/core_ext/integer.rb +0 -3
  112. data/lib/active_support/core_ext/integer/inflections.rb +0 -14
  113. data/lib/active_support/core_ext/integer/multiple.rb +0 -6
  114. data/lib/active_support/core_ext/integer/time.rb +0 -39
  115. data/lib/active_support/core_ext/kernel.rb +0 -5
  116. data/lib/active_support/core_ext/kernel/agnostics.rb +0 -11
  117. data/lib/active_support/core_ext/kernel/debugger.rb +0 -16
  118. data/lib/active_support/core_ext/kernel/reporting.rb +0 -62
  119. data/lib/active_support/core_ext/kernel/requires.rb +0 -26
  120. data/lib/active_support/core_ext/kernel/singleton_class.rb +0 -13
  121. data/lib/active_support/core_ext/load_error.rb +0 -23
  122. data/lib/active_support/core_ext/logger.rb +0 -146
  123. data/lib/active_support/core_ext/module.rb +0 -12
  124. data/lib/active_support/core_ext/module/aliasing.rb +0 -70
  125. data/lib/active_support/core_ext/module/anonymous.rb +0 -24
  126. data/lib/active_support/core_ext/module/attr_accessor_with_default.rb +0 -31
  127. data/lib/active_support/core_ext/module/attr_internal.rb +0 -32
  128. data/lib/active_support/core_ext/module/attribute_accessors.rb +0 -66
  129. data/lib/active_support/core_ext/module/delegation.rb +0 -146
  130. data/lib/active_support/core_ext/module/deprecation.rb +0 -9
  131. data/lib/active_support/core_ext/module/introspection.rb +0 -88
  132. data/lib/active_support/core_ext/module/method_names.rb +0 -14
  133. data/lib/active_support/core_ext/module/reachable.rb +0 -10
  134. data/lib/active_support/core_ext/module/remove_method.rb +0 -6
  135. data/lib/active_support/core_ext/module/synchronization.rb +0 -42
  136. data/lib/active_support/core_ext/name_error.rb +0 -18
  137. data/lib/active_support/core_ext/numeric.rb +0 -2
  138. data/lib/active_support/core_ext/numeric/bytes.rb +0 -44
  139. data/lib/active_support/core_ext/numeric/time.rb +0 -77
  140. data/lib/active_support/core_ext/object.rb +0 -14
  141. data/lib/active_support/core_ext/object/acts_like.rb +0 -10
  142. data/lib/active_support/core_ext/object/blank.rb +0 -76
  143. data/lib/active_support/core_ext/object/conversions.rb +0 -4
  144. data/lib/active_support/core_ext/object/duplicable.rb +0 -65
  145. data/lib/active_support/core_ext/object/extending.rb +0 -11
  146. data/lib/active_support/core_ext/object/instance_variables.rb +0 -67
  147. data/lib/active_support/core_ext/object/misc.rb +0 -2
  148. data/lib/active_support/core_ext/object/returning.rb +0 -42
  149. data/lib/active_support/core_ext/object/to_param.rb +0 -49
  150. data/lib/active_support/core_ext/object/to_query.rb +0 -27
  151. data/lib/active_support/core_ext/object/try.rb +0 -36
  152. data/lib/active_support/core_ext/object/with_options.rb +0 -26
  153. data/lib/active_support/core_ext/proc.rb +0 -14
  154. data/lib/active_support/core_ext/process.rb +0 -1
  155. data/lib/active_support/core_ext/process/daemon.rb +0 -23
  156. data/lib/active_support/core_ext/range.rb +0 -4
  157. data/lib/active_support/core_ext/range/blockless_step.rb +0 -29
  158. data/lib/active_support/core_ext/range/conversions.rb +0 -21
  159. data/lib/active_support/core_ext/range/include_range.rb +0 -21
  160. data/lib/active_support/core_ext/range/overlaps.rb +0 -8
  161. data/lib/active_support/core_ext/regexp.rb +0 -5
  162. data/lib/active_support/core_ext/rexml.rb +0 -46
  163. data/lib/active_support/core_ext/string.rb +0 -12
  164. data/lib/active_support/core_ext/string/access.rb +0 -99
  165. data/lib/active_support/core_ext/string/behavior.rb +0 -7
  166. data/lib/active_support/core_ext/string/conversions.rb +0 -61
  167. data/lib/active_support/core_ext/string/encoding.rb +0 -11
  168. data/lib/active_support/core_ext/string/exclude.rb +0 -6
  169. data/lib/active_support/core_ext/string/filters.rb +0 -49
  170. data/lib/active_support/core_ext/string/inflections.rb +0 -149
  171. data/lib/active_support/core_ext/string/interpolation.rb +0 -2
  172. data/lib/active_support/core_ext/string/multibyte.rb +0 -72
  173. data/lib/active_support/core_ext/string/output_safety.rb +0 -109
  174. data/lib/active_support/core_ext/string/starts_ends_with.rb +0 -4
  175. data/lib/active_support/core_ext/string/xchar.rb +0 -18
  176. data/lib/active_support/core_ext/time/acts_like.rb +0 -8
  177. data/lib/active_support/core_ext/time/calculations.rb +0 -282
  178. data/lib/active_support/core_ext/time/conversions.rb +0 -85
  179. data/lib/active_support/core_ext/time/marshal.rb +0 -56
  180. data/lib/active_support/core_ext/time/publicize_conversion_methods.rb +0 -10
  181. data/lib/active_support/core_ext/time/zones.rb +0 -78
  182. data/lib/active_support/core_ext/uri.rb +0 -22
  183. data/lib/active_support/dependencies.rb +0 -628
  184. data/lib/active_support/dependencies/autoload.rb +0 -50
  185. data/lib/active_support/deprecation.rb +0 -18
  186. data/lib/active_support/deprecation/behaviors.rb +0 -38
  187. data/lib/active_support/deprecation/method_wrappers.rb +0 -29
  188. data/lib/active_support/deprecation/proxy_wrappers.rb +0 -74
  189. data/lib/active_support/deprecation/reporting.rb +0 -56
  190. data/lib/active_support/duration.rb +0 -105
  191. data/lib/active_support/gzip.rb +0 -25
  192. data/lib/active_support/hash_with_indifferent_access.rb +0 -145
  193. data/lib/active_support/i18n.rb +0 -8
  194. data/lib/active_support/inflections.rb +0 -56
  195. data/lib/active_support/inflector.rb +0 -7
  196. data/lib/active_support/inflector/inflections.rb +0 -211
  197. data/lib/active_support/inflector/methods.rb +0 -141
  198. data/lib/active_support/inflector/transliterate.rb +0 -97
  199. data/lib/active_support/json.rb +0 -2
  200. data/lib/active_support/json/backends/jsongem.rb +0 -43
  201. data/lib/active_support/json/backends/yajl.rb +0 -40
  202. data/lib/active_support/json/backends/yaml.rb +0 -90
  203. data/lib/active_support/json/decoding.rb +0 -51
  204. data/lib/active_support/json/encoding.rb +0 -254
  205. data/lib/active_support/json/variable.rb +0 -11
  206. data/lib/active_support/lazy_load_hooks.rb +0 -27
  207. data/lib/active_support/locale/en.yml +0 -36
  208. data/lib/active_support/memoizable.rb +0 -103
  209. data/lib/active_support/message_encryptor.rb +0 -71
  210. data/lib/active_support/message_verifier.rb +0 -62
  211. data/lib/active_support/multibyte.rb +0 -44
  212. data/lib/active_support/multibyte/chars.rb +0 -480
  213. data/lib/active_support/multibyte/exceptions.rb +0 -8
  214. data/lib/active_support/multibyte/unicode.rb +0 -393
  215. data/lib/active_support/multibyte/utils.rb +0 -60
  216. data/lib/active_support/notifications.rb +0 -81
  217. data/lib/active_support/notifications/fanout.rb +0 -93
  218. data/lib/active_support/notifications/instrumenter.rb +0 -56
  219. data/lib/active_support/option_merger.rb +0 -25
  220. data/lib/active_support/ordered_hash.rb +0 -158
  221. data/lib/active_support/ordered_options.rb +0 -27
  222. data/lib/active_support/railtie.rb +0 -100
  223. data/lib/active_support/rescuable.rb +0 -114
  224. data/lib/active_support/ruby/shim.rb +0 -22
  225. data/lib/active_support/secure_random.rb +0 -199
  226. data/lib/active_support/string_inquirer.rb +0 -21
  227. data/lib/active_support/test_case.rb +0 -42
  228. data/lib/active_support/testing/assertions.rb +0 -82
  229. data/lib/active_support/testing/declarative.rb +0 -40
  230. data/lib/active_support/testing/default.rb +0 -9
  231. data/lib/active_support/testing/deprecation.rb +0 -55
  232. data/lib/active_support/testing/isolation.rb +0 -154
  233. data/lib/active_support/testing/pending.rb +0 -48
  234. data/lib/active_support/testing/performance.rb +0 -455
  235. data/lib/active_support/testing/setup_and_teardown.rb +0 -111
  236. data/lib/active_support/time.rb +0 -34
  237. data/lib/active_support/time/autoload.rb +0 -5
  238. data/lib/active_support/time_with_zone.rb +0 -341
  239. data/lib/active_support/values/time_zone.rb +0 -377
  240. data/lib/active_support/values/unicode_tables.dat +0 -0
  241. data/lib/active_support/version.rb +0 -10
  242. data/lib/active_support/whiny_nil.rb +0 -60
  243. data/lib/active_support/xml_mini.rb +0 -158
  244. data/lib/active_support/xml_mini/jdom.rb +0 -168
  245. data/lib/active_support/xml_mini/libxml.rb +0 -80
  246. data/lib/active_support/xml_mini/libxmlsax.rb +0 -85
  247. data/lib/active_support/xml_mini/nokogiri.rb +0 -78
  248. data/lib/active_support/xml_mini/nokogirisax.rb +0 -83
  249. data/lib/active_support/xml_mini/rexml.rb +0 -129
  250. data/lib/csd/extensions/core/file.rb +0 -14
  251. data/lib/csd/global_open_struct.rb +0 -19
  252. data/lib/csd/path.rb +0 -32
  253. data/lib/csd/ui.rb +0 -2
  254. data/lib/csd/ui/cli.rb +0 -8
  255. data/lib/csd/ui/ui.rb +0 -45
  256. data/lib/term/ansicolor.rb +0 -102
  257. data/lib/term/ansicolor/.keep +0 -0
  258. 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
- file "lib/active_support.rb", and the directories
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
@@ -8,7 +8,13 @@ CSD stands for Communication Systems Design and is a project of the Telecommunic
8
8
 
9
9
  == Installation
10
10
 
11
- gem install csd
11
+ (sudo) gem install csd
12
+
13
+ == Usage
14
+
15
+ In a console, type
16
+
17
+ ai
12
18
 
13
19
  == Note on Patches/Pull Requests
14
20
 
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
- You can fix this by adding it to your .bashrc file with this command:
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.5
1
+ 0.1.6
@@ -5,11 +5,11 @@
5
5
 
6
6
  Gem::Specification.new do |s|
7
7
  s.name = %q{csd}
8
- s.version = "0.1.5"
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-14}
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/global_open_struct.rb",
259
- "lib/csd/options.rb",
260
- "lib/csd/path.rb",
261
- "lib/csd/ui.rb",
262
- "lib/csd/ui/cli.rb",
263
- "lib/csd/ui/ui.rb",
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
- "lib/term/ansicolor.rb",
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
- You can fix this by adding it to your .bashrc file with this command:
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/functional/test_applications.rb",
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
- # encoding: utf-8
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 do |path|
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[:public]
75
- actions << Applications.current.actions[:developer] if Options.developer
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
@@ -1,3 +1,3 @@
1
- # encoding: utf-8
2
- require File.join(File.dirname(__FILE__), 'application', 'default')
1
+ # -*- encoding: UTF-8 -*-
2
+ require "csd/application/default"
3
3
 
@@ -1,35 +1,36 @@
1
- # encoding: utf-8
2
- require File.join(File.dirname(__FILE__), 'default', 'base')
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
- ActiveSupport::Inflector.underscore self.to_s.demodulize
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