tty-prompt 0.7.0 → 0.7.1

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 69404a2dc9ce5d0527ec0326e38f5a42efec6cea
4
- data.tar.gz: 4a37238a51cdc8d3e5fe338ddfdfa52cfb5a5383
3
+ metadata.gz: da6d9da4a55660577a3f5c65c4058c666defd1d7
4
+ data.tar.gz: 7d647c6c08f2d3271b4660e3da777885001cc772
5
5
  SHA512:
6
- metadata.gz: d52270bb3e0c6ef868658f3ac3c255ac124588e8d830d21578c15655538fbdbeb5828af29608c62ba06342b239a84dcfb130d5821fbbf696b3f57181a0141215
7
- data.tar.gz: 522ee9fcff9c80d548c2d043f9bfe3d3d1abeead54387dee9c3242c203a0804d9f4841da6a5bc888c66e6cf286f3db8346de55dc366706e14a63ae1a2e4302d3
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.select("Select drinks?", choices)
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.select("Select drinks?", choices)
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.select("Select drinks?", choices, help: 'Press beer can against keyboard')
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
@@ -1,5 +1,7 @@
1
1
  # encoding: utf-8
2
2
 
3
+ require 'io/console'
4
+
3
5
  module TTY
4
6
  class Prompt
5
7
  class Reader
@@ -2,6 +2,6 @@
2
2
 
3
3
  module TTY
4
4
  class Prompt
5
- VERSION = "0.7.0"
5
+ VERSION = "0.7.1"
6
6
  end # Prompt
7
7
  end # TTY
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.0
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-17 00:00:00.000000000 Z
11
+ date: 2016-08-07 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: necromancer