vedeu 0.6.30 → 0.6.31

Sign up to get free protection for your applications and to get access to all the features.
Files changed (48) hide show
  1. checksums.yaml +4 -4
  2. data/.codeclimate.yml +0 -3
  3. data/lib/vedeu/all.rb +0 -3
  4. data/lib/vedeu/borders/border.rb +3 -7
  5. data/lib/vedeu/borders/refresh.rb +4 -0
  6. data/lib/vedeu/buffers/refresh.rb +4 -0
  7. data/lib/vedeu/cursors/cursor.rb +46 -36
  8. data/lib/vedeu/cursors/refresh.rb +4 -0
  9. data/lib/vedeu/distributed/server.rb +4 -0
  10. data/lib/vedeu/editor/editor.rb +4 -0
  11. data/lib/vedeu/editor/repository.rb +4 -0
  12. data/lib/vedeu/events/event.rb +6 -1
  13. data/lib/vedeu/geometry/all.rb +1 -1
  14. data/lib/vedeu/geometry/coordinate.rb +138 -36
  15. data/lib/vedeu/geometry/dimension.rb +7 -0
  16. data/lib/vedeu/geometry/repository.rb +4 -0
  17. data/lib/vedeu/groups/clear.rb +4 -0
  18. data/lib/vedeu/groups/group.rb +4 -0
  19. data/lib/vedeu/groups/refresh.rb +4 -0
  20. data/lib/vedeu/input/mapper.rb +18 -0
  21. data/lib/vedeu/interfaces/interface.rb +4 -0
  22. data/lib/vedeu/logging/log.rb +6 -2
  23. data/lib/vedeu/menus/repository.rb +4 -0
  24. data/lib/vedeu/models/focus.rb +4 -0
  25. data/lib/vedeu/output/clear/interface.rb +4 -0
  26. data/lib/vedeu/output/refresh/refresh.rb +4 -0
  27. data/lib/vedeu/runtime/application.rb +10 -0
  28. data/lib/vedeu/runtime/flags.rb +4 -0
  29. data/lib/vedeu/runtime/launcher.rb +0 -2
  30. data/lib/vedeu/runtime/router.rb +4 -0
  31. data/lib/vedeu/terminal/buffer.rb +4 -0
  32. data/lib/vedeu/terminal/terminal.rb +4 -0
  33. data/lib/vedeu/version.rb +1 -1
  34. data/test/lib/vedeu/borders/border_test.rb +0 -1
  35. data/test/lib/vedeu/geometry/coordinate.rb +167 -0
  36. data/test/lib/vedeu/input/mapper_test.rb +2 -0
  37. data/test/lib/vedeu/output/presentation/styles_test.rb +0 -1
  38. data/test/lib/vedeu/runtime/application_test.rb +1 -0
  39. data/test/test_helper.rb +1 -1
  40. data/vedeu.gemspec +1 -1
  41. metadata +6 -15
  42. data/lib/vedeu/bindings/all.rb +0 -64
  43. data/lib/vedeu/geometry/generic_coordinate.rb +0 -169
  44. data/lib/vedeu/options.rb +0 -22
  45. data/test/lib/vedeu/bindings/all_test.rb +0 -19
  46. data/test/lib/vedeu/geometry/coordinate_test.rb +0 -135
  47. data/test/lib/vedeu/geometry/generic_coordinate_test.rb +0 -45
  48. data/test/lib/vedeu/options_test.rb +0 -57
@@ -1,45 +0,0 @@
1
- require 'test_helper'
2
-
3
- module Vedeu
4
-
5
- module Geometry
6
-
7
- describe GenericCoordinate do
8
-
9
- let(:described) { Vedeu::Geometry::GenericCoordinate }
10
- let(:instance) { described.new(attributes) }
11
- let(:attributes) {
12
- {
13
- name: _name,
14
- offset: offset,
15
- type: type,
16
- }
17
- }
18
- let(:_name) {}
19
- let(:offset) {}
20
- let(:type) {}
21
-
22
- describe '#initialize' do
23
- it { instance.must_be_instance_of(described) }
24
- it { instance.instance_variable_get('@name').must_equal(_name) }
25
- it { instance.instance_variable_get('@offset').must_equal(offset) }
26
- it { instance.instance_variable_get('@type').must_equal(type) }
27
- end
28
-
29
- describe '#dn' do
30
- subject { instance.dn }
31
-
32
- # it { skip }
33
- end
34
-
35
- describe '#position' do
36
- subject { instance.position }
37
-
38
- # it { skip }
39
- end
40
-
41
- end # GenericCoordinate
42
-
43
- end # Geometry
44
-
45
- end # Vedeu
@@ -1,57 +0,0 @@
1
- require 'test_helper'
2
-
3
- module Vedeu
4
-
5
- describe Options do
6
-
7
- let(:described) { Vedeu::Options }
8
- let(:instance) { described.new(options, defaults) }
9
- let(:options) {}
10
- let(:defaults) {}
11
-
12
- describe '#initialize' do
13
- subject { instance }
14
-
15
- it { instance.must_be_instance_of(described) }
16
-
17
- context 'when the options are nil and defaults are nil' do
18
- it { instance.instance_variable_get('@options').must_equal({}) }
19
- it { instance.instance_variable_get('@defaults').must_equal({}) }
20
- end
21
-
22
- context 'when the options are empty and the defaults are empty' do
23
- let(:options) { {} }
24
- let(:defaults) { {} }
25
-
26
- it { instance.instance_variable_get('@options').must_equal({}) }
27
- it { instance.instance_variable_get('@defaults').must_equal({}) }
28
- end
29
-
30
- context 'when an option is set but no default is set' do
31
- let(:options) { { element: :hydrogen } }
32
- let(:defaults) { {} }
33
-
34
- it { (instance.methods - Object.methods).must_equal([:element]) }
35
- it { instance.element.must_equal(:hydrogen) }
36
- end
37
-
38
- context 'when an option is set but a default is set' do
39
- let(:options) { { element: :lithium } }
40
- let(:defaults) { { element: :helium } }
41
-
42
- it { (instance.methods - Object.methods).must_equal([:element]) }
43
- it { instance.element.must_equal(:lithium) }
44
- end
45
-
46
- context 'when no option is set but a default is set' do
47
- let(:options) { {} }
48
- let(:defaults) { { element: :beryllium } }
49
-
50
- it { (instance.methods - Object.methods).must_equal([:element]) }
51
- it { instance.element.must_equal(:beryllium) }
52
- end
53
- end
54
-
55
- end # Options
56
-
57
- end # Vedeu