tty-prompt 0.7.0 → 0.7.1
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 +3 -3
- data/lib/tty/prompt/reader/mode.rb +2 -0
- data/lib/tty/prompt/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: da6d9da4a55660577a3f5c65c4058c666defd1d7
|
4
|
+
data.tar.gz: 7d647c6c08f2d3271b4660e3da777885001cc772
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 876eea0fd3fea3da77b4c2730247807022fc2553fa7475ca089d099c961824818ee59370129f10520b9a29402bbecc3b912b1ed5e5e9fb9c583643561d6aeab1
|
7
|
+
data.tar.gz: 9b3a34ab5221a8305a6608b48cb1b6567cb6bfbd77e562dfd3dda540e63816978212380228570ba290e98c2e5a70f7b67a2877bb560482082040bf07cf2f4d18
|
data/README.md
CHANGED
@@ -581,7 +581,7 @@ For asking questions involving multiple selection list use `multi_select` method
|
|
581
581
|
|
582
582
|
```ruby
|
583
583
|
choices = %w(vodka beer wine whisky bourbon)
|
584
|
-
prompt.
|
584
|
+
prompt.multi_select("Select drinks?", choices)
|
585
585
|
# =>
|
586
586
|
#
|
587
587
|
# Select drinks? (Use arrow keys, press Space to select and Enter to finish)"
|
@@ -596,7 +596,7 @@ As a return value, the `multi_select` will always return an array by default pop
|
|
596
596
|
|
597
597
|
```ruby
|
598
598
|
choices = {vodka: 1, beer: 2, wine: 3, whisky: 4, bourbon: 5}
|
599
|
-
prompt.
|
599
|
+
prompt.multi_select("Select drinks?", choices)
|
600
600
|
|
601
601
|
# Provided that vodka and beer have been selected, the function will return
|
602
602
|
# => [1, 2]
|
@@ -666,7 +666,7 @@ You can configure help message and/or marker like so
|
|
666
666
|
|
667
667
|
```ruby
|
668
668
|
choices = {vodka: 1, beer: 2, wine: 3, whisky: 4, bourbon: 5}
|
669
|
-
prompt.
|
669
|
+
prompt.multi_select("Select drinks?", choices, help: 'Press beer can against keyboard')
|
670
670
|
# =>
|
671
671
|
# Select drinks? (Press beer can against keyboard)"
|
672
672
|
# ‣ ⬡ vodka
|
data/lib/tty/prompt/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: tty-prompt
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.7.
|
4
|
+
version: 0.7.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Piotr Murach
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2016-07
|
11
|
+
date: 2016-08-07 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: necromancer
|