vedeu 0.6.20 → 0.6.21
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.yardopts +1 -1
- data/README.md +4 -0
- data/Rakefile +13 -0
- data/bin/vedeu_drb_server +6 -6
- data/docs/api.md +14 -0
- data/docs/dsl.md +12 -12
- data/docs/events/document.md +4 -2
- data/docs/events/drb.md +4 -0
- data/docs/events/focus.md +2 -0
- data/docs/events/menu.md +2 -0
- data/docs/events/movement.md +7 -5
- data/docs/events/refresh.md +2 -0
- data/docs/events/system.md +5 -0
- data/docs/events/view.md +2 -0
- data/docs/events/visibility.md +2 -0
- data/lib/vedeu.rb +0 -23
- data/lib/vedeu/all.rb +2 -4
- data/lib/vedeu/application/application_view.rb +1 -1
- data/lib/vedeu/borders/all.rb +3 -3
- data/lib/vedeu/borders/border.rb +2 -2
- data/lib/vedeu/borders/dsl.rb +21 -27
- data/lib/vedeu/borders/null.rb +2 -15
- data/lib/vedeu/borders/render.rb +1 -1
- data/lib/vedeu/borders/repository.rb +9 -0
- data/lib/vedeu/buffers/buffer.rb +2 -2
- data/lib/vedeu/buffers/null.rb +1 -31
- data/lib/vedeu/buffers/refresh.rb +8 -8
- data/lib/vedeu/buffers/repository.rb +9 -0
- data/lib/vedeu/colours/backgrounds.rb +9 -0
- data/lib/vedeu/colours/colour.rb +1 -1
- data/lib/vedeu/colours/foregrounds.rb +9 -0
- data/lib/vedeu/common.rb +22 -13
- data/lib/vedeu/configuration/configuration.rb +6 -0
- data/lib/vedeu/cursors/cursor.rb +13 -8
- data/lib/vedeu/cursors/refresh.rb +2 -2
- data/lib/vedeu/cursors/repository.rb +18 -1
- data/lib/vedeu/distributed/server.rb +23 -0
- data/lib/vedeu/distributed/templates/default_borders.vedeu +1 -1
- data/lib/vedeu/distributed/templates/default_geometries.vedeu +1 -1
- data/lib/vedeu/distributed/templates/default_interfaces.vedeu +1 -1
- data/lib/vedeu/distributed/templates/default_keymaps.vedeu +1 -1
- data/lib/vedeu/distributed/templates/default_menus.vedeu +1 -1
- data/lib/vedeu/distributed/templates/default_views.vedeu +1 -1
- data/lib/vedeu/dsl/composition.rb +7 -17
- data/lib/vedeu/dsl/dsl.rb +12 -0
- data/lib/vedeu/dsl/interface.rb +32 -33
- data/lib/vedeu/dsl/keymap.rb +13 -19
- data/lib/vedeu/dsl/line.rb +3 -13
- data/lib/vedeu/dsl/shared.rb +5 -5
- data/lib/vedeu/dsl/stream.rb +0 -10
- data/lib/vedeu/dsl/use.rb +6 -6
- data/lib/vedeu/dsl/view.rb +17 -19
- data/lib/vedeu/editor/cursor.rb +32 -10
- data/lib/vedeu/editor/document.rb +33 -35
- data/lib/vedeu/editor/editor.rb +3 -4
- data/lib/vedeu/editor/insert.rb +1 -1
- data/lib/vedeu/editor/line.rb +1 -8
- data/lib/vedeu/editor/lines.rb +1 -1
- data/lib/vedeu/editor/repository.rb +9 -0
- data/lib/vedeu/esc/esc.rb +2 -1
- data/lib/vedeu/events/aliases.rb +8 -1
- data/lib/vedeu/events/event.rb +8 -0
- data/lib/vedeu/events/repository.rb +9 -0
- data/lib/vedeu/events/trigger.rb +9 -5
- data/lib/vedeu/geometry/coordinate.rb +2 -2
- data/lib/vedeu/geometry/dsl.rb +32 -38
- data/lib/vedeu/geometry/generic_coordinate.rb +1 -1
- data/lib/vedeu/geometry/geometry.rb +3 -3
- data/lib/vedeu/geometry/null.rb +2 -24
- data/lib/vedeu/geometry/repository.rb +9 -0
- data/lib/vedeu/groups/clear.rb +7 -3
- data/lib/vedeu/groups/dsl.rb +29 -35
- data/lib/vedeu/groups/group.rb +28 -4
- data/lib/vedeu/groups/refresh.rb +3 -2
- data/lib/vedeu/groups/repository.rb +9 -0
- data/lib/vedeu/input/capture.rb +1 -1
- data/lib/vedeu/input/keymap.rb +2 -1
- data/lib/vedeu/input/keymaps.rb +9 -0
- data/lib/vedeu/input/mapper.rb +4 -0
- data/lib/vedeu/input/translator.rb +1 -1
- data/lib/vedeu/logging/debug.rb +13 -0
- data/lib/vedeu/logging/log.rb +8 -0
- data/lib/vedeu/logging/timer.rb +13 -0
- data/lib/vedeu/menus/dsl.rb +8 -18
- data/lib/vedeu/menus/menu.rb +8 -4
- data/lib/vedeu/menus/null.rb +1 -1
- data/lib/vedeu/menus/repository.rb +9 -0
- data/lib/vedeu/models/cell.rb +5 -0
- data/lib/vedeu/models/escape.rb +5 -0
- data/lib/vedeu/models/focus.rb +20 -5
- data/lib/vedeu/models/interface.rb +10 -1
- data/lib/vedeu/models/interfaces.rb +9 -0
- data/lib/vedeu/models/toggleable.rb +19 -4
- data/lib/vedeu/models/views/char.rb +6 -1
- data/lib/vedeu/models/views/html_char.rb +1 -4
- data/lib/vedeu/models/views/line.rb +1 -1
- data/lib/vedeu/models/views/view.rb +1 -1
- data/lib/vedeu/null/generic.rb +14 -2
- data/lib/vedeu/null/interface.rb +1 -1
- data/lib/vedeu/null/view.rb +1 -1
- data/lib/vedeu/output/clear/interface.rb +5 -1
- data/lib/vedeu/output/compressor.rb +8 -4
- data/lib/vedeu/output/direct.rb +4 -4
- data/lib/vedeu/output/presentation/all.rb +15 -0
- data/lib/vedeu/output/presentation/presentation.rb +0 -7
- data/lib/vedeu/output/refresh/refresh.rb +1 -3
- data/lib/vedeu/output/renderers/all.rb +10 -0
- data/lib/vedeu/output/renderers/terminal.rb +1 -3
- data/lib/vedeu/repositories/collection.rb +3 -3
- data/lib/vedeu/repositories/model.rb +1 -1
- data/lib/vedeu/repositories/repository.rb +8 -8
- data/lib/vedeu/repositories/store.rb +3 -2
- data/lib/vedeu/runtime/application.rb +4 -0
- data/lib/vedeu/runtime/bootstrap.rb +1 -1
- data/lib/vedeu/runtime/flags.rb +7 -0
- data/lib/vedeu/runtime/main_loop.rb +2 -0
- data/lib/vedeu/runtime/router.rb +4 -0
- data/lib/vedeu/templating/decoder.rb +1 -1
- data/lib/vedeu/templating/encoder.rb +1 -1
- data/lib/vedeu/templating/helpers.rb +2 -0
- data/lib/vedeu/templating/template.rb +1 -1
- data/lib/vedeu/terminal/buffer.rb +7 -0
- data/lib/vedeu/terminal/terminal.rb +8 -0
- data/lib/vedeu/version.rb +1 -1
- data/test/lib/vedeu/borders/dsl_test.rb +0 -6
- data/test/lib/vedeu/borders/null_test.rb +0 -12
- data/test/lib/vedeu/buffers/null_test.rb +0 -37
- data/test/lib/vedeu/common_test.rb +33 -0
- data/test/lib/vedeu/cursors/cursor_test.rb +1 -1
- data/test/lib/vedeu/dsl/composition_test.rb +0 -6
- data/test/lib/vedeu/dsl/dsl_test.rb +1 -0
- data/test/lib/vedeu/dsl/interface_test.rb +0 -6
- data/test/lib/vedeu/dsl/keymap_test.rb +0 -5
- data/test/lib/vedeu/dsl/line_test.rb +0 -7
- data/test/lib/vedeu/dsl/stream_test.rb +0 -7
- data/test/lib/vedeu/editor/cursor_test.rb +23 -8
- data/test/lib/vedeu/editor/document_test.rb +27 -23
- data/test/lib/vedeu/editor/line_test.rb +0 -30
- data/test/lib/vedeu/geometry/dsl_test.rb +0 -5
- data/test/lib/vedeu/geometry/null_test.rb +0 -30
- data/test/lib/vedeu/groups/dsl_test.rb +0 -6
- data/test/lib/vedeu/groups/group_test.rb +15 -7
- data/test/lib/vedeu/menus/dsl_test.rb +0 -5
- data/test/lib/vedeu/models/cell_test.rb +4 -0
- data/test/lib/vedeu/models/escape_test.rb +4 -0
- data/test/lib/vedeu/models/views/char_test.rb +4 -0
- data/test/lib/vedeu/null/generic_test.rb +13 -0
- data/test/lib/vedeu/terminal/buffer_test.rb +3 -2
- data/test/lib/vedeu_test.rb +81 -3
- data/test/support/examples/borders_app.rb +1 -3
- data/test/support/examples/drb_app.rb +1 -3
- data/test/support/examples/editor_app.rb +2 -4
- data/test/support/examples/focus_app.rb +1 -3
- data/test/support/examples/hello_world.rb +1 -6
- data/test/support/examples/material_colours_app.rb +1 -3
- data/test/support/examples/view_templates_app/view_templates_app.rb +1 -3
- data/test/support/helpers/model_test_class.rb +1 -5
- data/test/support/who.rb +29 -0
- data/test/test_helper.rb +0 -1
- metadata +5 -17
- data/lib/vedeu/api/all.rb +0 -15
- data/lib/vedeu/api/external.rb +0 -194
- data/lib/vedeu/api/internal.rb +0 -177
- data/test/lib/vedeu/api/external_test.rb +0 -74
- data/test/lib/vedeu/api/internal_test.rb +0 -33
- data/test/support/examples/typed_commands/command.erb +0 -1
- data/test/support/examples/typed_commands/output.erb +0 -1
- data/test/support/examples/typed_commands/status.erb +0 -1
- data/test/support/examples/typed_commands/typed_commands_app.rb +0 -94
@@ -11,6 +11,7 @@ module Vedeu
|
|
11
11
|
let(:width) { 3 }
|
12
12
|
|
13
13
|
before do
|
14
|
+
Vedeu.stubs(:ready?).returns(true)
|
14
15
|
Vedeu.stubs(:height).returns(height)
|
15
16
|
Vedeu.stubs(:width).returns(width)
|
16
17
|
Vedeu::Terminal::Buffer.reset
|
@@ -18,8 +19,8 @@ module Vedeu
|
|
18
19
|
|
19
20
|
describe '#buffer' do
|
20
21
|
let(:expected) {
|
21
|
-
Array.new(height) do |y|
|
22
|
-
Array.new(width) do |x|
|
22
|
+
Array.new(Vedeu.height) do |y|
|
23
|
+
Array.new(Vedeu.width) do |x|
|
23
24
|
Vedeu::Models::Cell.new(position: [y + 1, x + 1])
|
24
25
|
end
|
25
26
|
end
|
data/test/lib/vedeu_test.rb
CHANGED
@@ -2,8 +2,86 @@ require 'test_helper'
|
|
2
2
|
|
3
3
|
describe Vedeu do
|
4
4
|
|
5
|
-
|
6
|
-
|
7
|
-
|
5
|
+
it { Vedeu.must_respond_to(:background_colours) }
|
6
|
+
it { Vedeu.must_respond_to(:borders) }
|
7
|
+
it { Vedeu.must_respond_to(:buffers) }
|
8
|
+
it { Vedeu.must_respond_to(:cursors) }
|
9
|
+
it { Vedeu.must_respond_to(:debug) }
|
10
|
+
it { Vedeu.must_respond_to(:documents) }
|
11
|
+
it { Vedeu.must_respond_to(:events) }
|
12
|
+
it { Vedeu.must_respond_to(:foreground_colours) }
|
13
|
+
it { Vedeu.must_respond_to(:geometries) }
|
14
|
+
it { Vedeu.must_respond_to(:groups) }
|
15
|
+
it { Vedeu.must_respond_to(:interfaces) }
|
16
|
+
it { Vedeu.must_respond_to(:keymaps) }
|
17
|
+
it { Vedeu.must_respond_to(:menus) }
|
18
|
+
it { Vedeu.must_respond_to(:ready!) }
|
19
|
+
it { Vedeu.must_respond_to(:ready?) }
|
20
|
+
it { Vedeu.must_respond_to(:renderer) }
|
21
|
+
it { Vedeu.must_respond_to(:renderers) }
|
22
|
+
it { Vedeu.must_respond_to(:resize) }
|
23
|
+
it { Vedeu.must_respond_to(:timer) }
|
24
|
+
|
25
|
+
it { Vedeu.must_respond_to(:bind) }
|
26
|
+
it { Vedeu.must_respond_to(:bind_alias) }
|
27
|
+
it { Vedeu.must_respond_to(:border) }
|
28
|
+
it { Vedeu.must_respond_to(:bound?) }
|
29
|
+
it { Vedeu.must_respond_to(:clear) }
|
30
|
+
it { Vedeu.must_respond_to(:clear_by_group) }
|
31
|
+
it { Vedeu.must_respond_to(:clear_by_name) }
|
32
|
+
it { Vedeu.must_respond_to(:configuration) }
|
33
|
+
it { Vedeu.must_respond_to(:configure) }
|
34
|
+
it { Vedeu.must_respond_to(:cursor) }
|
35
|
+
it { Vedeu.must_respond_to(:drb_restart) }
|
36
|
+
it { Vedeu.must_respond_to(:drb_start) }
|
37
|
+
it { Vedeu.must_respond_to(:drb_status) }
|
38
|
+
it { Vedeu.must_respond_to(:drb_stop) }
|
39
|
+
it { Vedeu.must_respond_to(:events) }
|
40
|
+
it { Vedeu.must_respond_to(:exit) }
|
41
|
+
it { Vedeu.must_respond_to(:focus) }
|
42
|
+
it { Vedeu.must_respond_to(:focus_by_name) }
|
43
|
+
it { Vedeu.must_respond_to(:focus_next) }
|
44
|
+
it { Vedeu.must_respond_to(:focus_previous) }
|
45
|
+
it { Vedeu.must_respond_to(:focussed?) }
|
46
|
+
it { Vedeu.must_respond_to(:geometry) }
|
47
|
+
it { Vedeu.must_respond_to(:goto) }
|
48
|
+
it { Vedeu.must_respond_to(:group) }
|
49
|
+
|
50
|
+
describe 'Vedeu.height' do
|
51
|
+
before { Vedeu::Terminal.stubs(:size).returns([25, 40]) }
|
52
|
+
|
53
|
+
it { Vedeu.must_respond_to(:height) }
|
54
|
+
it { Vedeu.height.must_equal(25) }
|
55
|
+
end
|
56
|
+
|
57
|
+
it { Vedeu.must_respond_to(:hide_cursor) }
|
58
|
+
it { Vedeu.must_respond_to(:hide_group) }
|
59
|
+
it { Vedeu.must_respond_to(:hide_interface) }
|
60
|
+
it { Vedeu.must_respond_to(:interface) }
|
61
|
+
it { Vedeu.must_respond_to(:keymap) }
|
62
|
+
it { Vedeu.must_respond_to(:keypress) }
|
63
|
+
it { Vedeu.must_respond_to(:log) }
|
64
|
+
it { Vedeu.must_respond_to(:log_stderr) }
|
65
|
+
it { Vedeu.must_respond_to(:log_stdout) }
|
66
|
+
it { Vedeu.must_respond_to(:menu) }
|
67
|
+
it { Vedeu.must_respond_to(:render) }
|
68
|
+
it { Vedeu.must_respond_to(:renders) }
|
69
|
+
it { Vedeu.must_respond_to(:show_cursor) }
|
70
|
+
it { Vedeu.must_respond_to(:show_group) }
|
71
|
+
it { Vedeu.must_respond_to(:show_interface) }
|
72
|
+
it { Vedeu.must_respond_to(:toggle_cursor) }
|
73
|
+
it { Vedeu.must_respond_to(:toggle_group) }
|
74
|
+
it { Vedeu.must_respond_to(:toggle_interface) }
|
75
|
+
it { Vedeu.must_respond_to(:trigger) }
|
76
|
+
it { Vedeu.must_respond_to(:unbind) }
|
77
|
+
it { Vedeu.must_respond_to(:unbind_alias) }
|
78
|
+
it { Vedeu.must_respond_to(:views) }
|
79
|
+
|
80
|
+
describe 'Vedeu.width' do
|
81
|
+
before { Vedeu::Terminal.stubs(:size).returns([25, 40]) }
|
82
|
+
|
83
|
+
it { Vedeu.must_respond_to(:width) }
|
84
|
+
it { Vedeu.width.must_equal(40) }
|
85
|
+
end
|
8
86
|
|
9
87
|
end # Vedeu
|
@@ -1,8 +1,6 @@
|
|
1
1
|
#!/usr/bin/env ruby
|
2
2
|
|
3
|
-
|
4
|
-
$LOAD_PATH.unshift(lib_dir) unless $LOAD_PATH.include?(lib_dir)
|
5
|
-
|
3
|
+
require 'bundler/setup'
|
6
4
|
require 'vedeu'
|
7
5
|
|
8
6
|
# An example application to demonstrate the DRb server.
|
@@ -1,8 +1,6 @@
|
|
1
1
|
#!/usr/bin/env ruby
|
2
2
|
|
3
|
-
|
4
|
-
$LOAD_PATH.unshift(lib_dir) unless $LOAD_PATH.include?(lib_dir)
|
5
|
-
|
3
|
+
require 'bundler/setup'
|
6
4
|
require 'vedeu'
|
7
5
|
|
8
6
|
# An example application to demonstrate colours, cursor and interface movement,
|
@@ -24,7 +22,7 @@ class VedeuEditorApp
|
|
24
22
|
# Be aware that running an application with debugging enabled will affect
|
25
23
|
# performance.
|
26
24
|
Vedeu.configure do
|
27
|
-
|
25
|
+
debug!
|
28
26
|
fake!
|
29
27
|
log '/tmp/vedeu_editor_app.log'
|
30
28
|
# renderers Vedeu::Renderers::File.new
|
@@ -1,11 +1,6 @@
|
|
1
1
|
#!/usr/bin/env ruby
|
2
2
|
|
3
|
-
|
4
|
-
$LOAD_PATH.unshift(lib_dir) unless $LOAD_PATH.include?(lib_dir)
|
5
|
-
|
6
|
-
trap('INT') { exit! }
|
7
|
-
|
8
|
-
# require 'bundler/setup' # uncomment to remove the need to do `bundle exec`.
|
3
|
+
require 'bundler/setup'
|
9
4
|
require 'vedeu'
|
10
5
|
|
11
6
|
# An example application to demonstrate 'Hello World'.
|
@@ -1,8 +1,6 @@
|
|
1
1
|
#!/usr/bin/env ruby
|
2
2
|
|
3
|
-
|
4
|
-
$LOAD_PATH.unshift(lib_dir) unless $LOAD_PATH.include?(lib_dir)
|
5
|
-
|
3
|
+
require 'bundler/setup'
|
6
4
|
require 'vedeu'
|
7
5
|
|
8
6
|
# An example application to demonstrate colours, cursor and interface movement,
|
data/test/support/who.rb
ADDED
@@ -0,0 +1,29 @@
|
|
1
|
+
#!/usr/bin/env ruby
|
2
|
+
|
3
|
+
require 'net/http'
|
4
|
+
require 'json'
|
5
|
+
|
6
|
+
# Find out which projects are currently using Vedeu:
|
7
|
+
# (from: http://www.schneems.com/blogs/2015-09-30-reverse-rubygems/)
|
8
|
+
|
9
|
+
gem_name = "vedeu"
|
10
|
+
|
11
|
+
def rubygems_get(gem_name: "", endpoint: "")
|
12
|
+
path = File.join("/api/v1/gems/", gem_name, endpoint).chomp("/") + ".json"
|
13
|
+
JSON.parse(Net::HTTP.get("rubygems.org", path))
|
14
|
+
end
|
15
|
+
|
16
|
+
results = rubygems_get(gem_name: gem_name, endpoint: "reverse_dependencies")
|
17
|
+
|
18
|
+
weighted_results = {}
|
19
|
+
results.each do |name|
|
20
|
+
begin
|
21
|
+
weighted_results[name] = rubygems_get(gem_name: name)["downloads"]
|
22
|
+
rescue => e
|
23
|
+
puts "#{name} #{e.message}"
|
24
|
+
end
|
25
|
+
end
|
26
|
+
|
27
|
+
weighted_results.sort {|(k1, v1), (k2, v2)| v2 <=> v1 }.first(50).each_with_index do |(k, v), i|
|
28
|
+
puts "#{i}) #{k}: #{v}"
|
29
|
+
end
|
data/test/test_helper.rb
CHANGED
@@ -16,7 +16,6 @@ unless ENV['NO_SIMPLECOV']
|
|
16
16
|
formatter SimpleCov::Formatter::Console if ENV['CONSOLE_COVERAGE']
|
17
17
|
command_name 'MiniTest::Spec'
|
18
18
|
add_filter '/test/'
|
19
|
-
add_group 'api', 'vedeu/api'
|
20
19
|
add_group 'application', 'vedeu/application'
|
21
20
|
add_group 'bindings', 'vedeu/bindings'
|
22
21
|
add_group 'borders', 'vedeu/borders'
|
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.6.
|
4
|
+
version: 0.6.21
|
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-10-01 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: guard
|
@@ -266,9 +266,6 @@ files:
|
|
266
266
|
- docs/object_graph.md
|
267
267
|
- lib/vedeu.rb
|
268
268
|
- lib/vedeu/all.rb
|
269
|
-
- lib/vedeu/api/all.rb
|
270
|
-
- lib/vedeu/api/external.rb
|
271
|
-
- lib/vedeu/api/internal.rb
|
272
269
|
- lib/vedeu/application/all.rb
|
273
270
|
- lib/vedeu/application/application_controller.rb
|
274
271
|
- lib/vedeu/application/application_helper.rb
|
@@ -425,6 +422,7 @@ files:
|
|
425
422
|
- lib/vedeu/output/compressor.rb
|
426
423
|
- lib/vedeu/output/direct.rb
|
427
424
|
- lib/vedeu/output/output.rb
|
425
|
+
- lib/vedeu/output/presentation/all.rb
|
428
426
|
- lib/vedeu/output/presentation/colour.rb
|
429
427
|
- lib/vedeu/output/presentation/presentation.rb
|
430
428
|
- lib/vedeu/output/presentation/style.rb
|
@@ -472,8 +470,6 @@ files:
|
|
472
470
|
- lib/vedeu/terminal/mode.rb
|
473
471
|
- lib/vedeu/terminal/terminal.rb
|
474
472
|
- lib/vedeu/version.rb
|
475
|
-
- test/lib/vedeu/api/external_test.rb
|
476
|
-
- test/lib/vedeu/api/internal_test.rb
|
477
473
|
- test/lib/vedeu/application/application_controller_test.rb
|
478
474
|
- test/lib/vedeu/application/application_helper_test.rb
|
479
475
|
- test/lib/vedeu/application/application_view_test.rb
|
@@ -652,10 +648,6 @@ files:
|
|
652
648
|
- test/support/examples/hello_world.rb
|
653
649
|
- test/support/examples/material_colours_app.rb
|
654
650
|
- test/support/examples/material_colours_app_20150721.svg
|
655
|
-
- test/support/examples/typed_commands/command.erb
|
656
|
-
- test/support/examples/typed_commands/output.erb
|
657
|
-
- test/support/examples/typed_commands/status.erb
|
658
|
-
- test/support/examples/typed_commands/typed_commands_app.rb
|
659
651
|
- test/support/examples/view_templates_app/default.erb
|
660
652
|
- test/support/examples/view_templates_app/prune.erb
|
661
653
|
- test/support/examples/view_templates_app/view_templates_app.rb
|
@@ -663,6 +655,7 @@ files:
|
|
663
655
|
- test/support/helpers/model_test_class.rb
|
664
656
|
- test/support/stats.sh
|
665
657
|
- test/support/templates/html_renderer.vedeu
|
658
|
+
- test/support/who.rb
|
666
659
|
- test/test_helper.rb
|
667
660
|
- vedeu.gemspec
|
668
661
|
homepage: https://github.com/gavinlaking/vedeu
|
@@ -690,8 +683,6 @@ signing_key:
|
|
690
683
|
specification_version: 4
|
691
684
|
summary: A terminal case of wonderland.
|
692
685
|
test_files:
|
693
|
-
- test/lib/vedeu/api/external_test.rb
|
694
|
-
- test/lib/vedeu/api/internal_test.rb
|
695
686
|
- test/lib/vedeu/application/application_controller_test.rb
|
696
687
|
- test/lib/vedeu/application/application_helper_test.rb
|
697
688
|
- test/lib/vedeu/application/application_view_test.rb
|
@@ -870,10 +861,6 @@ test_files:
|
|
870
861
|
- test/support/examples/hello_world.rb
|
871
862
|
- test/support/examples/material_colours_app.rb
|
872
863
|
- test/support/examples/material_colours_app_20150721.svg
|
873
|
-
- test/support/examples/typed_commands/command.erb
|
874
|
-
- test/support/examples/typed_commands/output.erb
|
875
|
-
- test/support/examples/typed_commands/status.erb
|
876
|
-
- test/support/examples/typed_commands/typed_commands_app.rb
|
877
864
|
- test/support/examples/view_templates_app/default.erb
|
878
865
|
- test/support/examples/view_templates_app/prune.erb
|
879
866
|
- test/support/examples/view_templates_app/view_templates_app.rb
|
@@ -881,5 +868,6 @@ test_files:
|
|
881
868
|
- test/support/helpers/model_test_class.rb
|
882
869
|
- test/support/stats.sh
|
883
870
|
- test/support/templates/html_renderer.vedeu
|
871
|
+
- test/support/who.rb
|
884
872
|
- test/test_helper.rb
|
885
873
|
has_rdoc:
|
data/lib/vedeu/api/all.rb
DELETED
@@ -1,15 +0,0 @@
|
|
1
|
-
module Vedeu
|
2
|
-
|
3
|
-
# The API namespace provides the internal and external API methods
|
4
|
-
# for Vedeu. These methods are convenient ways to perform many
|
5
|
-
# actions and control the behaviour of Vedeu without needing to
|
6
|
-
# know the specific implementations.
|
7
|
-
#
|
8
|
-
module API
|
9
|
-
|
10
|
-
end # API
|
11
|
-
|
12
|
-
end # Vedeu
|
13
|
-
|
14
|
-
require 'vedeu/api/external'
|
15
|
-
require 'vedeu/api/internal'
|
data/lib/vedeu/api/external.rb
DELETED
@@ -1,194 +0,0 @@
|
|
1
|
-
module Vedeu
|
2
|
-
|
3
|
-
module API
|
4
|
-
|
5
|
-
# Provides the API to Vedeu. Methods therein, and classes
|
6
|
-
# belonging to this module expose Vedeu's core functionality.
|
7
|
-
#
|
8
|
-
# These methods are used in a variety of ways, sometimes in
|
9
|
-
# combination:
|
10
|
-
#
|
11
|
-
# # with parameters
|
12
|
-
# Vedeu.method_name(*params)
|
13
|
-
#
|
14
|
-
# # with a block
|
15
|
-
# Vedeu.method_name(*params) do
|
16
|
-
# # ...
|
17
|
-
# end
|
18
|
-
#
|
19
|
-
# # with other methods
|
20
|
-
# Vedeu.method_name.other_method
|
21
|
-
#
|
22
|
-
module External
|
23
|
-
|
24
|
-
extend Forwardable
|
25
|
-
|
26
|
-
module_function
|
27
|
-
|
28
|
-
# @!method configure
|
29
|
-
# @see Vedeu::Configuration.configure
|
30
|
-
# @!method configuration
|
31
|
-
# @see Vedeu::Configuration.configuration
|
32
|
-
def_delegators Vedeu::Configuration, :configure, :configuration
|
33
|
-
|
34
|
-
# @!method cursor
|
35
|
-
# @return [Vedeu::Cursors::Cursor]
|
36
|
-
def_delegators Vedeu::Cursors::Repository, :cursor
|
37
|
-
|
38
|
-
# @!method drb_restart
|
39
|
-
# @see Vedeu::Distributed::Server#restart
|
40
|
-
# @!method drb_start
|
41
|
-
# @see Vedeu::Distributed::Server#start
|
42
|
-
# @!method drb_status
|
43
|
-
# @see Vedeu::Distributed::Server#status
|
44
|
-
# @!method drb_stop
|
45
|
-
# @see Vedeu::Distributed::Server#stop
|
46
|
-
def_delegators Vedeu::Distributed::Server, :drb_restart, :drb_start,
|
47
|
-
:drb_status, :drb_stop
|
48
|
-
|
49
|
-
# @!method border
|
50
|
-
# @see Vedeu::Borders::DSL.border
|
51
|
-
def_delegators Vedeu::Borders::DSL, :border
|
52
|
-
|
53
|
-
# @!method geometry
|
54
|
-
# @see Vedeu::Geometry::DSL.geometry
|
55
|
-
def_delegators Vedeu::Geometry::DSL, :geometry
|
56
|
-
|
57
|
-
# @!method group
|
58
|
-
# @see Vedeu::Groups::DSL.group
|
59
|
-
def_delegators Vedeu::Groups::DSL, :group
|
60
|
-
|
61
|
-
# @!method keymap
|
62
|
-
# @see Vedeu::DSL::Keymap.keymap
|
63
|
-
def_delegators Vedeu::DSL::Keymap, :keymap
|
64
|
-
|
65
|
-
# @!method interface
|
66
|
-
# @see Vedeu::DSL::Interface.interface
|
67
|
-
def_delegators Vedeu::DSL::Interface, :interface
|
68
|
-
|
69
|
-
# @!method render
|
70
|
-
# @see Vedeu::DSL::View.render
|
71
|
-
# @!method renders
|
72
|
-
# @see Vedeu::DSL::View.renders
|
73
|
-
# @!method views
|
74
|
-
# @see Vedeu::DSL::View.views
|
75
|
-
def_delegators Vedeu::DSL::View, :renders, :render, :views
|
76
|
-
|
77
|
-
# @!method bind
|
78
|
-
# @see Vedeu::Events::Event.bind
|
79
|
-
# @!method bound?
|
80
|
-
# @see Vedeu::Events::Event.bound?
|
81
|
-
# @!method unbind
|
82
|
-
# @see Vedeu::Events::Event.unbind
|
83
|
-
def_delegators Vedeu::Events::Event, :bind, :bound?, :unbind
|
84
|
-
|
85
|
-
# @!method bind_alias
|
86
|
-
# @see Vedeu::Events::Aliases#bind_alias
|
87
|
-
# @!method unbind_alias
|
88
|
-
# @see Vedeu::Events::Aliases#unbind_alias
|
89
|
-
def_delegators Vedeu::Events::Aliases, :bind_alias, :unbind_alias
|
90
|
-
|
91
|
-
# @!method focus
|
92
|
-
# @see Vedeu::Models::Focus#focus
|
93
|
-
# @!method focus_by_name
|
94
|
-
# @see Vedeu::Models::Focus#focus_by_name
|
95
|
-
# @!method focussed?
|
96
|
-
# @see Vedeu::Models::Focus#focussed?
|
97
|
-
# @!method focus_next
|
98
|
-
# @see Vedeu::Models::Focus#focus_next
|
99
|
-
# @!method focus_previous
|
100
|
-
# @see Vedeu::Models::Focus#focus_previous
|
101
|
-
def_delegators Vedeu::Models::Focus, :focus, :focus_by_name, :focussed?,
|
102
|
-
:focus_next, :focus_previous
|
103
|
-
|
104
|
-
# @!method log
|
105
|
-
# @see Vedeu::Logging::Log.log
|
106
|
-
# @!method log_stdout
|
107
|
-
# @see Vedeu::Logging::Log.log_stdout
|
108
|
-
# @!method log_stderr
|
109
|
-
# @see Vedeu::Logging::Log.log_stderr
|
110
|
-
def_delegators Vedeu::Logging::Log, :log, :log_stdout, :log_stderr
|
111
|
-
|
112
|
-
# @!method keypress
|
113
|
-
# @see Vedeu::Input::Mapper.keypress
|
114
|
-
def_delegators Vedeu::Input::Mapper, :keypress
|
115
|
-
|
116
|
-
# @!method menu
|
117
|
-
# @see Vedeu::Menus::Menu.menu
|
118
|
-
def_delegators Vedeu::Menus::Menu, :menu
|
119
|
-
|
120
|
-
# @!method goto
|
121
|
-
# @see Vedeu::Runtime::Router#goto
|
122
|
-
def_delegators Vedeu::Runtime::Router, :goto
|
123
|
-
|
124
|
-
# @!method height
|
125
|
-
# @see Vedeu::Terminal#height
|
126
|
-
def_delegators Vedeu::Terminal, :height
|
127
|
-
|
128
|
-
# @!method width
|
129
|
-
# @see Vedeu::Terminal#width
|
130
|
-
def_delegators Vedeu::Terminal, :width
|
131
|
-
|
132
|
-
# @!method trigger
|
133
|
-
# @see Vedeu::Events::Trigger.trigger
|
134
|
-
def_delegators Vedeu::Events::Trigger, :trigger
|
135
|
-
|
136
|
-
# @!method exit
|
137
|
-
# @see Vedeu::Runtime::Application.stop
|
138
|
-
def_delegators Vedeu::Runtime::Application, :exit
|
139
|
-
|
140
|
-
# @!method clear
|
141
|
-
# @see Vedeu::Terminal::Buffer#clear
|
142
|
-
def_delegators Vedeu::Terminal::Buffer, :clear
|
143
|
-
|
144
|
-
# @!method clear_by_name
|
145
|
-
# @see Vedeu::Clear::Interface.render
|
146
|
-
def_delegators Vedeu::Clear::Interface, :clear_by_name
|
147
|
-
|
148
|
-
# @!method clear_by_group
|
149
|
-
# @see Vedeu::Groups::Clear.render
|
150
|
-
def_delegators Vedeu::Groups::Clear, :clear_by_group
|
151
|
-
|
152
|
-
# @!method hide_cursor
|
153
|
-
# @see Vedeu::Cursors::Cursor#hide
|
154
|
-
def_delegators Vedeu::Cursors::Cursor, :hide_cursor
|
155
|
-
|
156
|
-
# @!method show_cursor
|
157
|
-
# @see Vedeu::Cursors::Cursor#show
|
158
|
-
def_delegators Vedeu::Cursors::Cursor, :show_cursor
|
159
|
-
|
160
|
-
# @!method toggle_cursor
|
161
|
-
# @see Vedeu::Cursors::Cursor#toggle
|
162
|
-
def_delegators Vedeu::Cursors::Cursor, :toggle_cursor
|
163
|
-
|
164
|
-
# @!method hide_group
|
165
|
-
# @see Vedeu::Groups::Group#hide
|
166
|
-
def_delegators Vedeu::Groups::Group, :hide_group
|
167
|
-
|
168
|
-
# @!method show_group
|
169
|
-
# @see Vedeu::Groups::Group#show
|
170
|
-
def_delegators Vedeu::Groups::Group, :show_group
|
171
|
-
|
172
|
-
# @!method toggle_group
|
173
|
-
# @see Vedeu::Groups::Group#toggle
|
174
|
-
def_delegators Vedeu::Groups::Group, :toggle_group
|
175
|
-
|
176
|
-
# @!method hide_interface
|
177
|
-
# @see Vedeu::Models::Interface#hide
|
178
|
-
def_delegators Vedeu::Models::Interface, :hide_interface
|
179
|
-
|
180
|
-
# @!method show_interface
|
181
|
-
# @see Vedeu::Models::Interface#show
|
182
|
-
def_delegators Vedeu::Models::Interface, :show_interface
|
183
|
-
|
184
|
-
# @!method toggle_interface
|
185
|
-
# @see Vedeu::Models::Interface#toggle
|
186
|
-
def_delegators Vedeu::Models::Interface, :toggle_interface
|
187
|
-
|
188
|
-
end # External
|
189
|
-
|
190
|
-
end # API
|
191
|
-
|
192
|
-
extend Vedeu::API::External
|
193
|
-
|
194
|
-
end # Vedeu
|