inquirer.rb 0.0.6 → 0.0.7
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/inquirer/spec_helpers.rb +26 -0
- data/lib/inquirer/version.rb +1 -1
- metadata +48 -5
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 71839c6c4fd1664c03be12e7f502e794bc2046bf
|
4
|
+
data.tar.gz: fbaa228198f7ed65a3c79a2737d2a68eb0b2fbc1
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 45e2345710d746b8b165ea192afad1d05afbda83fcb55a5102ffb8970aa60e632d57dffe44b4f9a84ac329d0bb865ea1642ea5a9ae87f04eb69270784f78606a
|
7
|
+
data.tar.gz: b51ebdfcdaf04a0c39c3ab2dfc1b38dfab4024f06eb22e5a83c96ec9d52a667615332328abe78212fee538e43604f5366c995043bdae1da1bba98bdf26688695
|
@@ -0,0 +1,26 @@
|
|
1
|
+
module IOHelper
|
2
|
+
extend self
|
3
|
+
|
4
|
+
attr_accessor :output, :bottomline, :keys, :winsize
|
5
|
+
|
6
|
+
def read_char &block
|
7
|
+
Array(@keys).each do |key|
|
8
|
+
break unless block.(key)
|
9
|
+
end
|
10
|
+
end
|
11
|
+
|
12
|
+
def render(prompt, bottomline = nil)
|
13
|
+
@rendered = wrap(prompt)
|
14
|
+
@bottomline = bottomline
|
15
|
+
|
16
|
+
@output = rendered_output
|
17
|
+
end
|
18
|
+
|
19
|
+
def clear
|
20
|
+
@output = ''
|
21
|
+
end
|
22
|
+
|
23
|
+
def output_plain
|
24
|
+
self.plain_chars(output)
|
25
|
+
end
|
26
|
+
end
|
data/lib/inquirer/version.rb
CHANGED
metadata
CHANGED
@@ -1,15 +1,29 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: inquirer.rb
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.7
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Thorsten Eckel
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2016-10-
|
11
|
+
date: 2016-10-15 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
|
+
- !ruby/object:Gem::Dependency
|
14
|
+
name: rainbow
|
15
|
+
requirement: !ruby/object:Gem::Requirement
|
16
|
+
requirements:
|
17
|
+
- - "~>"
|
18
|
+
- !ruby/object:Gem::Version
|
19
|
+
version: '2.1'
|
20
|
+
type: :runtime
|
21
|
+
prerelease: false
|
22
|
+
version_requirements: !ruby/object:Gem::Requirement
|
23
|
+
requirements:
|
24
|
+
- - "~>"
|
25
|
+
- !ruby/object:Gem::Version
|
26
|
+
version: '2.1'
|
13
27
|
- !ruby/object:Gem::Dependency
|
14
28
|
name: bundler
|
15
29
|
requirement: !ruby/object:Gem::Requirement
|
@@ -53,19 +67,47 @@ dependencies:
|
|
53
67
|
- !ruby/object:Gem::Version
|
54
68
|
version: '3.5'
|
55
69
|
- !ruby/object:Gem::Dependency
|
56
|
-
name:
|
70
|
+
name: simplecov
|
57
71
|
requirement: !ruby/object:Gem::Requirement
|
58
72
|
requirements:
|
59
73
|
- - "~>"
|
60
74
|
- !ruby/object:Gem::Version
|
61
|
-
version: '
|
75
|
+
version: '0.12'
|
62
76
|
type: :development
|
63
77
|
prerelease: false
|
64
78
|
version_requirements: !ruby/object:Gem::Requirement
|
65
79
|
requirements:
|
66
80
|
- - "~>"
|
67
81
|
- !ruby/object:Gem::Version
|
68
|
-
version: '
|
82
|
+
version: '0.12'
|
83
|
+
- !ruby/object:Gem::Dependency
|
84
|
+
name: codeclimate-test-reporter
|
85
|
+
requirement: !ruby/object:Gem::Requirement
|
86
|
+
requirements:
|
87
|
+
- - "~>"
|
88
|
+
- !ruby/object:Gem::Version
|
89
|
+
version: '0.6'
|
90
|
+
type: :development
|
91
|
+
prerelease: false
|
92
|
+
version_requirements: !ruby/object:Gem::Requirement
|
93
|
+
requirements:
|
94
|
+
- - "~>"
|
95
|
+
- !ruby/object:Gem::Version
|
96
|
+
version: '0.6'
|
97
|
+
- !ruby/object:Gem::Dependency
|
98
|
+
name: codecov
|
99
|
+
requirement: !ruby/object:Gem::Requirement
|
100
|
+
requirements:
|
101
|
+
- - "~>"
|
102
|
+
- !ruby/object:Gem::Version
|
103
|
+
version: '0.1'
|
104
|
+
type: :development
|
105
|
+
prerelease: false
|
106
|
+
version_requirements: !ruby/object:Gem::Requirement
|
107
|
+
requirements:
|
108
|
+
- - "~>"
|
109
|
+
- !ruby/object:Gem::Version
|
110
|
+
version: '0.1'
|
69
111
|
description: A collection of common interactive command line user interfaces. A (not
|
70
112
|
yet completed) clone of the great Inquirer.js (https://github.com/SBoudrias/Inquirer.js)
|
71
113
|
and strongly inspired by the similar inquirer.rb (https://github.com/arlimus/inquirer.rb).
|
@@ -82,6 +124,7 @@ files:
|
|
82
124
|
- lib/inquirer/prompts/list.rb
|
83
125
|
- lib/inquirer/prompts/list_filterable.rb
|
84
126
|
- lib/inquirer/prompts/password.rb
|
127
|
+
- lib/inquirer/spec_helpers.rb
|
85
128
|
- lib/inquirer/style.rb
|
86
129
|
- lib/inquirer/style/checkbox.rb
|
87
130
|
- lib/inquirer/style/checkbox_filterable.rb
|