vedeu 0.4.41 → 0.4.42

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (76) hide show
  1. checksums.yaml +4 -4
  2. data/README.md +3 -6
  3. data/bin/vedeu +1 -50
  4. data/docs/applications.md +18 -2
  5. data/lib/vedeu/all.rb +3 -1
  6. data/lib/vedeu/api.rb +3 -1
  7. data/lib/vedeu/application/controller.rb +5 -0
  8. data/lib/vedeu/buffers/buffer.rb +6 -3
  9. data/lib/vedeu/cli/all.rb +1 -0
  10. data/lib/vedeu/{generator → cli/generator}/all.rb +3 -3
  11. data/lib/vedeu/{generator → cli/generator}/application.rb +0 -0
  12. data/lib/vedeu/{generator → cli/generator}/helpers.rb +4 -11
  13. data/lib/vedeu/{generator → cli/generator}/templates/application/Gemfile +0 -0
  14. data/lib/vedeu/{generator → cli/generator}/templates/application/app/controllers/application_controller.erb +0 -0
  15. data/lib/vedeu/{generator → cli/generator}/templates/application/app/controllers/name.erb +2 -0
  16. data/lib/vedeu/{generator → cli/generator}/templates/application/app/helpers/application_helper.erb +0 -0
  17. data/lib/vedeu/{generator → cli/generator}/templates/application/app/helpers/name.erb +0 -0
  18. data/lib/vedeu/{generator → cli/generator}/templates/application/app/models/keymaps/_global_.rb +0 -0
  19. data/lib/vedeu/{generator → cli/generator}/templates/application/app/models/keymaps/name.erb +0 -0
  20. data/lib/vedeu/{generator → cli/generator}/templates/application/app/views/interfaces/name.erb +6 -0
  21. data/lib/vedeu/{generator → cli/generator}/templates/application/app/views/name.erb +0 -0
  22. data/lib/vedeu/{generator → cli/generator}/templates/application/app/views/templates/name.erb +0 -0
  23. data/lib/vedeu/{generator → cli/generator}/templates/application/application.erb +0 -0
  24. data/lib/vedeu/{generator → cli/generator}/templates/application/bin/name +0 -0
  25. data/lib/vedeu/{generator → cli/generator}/templates/application/config/app_name.erb +0 -0
  26. data/lib/vedeu/{generator → cli/generator}/templates/application/config/configuration.erb +0 -0
  27. data/lib/vedeu/{generator → cli/generator}/templates/application/lib/.gitkeep +0 -0
  28. data/lib/vedeu/{generator → cli/generator}/templates/application/test/.gitkeep +0 -0
  29. data/lib/vedeu/{generator → cli/generator}/templates/application/vendor/.gitkeep +0 -0
  30. data/lib/vedeu/{generator → cli/generator}/view.rb +1 -2
  31. data/lib/vedeu/cli/main.rb +29 -0
  32. data/lib/vedeu/dsl/presentation.rb +6 -2
  33. data/lib/vedeu/dsl/view.rb +2 -1
  34. data/lib/vedeu/geometry/area.rb +4 -4
  35. data/lib/vedeu/models/interface.rb +0 -3
  36. data/lib/vedeu/output/colour.rb +16 -35
  37. data/lib/vedeu/output/presentation.rb +34 -21
  38. data/lib/vedeu/output/translator.rb +2 -5
  39. data/lib/vedeu/repositories/model.rb +4 -13
  40. data/lib/vedeu/support/common.rb +30 -0
  41. data/lib/vedeu/version.rb +1 -1
  42. data/lib/vedeu.rb +2 -0
  43. data/test/lib/vedeu/application/application_view_test.rb +2 -4
  44. data/test/lib/vedeu/application/controller_test.rb +26 -0
  45. data/test/lib/vedeu/application/helper_test.rb +26 -0
  46. data/test/lib/vedeu/application/view_test.rb +26 -0
  47. data/test/lib/vedeu/application_test.rb +2 -4
  48. data/test/lib/vedeu/bootstrap_test.rb +3 -5
  49. data/test/lib/vedeu/{generator → cli/generator}/application_test.rb +0 -0
  50. data/test/lib/vedeu/{generator → cli/generator}/helpers_test.rb +1 -9
  51. data/test/lib/vedeu/{generator → cli/generator}/view_test.rb +0 -0
  52. data/test/lib/vedeu/cli/main_test.rb +12 -0
  53. data/test/lib/vedeu/cursor/reposition_test.rb +0 -2
  54. data/test/lib/vedeu/distributed/subprocess_test.rb +3 -5
  55. data/test/lib/vedeu/distributed/uri_test.rb +3 -5
  56. data/test/lib/vedeu/dsl/border_test.rb +0 -17
  57. data/test/lib/vedeu/dsl/composition_test.rb +0 -8
  58. data/test/lib/vedeu/dsl/presentation_test.rb +34 -22
  59. data/test/lib/vedeu/dsl/view_test.rb +1 -0
  60. data/test/lib/vedeu/events/trigger_test.rb +4 -6
  61. data/test/lib/vedeu/geometry/geometry_test.rb +15 -14
  62. data/test/lib/vedeu/models/composition_test.rb +2 -4
  63. data/test/lib/vedeu/models/focus_test.rb +5 -2
  64. data/test/lib/vedeu/models/group_test.rb +5 -7
  65. data/test/lib/vedeu/models/interface_test.rb +12 -16
  66. data/test/lib/vedeu/models/menu_test.rb +8 -8
  67. data/test/lib/vedeu/output/border_test.rb +20 -21
  68. data/test/lib/vedeu/output/colour_test.rb +41 -122
  69. data/test/lib/vedeu/output/presentation_test.rb +30 -27
  70. data/test/lib/vedeu/output/translator_test.rb +12 -1
  71. data/test/lib/vedeu/support/common_test.rb +17 -2
  72. data/test/test_helper.rb +3 -1
  73. data/vedeu.gemspec +2 -1
  74. metadata +53 -31
  75. data/lib/vedeu/tasks/application.rake +0 -28
  76. data/lib/vedeu/tasks/vedeu.rake +0 -5
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.41
4
+ version: 0.4.42
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-07-03 00:00:00.000000000 Z
11
+ date: 2015-07-04 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: guard
@@ -234,6 +234,20 @@ dependencies:
234
234
  - - "~>"
235
235
  - !ruby/object:Gem::Version
236
236
  version: '10.4'
237
+ - !ruby/object:Gem::Dependency
238
+ name: thor
239
+ requirement: !ruby/object:Gem::Requirement
240
+ requirements:
241
+ - - '='
242
+ - !ruby/object:Gem::Version
243
+ version: 0.19.1
244
+ type: :runtime
245
+ prerelease: false
246
+ version_requirements: !ruby/object:Gem::Requirement
247
+ requirements:
248
+ - - '='
249
+ - !ruby/object:Gem::Version
250
+ version: 0.19.1
237
251
  description: A GUI framework written in Ruby for building terminal/console applications.
238
252
  email:
239
253
  - gavinlaking@gmail.com
@@ -303,6 +317,29 @@ files:
303
317
  - lib/vedeu/buffers/all.rb
304
318
  - lib/vedeu/buffers/buffer.rb
305
319
  - lib/vedeu/buffers/display_buffer.rb
320
+ - lib/vedeu/cli/all.rb
321
+ - lib/vedeu/cli/generator/all.rb
322
+ - lib/vedeu/cli/generator/application.rb
323
+ - lib/vedeu/cli/generator/helpers.rb
324
+ - lib/vedeu/cli/generator/templates/application/Gemfile
325
+ - lib/vedeu/cli/generator/templates/application/app/controllers/application_controller.erb
326
+ - lib/vedeu/cli/generator/templates/application/app/controllers/name.erb
327
+ - lib/vedeu/cli/generator/templates/application/app/helpers/application_helper.erb
328
+ - lib/vedeu/cli/generator/templates/application/app/helpers/name.erb
329
+ - lib/vedeu/cli/generator/templates/application/app/models/keymaps/_global_.rb
330
+ - lib/vedeu/cli/generator/templates/application/app/models/keymaps/name.erb
331
+ - lib/vedeu/cli/generator/templates/application/app/views/interfaces/name.erb
332
+ - lib/vedeu/cli/generator/templates/application/app/views/name.erb
333
+ - lib/vedeu/cli/generator/templates/application/app/views/templates/name.erb
334
+ - lib/vedeu/cli/generator/templates/application/application.erb
335
+ - lib/vedeu/cli/generator/templates/application/bin/name
336
+ - lib/vedeu/cli/generator/templates/application/config/app_name.erb
337
+ - lib/vedeu/cli/generator/templates/application/config/configuration.erb
338
+ - lib/vedeu/cli/generator/templates/application/lib/.gitkeep
339
+ - lib/vedeu/cli/generator/templates/application/test/.gitkeep
340
+ - lib/vedeu/cli/generator/templates/application/vendor/.gitkeep
341
+ - lib/vedeu/cli/generator/view.rb
342
+ - lib/vedeu/cli/main.rb
306
343
  - lib/vedeu/configuration/all.rb
307
344
  - lib/vedeu/configuration/api.rb
308
345
  - lib/vedeu/configuration/cli.rb
@@ -345,27 +382,6 @@ files:
345
382
  - lib/vedeu/events/all.rb
346
383
  - lib/vedeu/events/event.rb
347
384
  - lib/vedeu/events/trigger.rb
348
- - lib/vedeu/generator/all.rb
349
- - lib/vedeu/generator/application.rb
350
- - lib/vedeu/generator/helpers.rb
351
- - lib/vedeu/generator/templates/application/Gemfile
352
- - lib/vedeu/generator/templates/application/app/controllers/application_controller.erb
353
- - lib/vedeu/generator/templates/application/app/controllers/name.erb
354
- - lib/vedeu/generator/templates/application/app/helpers/application_helper.erb
355
- - lib/vedeu/generator/templates/application/app/helpers/name.erb
356
- - lib/vedeu/generator/templates/application/app/models/keymaps/_global_.rb
357
- - lib/vedeu/generator/templates/application/app/models/keymaps/name.erb
358
- - lib/vedeu/generator/templates/application/app/views/interfaces/name.erb
359
- - lib/vedeu/generator/templates/application/app/views/name.erb
360
- - lib/vedeu/generator/templates/application/app/views/templates/name.erb
361
- - lib/vedeu/generator/templates/application/application.erb
362
- - lib/vedeu/generator/templates/application/bin/name
363
- - lib/vedeu/generator/templates/application/config/app_name.erb
364
- - lib/vedeu/generator/templates/application/config/configuration.erb
365
- - lib/vedeu/generator/templates/application/lib/.gitkeep
366
- - lib/vedeu/generator/templates/application/test/.gitkeep
367
- - lib/vedeu/generator/templates/application/vendor/.gitkeep
368
- - lib/vedeu/generator/view.rb
369
385
  - lib/vedeu/geometry/all.rb
370
386
  - lib/vedeu/geometry/area.rb
371
387
  - lib/vedeu/geometry/coordinate.rb
@@ -464,8 +480,6 @@ files:
464
480
  - lib/vedeu/support/terminal.rb
465
481
  - lib/vedeu/support/timer.rb
466
482
  - lib/vedeu/support/visibility.rb
467
- - lib/vedeu/tasks/application.rake
468
- - lib/vedeu/tasks/vedeu.rake
469
483
  - lib/vedeu/templating/all.rb
470
484
  - lib/vedeu/templating/directive.rb
471
485
  - lib/vedeu/templating/helpers.rb
@@ -477,11 +491,18 @@ files:
477
491
  - test/lib/vedeu/application/application_controller_test.rb
478
492
  - test/lib/vedeu/application/application_helper_test.rb
479
493
  - test/lib/vedeu/application/application_view_test.rb
494
+ - test/lib/vedeu/application/controller_test.rb
495
+ - test/lib/vedeu/application/helper_test.rb
496
+ - test/lib/vedeu/application/view_test.rb
480
497
  - test/lib/vedeu/application_test.rb
481
498
  - test/lib/vedeu/bindings_test.rb
482
499
  - test/lib/vedeu/bootstrap_test.rb
483
500
  - test/lib/vedeu/buffers/buffer_test.rb
484
501
  - test/lib/vedeu/buffers/display_buffer_test.rb
502
+ - test/lib/vedeu/cli/generator/application_test.rb
503
+ - test/lib/vedeu/cli/generator/helpers_test.rb
504
+ - test/lib/vedeu/cli/generator/view_test.rb
505
+ - test/lib/vedeu/cli/main_test.rb
485
506
  - test/lib/vedeu/configuration/api_test.rb
486
507
  - test/lib/vedeu/configuration/cli_test.rb
487
508
  - test/lib/vedeu/configuration/configuration_test.rb
@@ -509,9 +530,6 @@ files:
509
530
  - test/lib/vedeu/dsl/view_test.rb
510
531
  - test/lib/vedeu/events/event_test.rb
511
532
  - test/lib/vedeu/events/trigger_test.rb
512
- - test/lib/vedeu/generator/application_test.rb
513
- - test/lib/vedeu/generator/helpers_test.rb
514
- - test/lib/vedeu/generator/view_test.rb
515
533
  - test/lib/vedeu/geometry/area_test.rb
516
534
  - test/lib/vedeu/geometry/coordinate_test.rb
517
535
  - test/lib/vedeu/geometry/dimension_test.rb
@@ -638,11 +656,18 @@ test_files:
638
656
  - test/lib/vedeu/application/application_controller_test.rb
639
657
  - test/lib/vedeu/application/application_helper_test.rb
640
658
  - test/lib/vedeu/application/application_view_test.rb
659
+ - test/lib/vedeu/application/controller_test.rb
660
+ - test/lib/vedeu/application/helper_test.rb
661
+ - test/lib/vedeu/application/view_test.rb
641
662
  - test/lib/vedeu/application_test.rb
642
663
  - test/lib/vedeu/bindings_test.rb
643
664
  - test/lib/vedeu/bootstrap_test.rb
644
665
  - test/lib/vedeu/buffers/buffer_test.rb
645
666
  - test/lib/vedeu/buffers/display_buffer_test.rb
667
+ - test/lib/vedeu/cli/generator/application_test.rb
668
+ - test/lib/vedeu/cli/generator/helpers_test.rb
669
+ - test/lib/vedeu/cli/generator/view_test.rb
670
+ - test/lib/vedeu/cli/main_test.rb
646
671
  - test/lib/vedeu/configuration/api_test.rb
647
672
  - test/lib/vedeu/configuration/cli_test.rb
648
673
  - test/lib/vedeu/configuration/configuration_test.rb
@@ -670,9 +695,6 @@ test_files:
670
695
  - test/lib/vedeu/dsl/view_test.rb
671
696
  - test/lib/vedeu/events/event_test.rb
672
697
  - test/lib/vedeu/events/trigger_test.rb
673
- - test/lib/vedeu/generator/application_test.rb
674
- - test/lib/vedeu/generator/helpers_test.rb
675
- - test/lib/vedeu/generator/view_test.rb
676
698
  - test/lib/vedeu/geometry/area_test.rb
677
699
  - test/lib/vedeu/geometry/coordinate_test.rb
678
700
  - test/lib/vedeu/geometry/dimension_test.rb
@@ -1,28 +0,0 @@
1
- desc 'Create a skeleton Vedeu client application.'
2
- task :new do
3
- app_name = ARGV[0]
4
-
5
- if app_name
6
- Vedeu::Generator::Application.generate(app_name)
7
-
8
- else
9
- print Vedeu::Esc.red { 'Error: ' }
10
- print 'You did not specify a name for the new application.'
11
-
12
- end
13
- end
14
-
15
- # 'Specify the interface name lowercase snakecase; e.g. main_interface'
16
- desc 'Create a new interface within the client application.'
17
- task :view do
18
- view_name = ARGV[0]
19
-
20
- if view_name
21
- Vedeu::Generator::View.generate(view_name)
22
-
23
- else
24
- print Vedeu::Esc.red { 'Error: ' }
25
- print 'You did not specify a name for the name view.'
26
-
27
- end
28
- end
@@ -1,5 +0,0 @@
1
- tasks = Dir[File.expand_path('../*.rake', __FILE__)].delete_if do |task_file|
2
- task_file =~ /vedeu\.rake$/
3
- end
4
-
5
- tasks.each { |task_file| load task_file }