vedeu 0.2.3 → 0.2.4

Sign up to get free protection for your applications and to get access to all the features.
Files changed (90) hide show
  1. checksums.yaml +4 -4
  2. data/docs/api.md +2 -0
  3. data/docs/events.md +0 -4
  4. data/examples/cursor_app/cursor_app.rb +56 -44
  5. data/lib/vedeu/api/api.rb +4 -6
  6. data/lib/vedeu/api/composition.rb +3 -7
  7. data/lib/vedeu/api/interface.rb +2 -3
  8. data/lib/vedeu/api/menu.rb +5 -3
  9. data/lib/vedeu/api/stream.rb +34 -0
  10. data/lib/vedeu/application.rb +4 -7
  11. data/lib/vedeu/configuration/api.rb +0 -5
  12. data/lib/vedeu/configuration/cli.rb +0 -1
  13. data/lib/vedeu/configuration/configuration.rb +0 -12
  14. data/lib/vedeu/input/input.rb +0 -3
  15. data/lib/vedeu/launcher.rb +0 -1
  16. data/lib/vedeu/models/{attributes/background.rb → background.rb} +0 -4
  17. data/lib/vedeu/models/char.rb +43 -0
  18. data/lib/vedeu/models/colour.rb +0 -1
  19. data/lib/vedeu/models/composition.rb +4 -3
  20. data/lib/vedeu/models/cursor.rb +70 -146
  21. data/lib/vedeu/models/{attributes/foreground.rb → foreground.rb} +0 -4
  22. data/lib/vedeu/models/geometry.rb +19 -20
  23. data/lib/vedeu/models/interface.rb +36 -5
  24. data/lib/vedeu/models/keymap.rb +7 -4
  25. data/lib/vedeu/models/line.rb +31 -11
  26. data/lib/vedeu/models/offset.rb +84 -0
  27. data/lib/vedeu/models/stream.rb +37 -13
  28. data/lib/vedeu/models/style.rb +0 -1
  29. data/lib/vedeu/output/area.rb +284 -0
  30. data/lib/vedeu/output/clear.rb +2 -4
  31. data/lib/vedeu/output/compositor.rb +0 -4
  32. data/lib/vedeu/output/refresh.rb +1 -2
  33. data/lib/vedeu/output/render.rb +12 -163
  34. data/lib/vedeu/output/view.rb +0 -2
  35. data/lib/vedeu/output/viewport.rb +132 -0
  36. data/lib/vedeu/repositories/buffers.rb +11 -22
  37. data/lib/vedeu/repositories/cursors.rb +20 -47
  38. data/lib/vedeu/repositories/events.rb +2 -1
  39. data/lib/vedeu/repositories/focus.rb +16 -16
  40. data/lib/vedeu/repositories/groups.rb +1 -4
  41. data/lib/vedeu/repositories/interfaces.rb +10 -3
  42. data/lib/vedeu/repositories/keymaps.rb +0 -3
  43. data/lib/vedeu/repositories/menus.rb +0 -2
  44. data/lib/vedeu/repositories/offsets.rb +47 -0
  45. data/lib/vedeu/{models/attributes → support}/coercions.rb +0 -0
  46. data/lib/vedeu/{models/attributes → support}/colour_translator.rb +0 -16
  47. data/lib/vedeu/support/esc.rb +0 -22
  48. data/lib/vedeu/support/event.rb +1 -17
  49. data/lib/vedeu/support/exceptions.rb +0 -3
  50. data/lib/vedeu/support/grid.rb +0 -3
  51. data/lib/vedeu/support/log.rb +13 -14
  52. data/lib/vedeu/support/move.rb +50 -0
  53. data/lib/vedeu/support/position.rb +17 -9
  54. data/lib/vedeu/{models/attributes → support}/presentation.rb +1 -4
  55. data/lib/vedeu/support/registrar.rb +2 -2
  56. data/lib/vedeu/support/repository.rb +23 -2
  57. data/lib/vedeu/support/terminal.rb +0 -2
  58. data/lib/vedeu/support/trace.rb +0 -11
  59. data/lib/vedeu.rb +11 -5
  60. data/test/lib/vedeu/api/api_test.rb +14 -5
  61. data/test/lib/vedeu/api/composition_test.rb +9 -26
  62. data/test/lib/vedeu/api/keymap_test.rb +1 -1
  63. data/test/lib/vedeu/api/menu_test.rb +6 -0
  64. data/test/lib/vedeu/api/stream_test.rb +32 -0
  65. data/test/lib/vedeu/models/{attributes/background_test.rb → background_test.rb} +0 -0
  66. data/test/lib/vedeu/models/char_test.rb +46 -0
  67. data/test/lib/vedeu/models/composition_test.rb +7 -0
  68. data/test/lib/vedeu/models/cursor_test.rb +63 -80
  69. data/test/lib/vedeu/models/{attributes/foreground_test.rb → foreground_test.rb} +0 -0
  70. data/test/lib/vedeu/models/geometry_test.rb +8 -10
  71. data/test/lib/vedeu/models/interface_test.rb +26 -21
  72. data/test/lib/vedeu/models/keymap_test.rb +6 -0
  73. data/test/lib/vedeu/models/line_test.rb +82 -3
  74. data/test/lib/vedeu/models/offset_test.rb +121 -0
  75. data/test/lib/vedeu/models/stream_test.rb +107 -8
  76. data/test/lib/vedeu/output/area_test.rb +242 -0
  77. data/test/lib/vedeu/output/compositor_test.rb +12 -3
  78. data/test/lib/vedeu/output/render_test.rb +34 -39
  79. data/test/lib/vedeu/output/viewport_test.rb +36 -0
  80. data/test/lib/vedeu/repositories/cursors_test.rb +32 -9
  81. data/test/lib/vedeu/repositories/focus_test.rb +8 -0
  82. data/test/lib/vedeu/repositories/offsets_test.rb +32 -0
  83. data/test/lib/vedeu/{models/attributes → support}/coercions_test.rb +0 -0
  84. data/test/lib/vedeu/{models/attributes → support}/colour_translator_test.rb +0 -0
  85. data/test/lib/vedeu/support/move_test.rb +35 -0
  86. data/test/lib/vedeu/{models/attributes → support}/presentation_test.rb +0 -0
  87. data/test/lib/vedeu/support/registrar_test.rb +6 -0
  88. data/test/lib/vedeu_test.rb +5 -0
  89. data/vedeu.gemspec +1 -1
  90. metadata +37 -17
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: vedeu
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.3
4
+ version: 0.2.4
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-10-11 00:00:00.000000000 Z
11
+ date: 2014-10-19 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler
@@ -204,25 +204,26 @@ files:
204
204
  - lib/vedeu/configuration/configuration.rb
205
205
  - lib/vedeu/input/input.rb
206
206
  - lib/vedeu/launcher.rb
207
- - lib/vedeu/models/attributes/background.rb
208
- - lib/vedeu/models/attributes/coercions.rb
209
- - lib/vedeu/models/attributes/colour_translator.rb
210
- - lib/vedeu/models/attributes/foreground.rb
211
- - lib/vedeu/models/attributes/presentation.rb
207
+ - lib/vedeu/models/background.rb
208
+ - lib/vedeu/models/char.rb
212
209
  - lib/vedeu/models/colour.rb
213
210
  - lib/vedeu/models/composition.rb
214
211
  - lib/vedeu/models/cursor.rb
212
+ - lib/vedeu/models/foreground.rb
215
213
  - lib/vedeu/models/geometry.rb
216
214
  - lib/vedeu/models/interface.rb
217
215
  - lib/vedeu/models/keymap.rb
218
216
  - lib/vedeu/models/line.rb
217
+ - lib/vedeu/models/offset.rb
219
218
  - lib/vedeu/models/stream.rb
220
219
  - lib/vedeu/models/style.rb
220
+ - lib/vedeu/output/area.rb
221
221
  - lib/vedeu/output/clear.rb
222
222
  - lib/vedeu/output/compositor.rb
223
223
  - lib/vedeu/output/refresh.rb
224
224
  - lib/vedeu/output/render.rb
225
225
  - lib/vedeu/output/view.rb
226
+ - lib/vedeu/output/viewport.rb
226
227
  - lib/vedeu/repositories/buffers.rb
227
228
  - lib/vedeu/repositories/cursors.rb
228
229
  - lib/vedeu/repositories/events.rb
@@ -231,6 +232,9 @@ files:
231
232
  - lib/vedeu/repositories/interfaces.rb
232
233
  - lib/vedeu/repositories/keymaps.rb
233
234
  - lib/vedeu/repositories/menus.rb
235
+ - lib/vedeu/repositories/offsets.rb
236
+ - lib/vedeu/support/coercions.rb
237
+ - lib/vedeu/support/colour_translator.rb
234
238
  - lib/vedeu/support/common.rb
235
239
  - lib/vedeu/support/esc.rb
236
240
  - lib/vedeu/support/event.rb
@@ -239,7 +243,9 @@ files:
239
243
  - lib/vedeu/support/keymap_validator.rb
240
244
  - lib/vedeu/support/log.rb
241
245
  - lib/vedeu/support/menu.rb
246
+ - lib/vedeu/support/move.rb
242
247
  - lib/vedeu/support/position.rb
248
+ - lib/vedeu/support/presentation.rb
243
249
  - lib/vedeu/support/registrar.rb
244
250
  - lib/vedeu/support/repository.rb
245
251
  - lib/vedeu/support/terminal.rb
@@ -263,25 +269,26 @@ files:
263
269
  - test/lib/vedeu/configuration/configuration_test.rb
264
270
  - test/lib/vedeu/input/input_test.rb
265
271
  - test/lib/vedeu/launcher_test.rb
266
- - test/lib/vedeu/models/attributes/background_test.rb
267
- - test/lib/vedeu/models/attributes/coercions_test.rb
268
- - test/lib/vedeu/models/attributes/colour_translator_test.rb
269
- - test/lib/vedeu/models/attributes/foreground_test.rb
270
- - test/lib/vedeu/models/attributes/presentation_test.rb
272
+ - test/lib/vedeu/models/background_test.rb
273
+ - test/lib/vedeu/models/char_test.rb
271
274
  - test/lib/vedeu/models/colour_test.rb
272
275
  - test/lib/vedeu/models/composition_test.rb
273
276
  - test/lib/vedeu/models/cursor_test.rb
277
+ - test/lib/vedeu/models/foreground_test.rb
274
278
  - test/lib/vedeu/models/geometry_test.rb
275
279
  - test/lib/vedeu/models/interface_test.rb
276
280
  - test/lib/vedeu/models/keymap_test.rb
277
281
  - test/lib/vedeu/models/line_test.rb
282
+ - test/lib/vedeu/models/offset_test.rb
278
283
  - test/lib/vedeu/models/stream_test.rb
279
284
  - test/lib/vedeu/models/style_test.rb
285
+ - test/lib/vedeu/output/area_test.rb
280
286
  - test/lib/vedeu/output/clear_test.rb
281
287
  - test/lib/vedeu/output/compositor_test.rb
282
288
  - test/lib/vedeu/output/refresh_test.rb
283
289
  - test/lib/vedeu/output/render_test.rb
284
290
  - test/lib/vedeu/output/view_test.rb
291
+ - test/lib/vedeu/output/viewport_test.rb
285
292
  - test/lib/vedeu/repositories/buffers_test.rb
286
293
  - test/lib/vedeu/repositories/cursors_test.rb
287
294
  - test/lib/vedeu/repositories/events_test.rb
@@ -290,6 +297,9 @@ files:
290
297
  - test/lib/vedeu/repositories/interfaces_test.rb
291
298
  - test/lib/vedeu/repositories/keymaps_test.rb
292
299
  - test/lib/vedeu/repositories/menus_test.rb
300
+ - test/lib/vedeu/repositories/offsets_test.rb
301
+ - test/lib/vedeu/support/coercions_test.rb
302
+ - test/lib/vedeu/support/colour_translator_test.rb
293
303
  - test/lib/vedeu/support/common_test.rb
294
304
  - test/lib/vedeu/support/esc_test.rb
295
305
  - test/lib/vedeu/support/event_test.rb
@@ -297,11 +307,14 @@ files:
297
307
  - test/lib/vedeu/support/keymap_validator_test.rb
298
308
  - test/lib/vedeu/support/log_test.rb
299
309
  - test/lib/vedeu/support/menu_test.rb
310
+ - test/lib/vedeu/support/move_test.rb
300
311
  - test/lib/vedeu/support/position_test.rb
312
+ - test/lib/vedeu/support/presentation_test.rb
301
313
  - test/lib/vedeu/support/registrar_test.rb
302
314
  - test/lib/vedeu/support/repository_test.rb
303
315
  - test/lib/vedeu/support/terminal_test.rb
304
316
  - test/lib/vedeu/support/trace_test.rb
317
+ - test/lib/vedeu_test.rb
305
318
  - test/support/colour_test.sh
306
319
  - test/support/stats.sh
307
320
  - test/test_helper.rb
@@ -349,25 +362,26 @@ test_files:
349
362
  - test/lib/vedeu/configuration/configuration_test.rb
350
363
  - test/lib/vedeu/input/input_test.rb
351
364
  - test/lib/vedeu/launcher_test.rb
352
- - test/lib/vedeu/models/attributes/background_test.rb
353
- - test/lib/vedeu/models/attributes/coercions_test.rb
354
- - test/lib/vedeu/models/attributes/colour_translator_test.rb
355
- - test/lib/vedeu/models/attributes/foreground_test.rb
356
- - test/lib/vedeu/models/attributes/presentation_test.rb
365
+ - test/lib/vedeu/models/background_test.rb
366
+ - test/lib/vedeu/models/char_test.rb
357
367
  - test/lib/vedeu/models/colour_test.rb
358
368
  - test/lib/vedeu/models/composition_test.rb
359
369
  - test/lib/vedeu/models/cursor_test.rb
370
+ - test/lib/vedeu/models/foreground_test.rb
360
371
  - test/lib/vedeu/models/geometry_test.rb
361
372
  - test/lib/vedeu/models/interface_test.rb
362
373
  - test/lib/vedeu/models/keymap_test.rb
363
374
  - test/lib/vedeu/models/line_test.rb
375
+ - test/lib/vedeu/models/offset_test.rb
364
376
  - test/lib/vedeu/models/stream_test.rb
365
377
  - test/lib/vedeu/models/style_test.rb
378
+ - test/lib/vedeu/output/area_test.rb
366
379
  - test/lib/vedeu/output/clear_test.rb
367
380
  - test/lib/vedeu/output/compositor_test.rb
368
381
  - test/lib/vedeu/output/refresh_test.rb
369
382
  - test/lib/vedeu/output/render_test.rb
370
383
  - test/lib/vedeu/output/view_test.rb
384
+ - test/lib/vedeu/output/viewport_test.rb
371
385
  - test/lib/vedeu/repositories/buffers_test.rb
372
386
  - test/lib/vedeu/repositories/cursors_test.rb
373
387
  - test/lib/vedeu/repositories/events_test.rb
@@ -376,6 +390,9 @@ test_files:
376
390
  - test/lib/vedeu/repositories/interfaces_test.rb
377
391
  - test/lib/vedeu/repositories/keymaps_test.rb
378
392
  - test/lib/vedeu/repositories/menus_test.rb
393
+ - test/lib/vedeu/repositories/offsets_test.rb
394
+ - test/lib/vedeu/support/coercions_test.rb
395
+ - test/lib/vedeu/support/colour_translator_test.rb
379
396
  - test/lib/vedeu/support/common_test.rb
380
397
  - test/lib/vedeu/support/esc_test.rb
381
398
  - test/lib/vedeu/support/event_test.rb
@@ -383,11 +400,14 @@ test_files:
383
400
  - test/lib/vedeu/support/keymap_validator_test.rb
384
401
  - test/lib/vedeu/support/log_test.rb
385
402
  - test/lib/vedeu/support/menu_test.rb
403
+ - test/lib/vedeu/support/move_test.rb
386
404
  - test/lib/vedeu/support/position_test.rb
405
+ - test/lib/vedeu/support/presentation_test.rb
387
406
  - test/lib/vedeu/support/registrar_test.rb
388
407
  - test/lib/vedeu/support/repository_test.rb
389
408
  - test/lib/vedeu/support/terminal_test.rb
390
409
  - test/lib/vedeu/support/trace_test.rb
410
+ - test/lib/vedeu_test.rb
391
411
  - test/support/colour_test.sh
392
412
  - test/support/stats.sh
393
413
  - test/test_helper.rb