vedeu 0.0.25 → 0.0.26
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +10 -9
- data/Rakefile +0 -10
- data/bin/composition +1 -1
- data/examples/single_interface_app.rb +7 -4
- data/lib/vedeu.rb +19 -48
- data/lib/vedeu/application.rb +8 -7
- data/lib/vedeu/configuration.rb +4 -4
- data/lib/vedeu/input/input.rb +3 -0
- data/lib/vedeu/launcher.rb +3 -0
- data/lib/vedeu/models/background.rb +13 -0
- data/lib/vedeu/models/coercions.rb +21 -0
- data/lib/vedeu/models/colour.rb +22 -0
- data/lib/vedeu/{repository → models}/command.rb +2 -0
- data/lib/vedeu/models/composition.rb +30 -0
- data/lib/vedeu/models/foreground.rb +13 -0
- data/lib/vedeu/models/interface.rb +62 -0
- data/lib/vedeu/models/interface_collection.rb +24 -0
- data/lib/vedeu/models/line.rb +22 -0
- data/lib/vedeu/models/line_collection.rb +27 -0
- data/lib/vedeu/models/presentation.rb +13 -0
- data/lib/vedeu/models/stream.rb +21 -0
- data/lib/vedeu/models/stream_collection.rb +27 -0
- data/lib/vedeu/models/style_collection.rb +23 -0
- data/lib/vedeu/output/interface_renderer.rb +62 -0
- data/lib/vedeu/output/output.rb +6 -5
- data/lib/vedeu/process/process.rb +15 -31
- data/lib/vedeu/repository/command_repository.rb +13 -14
- data/lib/vedeu/repository/interface_repository.rb +12 -13
- data/lib/vedeu/repository/repository.rb +2 -0
- data/lib/vedeu/{output → support}/cursor.rb +2 -0
- data/lib/vedeu/support/esc.rb +112 -0
- data/lib/vedeu/support/events.rb +21 -0
- data/lib/vedeu/support/geometry.rb +66 -0
- data/lib/vedeu/support/parser.rb +27 -0
- data/lib/vedeu/support/terminal.rb +31 -134
- data/lib/vedeu/{output → support}/translator.rb +12 -8
- data/lib/vedeu/{output → support}/wordwrap.rb +2 -4
- data/lib/vedeu/version.rb +1 -1
- data/test/lib/vedeu/application_test.rb +7 -2
- data/test/lib/vedeu/configuration_test.rb +13 -8
- data/test/lib/vedeu/input/input_test.rb +2 -1
- data/test/lib/vedeu/launcher_test.rb +7 -2
- data/test/lib/vedeu/models/background_test.rb +35 -0
- data/test/lib/vedeu/models/colour_test.rb +71 -0
- data/test/lib/vedeu/models/command_test.rb +109 -0
- data/test/lib/vedeu/models/composition_test.rb +187 -0
- data/test/lib/vedeu/models/foreground_test.rb +35 -0
- data/test/lib/vedeu/models/interface_collection_test.rb +57 -0
- data/test/lib/vedeu/models/interface_test.rb +220 -0
- data/test/lib/vedeu/models/line_collection_test.rb +69 -0
- data/test/lib/vedeu/models/line_test.rb +76 -0
- data/test/lib/vedeu/models/presentation_test.rb +8 -0
- data/test/lib/vedeu/models/stream_collection_test.rb +57 -0
- data/test/lib/vedeu/models/stream_test.rb +76 -0
- data/test/lib/vedeu/models/style_collection_test.rb +22 -0
- data/test/lib/vedeu/output/interface_renderer_test.rb +12 -0
- data/test/lib/vedeu/output/output_test.rb +15 -30
- data/test/lib/vedeu/process/process_test.rb +22 -44
- data/test/lib/vedeu/repository/command_repository_test.rb +22 -16
- data/test/lib/vedeu/repository/interface_repository_test.rb +62 -14
- data/test/lib/vedeu/repository/repository_test.rb +1 -0
- data/test/lib/vedeu/repository/storage_test.rb +13 -6
- data/test/lib/vedeu/{output → support}/cursor_test.rb +1 -0
- data/test/lib/vedeu/support/esc_test.rb +348 -0
- data/test/lib/vedeu/support/events_test.rb +37 -0
- data/test/lib/vedeu/support/exit_test.rb +1 -0
- data/test/lib/vedeu/support/geometry_test.rb +131 -0
- data/test/lib/vedeu/support/parser_test.rb +56 -0
- data/test/lib/vedeu/support/queue_test.rb +1 -0
- data/test/lib/vedeu/support/terminal_test.rb +1 -119
- data/test/lib/vedeu/{output → support}/translator_test.rb +17 -12
- data/test/lib/vedeu/{output → support}/wordwrap_test.rb +1 -0
- data/test/lib/vedeu/version_test.rb +1 -0
- data/test/lib/vedeu_test.rb +1 -0
- data/{lib/vedeu/repository → test/support}/dummy_command.rb +0 -0
- data/{lib/vedeu/repository → test/support}/dummy_interface.rb +0 -0
- data/test/support/json/int1_lin1_str1.json +10 -0
- data/test/support/json/int1_lin1_str3.json +18 -0
- data/test/support/json/int1_lin2_str1.json +17 -0
- data/test/support/json/int1_lin2_str3.json +33 -0
- data/test/support/json/int1_lin2_str3_styles.json +43 -0
- data/test/support/json/int2_lin1_str1.json +20 -0
- data/test/support/json/int2_lin1_str3.json +36 -0
- data/test/support/json/int2_lin2_str1.json +34 -0
- data/test/support/json/int2_lin2_str3.json +66 -0
- data/test/support/json/int2_lin2_str3_styles.json +158 -0
- data/test/support/output_1.json +9 -0
- data/test/support/output_1.rb +14 -0
- data/test/support/output_2.json +1 -0
- data/test/support/output_2.rb +19 -0
- data/test/test_helper.rb +0 -2
- data/vedeu.gemspec +0 -3
- metadata +98 -150
- data/config/cucumber.yml +0 -8
- data/documentation/composition.ebnf +0 -7
- data/documentation/diagram/ColourDirective.png +0 -0
- data/documentation/diagram/Directive.png +0 -0
- data/documentation/diagram/Interface.png +0 -0
- data/documentation/diagram/Output.png +0 -0
- data/documentation/diagram/PositionDirective.png +0 -0
- data/documentation/diagram/Stream.png +0 -0
- data/documentation/diagram/StyleDirective.png +0 -0
- data/documentation/diagram/rr-1.35.837.png +0 -0
- data/documentation/index.html +0 -325
- data/features/getting_started.feature +0 -10
- data/features/step_definitions/vedeu_steps.rb +0 -11
- data/features/support/env.rb +0 -12
- data/lib/vedeu/output/background.rb +0 -27
- data/lib/vedeu/output/base.rb +0 -57
- data/lib/vedeu/output/buffer/composition.rb +0 -24
- data/lib/vedeu/output/buffer/formatting.rb +0 -25
- data/lib/vedeu/output/buffer/interface.rb +0 -14
- data/lib/vedeu/output/buffer/line.rb +0 -14
- data/lib/vedeu/output/buffer/stream.rb +0 -14
- data/lib/vedeu/output/buffer/style.rb +0 -11
- data/lib/vedeu/output/colour.rb +0 -39
- data/lib/vedeu/output/compositor.rb +0 -72
- data/lib/vedeu/output/directive.rb +0 -63
- data/lib/vedeu/output/esc.rb +0 -61
- data/lib/vedeu/output/foreground.rb +0 -27
- data/lib/vedeu/output/geometry.rb +0 -71
- data/lib/vedeu/output/layer.rb +0 -9
- data/lib/vedeu/output/menu.rb +0 -26
- data/lib/vedeu/output/position.rb +0 -35
- data/lib/vedeu/output/style.rb +0 -38
- data/lib/vedeu/repository/interface.rb +0 -62
- data/lib/vedeu/support/json_parser.rb +0 -25
- data/lib/vedeu/support/options.rb +0 -4
- data/test/lib/vedeu/output/background_test.rb +0 -67
- data/test/lib/vedeu/output/base_test.rb +0 -8
- data/test/lib/vedeu/output/buffer/composition_test.rb +0 -57
- data/test/lib/vedeu/output/buffer/formatting_test.rb +0 -9
- data/test/lib/vedeu/output/buffer/interface_test.rb +0 -38
- data/test/lib/vedeu/output/buffer/line_test.rb +0 -64
- data/test/lib/vedeu/output/buffer/stream_test.rb +0 -61
- data/test/lib/vedeu/output/buffer/style_test.rb +0 -8
- data/test/lib/vedeu/output/colour_test.rb +0 -104
- data/test/lib/vedeu/output/compositor_test.rb +0 -247
- data/test/lib/vedeu/output/directive_test.rb +0 -82
- data/test/lib/vedeu/output/esc_test.rb +0 -175
- data/test/lib/vedeu/output/foreground_test.rb +0 -67
- data/test/lib/vedeu/output/geometry_test.rb +0 -190
- data/test/lib/vedeu/output/layer_test.rb +0 -35
- data/test/lib/vedeu/output/menu_test.rb +0 -13
- data/test/lib/vedeu/output/position_test.rb +0 -48
- data/test/lib/vedeu/output/style_test.rb +0 -132
- data/test/lib/vedeu/repository/command_test.rb +0 -73
- data/test/lib/vedeu/repository/dummy_command_test.rb +0 -27
- data/test/lib/vedeu/repository/dummy_interface_test.rb +0 -7
- data/test/lib/vedeu/repository/interface_test.rb +0 -79
- data/test/lib/vedeu/support/json_parser_test.rb +0 -45
- data/test/support/composition.json +0 -47
- data/test/support/composition.rb +0 -5
- data/test/support/composition.xml +0 -36
- data/test/support/multi_interface.json +0 -34
- data/test/support/single_interface.json +0 -19
@@ -0,0 +1 @@
|
|
1
|
+
{":interface":{":name":"dummy",":lines":[{":text":"Lorem ipsum dolor sit amet, consectetur adipiscing elit."},{":text":"Aliquam pellentesque metus id lacinia viverra. Cras malesuada"},{":text":"hendrerit neque, a pharetra risus posuere elementum. Ut felis elit,"},{":text":"semper vel ornare ut, vestibulum sit amet orci. Donec eu tortor."}]}}"
|
@@ -0,0 +1,19 @@
|
|
1
|
+
{
|
2
|
+
interface: {
|
3
|
+
name: 'dummy',
|
4
|
+
lines: [
|
5
|
+
{
|
6
|
+
text: 'Lorem ipsum dolor sit amet, consectetur adipiscing elit.'
|
7
|
+
},
|
8
|
+
{
|
9
|
+
text: 'Aliquam pellentesque metus id lacinia viverra. Cras malesuada'
|
10
|
+
},
|
11
|
+
{
|
12
|
+
text: 'hendrerit neque, a pharetra risus posuere elementum. Ut felis elit,'
|
13
|
+
},
|
14
|
+
{
|
15
|
+
text: 'semper vel ornare ut, vestibulum sit amet orci. Donec eu tortor.'
|
16
|
+
}
|
17
|
+
]
|
18
|
+
}
|
19
|
+
}
|
data/test/test_helper.rb
CHANGED
data/vedeu.gemspec
CHANGED
@@ -17,10 +17,7 @@ Gem::Specification.new do |spec|
|
|
17
17
|
spec.test_files = spec.files.grep(%r{^(test|spec|features)/})
|
18
18
|
spec.require_paths = ['lib']
|
19
19
|
|
20
|
-
spec.add_development_dependency 'aruba', '0.5.4'
|
21
20
|
spec.add_development_dependency 'bundler', '~> 1.5'
|
22
|
-
spec.add_development_dependency 'cucumber', '1.3.15'
|
23
|
-
spec.add_development_dependency 'guard-cucumber', '1.4.1'
|
24
21
|
spec.add_development_dependency 'guard', '2.6.1'
|
25
22
|
spec.add_development_dependency 'guard-minitest', '2.3.0'
|
26
23
|
spec.add_development_dependency 'minitest', '5.3.4'
|
metadata
CHANGED
@@ -1,29 +1,15 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: vedeu
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.26
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Gavin Laking
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2014-
|
11
|
+
date: 2014-07-05 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
|
-
- !ruby/object:Gem::Dependency
|
14
|
-
name: aruba
|
15
|
-
requirement: !ruby/object:Gem::Requirement
|
16
|
-
requirements:
|
17
|
-
- - '='
|
18
|
-
- !ruby/object:Gem::Version
|
19
|
-
version: 0.5.4
|
20
|
-
type: :development
|
21
|
-
prerelease: false
|
22
|
-
version_requirements: !ruby/object:Gem::Requirement
|
23
|
-
requirements:
|
24
|
-
- - '='
|
25
|
-
- !ruby/object:Gem::Version
|
26
|
-
version: 0.5.4
|
27
13
|
- !ruby/object:Gem::Dependency
|
28
14
|
name: bundler
|
29
15
|
requirement: !ruby/object:Gem::Requirement
|
@@ -38,34 +24,6 @@ dependencies:
|
|
38
24
|
- - "~>"
|
39
25
|
- !ruby/object:Gem::Version
|
40
26
|
version: '1.5'
|
41
|
-
- !ruby/object:Gem::Dependency
|
42
|
-
name: cucumber
|
43
|
-
requirement: !ruby/object:Gem::Requirement
|
44
|
-
requirements:
|
45
|
-
- - '='
|
46
|
-
- !ruby/object:Gem::Version
|
47
|
-
version: 1.3.15
|
48
|
-
type: :development
|
49
|
-
prerelease: false
|
50
|
-
version_requirements: !ruby/object:Gem::Requirement
|
51
|
-
requirements:
|
52
|
-
- - '='
|
53
|
-
- !ruby/object:Gem::Version
|
54
|
-
version: 1.3.15
|
55
|
-
- !ruby/object:Gem::Dependency
|
56
|
-
name: guard-cucumber
|
57
|
-
requirement: !ruby/object:Gem::Requirement
|
58
|
-
requirements:
|
59
|
-
- - '='
|
60
|
-
- !ruby/object:Gem::Version
|
61
|
-
version: 1.4.1
|
62
|
-
type: :development
|
63
|
-
prerelease: false
|
64
|
-
version_requirements: !ruby/object:Gem::Requirement
|
65
|
-
requirements:
|
66
|
-
- - '='
|
67
|
-
- !ruby/object:Gem::Version
|
68
|
-
version: 1.4.1
|
69
27
|
- !ruby/object:Gem::Dependency
|
70
28
|
name: guard
|
71
29
|
requirement: !ruby/object:Gem::Requirement
|
@@ -238,111 +196,98 @@ files:
|
|
238
196
|
- Rakefile
|
239
197
|
- bin/composition
|
240
198
|
- bin/vedeu
|
241
|
-
- config/cucumber.yml
|
242
|
-
- documentation/composition.ebnf
|
243
|
-
- documentation/diagram/ColourDirective.png
|
244
|
-
- documentation/diagram/Directive.png
|
245
|
-
- documentation/diagram/Interface.png
|
246
|
-
- documentation/diagram/Output.png
|
247
|
-
- documentation/diagram/PositionDirective.png
|
248
|
-
- documentation/diagram/Stream.png
|
249
|
-
- documentation/diagram/StyleDirective.png
|
250
|
-
- documentation/diagram/rr-1.35.837.png
|
251
|
-
- documentation/index.html
|
252
199
|
- examples/single_interface_app.rb
|
253
|
-
- features/getting_started.feature
|
254
|
-
- features/step_definitions/vedeu_steps.rb
|
255
|
-
- features/support/env.rb
|
256
200
|
- lib/vedeu.rb
|
257
201
|
- lib/vedeu/application.rb
|
258
202
|
- lib/vedeu/configuration.rb
|
259
203
|
- lib/vedeu/input/input.rb
|
260
204
|
- lib/vedeu/launcher.rb
|
261
|
-
- lib/vedeu/
|
262
|
-
- lib/vedeu/
|
263
|
-
- lib/vedeu/
|
264
|
-
- lib/vedeu/
|
265
|
-
- lib/vedeu/
|
266
|
-
- lib/vedeu/
|
267
|
-
- lib/vedeu/
|
268
|
-
- lib/vedeu/
|
269
|
-
- lib/vedeu/
|
270
|
-
- lib/vedeu/
|
271
|
-
- lib/vedeu/
|
272
|
-
- lib/vedeu/
|
273
|
-
- lib/vedeu/
|
274
|
-
- lib/vedeu/
|
275
|
-
- lib/vedeu/output/
|
276
|
-
- lib/vedeu/output/layer.rb
|
277
|
-
- lib/vedeu/output/menu.rb
|
205
|
+
- lib/vedeu/models/background.rb
|
206
|
+
- lib/vedeu/models/coercions.rb
|
207
|
+
- lib/vedeu/models/colour.rb
|
208
|
+
- lib/vedeu/models/command.rb
|
209
|
+
- lib/vedeu/models/composition.rb
|
210
|
+
- lib/vedeu/models/foreground.rb
|
211
|
+
- lib/vedeu/models/interface.rb
|
212
|
+
- lib/vedeu/models/interface_collection.rb
|
213
|
+
- lib/vedeu/models/line.rb
|
214
|
+
- lib/vedeu/models/line_collection.rb
|
215
|
+
- lib/vedeu/models/presentation.rb
|
216
|
+
- lib/vedeu/models/stream.rb
|
217
|
+
- lib/vedeu/models/stream_collection.rb
|
218
|
+
- lib/vedeu/models/style_collection.rb
|
219
|
+
- lib/vedeu/output/interface_renderer.rb
|
278
220
|
- lib/vedeu/output/output.rb
|
279
|
-
- lib/vedeu/output/position.rb
|
280
|
-
- lib/vedeu/output/style.rb
|
281
|
-
- lib/vedeu/output/translator.rb
|
282
|
-
- lib/vedeu/output/wordwrap.rb
|
283
221
|
- lib/vedeu/process/process.rb
|
284
|
-
- lib/vedeu/repository/command.rb
|
285
222
|
- lib/vedeu/repository/command_repository.rb
|
286
|
-
- lib/vedeu/repository/dummy_command.rb
|
287
|
-
- lib/vedeu/repository/dummy_interface.rb
|
288
|
-
- lib/vedeu/repository/interface.rb
|
289
223
|
- lib/vedeu/repository/interface_repository.rb
|
290
224
|
- lib/vedeu/repository/repository.rb
|
291
225
|
- lib/vedeu/repository/storage.rb
|
226
|
+
- lib/vedeu/support/cursor.rb
|
227
|
+
- lib/vedeu/support/esc.rb
|
228
|
+
- lib/vedeu/support/events.rb
|
292
229
|
- lib/vedeu/support/exit.rb
|
293
|
-
- lib/vedeu/support/
|
294
|
-
- lib/vedeu/support/
|
230
|
+
- lib/vedeu/support/geometry.rb
|
231
|
+
- lib/vedeu/support/parser.rb
|
295
232
|
- lib/vedeu/support/queue.rb
|
296
233
|
- lib/vedeu/support/terminal.rb
|
234
|
+
- lib/vedeu/support/translator.rb
|
235
|
+
- lib/vedeu/support/wordwrap.rb
|
297
236
|
- lib/vedeu/version.rb
|
298
237
|
- logs/.gitkeep
|
299
238
|
- test/lib/vedeu/application_test.rb
|
300
239
|
- test/lib/vedeu/configuration_test.rb
|
301
240
|
- test/lib/vedeu/input/input_test.rb
|
302
241
|
- test/lib/vedeu/launcher_test.rb
|
303
|
-
- test/lib/vedeu/
|
304
|
-
- test/lib/vedeu/
|
305
|
-
- test/lib/vedeu/
|
306
|
-
- test/lib/vedeu/
|
307
|
-
- test/lib/vedeu/
|
308
|
-
- test/lib/vedeu/
|
309
|
-
- test/lib/vedeu/
|
310
|
-
- test/lib/vedeu/
|
311
|
-
- test/lib/vedeu/
|
312
|
-
- test/lib/vedeu/
|
313
|
-
- test/lib/vedeu/
|
314
|
-
- test/lib/vedeu/
|
315
|
-
- test/lib/vedeu/
|
316
|
-
- test/lib/vedeu/output/
|
317
|
-
- test/lib/vedeu/output/geometry_test.rb
|
318
|
-
- test/lib/vedeu/output/layer_test.rb
|
319
|
-
- test/lib/vedeu/output/menu_test.rb
|
242
|
+
- test/lib/vedeu/models/background_test.rb
|
243
|
+
- test/lib/vedeu/models/colour_test.rb
|
244
|
+
- test/lib/vedeu/models/command_test.rb
|
245
|
+
- test/lib/vedeu/models/composition_test.rb
|
246
|
+
- test/lib/vedeu/models/foreground_test.rb
|
247
|
+
- test/lib/vedeu/models/interface_collection_test.rb
|
248
|
+
- test/lib/vedeu/models/interface_test.rb
|
249
|
+
- test/lib/vedeu/models/line_collection_test.rb
|
250
|
+
- test/lib/vedeu/models/line_test.rb
|
251
|
+
- test/lib/vedeu/models/presentation_test.rb
|
252
|
+
- test/lib/vedeu/models/stream_collection_test.rb
|
253
|
+
- test/lib/vedeu/models/stream_test.rb
|
254
|
+
- test/lib/vedeu/models/style_collection_test.rb
|
255
|
+
- test/lib/vedeu/output/interface_renderer_test.rb
|
320
256
|
- test/lib/vedeu/output/output_test.rb
|
321
|
-
- test/lib/vedeu/output/position_test.rb
|
322
|
-
- test/lib/vedeu/output/style_test.rb
|
323
|
-
- test/lib/vedeu/output/translator_test.rb
|
324
|
-
- test/lib/vedeu/output/wordwrap_test.rb
|
325
257
|
- test/lib/vedeu/process/process_test.rb
|
326
258
|
- test/lib/vedeu/repository/command_repository_test.rb
|
327
|
-
- test/lib/vedeu/repository/command_test.rb
|
328
|
-
- test/lib/vedeu/repository/dummy_command_test.rb
|
329
|
-
- test/lib/vedeu/repository/dummy_interface_test.rb
|
330
259
|
- test/lib/vedeu/repository/interface_repository_test.rb
|
331
|
-
- test/lib/vedeu/repository/interface_test.rb
|
332
260
|
- test/lib/vedeu/repository/repository_test.rb
|
333
261
|
- test/lib/vedeu/repository/storage_test.rb
|
262
|
+
- test/lib/vedeu/support/cursor_test.rb
|
263
|
+
- test/lib/vedeu/support/esc_test.rb
|
264
|
+
- test/lib/vedeu/support/events_test.rb
|
334
265
|
- test/lib/vedeu/support/exit_test.rb
|
335
|
-
- test/lib/vedeu/support/
|
266
|
+
- test/lib/vedeu/support/geometry_test.rb
|
267
|
+
- test/lib/vedeu/support/parser_test.rb
|
336
268
|
- test/lib/vedeu/support/queue_test.rb
|
337
269
|
- test/lib/vedeu/support/terminal_test.rb
|
270
|
+
- test/lib/vedeu/support/translator_test.rb
|
271
|
+
- test/lib/vedeu/support/wordwrap_test.rb
|
338
272
|
- test/lib/vedeu/version_test.rb
|
339
273
|
- test/lib/vedeu_test.rb
|
340
274
|
- test/support/colours.rb
|
341
|
-
- test/support/
|
342
|
-
- test/support/
|
343
|
-
- test/support/
|
344
|
-
- test/support/
|
345
|
-
- test/support/
|
275
|
+
- test/support/dummy_command.rb
|
276
|
+
- test/support/dummy_interface.rb
|
277
|
+
- test/support/json/int1_lin1_str1.json
|
278
|
+
- test/support/json/int1_lin1_str3.json
|
279
|
+
- test/support/json/int1_lin2_str1.json
|
280
|
+
- test/support/json/int1_lin2_str3.json
|
281
|
+
- test/support/json/int1_lin2_str3_styles.json
|
282
|
+
- test/support/json/int2_lin1_str1.json
|
283
|
+
- test/support/json/int2_lin1_str3.json
|
284
|
+
- test/support/json/int2_lin2_str1.json
|
285
|
+
- test/support/json/int2_lin2_str3.json
|
286
|
+
- test/support/json/int2_lin2_str3_styles.json
|
287
|
+
- test/support/output_1.json
|
288
|
+
- test/support/output_1.rb
|
289
|
+
- test/support/output_2.json
|
290
|
+
- test/support/output_2.rb
|
346
291
|
- test/test_helper.rb
|
347
292
|
- vedeu.gemspec
|
348
293
|
homepage: http://www.gavinlaking.name/
|
@@ -370,55 +315,58 @@ signing_key:
|
|
370
315
|
specification_version: 4
|
371
316
|
summary: A terminal case of wonderland.
|
372
317
|
test_files:
|
373
|
-
- features/getting_started.feature
|
374
|
-
- features/step_definitions/vedeu_steps.rb
|
375
|
-
- features/support/env.rb
|
376
318
|
- test/lib/vedeu/application_test.rb
|
377
319
|
- test/lib/vedeu/configuration_test.rb
|
378
320
|
- test/lib/vedeu/input/input_test.rb
|
379
321
|
- test/lib/vedeu/launcher_test.rb
|
380
|
-
- test/lib/vedeu/
|
381
|
-
- test/lib/vedeu/
|
382
|
-
- test/lib/vedeu/
|
383
|
-
- test/lib/vedeu/
|
384
|
-
- test/lib/vedeu/
|
385
|
-
- test/lib/vedeu/
|
386
|
-
- test/lib/vedeu/
|
387
|
-
- test/lib/vedeu/
|
388
|
-
- test/lib/vedeu/
|
389
|
-
- test/lib/vedeu/
|
390
|
-
- test/lib/vedeu/
|
391
|
-
- test/lib/vedeu/
|
392
|
-
- test/lib/vedeu/
|
393
|
-
- test/lib/vedeu/output/
|
394
|
-
- test/lib/vedeu/output/geometry_test.rb
|
395
|
-
- test/lib/vedeu/output/layer_test.rb
|
396
|
-
- test/lib/vedeu/output/menu_test.rb
|
322
|
+
- test/lib/vedeu/models/background_test.rb
|
323
|
+
- test/lib/vedeu/models/colour_test.rb
|
324
|
+
- test/lib/vedeu/models/command_test.rb
|
325
|
+
- test/lib/vedeu/models/composition_test.rb
|
326
|
+
- test/lib/vedeu/models/foreground_test.rb
|
327
|
+
- test/lib/vedeu/models/interface_collection_test.rb
|
328
|
+
- test/lib/vedeu/models/interface_test.rb
|
329
|
+
- test/lib/vedeu/models/line_collection_test.rb
|
330
|
+
- test/lib/vedeu/models/line_test.rb
|
331
|
+
- test/lib/vedeu/models/presentation_test.rb
|
332
|
+
- test/lib/vedeu/models/stream_collection_test.rb
|
333
|
+
- test/lib/vedeu/models/stream_test.rb
|
334
|
+
- test/lib/vedeu/models/style_collection_test.rb
|
335
|
+
- test/lib/vedeu/output/interface_renderer_test.rb
|
397
336
|
- test/lib/vedeu/output/output_test.rb
|
398
|
-
- test/lib/vedeu/output/position_test.rb
|
399
|
-
- test/lib/vedeu/output/style_test.rb
|
400
|
-
- test/lib/vedeu/output/translator_test.rb
|
401
|
-
- test/lib/vedeu/output/wordwrap_test.rb
|
402
337
|
- test/lib/vedeu/process/process_test.rb
|
403
338
|
- test/lib/vedeu/repository/command_repository_test.rb
|
404
|
-
- test/lib/vedeu/repository/command_test.rb
|
405
|
-
- test/lib/vedeu/repository/dummy_command_test.rb
|
406
|
-
- test/lib/vedeu/repository/dummy_interface_test.rb
|
407
339
|
- test/lib/vedeu/repository/interface_repository_test.rb
|
408
|
-
- test/lib/vedeu/repository/interface_test.rb
|
409
340
|
- test/lib/vedeu/repository/repository_test.rb
|
410
341
|
- test/lib/vedeu/repository/storage_test.rb
|
342
|
+
- test/lib/vedeu/support/cursor_test.rb
|
343
|
+
- test/lib/vedeu/support/esc_test.rb
|
344
|
+
- test/lib/vedeu/support/events_test.rb
|
411
345
|
- test/lib/vedeu/support/exit_test.rb
|
412
|
-
- test/lib/vedeu/support/
|
346
|
+
- test/lib/vedeu/support/geometry_test.rb
|
347
|
+
- test/lib/vedeu/support/parser_test.rb
|
413
348
|
- test/lib/vedeu/support/queue_test.rb
|
414
349
|
- test/lib/vedeu/support/terminal_test.rb
|
350
|
+
- test/lib/vedeu/support/translator_test.rb
|
351
|
+
- test/lib/vedeu/support/wordwrap_test.rb
|
415
352
|
- test/lib/vedeu/version_test.rb
|
416
353
|
- test/lib/vedeu_test.rb
|
417
354
|
- test/support/colours.rb
|
418
|
-
- test/support/
|
419
|
-
- test/support/
|
420
|
-
- test/support/
|
421
|
-
- test/support/
|
422
|
-
- test/support/
|
355
|
+
- test/support/dummy_command.rb
|
356
|
+
- test/support/dummy_interface.rb
|
357
|
+
- test/support/json/int1_lin1_str1.json
|
358
|
+
- test/support/json/int1_lin1_str3.json
|
359
|
+
- test/support/json/int1_lin2_str1.json
|
360
|
+
- test/support/json/int1_lin2_str3.json
|
361
|
+
- test/support/json/int1_lin2_str3_styles.json
|
362
|
+
- test/support/json/int2_lin1_str1.json
|
363
|
+
- test/support/json/int2_lin1_str3.json
|
364
|
+
- test/support/json/int2_lin2_str1.json
|
365
|
+
- test/support/json/int2_lin2_str3.json
|
366
|
+
- test/support/json/int2_lin2_str3_styles.json
|
367
|
+
- test/support/output_1.json
|
368
|
+
- test/support/output_1.rb
|
369
|
+
- test/support/output_2.json
|
370
|
+
- test/support/output_2.rb
|
423
371
|
- test/test_helper.rb
|
424
372
|
has_rdoc:
|
data/config/cucumber.yml
DELETED
@@ -1,8 +0,0 @@
|
|
1
|
-
<%
|
2
|
-
rerun = File.file?('rerun.txt') ? IO.read('rerun.txt') : ""
|
3
|
-
rerun_opts = rerun.to_s.strip.empty? ? "--format #{ENV['CUCUMBER_FORMAT'] || 'progress'} features" : "--format #{ENV['CUCUMBER_FORMAT'] || 'pretty'} #{rerun}"
|
4
|
-
std_opts = "--format #{ENV['CUCUMBER_FORMAT'] || 'rerun'} --strict --tags ~@wip --tags ~@ok --tags ~@pending --tags ~@failing"
|
5
|
-
%>
|
6
|
-
default: <%= std_opts %> features --format rerun
|
7
|
-
wip: --tags @wip:99 --wip features --format pretty
|
8
|
-
rerun: <%= rerun_opts %> --format rerun --out rerun.txt --strict --tags ~@wip
|
@@ -1,7 +0,0 @@
|
|
1
|
-
Output ::= (('{' (Interface '=>' Stream) '}' (',' | ))* | ('[' (Stream (',' | ))* ']' (',' | ))* | ('[' (String (',' | ))* ']') (',' | ))*
|
2
|
-
Stream ::= ('[' (Directive (',' | ) | String (',' | ))* ']' (',' | ))*
|
3
|
-
Interface ::= String
|
4
|
-
Directive ::= PositionDirective | ColourDirective | StyleDirective
|
5
|
-
PositionDirective ::= '[' Fixnum ',' Fixnum ']'
|
6
|
-
StyleDirective ::= Symbol
|
7
|
-
ColourDirective ::= '[' Symbol ',' Symbol ']'
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
data/documentation/index.html
DELETED
@@ -1,325 +0,0 @@
|
|
1
|
-
<!DOCTYPE html
|
2
|
-
PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
|
3
|
-
<html>
|
4
|
-
<head>
|
5
|
-
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
|
6
|
-
<meta content="Railroad Diagram Generator 1.35.837" name="generator"><style type="text/css" xml:space="preserve">
|
7
|
-
::-moz-selection
|
8
|
-
{
|
9
|
-
color: #FFFCF0;
|
10
|
-
background: #0F0C00;
|
11
|
-
}
|
12
|
-
::selection
|
13
|
-
{
|
14
|
-
color: #FFFCF0;
|
15
|
-
background: #0F0C00;
|
16
|
-
}
|
17
|
-
.ebnf a
|
18
|
-
{
|
19
|
-
text-decoration: none;
|
20
|
-
}
|
21
|
-
.ebnf a:hover
|
22
|
-
{
|
23
|
-
color: #050400;
|
24
|
-
text-decoration: underline;
|
25
|
-
}
|
26
|
-
.signature
|
27
|
-
{
|
28
|
-
color: #806600;
|
29
|
-
font-size: 11px;
|
30
|
-
text-align: right;
|
31
|
-
}
|
32
|
-
body
|
33
|
-
{
|
34
|
-
font: normal 12px Verdana, sans-serif;
|
35
|
-
color: #0F0C00;
|
36
|
-
background: #FFFCF0;
|
37
|
-
}
|
38
|
-
a:link, a:visited
|
39
|
-
{
|
40
|
-
color: #0F0C00;
|
41
|
-
}
|
42
|
-
a:link.signature, a:visited.signature
|
43
|
-
{
|
44
|
-
color: #806600;
|
45
|
-
}
|
46
|
-
a.button, #tabs li a
|
47
|
-
{
|
48
|
-
padding: 0.25em 0.5em;
|
49
|
-
border: 1px solid #806600;
|
50
|
-
background: #F1E8C6;
|
51
|
-
color: #806600;
|
52
|
-
text-decoration: none;
|
53
|
-
font-weight: bold;
|
54
|
-
}
|
55
|
-
a.button:hover, #tabs li a:hover
|
56
|
-
{
|
57
|
-
color: #050400;
|
58
|
-
background: #FFF6D1;
|
59
|
-
border-color: #050400;
|
60
|
-
}
|
61
|
-
#tabs
|
62
|
-
{
|
63
|
-
padding: 3px 10px;
|
64
|
-
margin-left: 0;
|
65
|
-
margin-top: 58px;
|
66
|
-
border-bottom: 1px solid #0F0C00;
|
67
|
-
}
|
68
|
-
#tabs li
|
69
|
-
{
|
70
|
-
list-style: none;
|
71
|
-
margin-left: 5px;
|
72
|
-
display: inline;
|
73
|
-
}
|
74
|
-
#tabs li a
|
75
|
-
{
|
76
|
-
border-bottom: 1px solid #0F0C00;
|
77
|
-
}
|
78
|
-
#tabs li a.active
|
79
|
-
{
|
80
|
-
color: #0F0C00;
|
81
|
-
background: #FFFCF0;
|
82
|
-
border-color: #0F0C00;
|
83
|
-
border-bottom: 1px solid #FFFCF0;
|
84
|
-
outline: none;
|
85
|
-
}
|
86
|
-
#divs div
|
87
|
-
{
|
88
|
-
display: none;
|
89
|
-
overflow:auto;
|
90
|
-
}
|
91
|
-
#divs div.active
|
92
|
-
{
|
93
|
-
display: block;
|
94
|
-
}
|
95
|
-
#text
|
96
|
-
{
|
97
|
-
border-color: #806600;
|
98
|
-
background: #FFFEFA;
|
99
|
-
color: #050400;
|
100
|
-
}
|
101
|
-
.small
|
102
|
-
{
|
103
|
-
vertical-align: top;
|
104
|
-
text-align: right;
|
105
|
-
font-size: 9px;
|
106
|
-
font-weight: normal;
|
107
|
-
line-height: 120%;
|
108
|
-
}
|
109
|
-
td.small
|
110
|
-
{
|
111
|
-
padding-top: 0px;
|
112
|
-
}
|
113
|
-
.hidden
|
114
|
-
{
|
115
|
-
visibility: hidden;
|
116
|
-
}
|
117
|
-
td:hover .hidden
|
118
|
-
{
|
119
|
-
visibility: visible;
|
120
|
-
}
|
121
|
-
div.download
|
122
|
-
{
|
123
|
-
display: none;
|
124
|
-
background: #FFFCF0;
|
125
|
-
position: absolute;
|
126
|
-
right: 34px;
|
127
|
-
top: 94px;
|
128
|
-
padding: 10px;
|
129
|
-
border: 1px dotted #0F0C00;
|
130
|
-
}
|
131
|
-
#divs div.ebnf, div.ebnf
|
132
|
-
{
|
133
|
-
display: block;
|
134
|
-
padding-left: 16px;
|
135
|
-
padding-top: 2px;
|
136
|
-
padding-bottom: 2px;
|
137
|
-
background: #FFF6D1;
|
138
|
-
}
|
139
|
-
table.palette
|
140
|
-
{
|
141
|
-
border-top: 1px solid #050400;
|
142
|
-
border-right: 1px solid #050400;
|
143
|
-
margin-bottom: 4px
|
144
|
-
}
|
145
|
-
td.palette
|
146
|
-
{
|
147
|
-
border-bottom: 1px solid #050400;
|
148
|
-
border-left: 1px solid #050400;
|
149
|
-
}
|
150
|
-
a.palette
|
151
|
-
{
|
152
|
-
padding: 2px 3px 2px 10px;
|
153
|
-
text-decoration: none;
|
154
|
-
}
|
155
|
-
.palette
|
156
|
-
{
|
157
|
-
-webkit-user-select: none;
|
158
|
-
-khtml-user-select: none;
|
159
|
-
-moz-user-select: none;
|
160
|
-
-o-user-select: none;
|
161
|
-
-ms-user-select: none;
|
162
|
-
}
|
163
|
-
</style></head>
|
164
|
-
<body>
|
165
|
-
|
166
|
-
<p style="font-size: 14px; font-weight:bold"><a name="Output">Output:</a></p>
|
167
|
-
<img border="0" height="328" src="diagram/Output.png" usemap="#Output.map" width="622"><map name="Output.map">
|
168
|
-
<area coords="157,33,233,65" href="#Interface" shape="rect" title="Interface">
|
169
|
-
<area coords="313,33,377,65" href="#Stream" shape="rect" title="Stream">
|
170
|
-
<area coords="195,131,259,163" href="#Stream" shape="rect" title="Stream">
|
171
|
-
<area coords="175,229,231,261" href="#String" shape="rect" title="String"></map>
|
172
|
-
|
173
|
-
<p>
|
174
|
-
|
175
|
-
<div class="ebnf"><pre><a href="#Output" shape="rect" title="Output">Output</a> ::= ( ( '{' <a href="#Interface" shape="rect" title="Interface">Interface</a> '=>' <a href="#Stream" shape="rect" title="Stream">Stream</a> '}' ( ',' | ) )* | ( '[' ( <a href="#Stream" shape="rect" title="Stream">Stream</a> ( ',' | ) )* ']' ( ',' | ) )* | '[' ( <a href="#String" shape="rect" title="String">String</a> ( ',' | ) )* ']' ( ',' | ) )*</pre></div>
|
176
|
-
|
177
|
-
</p>
|
178
|
-
|
179
|
-
<p>no references</p><br><p style="font-size: 14px; font-weight:bold"><a name="Stream">Stream:</a></p>
|
180
|
-
<img border="0" height="182" src="diagram/Stream.png" usemap="#Stream.map" width="592"><map name="Stream.map">
|
181
|
-
<area coords="175,33,249,65" href="#Directive" shape="rect" title="Directive">
|
182
|
-
<area coords="175,99,231,131" href="#String" shape="rect" title="String"></map>
|
183
|
-
|
184
|
-
<p>
|
185
|
-
|
186
|
-
<div class="ebnf"><pre><a href="#Stream" shape="rect" title="Stream">Stream</a> ::= ( '[' ( <a href="#Directive" shape="rect" title="Directive">Directive</a> ( ',' | ) | <a href="#String" shape="rect" title="String">String</a> ( ',' | ) )* ']' ( ',' | ) )*</pre></div>
|
187
|
-
|
188
|
-
</p>
|
189
|
-
|
190
|
-
<p>referenced by:
|
191
|
-
|
192
|
-
<ul>
|
193
|
-
|
194
|
-
<li><a href="#Output" title="Output">Output</a></li>
|
195
|
-
|
196
|
-
</ul>
|
197
|
-
|
198
|
-
</p><br><p style="font-size: 14px; font-weight:bold"><a name="Interface">Interface:</a></p>
|
199
|
-
<img border="0" height="36" src="diagram/Interface.png" usemap="#Interface.map" width="114"><map name="Interface.map">
|
200
|
-
<area coords="29,1,85,33" href="#String" shape="rect" title="String"></map>
|
201
|
-
|
202
|
-
<p>
|
203
|
-
|
204
|
-
<div class="ebnf"><pre><a href="#Interface" shape="rect" title="Interface">Interface</a>
|
205
|
-
::= <a href="#String" shape="rect" title="String">String</a></pre></div>
|
206
|
-
|
207
|
-
</p>
|
208
|
-
|
209
|
-
<p>referenced by:
|
210
|
-
|
211
|
-
<ul>
|
212
|
-
|
213
|
-
<li><a href="#Output" title="Output">Output</a></li>
|
214
|
-
|
215
|
-
</ul>
|
216
|
-
|
217
|
-
</p><br><p style="font-size: 14px; font-weight:bold"><a name="Directive">Directive:</a></p>
|
218
|
-
<img border="0" height="124" src="diagram/Directive.png" usemap="#Directive.map" width="222"><map name="Directive.map">
|
219
|
-
<area coords="49,1,173,33" href="#PositionDirective" shape="rect" title="PositionDirective">
|
220
|
-
<area coords="49,45,163,77" href="#ColourDirective" shape="rect" title="ColourDirective">
|
221
|
-
<area coords="49,89,153,121" href="#StyleDirective" shape="rect" title="StyleDirective"></map>
|
222
|
-
|
223
|
-
<p>
|
224
|
-
|
225
|
-
<div class="ebnf"><pre><a href="#Directive" shape="rect" title="Directive">Directive</a>
|
226
|
-
::= <a href="#PositionDirective" shape="rect" title="PositionDirective">PositionDirective</a>
|
227
|
-
| <a href="#ColourDirective" shape="rect" title="ColourDirective">ColourDirective</a>
|
228
|
-
| <a href="#StyleDirective" shape="rect" title="StyleDirective">StyleDirective</a></pre></div>
|
229
|
-
|
230
|
-
</p>
|
231
|
-
|
232
|
-
<p>referenced by:
|
233
|
-
|
234
|
-
<ul>
|
235
|
-
|
236
|
-
<li><a href="#Stream" title="Stream">Stream</a></li>
|
237
|
-
|
238
|
-
</ul>
|
239
|
-
|
240
|
-
</p><br><p style="font-size: 14px; font-weight:bold"><a name="PositionDirective">PositionDirective:</a></p>
|
241
|
-
<img border="0" height="36" src="diagram/PositionDirective.png" usemap="#PositionDirective.map" width="342"><map name="PositionDirective.map">
|
242
|
-
<area coords="75,1,139,33" href="#Fixnum" shape="rect" title="Fixnum">
|
243
|
-
<area coords="203,1,267,33" href="#Fixnum" shape="rect" title="Fixnum"></map>
|
244
|
-
|
245
|
-
<p>
|
246
|
-
|
247
|
-
<div class="ebnf"><pre><a href="#PositionDirective" shape="rect" title="PositionDirective">PositionDirective</a>
|
248
|
-
::= '[' <a href="#Fixnum" shape="rect" title="Fixnum">Fixnum</a> ',' <a href="#Fixnum" shape="rect" title="Fixnum">Fixnum</a> ']'</pre></div>
|
249
|
-
|
250
|
-
</p>
|
251
|
-
|
252
|
-
<p>referenced by:
|
253
|
-
|
254
|
-
<ul>
|
255
|
-
|
256
|
-
<li><a href="#Directive" title="Directive">Directive</a></li>
|
257
|
-
|
258
|
-
</ul>
|
259
|
-
|
260
|
-
</p><br><p style="font-size: 14px; font-weight:bold"><a name="StyleDirective">StyleDirective:</a></p>
|
261
|
-
<img border="0" height="36" src="diagram/StyleDirective.png" usemap="#StyleDirective.map" width="122"><map name="StyleDirective.map">
|
262
|
-
<area coords="29,1,93,33" href="#Symbol" shape="rect" title="Symbol"></map>
|
263
|
-
|
264
|
-
<p>
|
265
|
-
|
266
|
-
<div class="ebnf"><pre><a href="#StyleDirective" shape="rect" title="StyleDirective">StyleDirective</a>
|
267
|
-
::= <a href="#Symbol" shape="rect" title="Symbol">Symbol</a></pre></div>
|
268
|
-
|
269
|
-
</p>
|
270
|
-
|
271
|
-
<p>referenced by:
|
272
|
-
|
273
|
-
<ul>
|
274
|
-
|
275
|
-
<li><a href="#Directive" title="Directive">Directive</a></li>
|
276
|
-
|
277
|
-
</ul>
|
278
|
-
|
279
|
-
</p><br><p style="font-size: 14px; font-weight:bold"><a name="ColourDirective">ColourDirective:</a></p>
|
280
|
-
<img border="0" height="36" src="diagram/ColourDirective.png" usemap="#ColourDirective.map" width="342"><map name="ColourDirective.map">
|
281
|
-
<area coords="75,1,139,33" href="#Symbol" shape="rect" title="Symbol">
|
282
|
-
<area coords="203,1,267,33" href="#Symbol" shape="rect" title="Symbol"></map>
|
283
|
-
|
284
|
-
<p>
|
285
|
-
|
286
|
-
<div class="ebnf"><pre><a href="#ColourDirective" shape="rect" title="ColourDirective">ColourDirective</a>
|
287
|
-
::= '[' <a href="#Symbol" shape="rect" title="Symbol">Symbol</a> ',' <a href="#Symbol" shape="rect" title="Symbol">Symbol</a> ']'</pre></div>
|
288
|
-
|
289
|
-
</p>
|
290
|
-
|
291
|
-
<p>referenced by:
|
292
|
-
|
293
|
-
<ul>
|
294
|
-
|
295
|
-
<li><a href="#Directive" title="Directive">Directive</a></li>
|
296
|
-
|
297
|
-
</ul>
|
298
|
-
|
299
|
-
</p><br><hr>
|
300
|
-
|
301
|
-
<p>
|
302
|
-
|
303
|
-
<table border="0" class="signature">
|
304
|
-
|
305
|
-
<tr>
|
306
|
-
|
307
|
-
<td style="width: 100%"> </td>
|
308
|
-
|
309
|
-
<td valign="top">
|
310
|
-
|
311
|
-
<nobr class="signature">... generated by <a class="signature" href="http://www.bottlecaps.de/rr/ui" name="Railroad-Diagram-Generator" target="_blank" title="http://www.bottlecaps.de/rr/ui">Railroad Diagram Generator</a></nobr>
|
312
|
-
|
313
|
-
</td>
|
314
|
-
|
315
|
-
<td><a href="http://www.bottlecaps.de/rr/ui" name="Railroad-Diagram-Generator" target="_blank" title="http://www.bottlecaps.de/rr/ui">
|
316
|
-
<img border="0" height="16" src="diagram/rr-1.35.837.png" width="16"></a></td>
|
317
|
-
|
318
|
-
</tr>
|
319
|
-
|
320
|
-
</table>
|
321
|
-
|
322
|
-
</p>
|
323
|
-
|
324
|
-
</body>
|
325
|
-
</html>
|