ncumbra 0.1.0 → 0.1.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.gitignore +1 -0
- data/CHANGELOG +14 -0
- data/README.md +21 -6
- data/examples/data/atp_matches_2017.csv +2887 -0
- data/examples/data/atp_matches_2018.csv +460 -0
- data/examples/data/import.sh +13 -0
- data/examples/data/schema.txt +51 -0
- data/examples/ex1.rb +2 -0
- data/examples/ex2.rb +1 -0
- data/examples/ex5.rb +1 -1
- data/examples/exbox.rb +3 -2
- data/examples/exm1.rb +1 -2
- data/examples/extab2.rb +170 -0
- data/examples/extab3.rb +306 -0
- data/examples/extabular.rb +123 -0
- data/examples/tasks.csv +88 -0
- data/lib/umbra/box.rb +38 -21
- data/lib/umbra/checkbox.rb +2 -2
- data/lib/umbra/dialog.rb +1 -2
- data/lib/umbra/eventhandler.rb +52 -4
- data/lib/umbra/field.rb +7 -3
- data/lib/umbra/form.rb +119 -55
- data/lib/umbra/keymappinghandler.rb +4 -4
- data/lib/umbra/label.rb +31 -17
- data/lib/umbra/labeledfield.rb +7 -8
- data/lib/umbra/listbox.rb +114 -341
- data/lib/umbra/messagebox.rb +93 -42
- data/lib/umbra/multiline.rb +476 -0
- data/lib/umbra/pad.rb +20 -14
- data/lib/umbra/radiobutton.rb +2 -2
- data/lib/umbra/table.rb +260 -0
- data/lib/umbra/tabular.rb +431 -0
- data/lib/umbra/textbox.rb +36 -223
- data/lib/umbra/togglebutton.rb +3 -5
- data/lib/umbra/version.rb +1 -1
- data/lib/umbra/widget.rb +72 -13
- data/lib/umbra/window.rb +59 -15
- data/lib/umbra.rb +82 -11
- data/umbra.gemspec +2 -2
- metadata +18 -4
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 53f2260b5bcdb4fece6ddca02d985adba2f742340079d37d422230e47e7a1f26
|
4
|
+
data.tar.gz: e1ddc50d55672c99787d3fbcf7617184f64c43995b6249c050f6022679902bb5
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 0aea1415f138232ac97f9903ee82debd45eb1038562c792964ba6a4e01317fd70bfe7081ff6fa4d89fa221b75cfb660ea33de27d944ba4602b174c167c426fc2
|
7
|
+
data.tar.gz: 844a11a40aff0903b8aa98089994aeaf55798552504f151426abe89e652368645a4bd64ffe9bcc9dd0fbdb07b57b11ba485c7160d65cd0e7d2e17738cf6df032
|
data/.gitignore
CHANGED
data/CHANGELOG
ADDED
@@ -0,0 +1,14 @@
|
|
1
|
+
2018-05-23
|
2
|
+
- for 0.1.1
|
3
|
+
- cleanup of Messagebox
|
4
|
+
- add attr_property so that repaint will automatically happen on changing
|
5
|
+
properties.
|
6
|
+
- add Table widget
|
7
|
+
- rewrite of field traversal so that on_enter and on_leave are always
|
8
|
+
executed atomically. There was one case when on_enter was not executed.
|
9
|
+
This invalidates @active_index.
|
10
|
+
- added Table widget
|
11
|
+
- refactor Label so caller can customize printing
|
12
|
+
- Introduce negative width and height, which will extend till end of
|
13
|
+
screen.
|
14
|
+
|
data/README.md
CHANGED
@@ -1,18 +1,33 @@
|
|
1
1
|
# Umbra
|
2
2
|
|
3
|
-
|
3
|
+
Create ncurses applications using a simple small library.
|
4
|
+
The source is small and simple, so easy to hack if need be.
|
5
|
+
This is a stripped version of `canis` gem (ncurses ruby).
|
4
6
|
|
5
7
|
- Minimal functionality
|
6
8
|
- Very close to ncurses, should not try to wrap everything
|
7
9
|
- load only what you need
|
8
10
|
- not necessarily object oriented, that is not a goal
|
9
|
-
- should be able to use a file or widget from here without having to copy too much
|
11
|
+
- should be able to use a file or widget from here (in another application) without having to copy too much
|
10
12
|
- should be able to understand one file without having to understand entire library
|
11
13
|
- should be easy for others to change as per their needs, or copy parts.
|
12
|
-
-
|
13
14
|
|
14
15
|
|
15
|
-
|
16
|
+
## Gem name
|
17
|
+
The name `umbra` was taken, so had to change the gem name to `ncumbra` but the packages and structure etc remain umbra.
|
18
|
+
|
19
|
+
## Motivation for yet another ncurses library
|
20
|
+
|
21
|
+
`rbcurse` and `canis` are very large. Too many dependencies on other parts of system. This aims to be small and minimal,
|
22
|
+
keeping parts as independent as possible.
|
23
|
+
|
24
|
+
## Future versions
|
25
|
+
- Ampersand in Label and Button to signify shortcut/mnemonic.
|
26
|
+
- table (0.1.1 has it)
|
27
|
+
- combo list
|
28
|
+
- 256 colors
|
29
|
+
- tree (maybe)
|
30
|
+
|
16
31
|
## Installation
|
17
32
|
|
18
33
|
Add this line to your application's Gemfile:
|
@@ -27,11 +42,11 @@ And then execute:
|
|
27
42
|
|
28
43
|
Or install it yourself as:
|
29
44
|
|
30
|
-
$ gem install
|
45
|
+
$ gem install ncumbra
|
31
46
|
|
32
47
|
## Usage
|
33
48
|
|
34
|
-
|
49
|
+
See examples directory for code samples.
|
35
50
|
|
36
51
|
## Development
|
37
52
|
|