objective_command 0.1.5.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (40) hide show
  1. data/AUTHORS +5 -0
  2. data/ChangeLog +17 -0
  3. data/NEWS +3 -0
  4. data/README +2 -0
  5. data/Rakefile +8 -0
  6. data/SPEC.gemspec +15 -0
  7. data/SPEC.yml +43 -0
  8. data/bin/ocmd +32 -0
  9. data/lib/hookable.rb +284 -0
  10. data/lib/hooker.rb +47 -0
  11. data/lib/objective_command/all.rb +32 -0
  12. data/lib/objective_command/commands/command.rb +535 -0
  13. data/lib/objective_command/commands/factory.rb +69 -0
  14. data/lib/objective_command/commands/pipe.rb +121 -0
  15. data/lib/objective_command/commands/seq.rb +35 -0
  16. data/lib/objective_command/datas/composite.rb +55 -0
  17. data/lib/objective_command/datas/data.rb +175 -0
  18. data/lib/objective_command/datas/factory.rb +74 -0
  19. data/lib/objective_command/datas/pipe.rb +55 -0
  20. data/lib/objective_command/datas/temp.rb +24 -0
  21. data/lib/objective_command/datas.rb +11 -0
  22. data/lib/objective_command/helpers.rb +113 -0
  23. data/lib/objective_command/runners/exec.rb +46 -0
  24. data/lib/objective_command/runners/fork.rb +91 -0
  25. data/lib/objective_command/runners/mockable.rb +62 -0
  26. data/lib/objective_command/runners/no_run.rb +44 -0
  27. data/lib/objective_command/runners/popen.rb +49 -0
  28. data/lib/objective_command/runners/runner.rb +227 -0
  29. data/lib/objective_command/runners/system.rb +54 -0
  30. data/lib/objective_command/runners.rb +11 -0
  31. data/lib/objective_command/shell.rb +173 -0
  32. data/lib/objective_command/version_id.rb +10 -0
  33. data/lib/objective_command.rb +54 -0
  34. data/test/check-objective_command.yml +10 -0
  35. data/test/check-pkg-objective_command.yml +13 -0
  36. data/test/sanity/multiple-requires.yml +62 -0
  37. data/test/sanity/single-requires.yml +40 -0
  38. data/test/sanity-suite.yml +10 -0
  39. data/test/unit-suite.yml +14 -0
  40. metadata +97 -0
@@ -0,0 +1,13 @@
1
+ ---
2
+
3
+ # Run this suite with -S 'url: scheme://the/url/to/the/ocmd/package'
4
+ ObjectiveCommand Package Test Suite: !S::Suite
5
+ contents:
6
+
7
+ - Checkout: !S::Checkout
8
+ url: <<url>>
9
+ fatal: true
10
+ weight: 0
11
+
12
+ - Check the package: !S::Import
13
+ import: <<checkout_dir>>/test/check-objective_command.yml
@@ -0,0 +1,62 @@
1
+ ---
2
+
3
+ ObjectiveCommand Sanity Multiple Requires Test Suite: !S::Suite
4
+
5
+ attributes: !S::Cmd
6
+ command: <<ruby>>
7
+ exit: 0
8
+ error: ""
9
+ output: !re 0 failures, 0 errors$
10
+ args: -I<<pwd>>/../../lib
11
+
12
+ contents:
13
+ - require:
14
+ input: |
15
+ require 'objective_command'
16
+ Dependencies.mechanism = :require
17
+ require 'test/unit'
18
+ class TC_ < Test::Unit::TestCase
19
+ def test_definitions
20
+ path_list = PathList['<<pwd>>/../../lib/(**/*).rb']
21
+ path_list.each do |_, path|
22
+ require path
23
+ path += '.rb'
24
+ assert($LOADED_FEATURES.include?(path),
25
+ "#{path} not in $LOADED_FEATURES #{$LOADED_FEATURES.inspect}")
26
+ end
27
+ end
28
+ end
29
+
30
+ - require dependency:
31
+ input: |
32
+ require 'objective_command'
33
+ require 'test/unit'
34
+ class TC_ < Test::Unit::TestCase
35
+ def test_definitions
36
+ lib_dir = '<<pwd>>/../../lib'.to_path
37
+ lib_dir.load_path!
38
+ path_list = PathList[lib_dir/'(**/*).rb']
39
+ path_list.each do |_, path|
40
+ require_dependency path
41
+ assert(Dependencies.loaded.include?(path),
42
+ "#{path} not in Dependencies.loaded #{Dependencies.loaded.inspect}")
43
+ end
44
+ end
45
+ end
46
+
47
+ - lazy loading:
48
+ input: |
49
+ require 'objective_command'
50
+ require 'test/unit'
51
+ class TC_ < Test::Unit::TestCase
52
+ def test_definitions
53
+ PathList['<<pwd>>/../../lib/(**/*).rb'].each do |path, name|
54
+ assert_nothing_raised("cannot camelize #{name}") do
55
+ @camel = name.camelize
56
+ end
57
+ assert_nothing_raised("#@camel not defined?") do
58
+ @camel.constantize
59
+ end
60
+ end
61
+ end
62
+ end
@@ -0,0 +1,40 @@
1
+ ---
2
+
3
+ ObjectiveCommand Sanity Single Requires Test Suite: !S::Iterate
4
+
5
+ over: !pathlist <<pwd>>/../../lib/(**/*).rb
6
+ iter: [it_file, it_name]
7
+ test:
8
+ <<it_name>>: !S::Suite
9
+ attributes: !S::Cmd
10
+ command: <<ruby>>
11
+ exit: 0
12
+ error: ""
13
+ output: !re 0 failures, 0 errors$
14
+ args: -I<<pwd>>/../../lib
15
+ contents:
16
+ - require:
17
+ input: |
18
+ require 'objective_command'
19
+ require '<<it_name>>'
20
+ require 'test/unit'
21
+ class TC_ < Test::Unit::TestCase
22
+ def test_definitions
23
+ assert($LOADED_FEATURES.include?('<<it_name>>.rb'),
24
+ "<<it_name>> not in $LOADED_FEATURES")
25
+ end
26
+ end
27
+ - lazy loading:
28
+ input: |
29
+ require 'objective_command'
30
+ require 'test/unit'
31
+ class TC_ < Test::Unit::TestCase
32
+ def test_definitions
33
+ assert_nothing_raised('cannot camelmize <<it_name>>') do
34
+ @camel = '<<it_name>>'.camelize
35
+ end
36
+ assert_nothing_raised("#@camel not defined?") do
37
+ @camel.constantize
38
+ end
39
+ end
40
+ end
@@ -0,0 +1,10 @@
1
+ ---
2
+
3
+ ObjectiveCommand Sanity Test Suite: !S::Iterate
4
+
5
+ over: !pathlist <<pwd>>/(sanity/**/*.yml)
6
+ iter: [it_file, it_name]
7
+
8
+ test:
9
+ <<it_name>>: !S::Import
10
+ import : <<it_file>>
@@ -0,0 +1,14 @@
1
+ ---
2
+
3
+ ObjectiveCommand Unit Test Suite: !S::Iterate
4
+
5
+ over: !pathlist <<pwd>>/{unit,../lib}/(**/*).rb
6
+ iter: [it_file, it_name ]
7
+
8
+ test:
9
+ Unit test <<it_name>>: !S::RUnit
10
+ input : !path <<it_name>>.rb
11
+ requires : <<pwd>>/../lib/objective_command
12
+ uttk_unit_options: --uttk no --mode import
13
+ dir : <<pwd>>
14
+ verbose : true
metadata ADDED
@@ -0,0 +1,97 @@
1
+ --- !ruby/object:Gem::Specification
2
+ rubygems_version: 0.9.0
3
+ specification_version: 1
4
+ name: objective_command
5
+ version: !ruby/object:Gem::Version
6
+ version: 0.1.5.0
7
+ date: 2007-01-14 00:00:00 +01:00
8
+ summary: ObjectiveCommand
9
+ require_paths:
10
+ - lib
11
+ email:
12
+ - ertai@feydakins.org
13
+ homepage: http://api.feydakins.org/objective_command
14
+ rubyforge_project: objective_command
15
+ description: ""
16
+ autorequire:
17
+ default_executable: ocmd
18
+ bindir: bin
19
+ has_rdoc: false
20
+ required_ruby_version: !ruby/object:Gem::Version::Requirement
21
+ requirements:
22
+ - - ">"
23
+ - !ruby/object:Gem::Version
24
+ version: 0.0.0
25
+ version:
26
+ platform: ruby
27
+ signing_key:
28
+ cert_chain:
29
+ post_install_message:
30
+ authors:
31
+ - Nicolas Pouillard
32
+ files:
33
+ - lib/hookable.rb
34
+ - lib/hooker.rb
35
+ - lib/objective_command.rb
36
+ - lib/objective_command/all.rb
37
+ - lib/objective_command/datas.rb
38
+ - lib/objective_command/helpers.rb
39
+ - lib/objective_command/runners.rb
40
+ - lib/objective_command/shell.rb
41
+ - lib/objective_command/version_id.rb
42
+ - lib/objective_command/commands/command.rb
43
+ - lib/objective_command/commands/factory.rb
44
+ - lib/objective_command/commands/pipe.rb
45
+ - lib/objective_command/commands/seq.rb
46
+ - lib/objective_command/datas/composite.rb
47
+ - lib/objective_command/datas/data.rb
48
+ - lib/objective_command/datas/factory.rb
49
+ - lib/objective_command/datas/pipe.rb
50
+ - lib/objective_command/datas/temp.rb
51
+ - lib/objective_command/runners/exec.rb
52
+ - lib/objective_command/runners/fork.rb
53
+ - lib/objective_command/runners/mockable.rb
54
+ - lib/objective_command/runners/no_run.rb
55
+ - lib/objective_command/runners/popen.rb
56
+ - lib/objective_command/runners/runner.rb
57
+ - lib/objective_command/runners/system.rb
58
+ - test/check-objective_command.yml
59
+ - test/check-pkg-objective_command.yml
60
+ - test/fixtures
61
+ - test/functional
62
+ - test/sanity
63
+ - test/sanity-suite.yml
64
+ - test/unit
65
+ - test/unit-suite.yml
66
+ - test/sanity/multiple-requires.yml
67
+ - test/sanity/single-requires.yml
68
+ - bin/ocmd
69
+ - AUTHORS
70
+ - ChangeLog
71
+ - NEWS
72
+ - Rakefile
73
+ - README
74
+ - SPEC.gemspec
75
+ - SPEC.yml
76
+ test_files: []
77
+
78
+ rdoc_options: []
79
+
80
+ extra_rdoc_files: []
81
+
82
+ executables:
83
+ - ocmd
84
+ extensions: []
85
+
86
+ requirements: []
87
+
88
+ dependencies:
89
+ - !ruby/object:Gem::Dependency
90
+ name: core_ex
91
+ version_requirement:
92
+ version_requirements: !ruby/object:Gem::Version::Requirement
93
+ requirements:
94
+ - - ~>
95
+ - !ruby/object:Gem::Version
96
+ version: 0.6.5
97
+ version: