vedeu 0.1.9 → 0.1.10
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/vedeu.rb +43 -17
- data/lib/vedeu/api/api.rb +21 -0
- data/lib/vedeu/api/base.rb +7 -15
- data/lib/vedeu/api/events.rb +5 -10
- data/lib/vedeu/api/grid.rb +0 -2
- data/lib/vedeu/api/interface.rb +15 -37
- data/lib/vedeu/api/line.rb +0 -3
- data/lib/vedeu/{instrumentation.rb → api/log.rb} +2 -5
- data/lib/vedeu/api/store.rb +3 -9
- data/lib/vedeu/api/stream.rb +0 -2
- data/lib/vedeu/api/view.rb +4 -15
- data/lib/vedeu/application.rb +1 -5
- data/lib/vedeu/configuration.rb +0 -2
- data/lib/vedeu/launcher.rb +0 -3
- data/lib/vedeu/models/attributes/background.rb +0 -4
- data/lib/vedeu/models/attributes/foreground.rb +0 -4
- data/lib/vedeu/models/attributes/interface_collection.rb +3 -8
- data/lib/vedeu/models/attributes/line_collection.rb +0 -5
- data/lib/vedeu/models/attributes/stream_collection.rb +0 -5
- data/lib/vedeu/models/colour.rb +0 -5
- data/lib/vedeu/models/composition.rb +0 -15
- data/lib/vedeu/models/geometry.rb +0 -5
- data/lib/vedeu/models/interface.rb +0 -14
- data/lib/vedeu/models/line.rb +0 -6
- data/lib/vedeu/models/stream.rb +0 -5
- data/lib/vedeu/models/style.rb +0 -4
- data/lib/vedeu/output/buffers.rb +13 -4
- data/lib/vedeu/output/render.rb +1 -4
- data/lib/vedeu/output/view.rb +7 -3
- data/lib/vedeu/support/input.rb +0 -3
- data/lib/vedeu/support/menu.rb +0 -5
- data/lib/vedeu/support/terminal.rb +0 -4
- data/test/lib/vedeu/api/events_test.rb +0 -1
- data/test/lib/vedeu/api/grid_test.rb +0 -2
- data/test/lib/vedeu/api/interface_test.rb +0 -1
- data/test/lib/vedeu/api/store_test.rb +0 -1
- data/test/lib/vedeu/api/view_test.rb +1 -4
- data/test/lib/vedeu/configuration_test.rb +0 -1
- data/test/lib/vedeu/models/attributes/collection_test.rb +0 -1
- data/test/lib/vedeu/models/attributes/interface_collection_test.rb +0 -5
- data/test/lib/vedeu/models/attributes/line_collection_test.rb +0 -2
- data/test/lib/vedeu/models/attributes/stream_collection_test.rb +0 -2
- data/test/lib/vedeu/models/colour_test.rb +0 -1
- data/test/lib/vedeu/models/composition_test.rb +14 -34
- data/test/lib/vedeu/models/geometry_test.rb +0 -1
- data/test/lib/vedeu/models/interface_test.rb +0 -1
- data/test/lib/vedeu/models/line_test.rb +0 -1
- data/test/lib/vedeu/models/stream_test.rb +0 -1
- data/test/lib/vedeu/models/style_test.rb +0 -1
- data/test/lib/vedeu/output/buffers_test.rb +0 -2
- data/test/lib/vedeu/output/clear_test.rb +0 -3
- data/test/lib/vedeu/output/render_test.rb +0 -3
- data/test/lib/vedeu/support/esc_test.rb +0 -1
- data/test/lib/vedeu/support/input_test.rb +0 -1
- data/test/lib/vedeu/support/menu_test.rb +0 -1
- data/test/lib/vedeu/support/terminal_test.rb +0 -1
- data/test/support/model_test_data.json +437 -0
- data/test/test_helper.rb +4 -2
- data/vedeu.gemspec +1 -1
- metadata +6 -44
- data/lib/vedeu/support/wordwrap.rb +0 -88
- data/test/lib/vedeu/api/base_test.rb +0 -12
- data/test/lib/vedeu/api/line_test.rb +0 -10
- data/test/lib/vedeu/api/stream_test.rb +0 -12
- data/test/lib/vedeu/application_test.rb +0 -10
- data/test/lib/vedeu/launcher_test.rb +0 -7
- data/test/lib/vedeu/models/attributes/background_test.rb +0 -8
- data/test/lib/vedeu/models/attributes/foreground_test.rb +0 -8
- data/test/lib/vedeu/output/view_test.rb +0 -9
- data/test/lib/vedeu/support/wordwrap_test.rb +0 -56
- data/test/lib/vedeu_test.rb +0 -10
- data/test/support/json/int1_lin1_str1.json +0 -10
- data/test/support/json/int1_lin1_str3.json +0 -18
- data/test/support/json/int1_lin2_str1.json +0 -17
- data/test/support/json/int1_lin2_str3.json +0 -33
- data/test/support/json/int1_lin2_str3_styles.json +0 -43
- data/test/support/json/int2_lin1_str1.json +0 -20
- data/test/support/json/int2_lin1_str3.json +0 -36
- data/test/support/json/int2_lin2_str1.json +0 -34
- data/test/support/json/int2_lin2_str3.json +0 -66
- data/test/support/json/int2_lin2_str3_styles.json +0 -158
@@ -1,33 +0,0 @@
|
|
1
|
-
{
|
2
|
-
"interfaces": {
|
3
|
-
"name": "int1_lin2_str3",
|
4
|
-
"lines": [
|
5
|
-
{
|
6
|
-
"streams": [
|
7
|
-
{
|
8
|
-
"text": "Some text..."
|
9
|
-
},
|
10
|
-
{
|
11
|
-
"text": " "
|
12
|
-
},
|
13
|
-
{
|
14
|
-
"text": "more text..."
|
15
|
-
}
|
16
|
-
]
|
17
|
-
},
|
18
|
-
{
|
19
|
-
"streams": [
|
20
|
-
{
|
21
|
-
"text": "Some text..."
|
22
|
-
},
|
23
|
-
{
|
24
|
-
"text": " "
|
25
|
-
},
|
26
|
-
{
|
27
|
-
"text": "more text..."
|
28
|
-
}
|
29
|
-
]
|
30
|
-
}
|
31
|
-
]
|
32
|
-
}
|
33
|
-
}
|
@@ -1,43 +0,0 @@
|
|
1
|
-
{
|
2
|
-
"interfaces": {
|
3
|
-
"name": "int1_lin2_str3_styles",
|
4
|
-
"lines": [
|
5
|
-
{
|
6
|
-
"streams": [
|
7
|
-
{
|
8
|
-
"text": "Some text...",
|
9
|
-
"colour": {
|
10
|
-
"foreground": "#000000",
|
11
|
-
"background": "#0000ff"
|
12
|
-
},
|
13
|
-
"style": [
|
14
|
-
"normal",
|
15
|
-
"underline"
|
16
|
-
]
|
17
|
-
},
|
18
|
-
{
|
19
|
-
"text": " ",
|
20
|
-
"colour": {
|
21
|
-
"foreground": "#ffff00",
|
22
|
-
"background": "#00ff00"
|
23
|
-
},
|
24
|
-
"style": [
|
25
|
-
"normal"
|
26
|
-
]
|
27
|
-
},
|
28
|
-
{
|
29
|
-
"text": "more text...",
|
30
|
-
"colour": {
|
31
|
-
"foreground": "#ffffff",
|
32
|
-
"background": "#ff00ff"
|
33
|
-
},
|
34
|
-
"style": [
|
35
|
-
"bold",
|
36
|
-
"reverse"
|
37
|
-
]
|
38
|
-
}
|
39
|
-
]
|
40
|
-
}
|
41
|
-
]
|
42
|
-
}
|
43
|
-
}
|
@@ -1,36 +0,0 @@
|
|
1
|
-
{
|
2
|
-
"interfaces": [
|
3
|
-
{
|
4
|
-
"name": "int2_lin1_str3_1",
|
5
|
-
"lines": {
|
6
|
-
"streams": [
|
7
|
-
{
|
8
|
-
"text": "Some text..."
|
9
|
-
},
|
10
|
-
{
|
11
|
-
"text": " "
|
12
|
-
},
|
13
|
-
{
|
14
|
-
"text": "more text..."
|
15
|
-
}
|
16
|
-
]
|
17
|
-
}
|
18
|
-
},
|
19
|
-
{
|
20
|
-
"name": "int2_lin1_str3_2",
|
21
|
-
"lines": {
|
22
|
-
"streams": [
|
23
|
-
{
|
24
|
-
"text": "Some text..."
|
25
|
-
},
|
26
|
-
{
|
27
|
-
"text": " "
|
28
|
-
},
|
29
|
-
{
|
30
|
-
"text": "more text..."
|
31
|
-
}
|
32
|
-
]
|
33
|
-
}
|
34
|
-
}
|
35
|
-
]
|
36
|
-
}
|
@@ -1,34 +0,0 @@
|
|
1
|
-
{
|
2
|
-
"interfaces": [
|
3
|
-
{
|
4
|
-
"name": "int2_lin2_str1_1",
|
5
|
-
"lines": [
|
6
|
-
{
|
7
|
-
"streams": {
|
8
|
-
"text": "Some text..."
|
9
|
-
}
|
10
|
-
},
|
11
|
-
{
|
12
|
-
"streams": {
|
13
|
-
"text": "Some text..."
|
14
|
-
}
|
15
|
-
}
|
16
|
-
]
|
17
|
-
},
|
18
|
-
{
|
19
|
-
"name": "int2_lin2_str1_1",
|
20
|
-
"lines": [
|
21
|
-
{
|
22
|
-
"streams": {
|
23
|
-
"text": "Some text..."
|
24
|
-
}
|
25
|
-
},
|
26
|
-
{
|
27
|
-
"streams": {
|
28
|
-
"text": "Some text..."
|
29
|
-
}
|
30
|
-
}
|
31
|
-
]
|
32
|
-
}
|
33
|
-
]
|
34
|
-
}
|
@@ -1,66 +0,0 @@
|
|
1
|
-
{
|
2
|
-
"interfaces": [
|
3
|
-
{
|
4
|
-
"name": "int2_lin2_str3_1",
|
5
|
-
"lines": [
|
6
|
-
{
|
7
|
-
"streams": [
|
8
|
-
{
|
9
|
-
"text": "Some text..."
|
10
|
-
},
|
11
|
-
{
|
12
|
-
"text": " "
|
13
|
-
},
|
14
|
-
{
|
15
|
-
"text": "more text..."
|
16
|
-
}
|
17
|
-
]
|
18
|
-
},
|
19
|
-
{
|
20
|
-
"streams": [
|
21
|
-
{
|
22
|
-
"text": "Some text..."
|
23
|
-
},
|
24
|
-
{
|
25
|
-
"text": " "
|
26
|
-
},
|
27
|
-
{
|
28
|
-
"text": "more text..."
|
29
|
-
}
|
30
|
-
]
|
31
|
-
}
|
32
|
-
]
|
33
|
-
},
|
34
|
-
{
|
35
|
-
"name": "int2_lin2_str3_2",
|
36
|
-
"lines": [
|
37
|
-
{
|
38
|
-
"streams": [
|
39
|
-
{
|
40
|
-
"text": "Some text..."
|
41
|
-
},
|
42
|
-
{
|
43
|
-
"text": " "
|
44
|
-
},
|
45
|
-
{
|
46
|
-
"text": "more text..."
|
47
|
-
}
|
48
|
-
]
|
49
|
-
},
|
50
|
-
{
|
51
|
-
"streams": [
|
52
|
-
{
|
53
|
-
"text": "Some text..."
|
54
|
-
},
|
55
|
-
{
|
56
|
-
"text": " "
|
57
|
-
},
|
58
|
-
{
|
59
|
-
"text": "more text..."
|
60
|
-
}
|
61
|
-
]
|
62
|
-
}
|
63
|
-
]
|
64
|
-
}
|
65
|
-
]
|
66
|
-
}
|
@@ -1,158 +0,0 @@
|
|
1
|
-
{
|
2
|
-
"interfaces": [
|
3
|
-
{
|
4
|
-
"name": "int2_lin2_str3_styles_1",
|
5
|
-
"lines": [
|
6
|
-
{
|
7
|
-
"streams": [
|
8
|
-
{
|
9
|
-
"text": "Some text...",
|
10
|
-
"colour": {
|
11
|
-
"foreground": "#000000",
|
12
|
-
"background": "#0000ff"
|
13
|
-
},
|
14
|
-
"style": [
|
15
|
-
"normal",
|
16
|
-
"underline"
|
17
|
-
]
|
18
|
-
},
|
19
|
-
{
|
20
|
-
"text": " ",
|
21
|
-
"colour": {
|
22
|
-
"foreground": "#ffff00",
|
23
|
-
"background": "#00ff00"
|
24
|
-
},
|
25
|
-
"style": [
|
26
|
-
"normal"
|
27
|
-
]
|
28
|
-
},
|
29
|
-
{
|
30
|
-
"text": "more text...",
|
31
|
-
"colour": {
|
32
|
-
"foreground": "#ffffff",
|
33
|
-
"background": "#ff00ff"
|
34
|
-
},
|
35
|
-
"style": [
|
36
|
-
"bold",
|
37
|
-
"reverse"
|
38
|
-
]
|
39
|
-
}
|
40
|
-
]
|
41
|
-
},
|
42
|
-
{
|
43
|
-
"streams": [
|
44
|
-
{
|
45
|
-
"text": "Some text...",
|
46
|
-
"colour": {
|
47
|
-
"foreground": "#000000",
|
48
|
-
"background": "#0000ff"
|
49
|
-
},
|
50
|
-
"style": [
|
51
|
-
"normal",
|
52
|
-
"underline"
|
53
|
-
]
|
54
|
-
},
|
55
|
-
{
|
56
|
-
"text": " ",
|
57
|
-
"colour": {
|
58
|
-
"foreground": "#ffff00",
|
59
|
-
"background": "#00ff00"
|
60
|
-
},
|
61
|
-
"style": [
|
62
|
-
"normal"
|
63
|
-
]
|
64
|
-
},
|
65
|
-
{
|
66
|
-
"text": "more text...",
|
67
|
-
"colour": {
|
68
|
-
"foreground": "#ffffff",
|
69
|
-
"background": "#ff00ff"
|
70
|
-
},
|
71
|
-
"style": [
|
72
|
-
"bold",
|
73
|
-
"reverse"
|
74
|
-
]
|
75
|
-
}
|
76
|
-
]
|
77
|
-
}
|
78
|
-
]
|
79
|
-
},
|
80
|
-
{
|
81
|
-
"name": "int2_lin2_str3_styles_2",
|
82
|
-
"lines": [
|
83
|
-
{
|
84
|
-
"streams": [
|
85
|
-
{
|
86
|
-
"text": "Some text...",
|
87
|
-
"colour": {
|
88
|
-
"foreground": "#000000",
|
89
|
-
"background": "#0000ff"
|
90
|
-
},
|
91
|
-
"style": [
|
92
|
-
"normal",
|
93
|
-
"underline"
|
94
|
-
]
|
95
|
-
},
|
96
|
-
{
|
97
|
-
"text": " ",
|
98
|
-
"colour": {
|
99
|
-
"foreground": "#ffff00",
|
100
|
-
"background": "#00ff00"
|
101
|
-
},
|
102
|
-
"style": [
|
103
|
-
"normal"
|
104
|
-
]
|
105
|
-
},
|
106
|
-
{
|
107
|
-
"text": "more text...",
|
108
|
-
"colour": {
|
109
|
-
"foreground": "#ffffff",
|
110
|
-
"background": "#ff00ff"
|
111
|
-
},
|
112
|
-
"style": [
|
113
|
-
"bold",
|
114
|
-
"reverse"
|
115
|
-
]
|
116
|
-
}
|
117
|
-
]
|
118
|
-
},
|
119
|
-
{
|
120
|
-
"streams": [
|
121
|
-
{
|
122
|
-
"text": "Some text...",
|
123
|
-
"colour": {
|
124
|
-
"foreground": "#000000",
|
125
|
-
"background": "#0000ff"
|
126
|
-
},
|
127
|
-
"style": [
|
128
|
-
"normal",
|
129
|
-
"underline"
|
130
|
-
]
|
131
|
-
},
|
132
|
-
{
|
133
|
-
"text": " ",
|
134
|
-
"colour": {
|
135
|
-
"foreground": "#ffff00",
|
136
|
-
"background": "#00ff00"
|
137
|
-
},
|
138
|
-
"style": [
|
139
|
-
"normal"
|
140
|
-
]
|
141
|
-
},
|
142
|
-
{
|
143
|
-
"text": "more text...",
|
144
|
-
"colour": {
|
145
|
-
"foreground": "#ffffff",
|
146
|
-
"background": "#ff00ff"
|
147
|
-
},
|
148
|
-
"style": [
|
149
|
-
"bold",
|
150
|
-
"reverse"
|
151
|
-
]
|
152
|
-
}
|
153
|
-
]
|
154
|
-
}
|
155
|
-
]
|
156
|
-
}
|
157
|
-
]
|
158
|
-
}
|