vedeu 0.4.33 → 0.4.34

Sign up to get free protection for your applications and to get access to all the features.
Files changed (53) hide show
  1. checksums.yaml +4 -4
  2. data/lib/vedeu/bindings.rb +11 -0
  3. data/lib/vedeu/configuration/configuration.rb +6 -0
  4. data/lib/vedeu/dsl/geometry.rb +5 -0
  5. data/lib/vedeu/events/event.rb +3 -1
  6. data/lib/vedeu/input/mapper.rb +3 -0
  7. data/lib/vedeu/models/focus.rb +15 -0
  8. data/lib/vedeu/output/renderers/all.rb +9 -0
  9. data/lib/vedeu/repositories/repositories/background_colours.rb +3 -0
  10. data/lib/vedeu/repositories/repositories/borders.rb +6 -0
  11. data/lib/vedeu/repositories/repositories/buffers.rb +6 -0
  12. data/lib/vedeu/repositories/repositories/cursors.rb +12 -0
  13. data/lib/vedeu/repositories/repositories/events_repository.rb +6 -0
  14. data/lib/vedeu/repositories/repositories/foreground_colours.rb +3 -0
  15. data/lib/vedeu/repositories/repositories/geometries.rb +6 -0
  16. data/lib/vedeu/repositories/repositories/groups.rb +9 -0
  17. data/lib/vedeu/repositories/repositories/interfaces_repository.rb +9 -0
  18. data/lib/vedeu/repositories/repositories/keymaps.rb +6 -0
  19. data/lib/vedeu/repositories/repositories/menus.rb +6 -0
  20. data/lib/vedeu/support/terminal.rb +3 -0
  21. data/lib/vedeu/support/timer.rb +5 -0
  22. data/lib/vedeu/version.rb +1 -1
  23. data/test/lib/vedeu/buffers/buffer_test.rb +159 -93
  24. data/test/lib/vedeu/configuration/api_test.rb +36 -10
  25. data/test/lib/vedeu/configuration/cli_test.rb +27 -27
  26. data/test/lib/vedeu/configuration/configuration_test.rb +8 -7
  27. data/test/lib/vedeu/cursor/cursor_test.rb +34 -0
  28. data/test/lib/vedeu/cursor/move_test.rb +32 -2
  29. data/test/lib/vedeu/distributed/client_test.rb +3 -5
  30. data/test/lib/vedeu/distributed/server_test.rb +37 -14
  31. data/test/lib/vedeu/distributed/subprocess_test.rb +12 -0
  32. data/test/lib/vedeu/distributed/uri_test.rb +2 -0
  33. data/test/lib/vedeu/dsl/border_test.rb +5 -7
  34. data/test/lib/vedeu/dsl/geometry_test.rb +6 -4
  35. data/test/lib/vedeu/dsl/line_test.rb +0 -4
  36. data/test/lib/vedeu/dsl/presentation_test.rb +8 -7
  37. data/test/lib/vedeu/events/event_test.rb +6 -6
  38. data/test/lib/vedeu/geometry/geometry_test.rb +53 -0
  39. data/test/lib/vedeu/input/keymap_test.rb +4 -0
  40. data/test/lib/vedeu/models/char_test.rb +24 -0
  41. data/test/lib/vedeu/models/group_test.rb +4 -0
  42. data/test/lib/vedeu/models/interface_test.rb +65 -0
  43. data/test/lib/vedeu/models/menu_test.rb +24 -0
  44. data/test/lib/vedeu/models/stream_test.rb +23 -0
  45. data/test/lib/vedeu/null/geometry_test.rb +12 -0
  46. data/test/lib/vedeu/output/border_test.rb +109 -0
  47. data/test/lib/vedeu/output/clear_test.rb +8 -8
  48. data/test/lib/vedeu/output/renderers/all_test.rb +16 -16
  49. data/test/lib/vedeu/output/style_test.rb +8 -0
  50. data/test/lib/vedeu/output/virtual_terminal_test.rb +14 -18
  51. data/test/lib/vedeu/repositories/collection_test.rb +21 -0
  52. data/test/lib/vedeu/repositories/model_test.rb +8 -0
  53. metadata +2 -2
@@ -17,6 +17,27 @@ module Vedeu
17
17
  it { instance.instance_variable_get('@parent').must_equal(parent) }
18
18
  end
19
19
 
20
+ describe '#collection' do
21
+ it { instance.must_respond_to(:collection) }
22
+ it { instance.must_respond_to(:all) }
23
+ end
24
+
25
+ describe '#parent' do
26
+ it { instance.must_respond_to(:parent) }
27
+ end
28
+
29
+ describe '#parent=' do
30
+ it { instance.must_respond_to(:parent=) }
31
+ end
32
+
33
+ describe '#name' do
34
+ it { instance.must_respond_to(:name) }
35
+ end
36
+
37
+ describe '#name=' do
38
+ it { instance.must_respond_to(:name=) }
39
+ end
40
+
20
41
  describe '#[]' do
21
42
  let(:collection) { [:hydrogen, :helium, :lithium, :beryllium] }
22
43
  let(:_value) { 1..2 }
@@ -29,6 +29,14 @@ module Vedeu
29
29
  }
30
30
  }
31
31
 
32
+ describe '#repository' do
33
+ it { model_instance.must_respond_to(:repository) }
34
+ end
35
+
36
+ describe '#repository=' do
37
+ it { model_instance.must_respond_to(:repository=) }
38
+ end
39
+
32
40
  describe '#deputy' do
33
41
  subject { model_instance.deputy }
34
42
 
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.33
4
+ version: 0.4.34
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-22 00:00:00.000000000 Z
11
+ date: 2015-06-23 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler