vedeu 0.6.19 → 0.6.20
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/docs/configuration.md +6 -4
- data/docs/dsl.md +23 -21
- data/docs/events/system.md +9 -9
- data/docs/getting_started.md +54 -48
- data/docs/object_graph.md +4 -4
- data/lib/vedeu/all.rb +1 -1
- data/lib/vedeu/api/external.rb +10 -10
- data/lib/vedeu/api/internal.rb +2 -2
- data/lib/vedeu/bindings/application.rb +5 -2
- data/lib/vedeu/bindings/bindings.rb +15 -2
- data/lib/vedeu/bindings/movement.rb +10 -5
- data/lib/vedeu/bindings/refresh.rb +1 -1
- data/lib/vedeu/bindings/system.rb +1 -1
- data/lib/vedeu/bindings/visibility.rb +20 -37
- data/lib/vedeu/cursors/cursor.rb +1 -14
- data/lib/vedeu/dsl/all.rb +0 -1
- data/lib/vedeu/dsl/interface.rb +1 -1
- data/lib/vedeu/esc/colours.rb +1 -1
- data/lib/vedeu/geometry/geometry.rb +19 -25
- data/lib/vedeu/groups/all.rb +16 -0
- data/lib/vedeu/{output/clear/group.rb → groups/clear.rb} +7 -7
- data/lib/vedeu/{dsl/group.rb → groups/dsl.rb} +10 -10
- data/lib/vedeu/{models → groups}/group.rb +14 -31
- data/lib/vedeu/{output/refresh/refresh_group.rb → groups/refresh.rb} +7 -7
- data/lib/vedeu/groups/repository.rb +24 -0
- data/lib/vedeu/models/all.rb +0 -2
- data/lib/vedeu/models/interface.rb +0 -12
- data/lib/vedeu/models/toggleable.rb +1 -1
- data/lib/vedeu/output/clear/all.rb +0 -1
- data/lib/vedeu/output/wordwrap.rb +3 -5
- data/lib/vedeu/repositories/model.rb +8 -1
- data/lib/vedeu/runtime/main_loop.rb +2 -2
- data/lib/vedeu/version.rb +1 -1
- data/test/lib/vedeu/api/external_test.rb +1 -1
- data/test/lib/vedeu/bindings/application_test.rb +1 -0
- data/test/lib/vedeu/bindings/bindings_test.rb +27 -0
- data/test/lib/vedeu/borders/border_test.rb +43 -37
- data/test/lib/vedeu/borders/render_test.rb +5 -1
- data/test/lib/vedeu/buffers/buffer_test.rb +9 -7
- data/test/lib/vedeu/cursors/cursor_test.rb +11 -9
- data/test/lib/vedeu/distributed/test_application_test.rb +18 -16
- data/test/lib/vedeu/dsl/interface_test.rb +2 -2
- data/test/lib/vedeu/editor/cursor_test.rb +18 -16
- data/test/lib/vedeu/editor/document_test.rb +7 -5
- data/test/lib/vedeu/esc/actions_test.rb +0 -2
- data/test/lib/vedeu/esc/borders_test.rb +0 -2
- data/test/lib/vedeu/esc/colours_test.rb +0 -2
- data/test/lib/vedeu/events/aliases_test.rb +1 -1
- data/test/lib/vedeu/geometry/area_test.rb +10 -8
- data/test/lib/vedeu/geometry/dsl_test.rb +2 -2
- data/test/lib/vedeu/geometry/geometry_test.rb +18 -30
- data/test/lib/vedeu/geometry/position_test.rb +6 -4
- data/test/lib/vedeu/{output/clear/group_test.rb → groups/clear_test.rb} +8 -8
- data/test/lib/vedeu/{dsl/group_test.rb → groups/dsl_test.rb} +8 -8
- data/test/lib/vedeu/{models → groups}/group_test.rb +12 -10
- data/test/lib/vedeu/{output/refresh/refresh_group_test.rb → groups/refresh_test.rb} +7 -7
- data/test/lib/vedeu/{models/groups_test.rb → groups/repository_test.rb} +6 -6
- data/test/lib/vedeu/menus/menu_test.rb +7 -5
- data/test/lib/vedeu/models/cell_test.rb +5 -3
- data/test/lib/vedeu/models/interface_test.rb +18 -42
- data/test/lib/vedeu/models/toggleable_test.rb +5 -3
- data/test/lib/vedeu/models/views/char_test.rb +8 -6
- data/test/lib/vedeu/models/views/composition_test.rb +6 -4
- data/test/lib/vedeu/models/views/line_test.rb +5 -3
- data/test/lib/vedeu/models/views/stream_test.rb +9 -7
- data/test/lib/vedeu/models/views/view_test.rb +30 -12
- data/test/lib/vedeu/output/presentation/style_test.rb +4 -2
- data/test/lib/vedeu/plugins/plugin_test.rb +8 -6
- data/test/lib/vedeu/repositories/collection_test.rb +8 -6
- data/test/lib/vedeu/runtime/application_test.rb +1 -1
- data/test/test_helper.rb +1 -0
- metadata +18 -17
- data/lib/vedeu/models/groups.rb +0 -24
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA1:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 0fbbcdaa8be4572e7426e84959d56e5932e90bba
|
|
4
|
+
data.tar.gz: 039d7499ad442e6eb675920ef27abb4d8560d9a3
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 8711ec3ecd769c9924fcd0f9da09d18289a32ff86f03b44cc539c2909f54355563f1817e242d106a9e2deb7c5921dc1aea17e138ab444bdb2c86407a74162c80
|
|
7
|
+
data.tar.gz: e724e09e2aead30c2502c31d5aefd80b9481e9c493250991eb463f6b48940e14fce71a64d7fc4617a747ce5b2f345063c49989af8a1796270ef4a586e2fbec8f
|
data/docs/configuration.md
CHANGED
|
@@ -5,14 +5,16 @@ Vedeu provides a simple DSL for configuration.
|
|
|
5
5
|
|
|
6
6
|
Vedeu.configure do
|
|
7
7
|
|
|
8
|
-
# add configuration options here, each of which are listed
|
|
8
|
+
# add configuration options here, each of which are listed
|
|
9
|
+
# below...
|
|
9
10
|
|
|
10
11
|
end
|
|
11
12
|
|
|
12
|
-
If you need to access the value of Vedeu's configuration for whatever
|
|
13
|
-
simply ask for it:
|
|
13
|
+
If you need to access the value of Vedeu's configuration for whatever
|
|
14
|
+
reason, simply ask for it:
|
|
14
15
|
|
|
15
|
-
|
|
16
|
+
# => The current value of 'base_path'
|
|
17
|
+
Vedeu.configuration.base_path
|
|
16
18
|
|
|
17
19
|
## Configuration Options
|
|
18
20
|
|
data/docs/dsl.md
CHANGED
|
@@ -1,19 +1,20 @@
|
|
|
1
1
|
# @title The Vedeu DSL
|
|
2
2
|
# The Vedeu DSL
|
|
3
3
|
|
|
4
|
-
Coupled with the API (for interacting with the running client
|
|
5
|
-
DSL provides the mechanism to configure aspects of
|
|
6
|
-
using Vedeu.
|
|
4
|
+
Coupled with the API (for interacting with the running client
|
|
5
|
+
application), the DSL provides the mechanism to configure aspects of
|
|
6
|
+
your application whilst using Vedeu.
|
|
7
7
|
|
|
8
8
|
## Interfaces
|
|
9
9
|
|
|
10
|
-
An Interface is a basic element in the GUI. It usually but does not
|
|
11
|
-
correspond to a region of the terminal screen (for
|
|
12
|
-
not be displayed at certain points in an
|
|
10
|
+
An Interface is a basic element in the GUI. It usually but does not
|
|
11
|
+
necessarily correspond to a region of the terminal screen (for
|
|
12
|
+
example, an Interface might not be displayed at certain points in an
|
|
13
|
+
application life cycle).
|
|
13
14
|
|
|
14
|
-
Much of the behavior of an Interface comes from child objects that
|
|
15
|
-
under the Interface. These objects are described in more
|
|
16
|
-
respective sections below.
|
|
15
|
+
Much of the behavior of an Interface comes from child objects that
|
|
16
|
+
are defined under the Interface. These objects are described in more
|
|
17
|
+
detail in their respective sections below.
|
|
17
18
|
|
|
18
19
|
Here is an example of declarations for an `interface` block:
|
|
19
20
|
|
|
@@ -43,13 +44,13 @@ end
|
|
|
43
44
|
|
|
44
45
|
### Declaring interface sub-objects
|
|
45
46
|
|
|
46
|
-
Every object in the DSL besides interface itself is defined for a
|
|
47
|
-
interface. This can either be declared implicitly by
|
|
48
|
-
an `interface` block or explicitly, by
|
|
49
|
-
argument to the declaration.
|
|
47
|
+
Every object in the DSL besides interface itself is defined for a
|
|
48
|
+
particular interface. This can either be declared implicitly by
|
|
49
|
+
defining the object inside an `interface` block or explicitly, by
|
|
50
|
+
passing the interface name as a first argument to the declaration.
|
|
50
51
|
|
|
51
|
-
That is, these are equivalent ways to declare a Geometry for an
|
|
52
|
-
interface
|
|
52
|
+
That is, these are equivalent ways to declare a Geometry for an
|
|
53
|
+
existing interface
|
|
53
54
|
|
|
54
55
|
```ruby
|
|
55
56
|
interface 'main' do
|
|
@@ -120,11 +121,11 @@ end
|
|
|
120
121
|
|
|
121
122
|
## Groups
|
|
122
123
|
|
|
123
|
-
{include:Vedeu::DSL
|
|
124
|
+
{include:Vedeu::Groups::DSL}
|
|
124
125
|
|
|
125
126
|
### Add interfaces to groups
|
|
126
127
|
|
|
127
|
-
{include:Vedeu::DSL
|
|
128
|
+
{include:Vedeu::Groups::DSL.group}
|
|
128
129
|
|
|
129
130
|
## Keymaps
|
|
130
131
|
|
|
@@ -162,8 +163,9 @@ end
|
|
|
162
163
|
|
|
163
164
|
#### Authors Notes
|
|
164
165
|
|
|
165
|
-
The Rubydoc documentation has more specific information about the DSL
|
|
166
|
-
demonstrated above: [RubyDoc](http://rubydoc.info/gems/vedeu).
|
|
166
|
+
The Rubydoc documentation has more specific information about the DSL
|
|
167
|
+
methods demonstrated above: [RubyDoc](http://rubydoc.info/gems/vedeu).
|
|
167
168
|
|
|
168
|
-
I've tried to write the DSL in a way which makes it read nice;
|
|
169
|
-
this will make it easier to use. I hope this is the
|
|
169
|
+
I've tried to write the DSL in a way which makes it read nice;
|
|
170
|
+
believing that this will make it easier to use. I hope this is the
|
|
171
|
+
case for you.
|
data/docs/events/system.md
CHANGED
|
@@ -17,7 +17,7 @@ define to 'do things'.
|
|
|
17
17
|
Vedeu.trigger(:_command_, command)
|
|
18
18
|
|
|
19
19
|
### :_editor_
|
|
20
|
-
This event is called by {Vedeu::Input::
|
|
20
|
+
This event is called by {Vedeu::Input::Capture#read}. When
|
|
21
21
|
invoked, the key will be passed to the editor for currently
|
|
22
22
|
focussed view.
|
|
23
23
|
|
|
@@ -39,11 +39,11 @@ action(s), like render the first screen, interface or make a sound.
|
|
|
39
39
|
|
|
40
40
|
### :_keypress_
|
|
41
41
|
Will cause the triggering of the `:key` event; which you should define
|
|
42
|
-
to 'do things'. If the `escape` key is pressed, then `key` is
|
|
43
|
-
with the argument `:escape`, also an internal event
|
|
44
|
-
triggered. Vedeu recognises most key presses and
|
|
45
|
-
keypress (eg. Ctrl+J), a list of supported keypresses
|
|
46
|
-
{Vedeu::Input::
|
|
42
|
+
to 'do things'. If the `escape` key is pressed, then `key` is
|
|
43
|
+
triggered with the argument `:escape`, also an internal event
|
|
44
|
+
`_mode_switch_` is triggered. Vedeu recognises most key presses and
|
|
45
|
+
some 'extended' keypress (eg. Ctrl+J), a list of supported keypresses
|
|
46
|
+
can be found here: {Vedeu::Input::Capture}.
|
|
47
47
|
|
|
48
48
|
Vedeu.trigger(:_keypress_, key)
|
|
49
49
|
|
|
@@ -56,8 +56,8 @@ logging is enabled in the configuration.
|
|
|
56
56
|
### :_mode_switch_
|
|
57
57
|
When triggered (by default, after the user presses `escape`), Vedeu
|
|
58
58
|
switches between modes of the terminal. The idea here being
|
|
59
|
-
that the raw mode is for single keypress actions, whilst fake and
|
|
60
|
-
modes allow the user to enter more elaborate commands- such as
|
|
61
|
-
with arguments.
|
|
59
|
+
that the raw mode is for single keypress actions, whilst fake and
|
|
60
|
+
cooked modes allow the user to enter more elaborate commands- such as
|
|
61
|
+
commands with arguments.
|
|
62
62
|
|
|
63
63
|
Vedeu.trigger(:_mode_switch_)
|
data/docs/getting_started.md
CHANGED
|
@@ -7,22 +7,24 @@ First, install the gem locally:
|
|
|
7
7
|
|
|
8
8
|
gem install vedeu
|
|
9
9
|
|
|
10
|
-
This will provide a new command to help build your client application.
|
|
11
|
-
to Ruby on Rails, although not nearly as advanced as the Rails
|
|
12
|
-
hopefully the `vedeu` command generators will get you off
|
|
10
|
+
This will provide a new command to help build your client application.
|
|
11
|
+
Similar to Ruby on Rails, although not nearly as advanced as the Rails
|
|
12
|
+
equivalent, hopefully the `vedeu` command generators will get you off
|
|
13
|
+
the ground:
|
|
13
14
|
|
|
14
15
|
vedeu
|
|
15
16
|
|
|
16
17
|
## Generating a new application
|
|
17
18
|
|
|
18
|
-
The following command will build a new application. Substitute
|
|
19
|
-
for your desired application name.
|
|
19
|
+
The following command will build a new application. Substitute
|
|
20
|
+
`your_app_name` for your desired application name.
|
|
20
21
|
|
|
21
22
|
vedeu new your_app_name
|
|
22
23
|
|
|
23
|
-
If `your_app_name` already exists, Vedeu will only write new files
|
|
24
|
-
exist at the file path. The generated files are a skeleton
|
|
25
|
-
application. Let's take a look at these files
|
|
24
|
+
If `your_app_name` already exists, Vedeu will only write new files
|
|
25
|
+
that do not exist at the file path. The generated files are a skeleton
|
|
26
|
+
Vedeu client application. Let's take a look at these files
|
|
27
|
+
individually.
|
|
26
28
|
|
|
27
29
|
```bash
|
|
28
30
|
|
|
|
@@ -59,38 +61,41 @@ application. Let's take a look at these files individually.
|
|
|
59
61
|
|
|
60
62
|
### app/controllers/
|
|
61
63
|
|
|
62
|
-
The controllers directory is the place to store the events and
|
|
63
|
-
of your application. It will manage the choosing of
|
|
64
|
-
previous choices. Think of them as the
|
|
64
|
+
The controllers directory is the place to store the events and
|
|
65
|
+
behaviour logic of your application. It will manage the choosing of
|
|
66
|
+
views and models based on previous choices. Think of them as the
|
|
67
|
+
orchestrators of your application.
|
|
65
68
|
|
|
66
|
-
In web applications, the controller typically handles the routed
|
|
67
|
-
interacts with the models and sets up the views. In Vedeu,
|
|
68
|
-
same, minus the requests.
|
|
69
|
+
In web applications, the controller typically handles the routed
|
|
70
|
+
request and interacts with the models and sets up the views. In Vedeu,
|
|
71
|
+
it does much the same, minus the requests.
|
|
69
72
|
|
|
70
73
|
### app/helpers/
|
|
71
74
|
|
|
72
|
-
Ruby on Rails has a concept of helpers which are not very
|
|
73
|
-
allow you to share functionality/behaviour across
|
|
74
|
-
this concept as it will be familiar to many
|
|
75
|
-
helpful to beginners.
|
|
75
|
+
Ruby on Rails has a concept of helpers which are not very
|
|
76
|
+
object-oriented, but allow you to share functionality/behaviour across
|
|
77
|
+
multiple views. Vedeu uses this concept as it will be familiar to many
|
|
78
|
+
Rails developers and might be helpful to beginners.
|
|
76
79
|
|
|
77
80
|
### app/models/
|
|
78
81
|
|
|
79
|
-
Much like `lib`, this directory is for your application logic code.
|
|
80
|
-
prefer to use `app/models`, others like to use `lib`. Some
|
|
82
|
+
Much like `lib`, this directory is for your application logic code.
|
|
83
|
+
Some people prefer to use `app/models`, others like to use `lib`. Some
|
|
84
|
+
even use both!
|
|
81
85
|
|
|
82
86
|
### app/models/keymaps/
|
|
83
87
|
|
|
84
|
-
This will contain the global keymap (which affects all of your
|
|
85
|
-
plus any specific interface keymaps which only affect a
|
|
86
|
-
in focus. By default the global keymap contains
|
|
88
|
+
This will contain the global keymap (which affects all of your
|
|
89
|
+
application) plus any specific interface keymaps which only affect a
|
|
90
|
+
certain interface when in focus. By default the global keymap contains
|
|
91
|
+
a few simple definitions:
|
|
87
92
|
|
|
88
93
|
- **`q`**
|
|
89
94
|
|
|
90
|
-
**Quit**. Internally triggers the :_exit_ system event which in turn
|
|
91
|
-
the application stops. This triggers the event :cleanup
|
|
92
|
-
application can bind to and perform any tidying up
|
|
93
|
-
before exiting.
|
|
95
|
+
**Quit**. Internally triggers the :_exit_ system event which in turn
|
|
96
|
+
requests the application stops. This triggers the event :cleanup
|
|
97
|
+
which the client application can bind to and perform any tidying up
|
|
98
|
+
it wishes to perform before exiting.
|
|
94
99
|
|
|
95
100
|
- **`<esc>`**
|
|
96
101
|
|
|
@@ -106,30 +111,31 @@ in focus. By default the global keymap contains a few simple definitions:
|
|
|
106
111
|
|
|
107
112
|
### app/views/
|
|
108
113
|
|
|
109
|
-
This will contain classes which produce the views needed by Vedeu to
|
|
110
|
-
application come alive!
|
|
114
|
+
This will contain classes which produce the views needed by Vedeu to
|
|
115
|
+
make your application come alive!
|
|
111
116
|
|
|
112
117
|
### app/views/interfaces/
|
|
113
118
|
|
|
114
|
-
This will contain the information Vedeu needs to draw the various
|
|
115
|
-
and views of your application.
|
|
119
|
+
This will contain the information Vedeu needs to draw the various
|
|
120
|
+
interfaces and views of your application.
|
|
116
121
|
|
|
117
122
|
### app/views/templates/
|
|
118
123
|
|
|
119
|
-
This will house the templates your application will use to display
|
|
120
|
-
can populate templates with generic view information and
|
|
121
|
-
variable data from your application.
|
|
124
|
+
This will house the templates your application will use to display
|
|
125
|
+
views. You can populate templates with generic view information and
|
|
126
|
+
supplement it with variable data from your application.
|
|
122
127
|
|
|
123
128
|
### bin/
|
|
124
129
|
|
|
125
|
-
This will contain executable Ruby scripts (or Bash, or shell language
|
|
126
|
-
choice) which will launch your application or provide
|
|
130
|
+
This will contain executable Ruby scripts (or Bash, or shell language
|
|
131
|
+
of your choice) which will launch your application or provide
|
|
132
|
+
command-line behaviours.
|
|
127
133
|
|
|
128
134
|
### config/
|
|
129
135
|
|
|
130
|
-
This will contain any configuration your application needs to run,
|
|
131
|
-
configuration for Vedeu. This configuration affects the way
|
|
132
|
-
your application.
|
|
136
|
+
This will contain any configuration your application needs to run,
|
|
137
|
+
plus the configuration for Vedeu. This configuration affects the way
|
|
138
|
+
Vedeu works with your application.
|
|
133
139
|
|
|
134
140
|
### lib/
|
|
135
141
|
|
|
@@ -138,28 +144,28 @@ This is for code your application may use to support code you have in
|
|
|
138
144
|
|
|
139
145
|
### test/
|
|
140
146
|
|
|
141
|
-
This is for the tests you might write to help ensure your application
|
|
142
|
-
in the way you expect.
|
|
147
|
+
This is for the tests you might write to help ensure your application
|
|
148
|
+
executes in the way you expect.
|
|
143
149
|
|
|
144
150
|
### vendor/
|
|
145
151
|
|
|
146
|
-
This is for third-party code which your application might want to
|
|
147
|
-
Usually you will include various Ruby gems to provide
|
|
148
|
-
might want to do something special.
|
|
152
|
+
This is for third-party code which your application might want to
|
|
153
|
+
ship with. Usually you will include various Ruby gems to provide
|
|
154
|
+
functionality, but you might want to do something special.
|
|
149
155
|
|
|
150
156
|
|
|
151
157
|
## Adding a new view to your application
|
|
152
158
|
|
|
153
159
|
The following command will build a new view within your application.
|
|
154
160
|
Substitute `some_view_name` for your desired application name. As with
|
|
155
|
-
generating a new application, If `some_view_name` already exists,
|
|
156
|
-
only write new files that do not exist at the file path.
|
|
161
|
+
generating a new application, If `some_view_name` already exists,
|
|
162
|
+
Vedeu will only write new files that do not exist at the file path.
|
|
157
163
|
|
|
158
164
|
cd your_app_name
|
|
159
165
|
vedeu view some_view_name
|
|
160
166
|
|
|
161
|
-
The generated files are skeleton Vedeu view files. Let's talk about
|
|
162
|
-
will create and populate:
|
|
167
|
+
The generated files are skeleton Vedeu view files. Let's talk about
|
|
168
|
+
the files it will create and populate:
|
|
163
169
|
|
|
164
170
|
```bash
|
|
165
171
|
|
|
data/docs/object_graph.md
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
# @title Producing an object graph of Vedeu
|
|
2
2
|
|
|
3
|
-
Sometimes I find looking at the project as a graph helps me to
|
|
4
|
-
relationship between the various objects. To achieve
|
|
5
|
-
options. If this sort of thing floats your
|
|
6
|
-
appropriate software installed:
|
|
3
|
+
Sometimes I find looking at the project as a graph helps me to
|
|
4
|
+
understand the relationship between the various objects. To achieve
|
|
5
|
+
this, I use Yard's graph options. If this sort of thing floats your
|
|
6
|
+
boat too, and you have the appropriate software installed:
|
|
7
7
|
|
|
8
8
|
```shell
|
|
9
9
|
yard graph --full --dependencies --private --protected --dot --file vedeu.dot
|
data/lib/vedeu/all.rb
CHANGED
|
@@ -25,7 +25,6 @@ require 'vedeu/output/output'
|
|
|
25
25
|
require 'vedeu/output/viewport'
|
|
26
26
|
require 'vedeu/output/wordwrap'
|
|
27
27
|
require 'vedeu/output/refresh/refresh'
|
|
28
|
-
require 'vedeu/output/refresh/refresh_group'
|
|
29
28
|
require 'vedeu/output/renderers/all'
|
|
30
29
|
|
|
31
30
|
require 'vedeu/esc/all'
|
|
@@ -42,6 +41,7 @@ require 'vedeu/distributed/all'
|
|
|
42
41
|
require 'vedeu/editor/all'
|
|
43
42
|
require 'vedeu/events/all'
|
|
44
43
|
require 'vedeu/geometry/all'
|
|
44
|
+
require 'vedeu/groups/all'
|
|
45
45
|
require 'vedeu/input/all'
|
|
46
46
|
require 'vedeu/menus/all'
|
|
47
47
|
require 'vedeu/templating/all'
|
data/lib/vedeu/api/external.rb
CHANGED
|
@@ -55,8 +55,8 @@ module Vedeu
|
|
|
55
55
|
def_delegators Vedeu::Geometry::DSL, :geometry
|
|
56
56
|
|
|
57
57
|
# @!method group
|
|
58
|
-
# @see Vedeu::DSL
|
|
59
|
-
def_delegators Vedeu::DSL
|
|
58
|
+
# @see Vedeu::Groups::DSL.group
|
|
59
|
+
def_delegators Vedeu::Groups::DSL, :group
|
|
60
60
|
|
|
61
61
|
# @!method keymap
|
|
62
62
|
# @see Vedeu::DSL::Keymap.keymap
|
|
@@ -146,8 +146,8 @@ module Vedeu
|
|
|
146
146
|
def_delegators Vedeu::Clear::Interface, :clear_by_name
|
|
147
147
|
|
|
148
148
|
# @!method clear_by_group
|
|
149
|
-
# @see Vedeu::Clear
|
|
150
|
-
def_delegators Vedeu::Clear
|
|
149
|
+
# @see Vedeu::Groups::Clear.render
|
|
150
|
+
def_delegators Vedeu::Groups::Clear, :clear_by_group
|
|
151
151
|
|
|
152
152
|
# @!method hide_cursor
|
|
153
153
|
# @see Vedeu::Cursors::Cursor#hide
|
|
@@ -162,16 +162,16 @@ module Vedeu
|
|
|
162
162
|
def_delegators Vedeu::Cursors::Cursor, :toggle_cursor
|
|
163
163
|
|
|
164
164
|
# @!method hide_group
|
|
165
|
-
# @see Vedeu::
|
|
166
|
-
def_delegators Vedeu::
|
|
165
|
+
# @see Vedeu::Groups::Group#hide
|
|
166
|
+
def_delegators Vedeu::Groups::Group, :hide_group
|
|
167
167
|
|
|
168
168
|
# @!method show_group
|
|
169
|
-
# @see Vedeu::
|
|
170
|
-
def_delegators Vedeu::
|
|
169
|
+
# @see Vedeu::Groups::Group#show
|
|
170
|
+
def_delegators Vedeu::Groups::Group, :show_group
|
|
171
171
|
|
|
172
172
|
# @!method toggle_group
|
|
173
|
-
# @see Vedeu::
|
|
174
|
-
def_delegators Vedeu::
|
|
173
|
+
# @see Vedeu::Groups::Group#toggle
|
|
174
|
+
def_delegators Vedeu::Groups::Group, :toggle_group
|
|
175
175
|
|
|
176
176
|
# @!method hide_interface
|
|
177
177
|
# @see Vedeu::Models::Interface#hide
|
data/lib/vedeu/api/internal.rb
CHANGED
|
@@ -100,8 +100,8 @@ module Vedeu
|
|
|
100
100
|
# Vedeu.groups
|
|
101
101
|
#
|
|
102
102
|
# @!method groups
|
|
103
|
-
# @return [Vedeu::
|
|
104
|
-
def_delegators Vedeu::
|
|
103
|
+
# @return [Vedeu::Groups::Repository]
|
|
104
|
+
def_delegators Vedeu::Groups::Repository, :groups
|
|
105
105
|
|
|
106
106
|
# Manipulate the repository of interfaces.
|
|
107
107
|
#
|
|
@@ -16,6 +16,11 @@ module Vedeu
|
|
|
16
16
|
goto!
|
|
17
17
|
end
|
|
18
18
|
|
|
19
|
+
# @return [TrueClass]
|
|
20
|
+
def setup_aliases!
|
|
21
|
+
Vedeu.bind_alias(:_action_, :_goto_)
|
|
22
|
+
end
|
|
23
|
+
|
|
19
24
|
private
|
|
20
25
|
|
|
21
26
|
# :nocov:
|
|
@@ -25,8 +30,6 @@ module Vedeu
|
|
|
25
30
|
Vedeu.bind(:_goto_) do |controller, action, **args|
|
|
26
31
|
Vedeu::Runtime::Router.goto(controller, action, **args)
|
|
27
32
|
end
|
|
28
|
-
|
|
29
|
-
Vedeu.bind_alias(:_action_, :_goto_)
|
|
30
33
|
end
|
|
31
34
|
|
|
32
35
|
# :nocov:
|
|
@@ -24,8 +24,21 @@ module Vedeu
|
|
|
24
24
|
true
|
|
25
25
|
end
|
|
26
26
|
|
|
27
|
+
# Setup aliases for certain registered events.
|
|
28
|
+
# This method is called by Vedeu.
|
|
29
|
+
#
|
|
30
|
+
# @return [TrueClass]
|
|
31
|
+
def setup_aliases!
|
|
32
|
+
Vedeu::Bindings::Application.setup_aliases!
|
|
33
|
+
Vedeu::Bindings::Movement.setup_aliases!
|
|
34
|
+
Vedeu::Bindings::Visibility.setup_aliases!
|
|
35
|
+
|
|
36
|
+
true
|
|
37
|
+
end
|
|
38
|
+
|
|
27
39
|
end # Bindings
|
|
28
40
|
|
|
29
|
-
|
|
41
|
+
Vedeu::Bindings.setup!
|
|
42
|
+
Vedeu::Bindings.setup_aliases!
|
|
30
43
|
|
|
31
|
-
Vedeu
|
|
44
|
+
end # Vedeu
|