vedeu 0.4.29 → 0.4.30

Sign up to get free protection for your applications and to get access to all the features.
Files changed (73) hide show
  1. checksums.yaml +4 -4
  2. data/Dockerfile +57 -38
  3. data/README.md +10 -110
  4. data/docs/getting_started.md +9 -0
  5. data/lib/vedeu/all.rb +1 -1
  6. data/lib/vedeu/api.rb +6 -5
  7. data/lib/vedeu/buffers/display_buffer.rb +1 -1
  8. data/lib/vedeu/configuration/api.rb +1 -1
  9. data/lib/vedeu/cursor/move.rb +2 -2
  10. data/lib/vedeu/debug.rb +3 -1
  11. data/lib/vedeu/dsl/all.rb +15 -9
  12. data/lib/vedeu/dsl/{components/border.rb → border.rb} +0 -3
  13. data/lib/vedeu/dsl/composition.rb +33 -0
  14. data/lib/vedeu/dsl/{components/geometry.rb → geometry.rb} +18 -0
  15. data/lib/vedeu/dsl/interface.rb +2 -2
  16. data/lib/vedeu/dsl/{components/keymap.rb → keymap.rb} +2 -4
  17. data/lib/vedeu/dsl/{components/menu.rb → menu.rb} +0 -0
  18. data/lib/vedeu/dsl/{shared/presentation.rb → presentation.rb} +0 -0
  19. data/lib/vedeu/dsl/{shared/text.rb → text.rb} +0 -0
  20. data/lib/vedeu/dsl/{shared/use.rb → use.rb} +0 -0
  21. data/lib/vedeu/events/event.rb +11 -53
  22. data/lib/vedeu/geometry/area.rb +1 -2
  23. data/lib/vedeu/geometry/coordinate.rb +1 -1
  24. data/lib/vedeu/geometry/geometry.rb +0 -12
  25. data/lib/vedeu/geometry/position_validator.rb +1 -1
  26. data/lib/vedeu/input/keymap.rb +1 -1
  27. data/lib/vedeu/models/interface.rb +1 -0
  28. data/lib/vedeu/models/panel.rb +2 -0
  29. data/lib/vedeu/null/geometry.rb +3 -2
  30. data/lib/vedeu/output/border.rb +6 -6
  31. data/lib/vedeu/output/clear.rb +4 -4
  32. data/lib/vedeu/output/compressor.rb +10 -4
  33. data/lib/vedeu/output/html_char.rb +4 -4
  34. data/lib/vedeu/output/refresh.rb +3 -3
  35. data/lib/vedeu/output/renderers/file.rb +1 -1
  36. data/lib/vedeu/output/renderers/terminal.rb +2 -2
  37. data/lib/vedeu/output/renderers/text.rb +1 -1
  38. data/lib/vedeu/output/style.rb +1 -1
  39. data/lib/vedeu/output/translator.rb +0 -8
  40. data/lib/vedeu/output/viewport.rb +1 -1
  41. data/lib/vedeu/repositories/all.rb +1 -1
  42. data/lib/vedeu/repositories/repository.rb +1 -1
  43. data/lib/vedeu/support/common.rb +1 -1
  44. data/lib/vedeu/support/template.rb +1 -1
  45. data/lib/vedeu/support/timer.rb +11 -14
  46. data/lib/vedeu/templating/all.rb +9 -0
  47. data/lib/vedeu/templating/helpers.rb +9 -3
  48. data/lib/vedeu/templating/preprocessor.rb +4 -1
  49. data/lib/vedeu/version.rb +3 -0
  50. data/test/lib/vedeu/api_test.rb +38 -297
  51. data/test/lib/vedeu/buffers/display_buffer_test.rb +1 -0
  52. data/test/lib/vedeu/dsl/{components/border_test.rb → border_test.rb} +0 -0
  53. data/test/lib/vedeu/dsl/{components/geometry_test.rb → geometry_test.rb} +0 -0
  54. data/test/lib/vedeu/dsl/{components/keymap_test.rb → keymap_test.rb} +0 -0
  55. data/test/lib/vedeu/dsl/{components/menu_test.rb → menu_test.rb} +0 -0
  56. data/test/lib/vedeu/dsl/{shared/presentation_test.rb → presentation_test.rb} +0 -0
  57. data/test/lib/vedeu/dsl/{shared/text_test.rb → text_test.rb} +0 -0
  58. data/test/lib/vedeu/dsl/{shared/use_test.rb → use_test.rb} +0 -0
  59. data/test/lib/vedeu/dsl/view_test.rb +2 -0
  60. data/test/lib/vedeu/main_loop_test.rb +0 -3
  61. data/test/lib/vedeu/output/background_test.rb +18 -22
  62. data/test/lib/vedeu/output/compressor_test.rb +4 -0
  63. data/test/lib/vedeu/output/foreground_test.rb +13 -17
  64. data/test/lib/vedeu/repositories/repositories/borders_test.rb +2 -1
  65. data/test/lib/vedeu/repositories/repositories/buffers_test.rb +5 -1
  66. data/test/lib/vedeu/repositories/repositories/geometries_test.rb +2 -0
  67. data/test/lib/vedeu/support/common_test.rb +2 -2
  68. data/test/lib/vedeu/support/timer_test.rb +4 -6
  69. data/test/test_helper.rb +22 -0
  70. data/vedeu.gemspec +3 -1
  71. metadata +24 -25
  72. data/lib/vedeu/dsl/components/all.rb +0 -4
  73. data/lib/vedeu/dsl/shared/all.rb +0 -3
data/test/test_helper.rb CHANGED
@@ -26,10 +26,32 @@ SimpleCov.start do
26
26
  add_group 'support', 'vedeu/support'
27
27
  end unless ENV['no_simplecov']
28
28
 
29
+ module VedeuMiniTestPlugin
30
+ # def before_setup
31
+ # Vedeu::Repositories.reset!
32
+ # super
33
+ # end
34
+
35
+ # def after_setup
36
+ # super
37
+ # end
38
+
39
+ # def before_teardown
40
+ # super
41
+ # end
42
+
43
+ # def after_teardown
44
+ # super
45
+ # Vedeu::Repositories.reset!
46
+ # end
47
+ end
48
+
29
49
  module MiniTest
30
50
  class Spec
31
51
  # parallelize_me! # uncomment to unleash hell
32
52
 
53
+ include VedeuMiniTestPlugin
54
+
33
55
  class << self
34
56
  alias_method :context, :describe
35
57
  end
data/vedeu.gemspec CHANGED
@@ -2,9 +2,11 @@
2
2
  lib = File.expand_path('../lib', __FILE__)
3
3
  $LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
4
4
 
5
+ require 'vedeu/version'
6
+
5
7
  Gem::Specification.new do |spec|
6
8
  spec.name = 'vedeu'
7
- spec.version = '0.4.29'
9
+ spec.version = Vedeu::VERSION
8
10
  spec.authors = ['Gavin Laking']
9
11
  spec.email = ['gavinlaking@gmail.com']
10
12
  spec.summary = 'A terminal case of wonderland.'
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.4.29
4
+ version: 0.4.30
5
5
  platform: ruby
6
6
  authors:
7
7
  - Gavin Laking
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2015-06-19 00:00:00.000000000 Z
11
+ date: 2015-06-21 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler
@@ -320,20 +320,18 @@ files:
320
320
  - lib/vedeu/distributed/test_application.rb
321
321
  - lib/vedeu/distributed/uri.rb
322
322
  - lib/vedeu/dsl/all.rb
323
- - lib/vedeu/dsl/components/all.rb
324
- - lib/vedeu/dsl/components/border.rb
325
- - lib/vedeu/dsl/components/geometry.rb
326
- - lib/vedeu/dsl/components/keymap.rb
327
- - lib/vedeu/dsl/components/menu.rb
323
+ - lib/vedeu/dsl/border.rb
328
324
  - lib/vedeu/dsl/composition.rb
325
+ - lib/vedeu/dsl/geometry.rb
329
326
  - lib/vedeu/dsl/group.rb
330
327
  - lib/vedeu/dsl/interface.rb
328
+ - lib/vedeu/dsl/keymap.rb
331
329
  - lib/vedeu/dsl/line.rb
332
- - lib/vedeu/dsl/shared/all.rb
333
- - lib/vedeu/dsl/shared/presentation.rb
334
- - lib/vedeu/dsl/shared/text.rb
335
- - lib/vedeu/dsl/shared/use.rb
330
+ - lib/vedeu/dsl/menu.rb
331
+ - lib/vedeu/dsl/presentation.rb
336
332
  - lib/vedeu/dsl/stream.rb
333
+ - lib/vedeu/dsl/text.rb
334
+ - lib/vedeu/dsl/use.rb
337
335
  - lib/vedeu/dsl/view.rb
338
336
  - lib/vedeu/events/all.rb
339
337
  - lib/vedeu/events/event.rb
@@ -438,6 +436,7 @@ files:
438
436
  - lib/vedeu/templating/helpers.rb
439
437
  - lib/vedeu/templating/preprocessor.rb
440
438
  - lib/vedeu/traps.rb
439
+ - lib/vedeu/version.rb
441
440
  - logs/.gitkeep
442
441
  - test/lib/vedeu/api_test.rb
443
442
  - test/lib/vedeu/application_test.rb
@@ -455,18 +454,18 @@ files:
455
454
  - test/lib/vedeu/distributed/subprocess_test.rb
456
455
  - test/lib/vedeu/distributed/test_application_test.rb
457
456
  - test/lib/vedeu/distributed/uri_test.rb
458
- - test/lib/vedeu/dsl/components/border_test.rb
459
- - test/lib/vedeu/dsl/components/geometry_test.rb
460
- - test/lib/vedeu/dsl/components/keymap_test.rb
461
- - test/lib/vedeu/dsl/components/menu_test.rb
457
+ - test/lib/vedeu/dsl/border_test.rb
462
458
  - test/lib/vedeu/dsl/composition_test.rb
459
+ - test/lib/vedeu/dsl/geometry_test.rb
463
460
  - test/lib/vedeu/dsl/group_test.rb
464
461
  - test/lib/vedeu/dsl/interface_test.rb
462
+ - test/lib/vedeu/dsl/keymap_test.rb
465
463
  - test/lib/vedeu/dsl/line_test.rb
466
- - test/lib/vedeu/dsl/shared/presentation_test.rb
467
- - test/lib/vedeu/dsl/shared/text_test.rb
468
- - test/lib/vedeu/dsl/shared/use_test.rb
464
+ - test/lib/vedeu/dsl/menu_test.rb
465
+ - test/lib/vedeu/dsl/presentation_test.rb
469
466
  - test/lib/vedeu/dsl/stream_test.rb
467
+ - test/lib/vedeu/dsl/text_test.rb
468
+ - test/lib/vedeu/dsl/use_test.rb
470
469
  - test/lib/vedeu/dsl/view_test.rb
471
470
  - test/lib/vedeu/events/event_test.rb
472
471
  - test/lib/vedeu/events/trigger_test.rb
@@ -609,18 +608,18 @@ test_files:
609
608
  - test/lib/vedeu/distributed/subprocess_test.rb
610
609
  - test/lib/vedeu/distributed/test_application_test.rb
611
610
  - test/lib/vedeu/distributed/uri_test.rb
612
- - test/lib/vedeu/dsl/components/border_test.rb
613
- - test/lib/vedeu/dsl/components/geometry_test.rb
614
- - test/lib/vedeu/dsl/components/keymap_test.rb
615
- - test/lib/vedeu/dsl/components/menu_test.rb
611
+ - test/lib/vedeu/dsl/border_test.rb
616
612
  - test/lib/vedeu/dsl/composition_test.rb
613
+ - test/lib/vedeu/dsl/geometry_test.rb
617
614
  - test/lib/vedeu/dsl/group_test.rb
618
615
  - test/lib/vedeu/dsl/interface_test.rb
616
+ - test/lib/vedeu/dsl/keymap_test.rb
619
617
  - test/lib/vedeu/dsl/line_test.rb
620
- - test/lib/vedeu/dsl/shared/presentation_test.rb
621
- - test/lib/vedeu/dsl/shared/text_test.rb
622
- - test/lib/vedeu/dsl/shared/use_test.rb
618
+ - test/lib/vedeu/dsl/menu_test.rb
619
+ - test/lib/vedeu/dsl/presentation_test.rb
623
620
  - test/lib/vedeu/dsl/stream_test.rb
621
+ - test/lib/vedeu/dsl/text_test.rb
622
+ - test/lib/vedeu/dsl/use_test.rb
624
623
  - test/lib/vedeu/dsl/view_test.rb
625
624
  - test/lib/vedeu/events/event_test.rb
626
625
  - test/lib/vedeu/events/trigger_test.rb
@@ -1,4 +0,0 @@
1
- require_relative 'border'
2
- require_relative 'geometry'
3
- require_relative 'keymap'
4
- require_relative 'menu'
@@ -1,3 +0,0 @@
1
- require_relative 'presentation'
2
- require_relative 'text'
3
- require_relative 'use'