vedeu 0.4.35 → 0.4.36

Sign up to get free protection for your applications and to get access to all the features.
Files changed (81) hide show
  1. checksums.yaml +4 -4
  2. data/.rubocop.yml +3 -0
  3. data/Dockerfile +56 -35
  4. data/bin/vedeu +54 -13
  5. data/docs/applications.md +92 -0
  6. data/features/cli_vedeu.feature +5 -0
  7. data/features/start_stop.feature +1 -1
  8. data/features/step_definitions/vedeu_steps.rb +0 -0
  9. data/features/support/env.rb +3 -2
  10. data/lib/vedeu.rb +1 -0
  11. data/lib/vedeu/all.rb +6 -0
  12. data/lib/vedeu/application/all.rb +2 -0
  13. data/lib/vedeu/application/application_controller.rb +7 -0
  14. data/lib/vedeu/application/application_helper.rb +7 -0
  15. data/lib/vedeu/bootstrap.rb +73 -0
  16. data/lib/vedeu/distributed/templates/default_configuration.vedeu +7 -14
  17. data/lib/vedeu/generator/all.rb +13 -0
  18. data/lib/vedeu/generator/application.rb +108 -0
  19. data/lib/vedeu/generator/helpers.rb +55 -0
  20. data/lib/vedeu/generator/templates/application/Gemfile +3 -0
  21. data/lib/vedeu/generator/templates/application/app/controllers/application_controller.erb +7 -0
  22. data/lib/vedeu/generator/templates/application/app/controllers/name.erb +10 -0
  23. data/lib/vedeu/generator/templates/application/app/helpers/application_helper.erb +9 -0
  24. data/lib/vedeu/generator/templates/application/app/helpers/name.erb +9 -0
  25. data/lib/vedeu/generator/templates/application/app/models/keymaps/_global_.rb +2 -0
  26. data/lib/vedeu/generator/templates/application/app/models/keymaps/_system_.rb +2 -0
  27. data/lib/vedeu/generator/templates/application/app/views/interfaces/name.erb +44 -0
  28. data/lib/vedeu/generator/templates/application/app/views/name.erb +0 -0
  29. data/lib/vedeu/generator/templates/application/app/views/templates/name.erb +0 -0
  30. data/lib/vedeu/generator/templates/application/application.rb +9 -0
  31. data/lib/vedeu/generator/templates/application/bin/name +7 -0
  32. data/lib/vedeu/generator/templates/application/config/app_name.erb +1 -0
  33. data/lib/vedeu/generator/templates/application/config/configuration.rb +22 -0
  34. data/lib/vedeu/generator/templates/application/lib/.gitkeep +0 -0
  35. data/lib/vedeu/generator/templates/application/test/.gitkeep +0 -0
  36. data/lib/vedeu/generator/templates/application/vendor/.gitkeep +0 -0
  37. data/lib/vedeu/generator/view.rb +71 -0
  38. data/lib/vedeu/geometry/area.rb +21 -21
  39. data/lib/vedeu/main_loop.rb +0 -1
  40. data/lib/vedeu/output/esc.rb +5 -4
  41. data/lib/vedeu/output/refresh.rb +9 -3
  42. data/lib/vedeu/output/view_helpers/all.rb +0 -2
  43. data/lib/vedeu/support/log.rb +1 -1
  44. data/lib/vedeu/support/template.rb +1 -1
  45. data/lib/vedeu/support/terminal.rb +10 -2
  46. data/lib/vedeu/tasks/application.rake +28 -0
  47. data/lib/vedeu/tasks/vedeu.rake +3 -0
  48. data/lib/vedeu/templating/directive.rb +1 -8
  49. data/lib/vedeu/traps.rb +2 -2
  50. data/lib/vedeu/version.rb +1 -1
  51. data/test/lib/vedeu/application/application_controller_test.rb +12 -0
  52. data/test/lib/vedeu/application/application_helper_test.rb +18 -0
  53. data/test/lib/vedeu/bootstrap_test.rb +30 -0
  54. data/test/lib/vedeu/buffers/buffer_test.rb +7 -0
  55. data/test/lib/vedeu/buffers/display_buffer_test.rb +2 -0
  56. data/test/lib/vedeu/configuration/api_test.rb +6 -0
  57. data/test/lib/vedeu/cursor/move_test.rb +7 -0
  58. data/test/lib/vedeu/distributed/client_test.rb +4 -0
  59. data/test/lib/vedeu/distributed/server_test.rb +9 -0
  60. data/test/lib/vedeu/dsl/use_test.rb +4 -0
  61. data/test/lib/vedeu/generator/application_test.rb +55 -0
  62. data/test/lib/vedeu/generator/helpers_test.rb +80 -0
  63. data/test/lib/vedeu/generator/view_test.rb +35 -0
  64. data/test/lib/vedeu/geometry/area_test.rb +8 -0
  65. data/test/lib/vedeu/launcher_test.rb +2 -0
  66. data/test/lib/vedeu/main_loop_test.rb +2 -0
  67. data/test/lib/vedeu/null/interface_test.rb +1 -0
  68. data/test/lib/vedeu/output/clear_test.rb +3 -0
  69. data/test/lib/vedeu/output/refresh_test.rb +1 -0
  70. data/test/lib/vedeu/output/renderers/file_test.rb +1 -0
  71. data/test/lib/vedeu/repositories/repositories/events_repository_test.rb +2 -0
  72. data/test/lib/vedeu/repositories/repositories/interfaces_repository_test.rb +3 -0
  73. data/test/lib/vedeu/repositories/repositories/keymaps_test.rb +2 -0
  74. data/test/lib/vedeu/repositories/repositories/menus_test.rb +2 -0
  75. data/test/lib/vedeu/repositories/repository_test.rb +1 -0
  76. data/test/lib/vedeu/support/log_test.rb +5 -0
  77. data/test/lib/vedeu/support/terminal_test.rb +1 -0
  78. data/test/lib/vedeu/traps_test.rb +1 -1
  79. data/test/lib/vedeu_test.rb +1 -0
  80. data/vedeu.gemspec +7 -4
  81. metadata +97 -25
@@ -186,6 +186,7 @@ module Vedeu
186
186
  subject { described.cursor }
187
187
 
188
188
  # it { subject.must_be_instance_of(Vedeu::Position) }
189
+ # it { skip }
189
190
  end
190
191
 
191
192
  describe '.centre' do
@@ -4,7 +4,7 @@ module Vedeu
4
4
 
5
5
  describe Traps do
6
6
 
7
-
7
+ # it { skip }
8
8
 
9
9
  end # Traps
10
10
 
@@ -3,5 +3,6 @@ require 'test_helper'
3
3
  describe Vedeu do
4
4
 
5
5
  # ...
6
+ # it { skip }
6
7
 
7
8
  end # Vedeu
data/vedeu.gemspec CHANGED
@@ -20,20 +20,23 @@ Gem::Specification.new do |spec|
20
20
  spec.test_files = spec.files.grep(%r{^(test|spec|features)/})
21
21
  spec.require_paths = ['lib']
22
22
 
23
- spec.add_development_dependency 'bundler', '~> 1.8'
23
+ spec.add_development_dependency 'aruba', '0.6.2'
24
+ spec.add_development_dependency 'cucumber', '2.0.0'
24
25
  spec.add_development_dependency 'guard', '2.12.6'
25
26
  spec.add_development_dependency 'guard-bundler', '2.1.0'
26
27
  spec.add_development_dependency 'guard-minitest', '2.4.4'
27
- spec.add_development_dependency 'inch', '0.6.2'
28
+ spec.add_development_dependency 'inch', '0.6.3'
28
29
  spec.add_development_dependency 'minitest', '5.7.0'
29
30
  spec.add_development_dependency 'minitest-reporters', '1.0.17'
30
31
  spec.add_development_dependency 'mocha', '1.1.0'
31
32
  spec.add_development_dependency 'pry', '0.10.1'
32
33
  spec.add_development_dependency 'pry-byebug', '3.1.0'
33
- spec.add_development_dependency 'rake', '10.4.2'
34
- spec.add_development_dependency 'rubocop', '0.32.0'
34
+ spec.add_development_dependency 'rubocop', '0.32.1'
35
35
  spec.add_development_dependency 'ruby-prof', '0.15.8'
36
36
  spec.add_development_dependency 'simplecov', '0.10.0'
37
37
  spec.add_development_dependency 'simplecov-console', '0.2.0'
38
38
  spec.add_development_dependency 'yard', '0.8.7.6'
39
+
40
+ spec.add_dependency 'bundler', '~> 1.8'
41
+ spec.add_dependency 'rake', '~> 10.4'
39
42
  end
metadata CHANGED
@@ -1,29 +1,43 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: vedeu
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.4.35
4
+ version: 0.4.36
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-23 00:00:00.000000000 Z
11
+ date: 2015-06-24 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
- name: bundler
14
+ name: aruba
15
15
  requirement: !ruby/object:Gem::Requirement
16
16
  requirements:
17
- - - "~>"
17
+ - - '='
18
18
  - !ruby/object:Gem::Version
19
- version: '1.8'
19
+ version: 0.6.2
20
20
  type: :development
21
21
  prerelease: false
22
22
  version_requirements: !ruby/object:Gem::Requirement
23
23
  requirements:
24
- - - "~>"
24
+ - - '='
25
25
  - !ruby/object:Gem::Version
26
- version: '1.8'
26
+ version: 0.6.2
27
+ - !ruby/object:Gem::Dependency
28
+ name: cucumber
29
+ requirement: !ruby/object:Gem::Requirement
30
+ requirements:
31
+ - - '='
32
+ - !ruby/object:Gem::Version
33
+ version: 2.0.0
34
+ type: :development
35
+ prerelease: false
36
+ version_requirements: !ruby/object:Gem::Requirement
37
+ requirements:
38
+ - - '='
39
+ - !ruby/object:Gem::Version
40
+ version: 2.0.0
27
41
  - !ruby/object:Gem::Dependency
28
42
  name: guard
29
43
  requirement: !ruby/object:Gem::Requirement
@@ -72,14 +86,14 @@ dependencies:
72
86
  requirements:
73
87
  - - '='
74
88
  - !ruby/object:Gem::Version
75
- version: 0.6.2
89
+ version: 0.6.3
76
90
  type: :development
77
91
  prerelease: false
78
92
  version_requirements: !ruby/object:Gem::Requirement
79
93
  requirements:
80
94
  - - '='
81
95
  - !ruby/object:Gem::Version
82
- version: 0.6.2
96
+ version: 0.6.3
83
97
  - !ruby/object:Gem::Dependency
84
98
  name: minitest
85
99
  requirement: !ruby/object:Gem::Requirement
@@ -150,34 +164,20 @@ dependencies:
150
164
  - - '='
151
165
  - !ruby/object:Gem::Version
152
166
  version: 3.1.0
153
- - !ruby/object:Gem::Dependency
154
- name: rake
155
- requirement: !ruby/object:Gem::Requirement
156
- requirements:
157
- - - '='
158
- - !ruby/object:Gem::Version
159
- version: 10.4.2
160
- type: :development
161
- prerelease: false
162
- version_requirements: !ruby/object:Gem::Requirement
163
- requirements:
164
- - - '='
165
- - !ruby/object:Gem::Version
166
- version: 10.4.2
167
167
  - !ruby/object:Gem::Dependency
168
168
  name: rubocop
169
169
  requirement: !ruby/object:Gem::Requirement
170
170
  requirements:
171
171
  - - '='
172
172
  - !ruby/object:Gem::Version
173
- version: 0.32.0
173
+ version: 0.32.1
174
174
  type: :development
175
175
  prerelease: false
176
176
  version_requirements: !ruby/object:Gem::Requirement
177
177
  requirements:
178
178
  - - '='
179
179
  - !ruby/object:Gem::Version
180
- version: 0.32.0
180
+ version: 0.32.1
181
181
  - !ruby/object:Gem::Dependency
182
182
  name: ruby-prof
183
183
  requirement: !ruby/object:Gem::Requirement
@@ -234,6 +234,34 @@ dependencies:
234
234
  - - '='
235
235
  - !ruby/object:Gem::Version
236
236
  version: 0.8.7.6
237
+ - !ruby/object:Gem::Dependency
238
+ name: bundler
239
+ requirement: !ruby/object:Gem::Requirement
240
+ requirements:
241
+ - - "~>"
242
+ - !ruby/object:Gem::Version
243
+ version: '1.8'
244
+ type: :runtime
245
+ prerelease: false
246
+ version_requirements: !ruby/object:Gem::Requirement
247
+ requirements:
248
+ - - "~>"
249
+ - !ruby/object:Gem::Version
250
+ version: '1.8'
251
+ - !ruby/object:Gem::Dependency
252
+ name: rake
253
+ requirement: !ruby/object:Gem::Requirement
254
+ requirements:
255
+ - - "~>"
256
+ - !ruby/object:Gem::Version
257
+ version: '10.4'
258
+ type: :runtime
259
+ prerelease: false
260
+ version_requirements: !ruby/object:Gem::Requirement
261
+ requirements:
262
+ - - "~>"
263
+ - !ruby/object:Gem::Version
264
+ version: '10.4'
237
265
  description: A GUI framework written in Ruby for building terminal/console applications.
238
266
  email:
239
267
  - gavinlaking@gmail.com
@@ -264,6 +292,7 @@ files:
264
292
  - config/rubocop_disabled.yml
265
293
  - config/rubocop_enabled.yml
266
294
  - docs/api.md
295
+ - docs/applications.md
267
296
  - docs/dsl.md
268
297
  - docs/getting_started.md
269
298
  - docs/object_graph.md
@@ -286,14 +315,20 @@ files:
286
315
  - examples/view_templates_app/prune.erb
287
316
  - examples/view_templates_app/view_templates_app.rb
288
317
  - examples/view_templates_app/wrap.erb
318
+ - features/cli_vedeu.feature
289
319
  - features/start_stop.feature
320
+ - features/step_definitions/vedeu_steps.rb
290
321
  - features/support/env.rb
291
322
  - inch.yml
292
323
  - lib/vedeu.rb
293
324
  - lib/vedeu/all.rb
294
325
  - lib/vedeu/api.rb
295
326
  - lib/vedeu/application.rb
327
+ - lib/vedeu/application/all.rb
328
+ - lib/vedeu/application/application_controller.rb
329
+ - lib/vedeu/application/application_helper.rb
296
330
  - lib/vedeu/bindings.rb
331
+ - lib/vedeu/bootstrap.rb
297
332
  - lib/vedeu/buffers/all.rb
298
333
  - lib/vedeu/buffers/buffer.rb
299
334
  - lib/vedeu/buffers/display_buffer.rb
@@ -338,6 +373,27 @@ files:
338
373
  - lib/vedeu/events/all.rb
339
374
  - lib/vedeu/events/event.rb
340
375
  - lib/vedeu/events/trigger.rb
376
+ - lib/vedeu/generator/all.rb
377
+ - lib/vedeu/generator/application.rb
378
+ - lib/vedeu/generator/helpers.rb
379
+ - lib/vedeu/generator/templates/application/Gemfile
380
+ - lib/vedeu/generator/templates/application/app/controllers/application_controller.erb
381
+ - lib/vedeu/generator/templates/application/app/controllers/name.erb
382
+ - lib/vedeu/generator/templates/application/app/helpers/application_helper.erb
383
+ - lib/vedeu/generator/templates/application/app/helpers/name.erb
384
+ - lib/vedeu/generator/templates/application/app/models/keymaps/_global_.rb
385
+ - lib/vedeu/generator/templates/application/app/models/keymaps/_system_.rb
386
+ - lib/vedeu/generator/templates/application/app/views/interfaces/name.erb
387
+ - lib/vedeu/generator/templates/application/app/views/name.erb
388
+ - lib/vedeu/generator/templates/application/app/views/templates/name.erb
389
+ - lib/vedeu/generator/templates/application/application.rb
390
+ - lib/vedeu/generator/templates/application/bin/name
391
+ - lib/vedeu/generator/templates/application/config/app_name.erb
392
+ - lib/vedeu/generator/templates/application/config/configuration.rb
393
+ - lib/vedeu/generator/templates/application/lib/.gitkeep
394
+ - lib/vedeu/generator/templates/application/test/.gitkeep
395
+ - lib/vedeu/generator/templates/application/vendor/.gitkeep
396
+ - lib/vedeu/generator/view.rb
341
397
  - lib/vedeu/geometry/all.rb
342
398
  - lib/vedeu/geometry/area.rb
343
399
  - lib/vedeu/geometry/coordinate.rb
@@ -436,6 +492,8 @@ files:
436
492
  - lib/vedeu/support/terminal.rb
437
493
  - lib/vedeu/support/timer.rb
438
494
  - lib/vedeu/support/visibility.rb
495
+ - lib/vedeu/tasks/application.rake
496
+ - lib/vedeu/tasks/vedeu.rake
439
497
  - lib/vedeu/templating/all.rb
440
498
  - lib/vedeu/templating/directive.rb
441
499
  - lib/vedeu/templating/helpers.rb
@@ -444,8 +502,11 @@ files:
444
502
  - lib/vedeu/version.rb
445
503
  - logs/.gitkeep
446
504
  - test/lib/vedeu/api_test.rb
505
+ - test/lib/vedeu/application/application_controller_test.rb
506
+ - test/lib/vedeu/application/application_helper_test.rb
447
507
  - test/lib/vedeu/application_test.rb
448
508
  - test/lib/vedeu/bindings_test.rb
509
+ - test/lib/vedeu/bootstrap_test.rb
449
510
  - test/lib/vedeu/buffers/buffer_test.rb
450
511
  - test/lib/vedeu/buffers/display_buffer_test.rb
451
512
  - test/lib/vedeu/configuration/api_test.rb
@@ -474,6 +535,9 @@ files:
474
535
  - test/lib/vedeu/dsl/view_test.rb
475
536
  - test/lib/vedeu/events/event_test.rb
476
537
  - test/lib/vedeu/events/trigger_test.rb
538
+ - test/lib/vedeu/generator/application_test.rb
539
+ - test/lib/vedeu/generator/helpers_test.rb
540
+ - test/lib/vedeu/generator/view_test.rb
477
541
  - test/lib/vedeu/geometry/area_test.rb
478
542
  - test/lib/vedeu/geometry/coordinate_test.rb
479
543
  - test/lib/vedeu/geometry/dimension_test.rb
@@ -597,11 +661,16 @@ signing_key:
597
661
  specification_version: 4
598
662
  summary: A terminal case of wonderland.
599
663
  test_files:
664
+ - features/cli_vedeu.feature
600
665
  - features/start_stop.feature
666
+ - features/step_definitions/vedeu_steps.rb
601
667
  - features/support/env.rb
602
668
  - test/lib/vedeu/api_test.rb
669
+ - test/lib/vedeu/application/application_controller_test.rb
670
+ - test/lib/vedeu/application/application_helper_test.rb
603
671
  - test/lib/vedeu/application_test.rb
604
672
  - test/lib/vedeu/bindings_test.rb
673
+ - test/lib/vedeu/bootstrap_test.rb
605
674
  - test/lib/vedeu/buffers/buffer_test.rb
606
675
  - test/lib/vedeu/buffers/display_buffer_test.rb
607
676
  - test/lib/vedeu/configuration/api_test.rb
@@ -630,6 +699,9 @@ test_files:
630
699
  - test/lib/vedeu/dsl/view_test.rb
631
700
  - test/lib/vedeu/events/event_test.rb
632
701
  - test/lib/vedeu/events/trigger_test.rb
702
+ - test/lib/vedeu/generator/application_test.rb
703
+ - test/lib/vedeu/generator/helpers_test.rb
704
+ - test/lib/vedeu/generator/view_test.rb
633
705
  - test/lib/vedeu/geometry/area_test.rb
634
706
  - test/lib/vedeu/geometry/coordinate_test.rb
635
707
  - test/lib/vedeu/geometry/dimension_test.rb