everyday-curses 0.1.2 → 0.1.3
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 +5 -5
- data/Gemfile.lock +9 -9
- data/README.md +20 -20
- data/everyday-curses.gemspec +4 -4
- data/lib/everyday-curses/version.rb +1 -1
- metadata +13 -21
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
|
-
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
2
|
+
SHA256:
|
3
|
+
metadata.gz: 754249e68eba8cf9eff76984eb2d0a0b216226bb2956912b897acb086c1d6d33
|
4
|
+
data.tar.gz: 831f7cf421a99fcdbe57df6abd8cb6ff69d4d9ee71dd3c491d5ba44d006f96fb
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: fd12aac1281b18808bece39c87766a21d430f49859bf13aed4ba4e12f89cd552c311eedf0325e8542fb717183d717cd99f09a938e74815170961172b2b1adae5
|
7
|
+
data.tar.gz: da40902cf970a8767f10c23fc581560e32240a2a481f2d0fa272f3a9e1aac8b4716b67f03625a2b0476c08c7b1ced2716b8018d4ffa02856dd45f1ad693ee942
|
data/Gemfile.lock
CHANGED
@@ -1,24 +1,24 @@
|
|
1
1
|
PATH
|
2
2
|
remote: .
|
3
3
|
specs:
|
4
|
-
everyday-curses (0.1.
|
5
|
-
curses (~> 1.
|
6
|
-
everyday-cli-utils (~> 1.8, >= 1.8.
|
4
|
+
everyday-curses (0.1.3)
|
5
|
+
curses (~> 1.3, >= 1.3.1)
|
6
|
+
everyday-cli-utils (~> 1.8, >= 1.8.7.2)
|
7
7
|
|
8
8
|
GEM
|
9
9
|
remote: https://rubygems.org/
|
10
10
|
specs:
|
11
|
-
curses (1.
|
12
|
-
everyday-cli-utils (1.8.
|
13
|
-
rake (
|
11
|
+
curses (1.3.1)
|
12
|
+
everyday-cli-utils (1.8.7.2)
|
13
|
+
rake (12.3.3)
|
14
14
|
|
15
15
|
PLATFORMS
|
16
16
|
ruby
|
17
17
|
|
18
18
|
DEPENDENCIES
|
19
|
-
bundler (~>
|
19
|
+
bundler (~> 2.0)
|
20
20
|
everyday-curses!
|
21
|
-
rake (~>
|
21
|
+
rake (~> 12.3)
|
22
22
|
|
23
23
|
BUNDLED WITH
|
24
|
-
|
24
|
+
2.0.2
|
data/README.md
CHANGED
@@ -18,64 +18,64 @@ Or install it yourself as:
|
|
18
18
|
|
19
19
|
## Usage
|
20
20
|
|
21
|
-
###EverydayCurses::MyCurses
|
21
|
+
### EverydayCurses::MyCurses
|
22
22
|
|
23
23
|
Encapsulates the code for dealing with the curses library.
|
24
24
|
|
25
|
-
###Fields:
|
26
|
-
####MyCurses.headers
|
25
|
+
### Fields:
|
26
|
+
#### MyCurses.headers
|
27
27
|
An array storing the header lines that will be printed out with `MyCurses.myprints`.
|
28
28
|
|
29
|
-
####MyCurses.bodies
|
29
|
+
#### MyCurses.bodies
|
30
30
|
An array storing the body lines that will be printed out with `MyCurses.myprints`.
|
31
31
|
|
32
|
-
####MyCurses.footers
|
32
|
+
#### MyCurses.footers
|
33
33
|
An array storing the footer lines that will be printed out with `MyCurses.myprints`.
|
34
34
|
|
35
|
-
###Methods:
|
35
|
+
### Methods:
|
36
36
|
|
37
|
-
####MyCurses.new(use\_curses, linesh, linesf)
|
37
|
+
#### MyCurses.new(use\_curses, linesh, linesf)
|
38
38
|
Initializes the class and sets the basic options.
|
39
39
|
|
40
|
-
######Parameters
|
40
|
+
###### Parameters
|
41
41
|
* `use_curses`: `true` to use curses, `false` to use `puts`
|
42
42
|
* `linesh`: the number of header lines
|
43
43
|
* `linesf`: the number of footer lines
|
44
44
|
|
45
|
-
####MyCurses.clear
|
45
|
+
#### MyCurses.clear
|
46
46
|
Clear the `headers`, `bodies`, and `footers` arrays
|
47
47
|
|
48
|
-
####MyCurses.myprints
|
48
|
+
#### MyCurses.myprints
|
49
49
|
Print out all of the lines stored in the `headers`, `bodies`, and `footers` arrays. If `use_curses` is `true`, it will use curses and allow for scrolling. Otherwise, it will just print out all of the lines with `puts`
|
50
50
|
|
51
|
-
####MyCurses.read\_ch
|
51
|
+
#### MyCurses.read\_ch
|
52
52
|
Update the character from the body pad.
|
53
53
|
|
54
|
-
####MyCurses.clear\_ch
|
54
|
+
#### MyCurses.clear\_ch
|
55
55
|
Clear out any newline, ENTER, UP, or DOWN characters from the queue.
|
56
56
|
|
57
|
-
####MyCurses.scroll\_iteration
|
57
|
+
#### MyCurses.scroll\_iteration
|
58
58
|
Update the display (including doing any scrolling) and read the next character.
|
59
59
|
|
60
|
-
####MyCurses.header\_live\_append(str)
|
60
|
+
#### MyCurses.header\_live\_append(str)
|
61
61
|
Append `str` to the header pad immediately and update it. Does not modify the `headers` array.
|
62
62
|
|
63
|
-
######Parameters
|
63
|
+
###### Parameters
|
64
64
|
* `str`: the string to append
|
65
65
|
|
66
|
-
####MyCurses.body\_live\_append(str)
|
66
|
+
#### MyCurses.body\_live\_append(str)
|
67
67
|
Append `str` to the body pad immediately and update it. Does not modify the `bodies` array.
|
68
68
|
|
69
|
-
######Parameters
|
69
|
+
###### Parameters
|
70
70
|
* `str`: the string to append
|
71
71
|
|
72
|
-
####MyCurses.footer\_live\_append(str)
|
72
|
+
#### MyCurses.footer\_live\_append(str)
|
73
73
|
Append `str` to the footer pad immediately and update it. Does not modify the `footers` array.
|
74
74
|
|
75
|
-
######Parameters
|
75
|
+
###### Parameters
|
76
76
|
* `str`: the string to append
|
77
77
|
|
78
|
-
####MyCurses.dispose
|
78
|
+
#### MyCurses.dispose
|
79
79
|
Close out the curses screen if curses was used.
|
80
80
|
|
81
81
|
## Contributing
|
data/everyday-curses.gemspec
CHANGED
@@ -19,9 +19,9 @@ Gem::Specification.new do |spec|
|
|
19
19
|
spec.test_files = spec.files.grep(%r{^(test|spec|features)/})
|
20
20
|
spec.require_paths = ['lib']
|
21
21
|
|
22
|
-
spec.add_development_dependency 'bundler', '~>
|
23
|
-
spec.add_development_dependency 'rake', '~>
|
22
|
+
spec.add_development_dependency 'bundler', '~> 2.0'
|
23
|
+
spec.add_development_dependency 'rake', '~> 12.3'
|
24
24
|
|
25
|
-
spec.add_dependency 'curses', '~> 1.
|
26
|
-
spec.add_dependency 'everyday-cli-utils', '~> 1.8', '>= 1.8.
|
25
|
+
spec.add_dependency 'curses', '~> 1.3', '>= 1.3.1'
|
26
|
+
spec.add_dependency 'everyday-cli-utils', '~> 1.8', '>= 1.8.7.2'
|
27
27
|
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: everyday-curses
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.3
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Eric Henderson
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2019-08-19 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|
@@ -16,54 +16,48 @@ dependencies:
|
|
16
16
|
requirements:
|
17
17
|
- - "~>"
|
18
18
|
- !ruby/object:Gem::Version
|
19
|
-
version: '
|
20
|
-
- - ">="
|
21
|
-
- !ruby/object:Gem::Version
|
22
|
-
version: 1.10.4
|
19
|
+
version: '2.0'
|
23
20
|
type: :development
|
24
21
|
prerelease: false
|
25
22
|
version_requirements: !ruby/object:Gem::Requirement
|
26
23
|
requirements:
|
27
24
|
- - "~>"
|
28
25
|
- !ruby/object:Gem::Version
|
29
|
-
version: '
|
30
|
-
- - ">="
|
31
|
-
- !ruby/object:Gem::Version
|
32
|
-
version: 1.10.4
|
26
|
+
version: '2.0'
|
33
27
|
- !ruby/object:Gem::Dependency
|
34
28
|
name: rake
|
35
29
|
requirement: !ruby/object:Gem::Requirement
|
36
30
|
requirements:
|
37
31
|
- - "~>"
|
38
32
|
- !ruby/object:Gem::Version
|
39
|
-
version: '
|
33
|
+
version: '12.3'
|
40
34
|
type: :development
|
41
35
|
prerelease: false
|
42
36
|
version_requirements: !ruby/object:Gem::Requirement
|
43
37
|
requirements:
|
44
38
|
- - "~>"
|
45
39
|
- !ruby/object:Gem::Version
|
46
|
-
version: '
|
40
|
+
version: '12.3'
|
47
41
|
- !ruby/object:Gem::Dependency
|
48
42
|
name: curses
|
49
43
|
requirement: !ruby/object:Gem::Requirement
|
50
44
|
requirements:
|
51
45
|
- - "~>"
|
52
46
|
- !ruby/object:Gem::Version
|
53
|
-
version: '1.
|
47
|
+
version: '1.3'
|
54
48
|
- - ">="
|
55
49
|
- !ruby/object:Gem::Version
|
56
|
-
version: 1.
|
50
|
+
version: 1.3.1
|
57
51
|
type: :runtime
|
58
52
|
prerelease: false
|
59
53
|
version_requirements: !ruby/object:Gem::Requirement
|
60
54
|
requirements:
|
61
55
|
- - "~>"
|
62
56
|
- !ruby/object:Gem::Version
|
63
|
-
version: '1.
|
57
|
+
version: '1.3'
|
64
58
|
- - ">="
|
65
59
|
- !ruby/object:Gem::Version
|
66
|
-
version: 1.
|
60
|
+
version: 1.3.1
|
67
61
|
- !ruby/object:Gem::Dependency
|
68
62
|
name: everyday-cli-utils
|
69
63
|
requirement: !ruby/object:Gem::Requirement
|
@@ -73,7 +67,7 @@ dependencies:
|
|
73
67
|
version: '1.8'
|
74
68
|
- - ">="
|
75
69
|
- !ruby/object:Gem::Version
|
76
|
-
version: 1.8.
|
70
|
+
version: 1.8.7.2
|
77
71
|
type: :runtime
|
78
72
|
prerelease: false
|
79
73
|
version_requirements: !ruby/object:Gem::Requirement
|
@@ -83,7 +77,7 @@ dependencies:
|
|
83
77
|
version: '1.8'
|
84
78
|
- - ">="
|
85
79
|
- !ruby/object:Gem::Version
|
86
|
-
version: 1.8.
|
80
|
+
version: 1.8.7.2
|
87
81
|
description: A utility for handling some curses stuff more easily. Split out from
|
88
82
|
everyday-cli-utils.
|
89
83
|
email:
|
@@ -122,10 +116,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
122
116
|
- !ruby/object:Gem::Version
|
123
117
|
version: '0'
|
124
118
|
requirements: []
|
125
|
-
|
126
|
-
rubygems_version: 2.5.1
|
119
|
+
rubygems_version: 3.0.4
|
127
120
|
signing_key:
|
128
121
|
specification_version: 4
|
129
122
|
summary: The MyCurses class from everyday-cli-utils
|
130
123
|
test_files: []
|
131
|
-
has_rdoc:
|