vedeu 0.8.19 → 0.8.20

Sign up to get free protection for your applications and to get access to all the features.
Files changed (49) hide show
  1. checksums.yaml +4 -4
  2. data/integrations/342_streams.rb +5 -16
  3. data/integrations/dsl_app_001.rb +8 -19
  4. data/integrations/dsl_app_002.rb +8 -20
  5. data/integrations/dsl_app_003.rb +8 -19
  6. data/integrations/dsl_app_004.rb +8 -19
  7. data/integrations/dsl_app_005.rb +8 -19
  8. data/integrations/dsl_app_006.rb +8 -19
  9. data/integrations/dsl_app_007.rb +8 -19
  10. data/integrations/dsl_app_008.rb +8 -19
  11. data/integrations/dsl_app_009.rb +8 -19
  12. data/integrations/dsl_app_010.rb +8 -19
  13. data/integrations/dsl_app_011.rb +8 -19
  14. data/integrations/dsl_app_012.rb +8 -19
  15. data/integrations/dsl_app_013.rb +8 -19
  16. data/integrations/dsl_app_014.rb +8 -19
  17. data/integrations/dsl_app_015.rb +8 -19
  18. data/integrations/dsl_app_016.rb +8 -19
  19. data/integrations/dsl_app_017.rb +8 -19
  20. data/integrations/dsl_app_018.rb +8 -19
  21. data/integrations/dsl_app_019.rb +8 -19
  22. data/integrations/dsl_app_020.rb +8 -19
  23. data/integrations/dsl_app_021.rb +8 -19
  24. data/integrations/dsl_app_022.rb +8 -19
  25. data/integrations/dsl_app_border_001.rb +8 -19
  26. data/integrations/dsl_app_border_002.rb +8 -19
  27. data/integrations/dsl_app_border_003.rb +8 -19
  28. data/integrations/dsl_app_border_004.rb +8 -19
  29. data/integrations/dsl_app_border_005.rb +8 -19
  30. data/integrations/dsl_app_border_006.rb +58 -0
  31. data/integrations/dsl_app_border_007.rb +58 -0
  32. data/integrations/dsl_app_border_008.rb +57 -0
  33. data/integrations/dsl_app_border_009.rb +57 -0
  34. data/integrations/dsl_app_border_010.rb +57 -0
  35. data/integrations/dsl_app_border_011.rb +57 -0
  36. data/integrations/expected/dsl_app_border_006.out +1 -0
  37. data/integrations/expected/dsl_app_border_007.out +1 -0
  38. data/integrations/expected/dsl_app_border_008.out +1 -0
  39. data/integrations/expected/dsl_app_border_009.out +1 -0
  40. data/integrations/expected/dsl_app_border_010.out +1 -0
  41. data/integrations/expected/dsl_app_border_011.out +1 -0
  42. data/integrations/test_runner.rb +60 -0
  43. data/integrations/test_runner.sh +11 -5
  44. data/lib/vedeu/version.rb +1 -1
  45. data/test/lib/vedeu/repositories/repositories_test.rb +18 -4
  46. data/test/lib/vedeu_test.rb +12 -0
  47. data/test/support/examples/material_colours_app.rb +0 -134
  48. data/vedeu.gemspec +1 -1
  49. metadata +17 -4
@@ -5,6 +5,8 @@
5
5
  require 'bundler/setup'
6
6
  require 'vedeu'
7
7
 
8
+ TESTCASE = 'dsl_app_009'
9
+
8
10
  class DSLApp
9
11
 
10
12
  Vedeu.bind(:_initialize_) { Vedeu.trigger(:_refresh_) }
@@ -15,11 +17,11 @@ class DSLApp
15
17
  log '/tmp/vedeu_views_dsl.log'
16
18
  renderers [
17
19
  Vedeu::Renderers::Terminal.new(
18
- filename: '/tmp/dsl_app_009.out',
20
+ filename: "/tmp/#{TESTCASE}.out",
19
21
  write_file: true),
20
- # Vedeu::Renderers::JSON.new(filename: '/tmp/dsl_app_009.json'),
21
- # Vedeu::Renderers::HTML.new(filename: '/tmp/dsl_app_009.html'),
22
- # Vedeu::Renderers::Text.new(filename: '/tmp/dsl_app_009.txt'),
22
+ # Vedeu::Renderers::JSON.new(filename: "/tmp/#{TESTCASE}.json"),
23
+ # Vedeu::Renderers::HTML.new(filename: "/tmp/#{TESTCASE}.html"),
24
+ # Vedeu::Renderers::Text.new(filename: "/tmp/#{TESTCASE}.txt"),
23
25
  ]
24
26
  run_once!
25
27
  standalone!
@@ -46,14 +48,6 @@ class DSLApp
46
48
  end
47
49
  end
48
50
 
49
- def self.actual
50
- File.read('/tmp/dsl_app_009.out')
51
- end
52
-
53
- def self.expected
54
- File.read(File.expand_path('../expected/dsl_app_009.out', __FILE__))
55
- end
56
-
57
51
  def self.start(argv = ARGV)
58
52
  Vedeu::Launcher.execute!(argv)
59
53
  end
@@ -62,10 +56,5 @@ end # DSLApp
62
56
 
63
57
  DSLApp.start
64
58
 
65
- if DSLApp.expected == DSLApp.actual
66
- puts "#{__FILE__} \e[32mPassed.\e[39m"
67
- exit 0;
68
- else
69
- puts "#{__FILE__} \e[31mFailed.\e[39m"
70
- exit 1;
71
- end
59
+ load File.dirname(__FILE__) + '/test_runner.rb'
60
+ TestRunner.result(TESTCASE, __FILE__)
@@ -5,6 +5,8 @@
5
5
  require 'bundler/setup'
6
6
  require 'vedeu'
7
7
 
8
+ TESTCASE = 'dsl_app_010'
9
+
8
10
  class DSLApp
9
11
 
10
12
  Vedeu.bind(:_initialize_) { Vedeu.trigger(:_refresh_) }
@@ -15,11 +17,11 @@ class DSLApp
15
17
  log '/tmp/vedeu_views_dsl.log'
16
18
  renderers [
17
19
  Vedeu::Renderers::Terminal.new(
18
- filename: '/tmp/dsl_app_010.out',
20
+ filename: "/tmp/#{TESTCASE}.out",
19
21
  write_file: true),
20
- # Vedeu::Renderers::JSON.new(filename: '/tmp/dsl_app_010.json'),
21
- # Vedeu::Renderers::HTML.new(filename: '/tmp/dsl_app_010.html'),
22
- # Vedeu::Renderers::Text.new(filename: '/tmp/dsl_app_010.txt'),
22
+ # Vedeu::Renderers::JSON.new(filename: "/tmp/#{TESTCASE}.json"),
23
+ # Vedeu::Renderers::HTML.new(filename: "/tmp/#{TESTCASE}.html"),
24
+ # Vedeu::Renderers::Text.new(filename: "/tmp/#{TESTCASE}.txt"),
23
25
  ]
24
26
  run_once!
25
27
  standalone!
@@ -47,14 +49,6 @@ class DSLApp
47
49
  end
48
50
  end
49
51
 
50
- def self.actual
51
- File.read('/tmp/dsl_app_010.out')
52
- end
53
-
54
- def self.expected
55
- File.read(File.expand_path('../expected/dsl_app_010.out', __FILE__))
56
- end
57
-
58
52
  def self.start(argv = ARGV)
59
53
  Vedeu::Launcher.execute!(argv)
60
54
  end
@@ -63,10 +57,5 @@ end # DSLApp
63
57
 
64
58
  DSLApp.start
65
59
 
66
- if DSLApp.expected == DSLApp.actual
67
- puts "#{__FILE__} \e[32mPassed.\e[39m"
68
- exit 0;
69
- else
70
- puts "#{__FILE__} \e[31mFailed.\e[39m"
71
- exit 1;
72
- end
60
+ load File.dirname(__FILE__) + '/test_runner.rb'
61
+ TestRunner.result(TESTCASE, __FILE__)
@@ -5,6 +5,8 @@
5
5
  require 'bundler/setup'
6
6
  require 'vedeu'
7
7
 
8
+ TESTCASE = 'dsl_app_011'
9
+
8
10
  class DSLApp
9
11
 
10
12
  Vedeu.bind(:_initialize_) { Vedeu.trigger(:_refresh_) }
@@ -15,11 +17,11 @@ class DSLApp
15
17
  log '/tmp/vedeu_views_dsl.log'
16
18
  renderers [
17
19
  Vedeu::Renderers::Terminal.new(
18
- filename: '/tmp/dsl_app_011.out',
20
+ filename: "/tmp/#{TESTCASE}.out",
19
21
  write_file: true),
20
- # Vedeu::Renderers::JSON.new(filename: '/tmp/dsl_app_011.json'),
21
- # Vedeu::Renderers::HTML.new(filename: '/tmp/dsl_app_011.html'),
22
- # Vedeu::Renderers::Text.new(filename: '/tmp/dsl_app_011.txt'),
22
+ # Vedeu::Renderers::JSON.new(filename: "/tmp/#{TESTCASE}.json"),
23
+ # Vedeu::Renderers::HTML.new(filename: "/tmp/#{TESTCASE}.html"),
24
+ # Vedeu::Renderers::Text.new(filename: "/tmp/#{TESTCASE}.txt"),
23
25
  ]
24
26
  run_once!
25
27
  standalone!
@@ -37,14 +39,6 @@ class DSLApp
37
39
  end
38
40
  end
39
41
 
40
- def self.actual
41
- File.read('/tmp/dsl_app_011.out')
42
- end
43
-
44
- def self.expected
45
- File.read(File.expand_path('../expected/dsl_app_011.out', __FILE__))
46
- end
47
-
48
42
  def self.start(argv = ARGV)
49
43
  Vedeu::Launcher.execute!(argv)
50
44
  end
@@ -53,10 +47,5 @@ end # DSLApp
53
47
 
54
48
  DSLApp.start
55
49
 
56
- if DSLApp.expected == DSLApp.actual
57
- puts "#{__FILE__} \e[32mPassed.\e[39m"
58
- exit 0;
59
- else
60
- puts "#{__FILE__} \e[31mFailed.\e[39m"
61
- exit 1;
62
- end
50
+ load File.dirname(__FILE__) + '/test_runner.rb'
51
+ TestRunner.result(TESTCASE, __FILE__)
@@ -5,6 +5,8 @@
5
5
  require 'bundler/setup'
6
6
  require 'vedeu'
7
7
 
8
+ TESTCASE = 'dsl_app_012'
9
+
8
10
  class DSLApp
9
11
 
10
12
  Vedeu.bind(:_initialize_) { Vedeu.trigger(:_refresh_) }
@@ -15,11 +17,11 @@ class DSLApp
15
17
  log '/tmp/vedeu_views_dsl.log'
16
18
  renderers [
17
19
  Vedeu::Renderers::Terminal.new(
18
- filename: '/tmp/dsl_app_012.out',
20
+ filename: "/tmp/#{TESTCASE}.out",
19
21
  write_file: true),
20
- # Vedeu::Renderers::JSON.new(filename: '/tmp/dsl_app_012.json'),
21
- # Vedeu::Renderers::HTML.new(filename: '/tmp/dsl_app_012.html'),
22
- # Vedeu::Renderers::Text.new(filename: '/tmp/dsl_app_012.txt'),
22
+ # Vedeu::Renderers::JSON.new(filename: "/tmp/#{TESTCASE}.json"),
23
+ # Vedeu::Renderers::HTML.new(filename: "/tmp/#{TESTCASE}.html"),
24
+ # Vedeu::Renderers::Text.new(filename: "/tmp/#{TESTCASE}.txt"),
23
25
  ]
24
26
  run_once!
25
27
  standalone!
@@ -35,14 +37,6 @@ class DSLApp
35
37
  end
36
38
  end
37
39
 
38
- def self.actual
39
- File.read('/tmp/dsl_app_012.out')
40
- end
41
-
42
- def self.expected
43
- File.read(File.expand_path('../expected/dsl_app_012.out', __FILE__))
44
- end
45
-
46
40
  def self.start(argv = ARGV)
47
41
  Vedeu::Launcher.execute!(argv)
48
42
  end
@@ -51,10 +45,5 @@ end # DSLApp
51
45
 
52
46
  DSLApp.start
53
47
 
54
- if DSLApp.expected == DSLApp.actual
55
- puts "#{__FILE__} \e[32mPassed.\e[39m"
56
- exit 0;
57
- else
58
- puts "#{__FILE__} \e[31mFailed.\e[39m"
59
- exit 1;
60
- end
48
+ load File.dirname(__FILE__) + '/test_runner.rb'
49
+ TestRunner.result(TESTCASE, __FILE__)
@@ -5,6 +5,8 @@
5
5
  require 'bundler/setup'
6
6
  require 'vedeu'
7
7
 
8
+ TESTCASE = 'dsl_app_013'
9
+
8
10
  class DSLApp
9
11
 
10
12
  Vedeu.bind(:_initialize_) { Vedeu.trigger(:_refresh_) }
@@ -15,11 +17,11 @@ class DSLApp
15
17
  log '/tmp/vedeu_views_dsl.log'
16
18
  renderers [
17
19
  Vedeu::Renderers::Terminal.new(
18
- filename: '/tmp/dsl_app_013.out',
20
+ filename: "/tmp/#{TESTCASE}.out",
19
21
  write_file: true),
20
- # Vedeu::Renderers::JSON.new(filename: '/tmp/dsl_app_013.json'),
21
- # Vedeu::Renderers::HTML.new(filename: '/tmp/dsl_app_013.html'),
22
- # Vedeu::Renderers::Text.new(filename: '/tmp/dsl_app_013.txt'),
22
+ # Vedeu::Renderers::JSON.new(filename: "/tmp/#{TESTCASE}.json"),
23
+ # Vedeu::Renderers::HTML.new(filename: "/tmp/#{TESTCASE}.html"),
24
+ # Vedeu::Renderers::Text.new(filename: "/tmp/#{TESTCASE}.txt"),
23
25
  ]
24
26
  run_once!
25
27
  standalone!
@@ -36,14 +38,6 @@ class DSLApp
36
38
  end
37
39
  end
38
40
 
39
- def self.actual
40
- File.read('/tmp/dsl_app_013.out')
41
- end
42
-
43
- def self.expected
44
- File.read(File.expand_path('../expected/dsl_app_013.out', __FILE__))
45
- end
46
-
47
41
  def self.start(argv = ARGV)
48
42
  Vedeu::Launcher.execute!(argv)
49
43
  end
@@ -52,10 +46,5 @@ end # DSLApp
52
46
 
53
47
  DSLApp.start
54
48
 
55
- if DSLApp.expected == DSLApp.actual
56
- puts "#{__FILE__} \e[32mPassed.\e[39m"
57
- exit 0;
58
- else
59
- puts "#{__FILE__} \e[31mFailed.\e[39m"
60
- exit 1;
61
- end
49
+ load File.dirname(__FILE__) + '/test_runner.rb'
50
+ TestRunner.result(TESTCASE, __FILE__)
@@ -5,6 +5,8 @@
5
5
  require 'bundler/setup'
6
6
  require 'vedeu'
7
7
 
8
+ TESTCASE = 'dsl_app_014'
9
+
8
10
  class DSLApp
9
11
 
10
12
  Vedeu.bind(:_initialize_) { Vedeu.trigger(:_refresh_) }
@@ -15,11 +17,11 @@ class DSLApp
15
17
  log '/tmp/vedeu_views_dsl.log'
16
18
  renderers [
17
19
  Vedeu::Renderers::Terminal.new(
18
- filename: '/tmp/dsl_app_014.out',
20
+ filename: "/tmp/#{TESTCASE}.out",
19
21
  write_file: true),
20
- # Vedeu::Renderers::JSON.new(filename: '/tmp/dsl_app_014.json'),
21
- # Vedeu::Renderers::HTML.new(filename: '/tmp/dsl_app_014.html'),
22
- # Vedeu::Renderers::Text.new(filename: '/tmp/dsl_app_014.txt'),
22
+ # Vedeu::Renderers::JSON.new(filename: "/tmp/#{TESTCASE}.json"),
23
+ # Vedeu::Renderers::HTML.new(filename: "/tmp/#{TESTCASE}.html"),
24
+ # Vedeu::Renderers::Text.new(filename: "/tmp/#{TESTCASE}.txt"),
23
25
  ]
24
26
  run_once!
25
27
  standalone!
@@ -36,14 +38,6 @@ class DSLApp
36
38
  end
37
39
  end
38
40
 
39
- def self.actual
40
- File.read('/tmp/dsl_app_014.out')
41
- end
42
-
43
- def self.expected
44
- File.read(File.expand_path('../expected/dsl_app_014.out', __FILE__))
45
- end
46
-
47
41
  def self.start(argv = ARGV)
48
42
  Vedeu::Launcher.execute!(argv)
49
43
  end
@@ -52,10 +46,5 @@ end # DSLApp
52
46
 
53
47
  DSLApp.start
54
48
 
55
- if DSLApp.expected == DSLApp.actual
56
- puts "#{__FILE__} \e[32mPassed.\e[39m"
57
- exit 0;
58
- else
59
- puts "#{__FILE__} \e[31mFailed.\e[39m"
60
- exit 1;
61
- end
49
+ load File.dirname(__FILE__) + '/test_runner.rb'
50
+ TestRunner.result(TESTCASE, __FILE__)
@@ -5,6 +5,8 @@
5
5
  require 'bundler/setup'
6
6
  require 'vedeu'
7
7
 
8
+ TESTCASE = 'dsl_app_015'
9
+
8
10
  class DSLApp
9
11
 
10
12
  Vedeu.bind(:_initialize_) { Vedeu.trigger(:_refresh_) }
@@ -15,11 +17,11 @@ class DSLApp
15
17
  log '/tmp/vedeu_views_dsl.log'
16
18
  renderers [
17
19
  Vedeu::Renderers::Terminal.new(
18
- filename: '/tmp/dsl_app_015.out',
20
+ filename: "/tmp/#{TESTCASE}.out",
19
21
  write_file: true),
20
- # Vedeu::Renderers::JSON.new(filename: '/tmp/dsl_app_015.json'),
21
- # Vedeu::Renderers::HTML.new(filename: '/tmp/dsl_app_015.html'),
22
- # Vedeu::Renderers::Text.new(filename: '/tmp/dsl_app_015.txt'),
22
+ # Vedeu::Renderers::JSON.new(filename: "/tmp/#{TESTCASE}.json"),
23
+ # Vedeu::Renderers::HTML.new(filename: "/tmp/#{TESTCASE}.html"),
24
+ # Vedeu::Renderers::Text.new(filename: "/tmp/#{TESTCASE}.txt"),
23
25
  ]
24
26
  run_once!
25
27
  standalone!
@@ -36,14 +38,6 @@ class DSLApp
36
38
  end
37
39
  end
38
40
 
39
- def self.actual
40
- File.read('/tmp/dsl_app_015.out')
41
- end
42
-
43
- def self.expected
44
- File.read(File.expand_path('../expected/dsl_app_015.out', __FILE__))
45
- end
46
-
47
41
  def self.start(argv = ARGV)
48
42
  Vedeu::Launcher.execute!(argv)
49
43
  end
@@ -52,10 +46,5 @@ end # DSLApp
52
46
 
53
47
  DSLApp.start
54
48
 
55
- if DSLApp.expected == DSLApp.actual
56
- puts "#{__FILE__} \e[32mPassed.\e[39m"
57
- exit 0;
58
- else
59
- puts "#{__FILE__} \e[31mFailed.\e[39m"
60
- exit 1;
61
- end
49
+ load File.dirname(__FILE__) + '/test_runner.rb'
50
+ TestRunner.result(TESTCASE, __FILE__)
@@ -5,6 +5,8 @@
5
5
  require 'bundler/setup'
6
6
  require 'vedeu'
7
7
 
8
+ TESTCASE = 'dsl_app_016'
9
+
8
10
  class DSLApp
9
11
 
10
12
  Vedeu.bind(:_initialize_) { Vedeu.trigger(:_refresh_) }
@@ -15,11 +17,11 @@ class DSLApp
15
17
  log '/tmp/vedeu_views_dsl.log'
16
18
  renderers [
17
19
  Vedeu::Renderers::Terminal.new(
18
- filename: '/tmp/dsl_app_016.out',
20
+ filename: "/tmp/#{TESTCASE}.out",
19
21
  write_file: true),
20
- # Vedeu::Renderers::JSON.new(filename: '/tmp/dsl_app_016.json'),
21
- # Vedeu::Renderers::HTML.new(filename: '/tmp/dsl_app_016.html'),
22
- # Vedeu::Renderers::Text.new(filename: '/tmp/dsl_app_016.txt'),
22
+ # Vedeu::Renderers::JSON.new(filename: "/tmp/#{TESTCASE}.json"),
23
+ # Vedeu::Renderers::HTML.new(filename: "/tmp/#{TESTCASE}.html"),
24
+ # Vedeu::Renderers::Text.new(filename: "/tmp/#{TESTCASE}.txt"),
23
25
  ]
24
26
  run_once!
25
27
  standalone!
@@ -40,14 +42,6 @@ class DSLApp
40
42
  end
41
43
  end
42
44
 
43
- def self.actual
44
- File.read('/tmp/dsl_app_016.out')
45
- end
46
-
47
- def self.expected
48
- File.read(File.expand_path('../expected/dsl_app_016.out', __FILE__))
49
- end
50
-
51
45
  def self.start(argv = ARGV)
52
46
  Vedeu::Launcher.execute!(argv)
53
47
  end
@@ -56,10 +50,5 @@ end # DSLApp
56
50
 
57
51
  DSLApp.start
58
52
 
59
- if DSLApp.expected == DSLApp.actual
60
- puts "#{__FILE__} \e[32mPassed.\e[39m"
61
- exit 0;
62
- else
63
- puts "#{__FILE__} \e[31mFailed.\e[39m"
64
- exit 1;
65
- end
53
+ load File.dirname(__FILE__) + '/test_runner.rb'
54
+ TestRunner.result(TESTCASE, __FILE__)
@@ -5,6 +5,8 @@
5
5
  require 'bundler/setup'
6
6
  require 'vedeu'
7
7
 
8
+ TESTCASE = 'dsl_app_017'
9
+
8
10
  class DSLApp
9
11
 
10
12
  Vedeu.bind(:_initialize_) { Vedeu.trigger(:_refresh_) }
@@ -15,11 +17,11 @@ class DSLApp
15
17
  log '/tmp/vedeu_views_dsl.log'
16
18
  renderers [
17
19
  Vedeu::Renderers::Terminal.new(
18
- filename: '/tmp/dsl_app_017.out',
20
+ filename: "/tmp/#{TESTCASE}.out",
19
21
  write_file: true),
20
- # Vedeu::Renderers::JSON.new(filename: '/tmp/dsl_app_017.json'),
21
- # Vedeu::Renderers::HTML.new(filename: '/tmp/dsl_app_017.html'),
22
- # Vedeu::Renderers::Text.new(filename: '/tmp/dsl_app_017.txt'),
22
+ # Vedeu::Renderers::JSON.new(filename: "/tmp/#{TESTCASE}.json"),
23
+ # Vedeu::Renderers::HTML.new(filename: "/tmp/#{TESTCASE}.html"),
24
+ # Vedeu::Renderers::Text.new(filename: "/tmp/#{TESTCASE}.txt"),
23
25
  ]
24
26
  run_once!
25
27
  standalone!
@@ -32,14 +34,6 @@ class DSLApp
32
34
  end
33
35
  end
34
36
 
35
- def self.actual
36
- File.read('/tmp/dsl_app_017.out')
37
- end
38
-
39
- def self.expected
40
- File.read(File.expand_path('../expected/dsl_app_017.out', __FILE__))
41
- end
42
-
43
37
  def self.start(argv = ARGV)
44
38
  Vedeu::Launcher.execute!(argv)
45
39
  end
@@ -48,10 +42,5 @@ end # DSLApp
48
42
 
49
43
  DSLApp.start
50
44
 
51
- if DSLApp.expected == DSLApp.actual
52
- puts "#{__FILE__} \e[32mPassed.\e[39m"
53
- exit 0;
54
- else
55
- puts "#{__FILE__} \e[31mFailed.\e[39m"
56
- exit 1;
57
- end
45
+ load File.dirname(__FILE__) + '/test_runner.rb'
46
+ TestRunner.result(TESTCASE, __FILE__)