vedeu 0.8.20 → 0.8.21
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/dsl/by_method/geometry/align_centre.md +3 -0
- data/docs/dsl/by_method/geometry/columns.md +12 -1
- data/docs/dsl/by_method/geometry/height.md +9 -0
- data/docs/dsl/by_method/geometry/horizontal_alignment.md +3 -1
- data/docs/dsl/by_method/geometry/rows.md +12 -1
- data/docs/dsl/by_method/geometry/vertical_alignment.md +3 -1
- data/docs/dsl/by_method/geometry/width.md +9 -0
- data/docs/dsl/by_method/geometry/x.md +11 -1
- data/docs/dsl/by_method/geometry/xn.md +14 -1
- data/docs/dsl/by_method/geometry/y.md +11 -1
- data/docs/dsl/by_method/geometry/yn.md +12 -1
- data/docs/dsl/by_method/geometry/zindex.md +18 -0
- data/docs/dsl/by_method/template_for.md +10 -0
- data/docs/dsl/by_method/use.md +21 -0
- data/integrations/342_streams.rb +3 -1
- data/integrations/dsl_app_001.rb +3 -1
- data/integrations/dsl_app_002.rb +3 -1
- data/integrations/dsl_app_003.rb +3 -1
- data/integrations/dsl_app_004.rb +3 -1
- data/integrations/dsl_app_005.rb +3 -1
- data/integrations/dsl_app_006.rb +3 -1
- data/integrations/dsl_app_007.rb +3 -1
- data/integrations/dsl_app_008.rb +3 -1
- data/integrations/dsl_app_009.rb +3 -1
- data/integrations/dsl_app_010.rb +3 -1
- data/integrations/dsl_app_011.rb +3 -1
- data/integrations/dsl_app_012.rb +3 -1
- data/integrations/dsl_app_013.rb +3 -1
- data/integrations/dsl_app_014.rb +3 -1
- data/integrations/dsl_app_015.rb +3 -1
- data/integrations/dsl_app_016.rb +3 -1
- data/integrations/dsl_app_017.rb +3 -1
- data/integrations/dsl_app_018.rb +3 -1
- data/integrations/dsl_app_019.rb +3 -1
- data/integrations/dsl_app_020.rb +3 -1
- data/integrations/dsl_app_021.rb +3 -1
- data/integrations/dsl_app_022.rb +3 -1
- data/integrations/dsl_app_border_001.rb +3 -1
- data/integrations/dsl_app_border_002.rb +3 -1
- data/integrations/dsl_app_border_003.rb +3 -1
- data/integrations/dsl_app_border_004.rb +3 -1
- data/integrations/dsl_app_border_005.rb +3 -1
- data/integrations/dsl_app_border_006.rb +3 -1
- data/integrations/dsl_app_border_007.rb +3 -1
- data/integrations/dsl_app_border_008.rb +3 -1
- data/integrations/dsl_app_border_009.rb +3 -1
- data/integrations/dsl_app_border_010.rb +3 -1
- data/integrations/dsl_app_border_011.rb +3 -1
- data/integrations/test_runner.rb +20 -10
- data/lib/vedeu/borders/border.rb +3 -0
- data/lib/vedeu/borders/dsl.rb +1 -1
- data/lib/vedeu/borders/refresh.rb +1 -1
- data/lib/vedeu/borders/repository.rb +0 -2
- data/lib/vedeu/buffers/buffer.rb +1 -0
- data/lib/vedeu/buffers/repository.rb +0 -2
- data/lib/vedeu/buffers/view.rb +3 -3
- data/lib/vedeu/cells/empty.rb +3 -0
- data/lib/vedeu/colours/background.rb +3 -8
- data/lib/vedeu/colours/foreground.rb +3 -8
- data/lib/vedeu/configuration/api.rb +1 -1
- data/lib/vedeu/configuration/configuration.rb +3 -2
- data/lib/vedeu/cursors/cursor.rb +1 -1
- data/lib/vedeu/cursors/repository.rb +0 -2
- data/lib/vedeu/dsl/border.rb +1 -1
- data/lib/vedeu/dsl/dsl.rb +1 -1
- data/lib/vedeu/dsl/elements.rb +4 -4
- data/lib/vedeu/dsl/geometry.rb +2 -2
- data/lib/vedeu/dsl/helpers/attributes.rb +1 -1
- data/lib/vedeu/dsl/use.rb +1 -21
- data/lib/vedeu/dsl/view.rb +3 -13
- data/lib/vedeu/dsl/views.rb +15 -18
- data/lib/vedeu/editor/lines.rb +1 -1
- data/lib/vedeu/editor/repository.rb +0 -2
- data/lib/vedeu/esc/background.rb +17 -17
- data/lib/vedeu/esc/colours.rb +2 -2
- data/lib/vedeu/esc/esc.rb +1 -1
- data/lib/vedeu/esc/foreground.rb +17 -17
- data/lib/vedeu/events/event.rb +1 -3
- data/lib/vedeu/events/repository.rb +0 -2
- data/lib/vedeu/geometries/dsl/dsl.rb +18 -183
- data/lib/vedeu/geometries/move.rb +34 -49
- data/lib/vedeu/geometries/position.rb +1 -1
- data/lib/vedeu/geometries/repository.rb +0 -2
- data/lib/vedeu/groups/dsl.rb +1 -1
- data/lib/vedeu/groups/repository.rb +0 -2
- data/lib/vedeu/input/dsl.rb +2 -3
- data/lib/vedeu/input/key.rb +1 -1
- data/lib/vedeu/input/repository.rb +0 -2
- data/lib/vedeu/interfaces/dsl.rb +2 -3
- data/lib/vedeu/interfaces/interface.rb +3 -0
- data/lib/vedeu/interfaces/null.rb +3 -0
- data/lib/vedeu/interfaces/repository.rb +0 -2
- data/lib/vedeu/logging/debug.rb +1 -1
- data/lib/vedeu/logging/log.rb +19 -5
- data/lib/vedeu/logging/timer.rb +2 -2
- data/lib/vedeu/menus/dsl.rb +2 -3
- data/lib/vedeu/menus/repository.rb +0 -2
- data/lib/vedeu/models/page.rb +1 -1
- data/lib/vedeu/models/row.rb +1 -1
- data/lib/vedeu/output/compressor_cache.rb +10 -4
- data/lib/vedeu/output/compressors/simple.rb +7 -3
- data/lib/vedeu/output/write.rb +3 -0
- data/lib/vedeu/presentation/colour.rb +1 -1
- data/lib/vedeu/presentation/position.rb +1 -1
- data/lib/vedeu/presentation/presentation.rb +0 -4
- data/lib/vedeu/presentation/styles.rb +1 -1
- data/lib/vedeu/renderers/all.rb +4 -4
- data/lib/vedeu/repositories/assemblage.rb +2 -2
- data/lib/vedeu/repositories/model.rb +2 -6
- data/lib/vedeu/repositories/registerable.rb +10 -0
- data/lib/vedeu/repositories/store.rb +1 -1
- data/lib/vedeu/runtime/application.rb +3 -3
- data/lib/vedeu/runtime/launcher.rb +1 -1
- data/lib/vedeu/templating/helpers.rb +4 -4
- data/lib/vedeu/terminal/terminal.rb +2 -2
- data/lib/vedeu/version.rb +1 -1
- data/lib/vedeu/views/composition.rb +3 -0
- data/lib/vedeu/views/line.rb +3 -0
- data/lib/vedeu/views/stream.rb +3 -0
- data/lib/vedeu/views/view.rb +3 -0
- data/lib/vedeu.rb +3 -0
- data/test/lib/vedeu/borders/repository_test.rb +0 -2
- data/test/lib/vedeu/buffers/repository_test.rb +0 -2
- data/test/lib/vedeu/cursors/repository_test.rb +0 -2
- data/test/lib/vedeu/dsl/border_test.rb +26 -16
- data/test/lib/vedeu/editor/repository_test.rb +0 -2
- data/test/lib/vedeu/events/repository_test.rb +0 -2
- data/test/lib/vedeu/geometries/repository_test.rb +0 -4
- data/test/lib/vedeu/groups/repository_test.rb +0 -2
- data/test/lib/vedeu/input/repository_test.rb +0 -2
- data/test/lib/vedeu/interfaces/repository_test.rb +0 -2
- data/test/lib/vedeu/menus/repository_test.rb +0 -2
- data/test/lib/vedeu/presentation/colour_test.rb +6 -0
- data/test/lib/vedeu/presentation/position_test.rb +2 -0
- data/test/lib/vedeu/presentation/presentation_test.rb +10 -1
- data/test/lib/vedeu/presentation/styles_test.rb +6 -0
- data/test/lib/vedeu/repositories/registerable_test.rb +11 -1
- data/test/support/examples/material_colours_app.rb +0 -93
- metadata +5 -2
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA1:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: c9c37e2d9c0249bbece735264a5f7286f40cfa93
|
|
4
|
+
data.tar.gz: aa1f9db91906830b3e69d772b0222961aa287fec
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 0fc85825feebec7d3cb9260e53ce9b4575a8674a6928d11c63add1e034e605786c0561cf75b1a14761625c7b40a7cfc09f4062774de00c99826daa308c17bd06
|
|
7
|
+
data.tar.gz: fc22a0edebd4f31834b5211174e8ce52e85eb0319b208d7e4960903378e71d29c334689a1f7797611791fe1c63a617d85b041f5ad85021c01cfe637d8c151848
|
|
@@ -1 +1,12 @@
|
|
|
1
|
-
|
|
1
|
+
### columns
|
|
2
|
+
|
|
3
|
+
Returns the width in characters for the number of columns
|
|
4
|
+
specified.
|
|
5
|
+
|
|
6
|
+
Vedeu.geometry :main_interface do
|
|
7
|
+
# ... some code
|
|
8
|
+
width columns(9) # Vedeu.width # => 92 (for example)
|
|
9
|
+
# 92 / 12 = 7
|
|
10
|
+
# 7 * 9 = 63
|
|
11
|
+
# Therefore, width is 63 characters.
|
|
12
|
+
end
|
|
@@ -1 +1,12 @@
|
|
|
1
|
-
|
|
1
|
+
### rows
|
|
2
|
+
|
|
3
|
+
Returns the height in characters for the number of rows
|
|
4
|
+
specified.
|
|
5
|
+
|
|
6
|
+
Vedeu.geometry :main_interface do
|
|
7
|
+
# ... some code
|
|
8
|
+
height rows(3) # Vedeu.height # => 38 (for example)
|
|
9
|
+
# 38 / 12 = 3
|
|
10
|
+
# 3 * 3 = 9
|
|
11
|
+
# Therefore, height is 9 characters.
|
|
12
|
+
end
|
|
@@ -1 +1,11 @@
|
|
|
1
|
-
|
|
1
|
+
### x
|
|
2
|
+
|
|
3
|
+
Specify the starting x position (column) of the interface.
|
|
4
|
+
|
|
5
|
+
Vedeu.geometry :some_interface do
|
|
6
|
+
x 7 # start on column 7.
|
|
7
|
+
# start on column 8, if :other_interface changes position
|
|
8
|
+
# then :some_interface will too.
|
|
9
|
+
x { use(:other_interface).east }
|
|
10
|
+
# ... some code
|
|
11
|
+
end
|
|
@@ -1 +1,14 @@
|
|
|
1
|
-
|
|
1
|
+
### xn
|
|
2
|
+
|
|
3
|
+
Specify the ending x position (column) of the interface.
|
|
4
|
+
This value will override `width`.
|
|
5
|
+
|
|
6
|
+
Vedeu.geometry :some_interface do
|
|
7
|
+
xn 37 # end at column 37.
|
|
8
|
+
|
|
9
|
+
# when :other_interface changes position,
|
|
10
|
+
# :some_interface will too.
|
|
11
|
+
xn { use(:other_interface).right }
|
|
12
|
+
# ... some code
|
|
13
|
+
end
|
|
14
|
+
|
|
@@ -1 +1,11 @@
|
|
|
1
|
-
|
|
1
|
+
### y
|
|
2
|
+
|
|
3
|
+
Specify the starting y position (row/line) of the interface.
|
|
4
|
+
|
|
5
|
+
Vedeu.geometry :some_interface do
|
|
6
|
+
y 4 # start at row 4
|
|
7
|
+
# start on row/line 3, when :other_interface changes
|
|
8
|
+
# position, :some_interface will too.
|
|
9
|
+
y { use(:other_interface).north }
|
|
10
|
+
# ... some code
|
|
11
|
+
end
|
|
@@ -1 +1,12 @@
|
|
|
1
|
-
|
|
1
|
+
### yn
|
|
2
|
+
|
|
3
|
+
Specify the ending y position (row/line) of the interface.
|
|
4
|
+
This value will override `height`.
|
|
5
|
+
|
|
6
|
+
Vedeu.geometry :some_interface do
|
|
7
|
+
yn 24 # end at row 24.
|
|
8
|
+
# if :other_interface changes position, :some_interface
|
|
9
|
+
# will too.
|
|
10
|
+
yn { use(:other_interface).bottom }
|
|
11
|
+
# ... some code
|
|
12
|
+
end
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
### zindex
|
|
2
|
+
|
|
3
|
+
Aliases:
|
|
4
|
+
- `z_index`
|
|
5
|
+
- `z`
|
|
6
|
+
|
|
7
|
+
Set the zindex of the view using this geometry. This controls
|
|
8
|
+
the render order of the views. Views with geometries with a
|
|
9
|
+
lower zindex will render before those with a higher zindex.
|
|
10
|
+
|
|
11
|
+
# --4-- # rendered last
|
|
12
|
+
# --3--
|
|
13
|
+
# --2--
|
|
14
|
+
# --1-- # rendered first
|
|
15
|
+
Vedeu.geometry :my_interface do
|
|
16
|
+
zindex 3
|
|
17
|
+
# ...
|
|
18
|
+
end
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
### use
|
|
2
|
+
|
|
3
|
+
Use the attribute of stored model.
|
|
4
|
+
|
|
5
|
+
This DSL method provides access to a stored model by name.
|
|
6
|
+
You can then request an attribute of that model for use within
|
|
7
|
+
the current model. The models which current support this are
|
|
8
|
+
Border, Geometry and Interface.
|
|
9
|
+
|
|
10
|
+
# Here the character used for :my_border is used in
|
|
11
|
+
# :my_other_border.
|
|
12
|
+
Vedeu.border :my_other_border do
|
|
13
|
+
top_right use(:my_border).top_right
|
|
14
|
+
end
|
|
15
|
+
|
|
16
|
+
|
|
17
|
+
- Only models of the same repository can be used in this
|
|
18
|
+
way.
|
|
19
|
+
- If the stored model cannot be found, a ModelNotFound
|
|
20
|
+
exception may be raised, or the request for an attribute
|
|
21
|
+
may raise a NoMethodError exception.
|
data/integrations/342_streams.rb
CHANGED
data/integrations/dsl_app_001.rb
CHANGED
data/integrations/dsl_app_002.rb
CHANGED
data/integrations/dsl_app_003.rb
CHANGED
data/integrations/dsl_app_004.rb
CHANGED
data/integrations/dsl_app_005.rb
CHANGED
data/integrations/dsl_app_006.rb
CHANGED
data/integrations/dsl_app_007.rb
CHANGED
data/integrations/dsl_app_008.rb
CHANGED
data/integrations/dsl_app_009.rb
CHANGED
data/integrations/dsl_app_010.rb
CHANGED
data/integrations/dsl_app_011.rb
CHANGED
data/integrations/dsl_app_012.rb
CHANGED
data/integrations/dsl_app_013.rb
CHANGED
data/integrations/dsl_app_014.rb
CHANGED
data/integrations/dsl_app_015.rb
CHANGED
data/integrations/dsl_app_016.rb
CHANGED
data/integrations/dsl_app_017.rb
CHANGED
data/integrations/dsl_app_018.rb
CHANGED
data/integrations/dsl_app_019.rb
CHANGED
data/integrations/dsl_app_020.rb
CHANGED
data/integrations/dsl_app_021.rb
CHANGED
data/integrations/dsl_app_022.rb
CHANGED