vedeu 0.4.40 → 0.4.41
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/Dockerfile +23 -28
- data/Guardfile +0 -8
- data/Rakefile +0 -6
- data/docs/applications.md +0 -1
- data/docs/dsl.md +7 -12
- data/examples/borders_app.rb +5 -0
- data/examples/configuration_app.rb +5 -0
- data/examples/drb_app.rb +5 -0
- data/examples/geometry_app.rb +5 -0
- data/examples/material_colours_app.rb +5 -0
- data/examples/panel_app.rb +5 -0
- data/examples/typed_commands/typed_commands_app.rb +5 -0
- data/examples/view_templates_app/view_templates_app.rb +5 -0
- data/lib/vedeu/api.rb +8 -8
- data/lib/vedeu/application/all.rb +3 -0
- data/lib/vedeu/application/application_controller.rb +4 -0
- data/lib/vedeu/application/application_helper.rb +4 -0
- data/lib/vedeu/application/application_view.rb +6 -0
- data/lib/vedeu/application/controller.rb +23 -0
- data/lib/vedeu/application/helper.rb +23 -0
- data/lib/vedeu/application/view.rb +23 -0
- data/lib/vedeu/application.rb +1 -3
- data/lib/vedeu/bindings.rb +64 -65
- data/lib/vedeu/bootstrap.rb +2 -0
- data/lib/vedeu/buffers/buffer.rb +44 -0
- data/lib/vedeu/configuration/api.rb +44 -119
- data/lib/vedeu/configuration/cli.rb +2 -0
- data/lib/vedeu/configuration/configuration.rb +4 -20
- data/lib/vedeu/cursor/cursor.rb +7 -7
- data/lib/vedeu/cursor/reposition.rb +2 -0
- data/lib/vedeu/dsl/border.rb +58 -2
- data/lib/vedeu/dsl/composition.rb +5 -3
- data/lib/vedeu/dsl/geometry.rb +14 -5
- data/lib/vedeu/dsl/group.rb +2 -0
- data/lib/vedeu/dsl/interface.rb +23 -3
- data/lib/vedeu/dsl/keymap.rb +11 -6
- data/lib/vedeu/dsl/line.rb +8 -0
- data/lib/vedeu/dsl/menu.rb +3 -1
- data/lib/vedeu/dsl/presentation.rb +12 -3
- data/lib/vedeu/dsl/text.rb +2 -0
- data/lib/vedeu/dsl/view.rb +6 -1
- data/lib/vedeu/events/event.rb +3 -1
- data/lib/vedeu/generator/application.rb +2 -7
- data/lib/vedeu/generator/templates/application/app/models/keymaps/_global_.rb +5 -0
- data/lib/vedeu/generator/templates/application/app/views/interfaces/name.erb +10 -0
- data/lib/vedeu/generator/view.rb +2 -0
- data/lib/vedeu/geometry/geometry.rb +14 -0
- data/lib/vedeu/geometry/index_position.rb +1 -0
- data/lib/vedeu/geometry/position.rb +5 -0
- data/lib/vedeu/input/all.rb +0 -8
- data/lib/vedeu/input/input.rb +24 -8
- data/lib/vedeu/input/mapper.rb +5 -12
- data/lib/vedeu/models/composition.rb +3 -3
- data/lib/vedeu/models/escape_char.rb +2 -0
- data/lib/vedeu/models/focus.rb +8 -0
- data/lib/vedeu/models/interface.rb +1 -1
- data/lib/vedeu/models/line.rb +1 -5
- data/lib/vedeu/models/menu.rb +4 -2
- data/lib/vedeu/models/panel.rb +2 -0
- data/lib/vedeu/null/buffer.rb +2 -0
- data/lib/vedeu/null/interface.rb +2 -0
- data/lib/vedeu/output/background.rb +1 -1
- data/lib/vedeu/output/border.rb +5 -157
- data/lib/vedeu/output/compressor.rb +2 -0
- data/lib/vedeu/output/foreground.rb +1 -1
- data/lib/vedeu/output/refresh.rb +5 -9
- data/lib/vedeu/output/render_border.rb +230 -0
- data/lib/vedeu/output/renderers/escape_sequence.rb +2 -3
- data/lib/vedeu/output/renderers/file.rb +10 -9
- data/lib/vedeu/repositories/collections/all.rb +4 -4
- data/lib/vedeu/repositories/repositories/all.rb +4 -4
- data/lib/vedeu/repositories/repositories/{background_colours.rb → backgrounds.rb} +3 -3
- data/lib/vedeu/repositories/repositories/cursors.rb +3 -0
- data/lib/vedeu/repositories/repositories/{events_repository.rb → events.rb} +5 -5
- data/lib/vedeu/repositories/repositories/{foreground_colours.rb → foregrounds.rb} +3 -3
- data/lib/vedeu/repositories/repositories/{interfaces_repository.rb → interfaces.rb} +4 -4
- data/lib/vedeu/storage/associative_store.rb +2 -0
- data/lib/vedeu/storage/conveyor_store.rb +2 -0
- data/lib/vedeu/storage/fifo_store.rb +2 -0
- data/lib/vedeu/storage/store.rb +7 -7
- data/lib/vedeu/support/options.rb +2 -0
- data/lib/vedeu/support/terminal.rb +3 -3
- data/lib/vedeu/support/timer.rb +2 -0
- data/lib/vedeu/support/visibility.rb +2 -0
- data/lib/vedeu/templating/directive.rb +2 -0
- data/lib/vedeu/templating/preprocessor.rb +2 -0
- data/lib/vedeu/version.rb +1 -1
- data/lib/vedeu.rb +3 -1
- data/test/lib/vedeu/bindings_test.rb +15 -0
- data/test/lib/vedeu/buffers/buffer_test.rb +12 -0
- data/test/lib/vedeu/configuration/api_test.rb +0 -39
- data/test/lib/vedeu/configuration/configuration_test.rb +0 -9
- data/test/lib/vedeu/cursor/cursor_test.rb +6 -0
- data/test/lib/vedeu/dsl/border_test.rb +12 -0
- data/test/lib/vedeu/dsl/composition_test.rb +2 -2
- data/test/lib/vedeu/geometry/index_position_test.rb +2 -0
- data/test/lib/vedeu/geometry/position_test.rb +6 -0
- data/test/lib/vedeu/models/cell_test.rb +16 -8
- data/test/lib/vedeu/models/char_test.rb +8 -0
- data/test/lib/vedeu/models/composition_test.rb +2 -2
- data/test/lib/vedeu/models/interface_test.rb +10 -0
- data/test/lib/vedeu/models/line_test.rb +12 -0
- data/test/lib/vedeu/models/stream_test.rb +1 -13
- data/test/lib/vedeu/output/border_test.rb +1 -0
- data/test/lib/vedeu/output/presentation_test.rb +2 -0
- data/test/lib/vedeu/output/render_border_test.rb +16 -0
- data/test/lib/vedeu/output/renderers/file_test.rb +32 -16
- data/test/lib/vedeu/repositories/collection_test.rb +7 -0
- data/test/lib/vedeu/repositories/collections/all_test.rb +18 -6
- data/test/lib/vedeu/repositories/model_test.rb +33 -7
- data/test/lib/vedeu/repositories/repositories/{background_colours_test.rb → backgrounds_test.rb} +3 -3
- data/test/lib/vedeu/repositories/repositories/borders_test.rb +7 -17
- data/test/lib/vedeu/repositories/repositories/buffers_test.rb +7 -22
- data/test/lib/vedeu/repositories/repositories/cursors_test.rb +32 -0
- data/test/lib/vedeu/repositories/repositories/events_test.rb +22 -0
- data/test/lib/vedeu/repositories/repositories/{foreground_colours_test.rb → foregrounds_test.rb} +3 -3
- data/test/lib/vedeu/repositories/repositories/geometries_test.rb +7 -21
- data/test/lib/vedeu/repositories/repositories/groups_test.rb +11 -0
- data/test/lib/vedeu/repositories/repositories/{interfaces_repositories_test.rb → interfaces_test.rb} +14 -3
- data/test/lib/vedeu/repositories/repositories/keymaps_test.rb +10 -1
- data/test/lib/vedeu/repositories/repositories/menus_test.rb +10 -1
- data/test/lib/vedeu/repositories/repository_test.rb +15 -9
- data/test/lib/vedeu/storage/conveyor_store_test.rb +2 -4
- data/test/lib/vedeu/support/terminal_test.rb +2 -2
- data/test/lib/vedeu/templating/helpers_test.rb +4 -0
- data/vedeu.gemspec +0 -2
- metadata +20 -54
- data/config/cucumber.yml +0 -8
- data/features/cli_vedeu.feature +0 -5
- data/features/start_stop.feature +0 -27
- data/features/step_definitions/vedeu_steps.rb +0 -0
- data/features/support/env.rb +0 -15
- data/lib/vedeu/generator/templates/application/app/models/keymaps/_system_.rb +0 -7
- data/test/lib/vedeu/repositories/repositories/events_repository_test.rb +0 -13
- data/test/lib/vedeu/repositories/repositories/interfaces_repository_test.rb +0 -11
@@ -6,6 +6,8 @@ module Vedeu
|
|
6
6
|
|
7
7
|
let(:described) { Vedeu::Cursors }
|
8
8
|
|
9
|
+
it { described.must_respond_to(:cursors) }
|
10
|
+
|
9
11
|
describe '.cursor' do
|
10
12
|
subject { Vedeu.cursor }
|
11
13
|
|
@@ -28,6 +30,36 @@ module Vedeu
|
|
28
30
|
end
|
29
31
|
end
|
30
32
|
|
33
|
+
describe '.reset!' do
|
34
|
+
subject { described.reset! }
|
35
|
+
|
36
|
+
it {
|
37
|
+
described.expects(:register).with(Vedeu::Cursor)
|
38
|
+
subject
|
39
|
+
}
|
40
|
+
end
|
41
|
+
|
42
|
+
describe '#by_name' do
|
43
|
+
let(:_name) { 'carbon' }
|
44
|
+
|
45
|
+
subject { described.cursors.by_name(_name) }
|
46
|
+
|
47
|
+
context 'when the cursor exists' do
|
48
|
+
before { Vedeu::Cursor.new(name: _name).store }
|
49
|
+
after { Vedeu.cursors.reset }
|
50
|
+
|
51
|
+
it { subject.must_be_instance_of(Vedeu::Cursor) }
|
52
|
+
it { subject.name.must_equal('carbon') }
|
53
|
+
end
|
54
|
+
|
55
|
+
context 'when the cursor does not exist' do
|
56
|
+
let(:_name) { 'nitrogen' }
|
57
|
+
|
58
|
+
it { subject.must_be_instance_of(Vedeu::Cursor) }
|
59
|
+
it { subject.name.must_equal('nitrogen') }
|
60
|
+
end
|
61
|
+
end
|
62
|
+
|
31
63
|
end # Cursors
|
32
64
|
|
33
65
|
end # Vedeu
|
@@ -0,0 +1,22 @@
|
|
1
|
+
require 'test_helper'
|
2
|
+
|
3
|
+
module Vedeu
|
4
|
+
|
5
|
+
describe Events do
|
6
|
+
|
7
|
+
let(:described) { Vedeu::Events }
|
8
|
+
|
9
|
+
it { described.must_respond_to(:events) }
|
10
|
+
|
11
|
+
describe '.reset!' do
|
12
|
+
subject { described.reset! }
|
13
|
+
|
14
|
+
it {
|
15
|
+
described.expects(:new).with(Vedeu::EventCollection)
|
16
|
+
subject
|
17
|
+
}
|
18
|
+
end
|
19
|
+
|
20
|
+
end # Events
|
21
|
+
|
22
|
+
end # Vedeu
|
data/test/lib/vedeu/repositories/repositories/{foreground_colours_test.rb → foregrounds_test.rb}
RENAMED
@@ -2,9 +2,9 @@ require 'test_helper'
|
|
2
2
|
|
3
3
|
module Vedeu
|
4
4
|
|
5
|
-
describe
|
5
|
+
describe Foregrounds do
|
6
6
|
|
7
|
-
let(:described) { Vedeu::
|
7
|
+
let(:described) { Vedeu::Foregrounds }
|
8
8
|
|
9
9
|
describe '.foreground_colours' do
|
10
10
|
subject { described.foreground_colours }
|
@@ -12,6 +12,6 @@ module Vedeu
|
|
12
12
|
it { subject.must_be_instance_of(described) }
|
13
13
|
end
|
14
14
|
|
15
|
-
end #
|
15
|
+
end # Foregrounds
|
16
16
|
|
17
17
|
end # Vedeu
|
@@ -8,29 +8,15 @@ module Vedeu
|
|
8
8
|
|
9
9
|
after { Vedeu.geometries.reset }
|
10
10
|
|
11
|
-
|
12
|
-
let(:_name) { 'carbon' }
|
11
|
+
it { described.must_respond_to(:geometries) }
|
13
12
|
|
14
|
-
|
13
|
+
describe '.reset!' do
|
14
|
+
subject { described.reset! }
|
15
15
|
|
16
|
-
|
17
|
-
|
18
|
-
|
19
|
-
|
20
|
-
xn 3
|
21
|
-
y 1
|
22
|
-
yn 3
|
23
|
-
end
|
24
|
-
end
|
25
|
-
|
26
|
-
it { subject.must_be_instance_of(Vedeu::Geometry) }
|
27
|
-
end
|
28
|
-
|
29
|
-
context 'when the geometry does not exist' do
|
30
|
-
let(:_name) { 'nitrogen' }
|
31
|
-
|
32
|
-
it { subject.must_be_instance_of(Vedeu::Null::Geometry) }
|
33
|
-
end
|
16
|
+
it {
|
17
|
+
described.expects(:register).with(Vedeu::Geometry)
|
18
|
+
subject
|
19
|
+
}
|
34
20
|
end
|
35
21
|
|
36
22
|
end # Geometries
|
@@ -6,6 +6,17 @@ module Vedeu
|
|
6
6
|
|
7
7
|
let(:described) { Vedeu::Groups }
|
8
8
|
|
9
|
+
it { described.must_respond_to(:groups) }
|
10
|
+
|
11
|
+
describe '.reset!' do
|
12
|
+
subject { described.reset! }
|
13
|
+
|
14
|
+
it {
|
15
|
+
described.expects(:register).with(Vedeu::Group)
|
16
|
+
subject
|
17
|
+
}
|
18
|
+
end
|
19
|
+
|
9
20
|
describe '#by_name' do
|
10
21
|
let(:_name) { 'carbon' }
|
11
22
|
|
data/test/lib/vedeu/repositories/repositories/{interfaces_repositories_test.rb → interfaces_test.rb}
RENAMED
@@ -2,9 +2,20 @@ require 'test_helper'
|
|
2
2
|
|
3
3
|
module Vedeu
|
4
4
|
|
5
|
-
describe
|
5
|
+
describe Interfaces do
|
6
6
|
|
7
|
-
let(:described) { Vedeu::
|
7
|
+
let(:described) { Vedeu::Interfaces }
|
8
|
+
|
9
|
+
it { described.must_respond_to(:interfaces) }
|
10
|
+
|
11
|
+
describe '.reset!' do
|
12
|
+
subject { described.reset! }
|
13
|
+
|
14
|
+
it {
|
15
|
+
described.expects(:register).with(Vedeu::Interface)
|
16
|
+
subject
|
17
|
+
}
|
18
|
+
end
|
8
19
|
|
9
20
|
describe '#zindexed' do
|
10
21
|
before do
|
@@ -25,6 +36,6 @@ module Vedeu
|
|
25
36
|
it { subject.must_equal([@lithium, @hydrogen, @helium]) }
|
26
37
|
end
|
27
38
|
|
28
|
-
end #
|
39
|
+
end # Interfaces
|
29
40
|
|
30
41
|
end # Vedeu
|
@@ -6,7 +6,16 @@ module Vedeu
|
|
6
6
|
|
7
7
|
let(:described) { Vedeu::Keymaps }
|
8
8
|
|
9
|
-
|
9
|
+
it { described.must_respond_to(:keymaps) }
|
10
|
+
|
11
|
+
describe '.reset!' do
|
12
|
+
subject { described.reset! }
|
13
|
+
|
14
|
+
it {
|
15
|
+
described.expects(:register).with(Vedeu::Keymap)
|
16
|
+
subject
|
17
|
+
}
|
18
|
+
end
|
10
19
|
|
11
20
|
end # Keymaps
|
12
21
|
|
@@ -6,7 +6,16 @@ module Vedeu
|
|
6
6
|
|
7
7
|
let(:described) { Vedeu::Menus }
|
8
8
|
|
9
|
-
|
9
|
+
it { described.must_respond_to(:menus) }
|
10
|
+
|
11
|
+
describe '.reset!' do
|
12
|
+
subject { described.reset! }
|
13
|
+
|
14
|
+
it {
|
15
|
+
described.expects(:register).with(Vedeu::Menu)
|
16
|
+
subject
|
17
|
+
}
|
18
|
+
end
|
10
19
|
|
11
20
|
end # Menus
|
12
21
|
|
@@ -46,14 +46,6 @@ module Vedeu
|
|
46
46
|
let(:model_name) { 'terbium' }
|
47
47
|
let(:storage) { {} }
|
48
48
|
|
49
|
-
describe 'alias methods' do
|
50
|
-
it { instance.must_respond_to(:by_name) }
|
51
|
-
it { instance.must_respond_to(:destroy) }
|
52
|
-
it { instance.must_respond_to(:delete) }
|
53
|
-
it { instance.must_respond_to(:deregister) }
|
54
|
-
it { instance.must_respond_to(:register) }
|
55
|
-
end
|
56
|
-
|
57
49
|
describe '#initialize' do
|
58
50
|
it { instance.must_be_instance_of(described) }
|
59
51
|
it { instance.instance_variable_get('@model').must_equal(model) }
|
@@ -94,6 +86,14 @@ module Vedeu
|
|
94
86
|
end
|
95
87
|
end
|
96
88
|
|
89
|
+
describe '#by_name' do
|
90
|
+
let(:_name) {}
|
91
|
+
|
92
|
+
subject { instance.by_name(_name) }
|
93
|
+
|
94
|
+
# it { skip }
|
95
|
+
end
|
96
|
+
|
97
97
|
describe '#current' do
|
98
98
|
subject { instance.current }
|
99
99
|
|
@@ -184,7 +184,7 @@ module Vedeu
|
|
184
184
|
subject { Vedeu.interfaces.inspect }
|
185
185
|
|
186
186
|
it { subject.must_equal(
|
187
|
-
"<Vedeu::
|
187
|
+
"<Vedeu::Interfaces: [\"hydrogen\", \"helium\"]>"
|
188
188
|
) }
|
189
189
|
end
|
190
190
|
end
|
@@ -250,6 +250,10 @@ module Vedeu
|
|
250
250
|
describe '#remove' do
|
251
251
|
subject { instance.remove('francium') }
|
252
252
|
|
253
|
+
it { instance.must_respond_to(:destroy) }
|
254
|
+
it { instance.must_respond_to(:delete) }
|
255
|
+
it { instance.must_respond_to(:deregister) }
|
256
|
+
|
253
257
|
context 'when the storage is empty' do
|
254
258
|
before { instance.reset }
|
255
259
|
|
@@ -281,6 +285,8 @@ module Vedeu
|
|
281
285
|
describe '#store' do
|
282
286
|
subject { instance.store(model_instance) }
|
283
287
|
|
288
|
+
it { instance.must_respond_to(:register) }
|
289
|
+
|
284
290
|
context 'when a name attribute is empty or nil' do
|
285
291
|
before { model_instance.name = '' }
|
286
292
|
|
@@ -8,10 +8,6 @@ module Vedeu
|
|
8
8
|
let(:instance) { described.new(storage) }
|
9
9
|
let(:storage) { [] }
|
10
10
|
|
11
|
-
describe 'alias methods' do
|
12
|
-
it { instance.must_respond_to(:current) }
|
13
|
-
end
|
14
|
-
|
15
11
|
describe '#initialize' do
|
16
12
|
it { instance.must_be_instance_of(described) }
|
17
13
|
it { instance.instance_variable_get('@storage').must_equal(storage) }
|
@@ -20,6 +16,8 @@ module Vedeu
|
|
20
16
|
describe '#load' do
|
21
17
|
subject { instance.load }
|
22
18
|
|
19
|
+
it { instance.must_respond_to(:current) }
|
20
|
+
|
23
21
|
context 'when the storage is empty' do
|
24
22
|
it { subject.must_equal(nil) }
|
25
23
|
end
|
@@ -185,8 +185,8 @@ module Vedeu
|
|
185
185
|
describe '.cursor' do
|
186
186
|
subject { described.cursor }
|
187
187
|
|
188
|
-
#
|
189
|
-
#
|
188
|
+
#it { subject.must_be_instance_of(Array) }
|
189
|
+
#it { subject.must_be_instance_of(Vedeu::Position) }
|
190
190
|
end
|
191
191
|
|
192
192
|
describe '.centre' do
|
@@ -23,6 +23,8 @@ module Vedeu
|
|
23
23
|
|
24
24
|
subject { instance.background('#000000') { 'background text' } }
|
25
25
|
|
26
|
+
it { instance.must_respond_to(:bg) }
|
27
|
+
|
26
28
|
it { subject.must_equal(expected) }
|
27
29
|
end
|
28
30
|
|
@@ -87,6 +89,8 @@ module Vedeu
|
|
87
89
|
|
88
90
|
subject { instance.foreground('#000000') { 'foreground text' } }
|
89
91
|
|
92
|
+
it { instance.must_respond_to(:fg) }
|
93
|
+
|
90
94
|
it { subject.must_equal(expected) }
|
91
95
|
end
|
92
96
|
|
data/vedeu.gemspec
CHANGED
@@ -20,8 +20,6 @@ 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 'aruba', '0.6.2'
|
24
|
-
spec.add_development_dependency 'cucumber', '2.0.0'
|
25
23
|
spec.add_development_dependency 'guard', '2.12.7'
|
26
24
|
spec.add_development_dependency 'guard-bundler', '2.1.0'
|
27
25
|
spec.add_development_dependency 'guard-minitest', '2.4.4'
|
metadata
CHANGED
@@ -1,43 +1,15 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: vedeu
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.4.
|
4
|
+
version: 0.4.41
|
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-
|
11
|
+
date: 2015-07-03 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
|
-
- !ruby/object:Gem::Dependency
|
14
|
-
name: aruba
|
15
|
-
requirement: !ruby/object:Gem::Requirement
|
16
|
-
requirements:
|
17
|
-
- - '='
|
18
|
-
- !ruby/object:Gem::Version
|
19
|
-
version: 0.6.2
|
20
|
-
type: :development
|
21
|
-
prerelease: false
|
22
|
-
version_requirements: !ruby/object:Gem::Requirement
|
23
|
-
requirements:
|
24
|
-
- - '='
|
25
|
-
- !ruby/object:Gem::Version
|
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
|
41
13
|
- !ruby/object:Gem::Dependency
|
42
14
|
name: guard
|
43
15
|
requirement: !ruby/object:Gem::Requirement
|
@@ -288,7 +260,6 @@ files:
|
|
288
260
|
- bin/vedeu_drb_client
|
289
261
|
- bin/vedeu_drb_server
|
290
262
|
- bin/vedeu_test
|
291
|
-
- config/cucumber.yml
|
292
263
|
- config/rubocop_disabled.yml
|
293
264
|
- config/rubocop_enabled.yml
|
294
265
|
- docs/api.md
|
@@ -315,10 +286,6 @@ files:
|
|
315
286
|
- examples/view_templates_app/prune.erb
|
316
287
|
- examples/view_templates_app/view_templates_app.rb
|
317
288
|
- examples/view_templates_app/wrap.erb
|
318
|
-
- features/cli_vedeu.feature
|
319
|
-
- features/start_stop.feature
|
320
|
-
- features/step_definitions/vedeu_steps.rb
|
321
|
-
- features/support/env.rb
|
322
289
|
- inch.yml
|
323
290
|
- lib/vedeu.rb
|
324
291
|
- lib/vedeu/all.rb
|
@@ -328,6 +295,9 @@ files:
|
|
328
295
|
- lib/vedeu/application/application_controller.rb
|
329
296
|
- lib/vedeu/application/application_helper.rb
|
330
297
|
- lib/vedeu/application/application_view.rb
|
298
|
+
- lib/vedeu/application/controller.rb
|
299
|
+
- lib/vedeu/application/helper.rb
|
300
|
+
- lib/vedeu/application/view.rb
|
331
301
|
- lib/vedeu/bindings.rb
|
332
302
|
- lib/vedeu/bootstrap.rb
|
333
303
|
- lib/vedeu/buffers/all.rb
|
@@ -384,7 +354,6 @@ files:
|
|
384
354
|
- lib/vedeu/generator/templates/application/app/helpers/application_helper.erb
|
385
355
|
- lib/vedeu/generator/templates/application/app/helpers/name.erb
|
386
356
|
- lib/vedeu/generator/templates/application/app/models/keymaps/_global_.rb
|
387
|
-
- lib/vedeu/generator/templates/application/app/models/keymaps/_system_.rb
|
388
357
|
- lib/vedeu/generator/templates/application/app/models/keymaps/name.erb
|
389
358
|
- lib/vedeu/generator/templates/application/app/views/interfaces/name.erb
|
390
359
|
- lib/vedeu/generator/templates/application/app/views/name.erb
|
@@ -444,6 +413,7 @@ files:
|
|
444
413
|
- lib/vedeu/output/output.rb
|
445
414
|
- lib/vedeu/output/presentation.rb
|
446
415
|
- lib/vedeu/output/refresh.rb
|
416
|
+
- lib/vedeu/output/render_border.rb
|
447
417
|
- lib/vedeu/output/renderers/all.rb
|
448
418
|
- lib/vedeu/output/renderers/escape_sequence.rb
|
449
419
|
- lib/vedeu/output/renderers/file.rb
|
@@ -468,16 +438,16 @@ files:
|
|
468
438
|
- lib/vedeu/repositories/model.rb
|
469
439
|
- lib/vedeu/repositories/registerable.rb
|
470
440
|
- lib/vedeu/repositories/repositories/all.rb
|
471
|
-
- lib/vedeu/repositories/repositories/
|
441
|
+
- lib/vedeu/repositories/repositories/backgrounds.rb
|
472
442
|
- lib/vedeu/repositories/repositories/borders.rb
|
473
443
|
- lib/vedeu/repositories/repositories/buffers.rb
|
474
444
|
- lib/vedeu/repositories/repositories/colours.rb
|
475
445
|
- lib/vedeu/repositories/repositories/cursors.rb
|
476
|
-
- lib/vedeu/repositories/repositories/
|
477
|
-
- lib/vedeu/repositories/repositories/
|
446
|
+
- lib/vedeu/repositories/repositories/events.rb
|
447
|
+
- lib/vedeu/repositories/repositories/foregrounds.rb
|
478
448
|
- lib/vedeu/repositories/repositories/geometries.rb
|
479
449
|
- lib/vedeu/repositories/repositories/groups.rb
|
480
|
-
- lib/vedeu/repositories/repositories/
|
450
|
+
- lib/vedeu/repositories/repositories/interfaces.rb
|
481
451
|
- lib/vedeu/repositories/repositories/keymaps.rb
|
482
452
|
- lib/vedeu/repositories/repositories/menus.rb
|
483
453
|
- lib/vedeu/repositories/repository.rb
|
@@ -583,6 +553,7 @@ files:
|
|
583
553
|
- test/lib/vedeu/output/output_test.rb
|
584
554
|
- test/lib/vedeu/output/presentation_test.rb
|
585
555
|
- test/lib/vedeu/output/refresh_test.rb
|
556
|
+
- test/lib/vedeu/output/render_border_test.rb
|
586
557
|
- test/lib/vedeu/output/renderers/all_test.rb
|
587
558
|
- test/lib/vedeu/output/renderers/escape_sequence_test.rb
|
588
559
|
- test/lib/vedeu/output/renderers/file_test.rb
|
@@ -603,17 +574,16 @@ files:
|
|
603
574
|
- test/lib/vedeu/repositories/collections/all_test.rb
|
604
575
|
- test/lib/vedeu/repositories/model_test.rb
|
605
576
|
- test/lib/vedeu/repositories/registerable_test.rb
|
606
|
-
- test/lib/vedeu/repositories/repositories/
|
577
|
+
- test/lib/vedeu/repositories/repositories/backgrounds_test.rb
|
607
578
|
- test/lib/vedeu/repositories/repositories/borders_test.rb
|
608
579
|
- test/lib/vedeu/repositories/repositories/buffers_test.rb
|
609
580
|
- test/lib/vedeu/repositories/repositories/colours_test.rb
|
610
581
|
- test/lib/vedeu/repositories/repositories/cursors_test.rb
|
611
|
-
- test/lib/vedeu/repositories/repositories/
|
612
|
-
- test/lib/vedeu/repositories/repositories/
|
582
|
+
- test/lib/vedeu/repositories/repositories/events_test.rb
|
583
|
+
- test/lib/vedeu/repositories/repositories/foregrounds_test.rb
|
613
584
|
- test/lib/vedeu/repositories/repositories/geometries_test.rb
|
614
585
|
- test/lib/vedeu/repositories/repositories/groups_test.rb
|
615
|
-
- test/lib/vedeu/repositories/repositories/
|
616
|
-
- test/lib/vedeu/repositories/repositories/interfaces_repository_test.rb
|
586
|
+
- test/lib/vedeu/repositories/repositories/interfaces_test.rb
|
617
587
|
- test/lib/vedeu/repositories/repositories/keymaps_test.rb
|
618
588
|
- test/lib/vedeu/repositories/repositories/menus_test.rb
|
619
589
|
- test/lib/vedeu/repositories/repository_test.rb
|
@@ -664,10 +634,6 @@ signing_key:
|
|
664
634
|
specification_version: 4
|
665
635
|
summary: A terminal case of wonderland.
|
666
636
|
test_files:
|
667
|
-
- features/cli_vedeu.feature
|
668
|
-
- features/start_stop.feature
|
669
|
-
- features/step_definitions/vedeu_steps.rb
|
670
|
-
- features/support/env.rb
|
671
637
|
- test/lib/vedeu/api_test.rb
|
672
638
|
- test/lib/vedeu/application/application_controller_test.rb
|
673
639
|
- test/lib/vedeu/application/application_helper_test.rb
|
@@ -748,6 +714,7 @@ test_files:
|
|
748
714
|
- test/lib/vedeu/output/output_test.rb
|
749
715
|
- test/lib/vedeu/output/presentation_test.rb
|
750
716
|
- test/lib/vedeu/output/refresh_test.rb
|
717
|
+
- test/lib/vedeu/output/render_border_test.rb
|
751
718
|
- test/lib/vedeu/output/renderers/all_test.rb
|
752
719
|
- test/lib/vedeu/output/renderers/escape_sequence_test.rb
|
753
720
|
- test/lib/vedeu/output/renderers/file_test.rb
|
@@ -768,17 +735,16 @@ test_files:
|
|
768
735
|
- test/lib/vedeu/repositories/collections/all_test.rb
|
769
736
|
- test/lib/vedeu/repositories/model_test.rb
|
770
737
|
- test/lib/vedeu/repositories/registerable_test.rb
|
771
|
-
- test/lib/vedeu/repositories/repositories/
|
738
|
+
- test/lib/vedeu/repositories/repositories/backgrounds_test.rb
|
772
739
|
- test/lib/vedeu/repositories/repositories/borders_test.rb
|
773
740
|
- test/lib/vedeu/repositories/repositories/buffers_test.rb
|
774
741
|
- test/lib/vedeu/repositories/repositories/colours_test.rb
|
775
742
|
- test/lib/vedeu/repositories/repositories/cursors_test.rb
|
776
|
-
- test/lib/vedeu/repositories/repositories/
|
777
|
-
- test/lib/vedeu/repositories/repositories/
|
743
|
+
- test/lib/vedeu/repositories/repositories/events_test.rb
|
744
|
+
- test/lib/vedeu/repositories/repositories/foregrounds_test.rb
|
778
745
|
- test/lib/vedeu/repositories/repositories/geometries_test.rb
|
779
746
|
- test/lib/vedeu/repositories/repositories/groups_test.rb
|
780
|
-
- test/lib/vedeu/repositories/repositories/
|
781
|
-
- test/lib/vedeu/repositories/repositories/interfaces_repository_test.rb
|
747
|
+
- test/lib/vedeu/repositories/repositories/interfaces_test.rb
|
782
748
|
- test/lib/vedeu/repositories/repositories/keymaps_test.rb
|
783
749
|
- test/lib/vedeu/repositories/repositories/menus_test.rb
|
784
750
|
- test/lib/vedeu/repositories/repository_test.rb
|
data/config/cucumber.yml
DELETED
@@ -1,8 +0,0 @@
|
|
1
|
-
<%
|
2
|
-
rerun = File.file?('rerun.txt') ? IO.read('rerun.txt') : ""
|
3
|
-
rerun_opts = rerun.to_s.strip.empty? ? "--format #{ENV['CUCUMBER_FORMAT'] || 'progress'} features" : "--format #{ENV['CUCUMBER_FORMAT'] || 'pretty'} #{rerun}"
|
4
|
-
std_opts = "--format #{ENV['CUCUMBER_FORMAT'] || 'rerun'} --strict --tags ~@wip --tags ~@ok --tags ~@pending --tags ~@failing"
|
5
|
-
%>
|
6
|
-
default: <%= std_opts %> features --format rerun
|
7
|
-
wip: --tags @wip:99 --wip features --format pretty
|
8
|
-
rerun: <%= rerun_opts %> --format rerun --out rerun.txt --strict --tags ~@wip
|
data/features/cli_vedeu.feature
DELETED
data/features/start_stop.feature
DELETED
@@ -1,27 +0,0 @@
|
|
1
|
-
Feature: Starting and stopping a client application
|
2
|
-
|
3
|
-
@basic @wip
|
4
|
-
Scenario: The simplest thing that could work
|
5
|
-
Given a file named "simple.rb" with mode "0755" and with:
|
6
|
-
"""ruby
|
7
|
-
require 'vedeu'
|
8
|
-
|
9
|
-
class VedeuTestApp
|
10
|
-
include Vedeu
|
11
|
-
|
12
|
-
configure do
|
13
|
-
debug!
|
14
|
-
log '/tmp/vedeu_test_helper.log'
|
15
|
-
end
|
16
|
-
|
17
|
-
def self.start(argv = ARGV)
|
18
|
-
Vedeu::Launcher.execute!(argv)
|
19
|
-
end
|
20
|
-
end
|
21
|
-
|
22
|
-
VedeuTestApp.start(ARGV)
|
23
|
-
"""
|
24
|
-
When I run `ruby simple.rb` interactively
|
25
|
-
And I type "q"
|
26
|
-
And I close the stdin stream
|
27
|
-
Then the exit status should be 1
|
File without changes
|
data/features/support/env.rb
DELETED
@@ -1,15 +0,0 @@
|
|
1
|
-
lib_dir = File.dirname(__FILE__) + '/../../lib'
|
2
|
-
$LOAD_PATH.unshift(lib_dir) unless $LOAD_PATH.include?(lib_dir)
|
3
|
-
|
4
|
-
require 'simplecov'
|
5
|
-
require 'aruba'
|
6
|
-
require 'aruba/cucumber'
|
7
|
-
require 'aruba/in_process'
|
8
|
-
require 'mocha/api'
|
9
|
-
|
10
|
-
require_relative '../../lib/vedeu.rb'
|
11
|
-
|
12
|
-
class CucumberError < StandardError; end
|
13
|
-
|
14
|
-
# Aruba::InProcess.main_class = Vedeu::Launcher
|
15
|
-
# Aruba.process = Aruba::InProcess
|
@@ -1,7 +0,0 @@
|
|
1
|
-
Vedeu.keymap('_system_') do
|
2
|
-
# see http://www.rubydoc.info/gems/vedeu/Vedeu/DSL/Keymap
|
3
|
-
key('e') { Vedeu.trigger(:_exit_) }
|
4
|
-
key(:esc) { Vedeu.trigger(:_mode_switch_) }
|
5
|
-
key(:shift_tab) { Vedeu.trigger(:_focus_previous_) }
|
6
|
-
key(:tab) { Vedeu.trigger(:_focus_next_) }
|
7
|
-
end
|