question 0.2.1 → 0.2.2
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/README.md +1 -1
- data/lib/question/checkbox_list.rb +1 -0
- data/lib/question/confirm.rb +1 -1
- data/lib/question/input.rb +1 -1
- data/lib/question/list.rb +2 -0
- data/lib/question/password.rb +1 -0
- data/lib/question/tty.rb +2 -0
- data/lib/question/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 7c6221ba692ba5ab29d3a1d8d01913ac92efd67a
|
4
|
+
data.tar.gz: 44f6b1edcfa1ee780bdfe2c68e4d05df781fbb1a
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: eeb5997c4743f9171cd08bc80ae58342a35518bf77de00bf20f16a1eac4c0b54eabc20042a31fd8db7a7ece9e5bd13a229b45a49909b380af56acd3fdd20e521
|
7
|
+
data.tar.gz: 4edd04fe42eff294e26726c9d3315a8976723104b23737a9a099e953d3eaa5fe9d690fc9dee40595f0f726ad3b5651fb5dcd34abe762a56e755d2c38f2c12d7b
|
data/README.md
CHANGED
@@ -2,7 +2,7 @@
|
|
2
2
|
|
3
3
|
UI elements for cli apps (inspired by [Inquirer.js](https://github.com/SBoudrias/Inquirer.js/))
|
4
4
|
|
5
|
-

|
6
6
|
|
7
7
|
## Installation
|
8
8
|
|
data/lib/question/confirm.rb
CHANGED
@@ -17,7 +17,7 @@ module Question
|
|
17
17
|
end
|
18
18
|
|
19
19
|
# Use readline so keyboard shortcuts like alt-backspace work
|
20
|
-
@answer = Readline.readline(question, true)
|
20
|
+
@answer = Readline.readline(question + TTY::CODE::NOOP, true)
|
21
21
|
@answer = if @answer =~ /^y/i
|
22
22
|
true
|
23
23
|
elsif @answer =~ /^n/i
|
data/lib/question/input.rb
CHANGED
@@ -13,7 +13,7 @@ module Question
|
|
13
13
|
question += "(#{@default}) ".light_white if @default
|
14
14
|
|
15
15
|
# Use readline so keyboard shortcuts like alt-backspace work
|
16
|
-
@answer = Readline.readline(question, true)
|
16
|
+
@answer = Readline.readline(question + TTY::CODE::NOOP, true)
|
17
17
|
@answer = @default if @default && @answer.length == 0
|
18
18
|
|
19
19
|
render
|
data/lib/question/list.rb
CHANGED
data/lib/question/password.rb
CHANGED
data/lib/question/tty.rb
CHANGED
data/lib/question/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: question
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.2.
|
4
|
+
version: 0.2.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- probablycorey
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2015-
|
11
|
+
date: 2015-02-10 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|