tty-prompt 0.16.1 → 0.17.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +2 -2
- data/lib/tty/prompt/messages.rb +49 -0
- data/lib/tty/prompt/version.rb +1 -3
- data/spec/spec_helper.rb +45 -0
- data/spec/unit/ask_spec.rb +132 -0
- data/spec/unit/choice/eql_spec.rb +22 -0
- data/spec/unit/choice/from_spec.rb +96 -0
- data/spec/unit/choices/add_spec.rb +12 -0
- data/spec/unit/choices/each_spec.rb +13 -0
- data/spec/unit/choices/find_by_spec.rb +10 -0
- data/spec/unit/choices/new_spec.rb +10 -0
- data/spec/unit/choices/pluck_spec.rb +9 -0
- data/spec/unit/collect_spec.rb +96 -0
- data/spec/unit/converters/convert_bool_spec.rb +58 -0
- data/spec/unit/converters/convert_char_spec.rb +11 -0
- data/spec/unit/converters/convert_custom_spec.rb +14 -0
- data/spec/unit/converters/convert_date_spec.rb +34 -0
- data/spec/unit/converters/convert_file_spec.rb +18 -0
- data/spec/unit/converters/convert_number_spec.rb +39 -0
- data/spec/unit/converters/convert_path_spec.rb +15 -0
- data/spec/unit/converters/convert_range_spec.rb +22 -0
- data/spec/unit/converters/convert_regex_spec.rb +12 -0
- data/spec/unit/converters/convert_string_spec.rb +21 -0
- data/spec/unit/converters/on_error_spec.rb +9 -0
- data/spec/unit/distance/distance_spec.rb +73 -0
- data/spec/unit/enum_paginator_spec.rb +75 -0
- data/spec/unit/enum_select_spec.rb +446 -0
- data/spec/unit/error_spec.rb +20 -0
- data/spec/unit/evaluator_spec.rb +67 -0
- data/spec/unit/expand_spec.rb +198 -0
- data/spec/unit/keypress_spec.rb +72 -0
- data/spec/unit/mask_spec.rb +132 -0
- data/spec/unit/multi_select_spec.rb +495 -0
- data/spec/unit/multiline_spec.rb +77 -0
- data/spec/unit/new_spec.rb +20 -0
- data/spec/unit/ok_spec.rb +10 -0
- data/spec/unit/paginator_spec.rb +73 -0
- data/spec/unit/question/checks_spec.rb +97 -0
- data/spec/unit/question/default_spec.rb +31 -0
- data/spec/unit/question/echo_spec.rb +38 -0
- data/spec/unit/question/in_spec.rb +115 -0
- data/spec/unit/question/initialize_spec.rb +12 -0
- data/spec/unit/question/modifier/apply_to_spec.rb +24 -0
- data/spec/unit/question/modifier/letter_case_spec.rb +41 -0
- data/spec/unit/question/modifier/whitespace_spec.rb +51 -0
- data/spec/unit/question/modify_spec.rb +41 -0
- data/spec/unit/question/required_spec.rb +92 -0
- data/spec/unit/question/validate_spec.rb +115 -0
- data/spec/unit/question/validation/call_spec.rb +31 -0
- data/spec/unit/question/validation/coerce_spec.rb +30 -0
- data/spec/unit/result_spec.rb +40 -0
- data/spec/unit/say_spec.rb +67 -0
- data/spec/unit/select_spec.rb +624 -0
- data/spec/unit/slider_spec.rb +100 -0
- data/spec/unit/statement/initialize_spec.rb +15 -0
- data/spec/unit/subscribe_spec.rb +20 -0
- data/spec/unit/suggest_spec.rb +28 -0
- data/spec/unit/warn_spec.rb +21 -0
- data/spec/unit/yes_no_spec.rb +235 -0
- data/tty-prompt.gemspec +4 -6
- metadata +120 -15
- data/.gitignore +0 -16
- data/.rspec +0 -3
- data/.travis.yml +0 -27
- data/CHANGELOG.md +0 -289
- data/CODE_OF_CONDUCT.md +0 -49
- data/Gemfile +0 -21
- data/appveyor.yml +0 -22
- data/benchmarks/speed.rb +0 -27
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.
|
4
|
+
version: 0.17.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Piotr Murach
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2018-
|
11
|
+
date: 2018-08-05 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: necromancer
|
@@ -58,28 +58,28 @@ dependencies:
|
|
58
58
|
requirements:
|
59
59
|
- - "~>"
|
60
60
|
- !ruby/object:Gem::Version
|
61
|
-
version: 0.
|
61
|
+
version: 0.6.0
|
62
62
|
type: :runtime
|
63
63
|
prerelease: false
|
64
64
|
version_requirements: !ruby/object:Gem::Requirement
|
65
65
|
requirements:
|
66
66
|
- - "~>"
|
67
67
|
- !ruby/object:Gem::Version
|
68
|
-
version: 0.
|
68
|
+
version: 0.6.0
|
69
69
|
- !ruby/object:Gem::Dependency
|
70
70
|
name: tty-reader
|
71
71
|
requirement: !ruby/object:Gem::Requirement
|
72
72
|
requirements:
|
73
73
|
- - "~>"
|
74
74
|
- !ruby/object:Gem::Version
|
75
|
-
version: 0.
|
75
|
+
version: 0.4.0
|
76
76
|
type: :runtime
|
77
77
|
prerelease: false
|
78
78
|
version_requirements: !ruby/object:Gem::Requirement
|
79
79
|
requirements:
|
80
80
|
- - "~>"
|
81
81
|
- !ruby/object:Gem::Version
|
82
|
-
version: 0.
|
82
|
+
version: 0.4.0
|
83
83
|
- !ruby/object:Gem::Dependency
|
84
84
|
name: bundler
|
85
85
|
requirement: !ruby/object:Gem::Requirement
|
@@ -136,17 +136,9 @@ executables: []
|
|
136
136
|
extensions: []
|
137
137
|
extra_rdoc_files: []
|
138
138
|
files:
|
139
|
-
- ".gitignore"
|
140
|
-
- ".rspec"
|
141
|
-
- ".travis.yml"
|
142
|
-
- CHANGELOG.md
|
143
|
-
- CODE_OF_CONDUCT.md
|
144
|
-
- Gemfile
|
145
139
|
- LICENSE.txt
|
146
140
|
- README.md
|
147
141
|
- Rakefile
|
148
|
-
- appveyor.yml
|
149
|
-
- benchmarks/speed.rb
|
150
142
|
- examples/ask.rb
|
151
143
|
- examples/ask_valid.rb
|
152
144
|
- examples/collect.rb
|
@@ -193,6 +185,7 @@ files:
|
|
193
185
|
- lib/tty/prompt/keypress.rb
|
194
186
|
- lib/tty/prompt/list.rb
|
195
187
|
- lib/tty/prompt/mask_question.rb
|
188
|
+
- lib/tty/prompt/messages.rb
|
196
189
|
- lib/tty/prompt/multi_list.rb
|
197
190
|
- lib/tty/prompt/multiline.rb
|
198
191
|
- lib/tty/prompt/paginator.rb
|
@@ -209,6 +202,62 @@ files:
|
|
209
202
|
- lib/tty/prompt/utils.rb
|
210
203
|
- lib/tty/prompt/version.rb
|
211
204
|
- lib/tty/test_prompt.rb
|
205
|
+
- spec/spec_helper.rb
|
206
|
+
- spec/unit/ask_spec.rb
|
207
|
+
- spec/unit/choice/eql_spec.rb
|
208
|
+
- spec/unit/choice/from_spec.rb
|
209
|
+
- spec/unit/choices/add_spec.rb
|
210
|
+
- spec/unit/choices/each_spec.rb
|
211
|
+
- spec/unit/choices/find_by_spec.rb
|
212
|
+
- spec/unit/choices/new_spec.rb
|
213
|
+
- spec/unit/choices/pluck_spec.rb
|
214
|
+
- spec/unit/collect_spec.rb
|
215
|
+
- spec/unit/converters/convert_bool_spec.rb
|
216
|
+
- spec/unit/converters/convert_char_spec.rb
|
217
|
+
- spec/unit/converters/convert_custom_spec.rb
|
218
|
+
- spec/unit/converters/convert_date_spec.rb
|
219
|
+
- spec/unit/converters/convert_file_spec.rb
|
220
|
+
- spec/unit/converters/convert_number_spec.rb
|
221
|
+
- spec/unit/converters/convert_path_spec.rb
|
222
|
+
- spec/unit/converters/convert_range_spec.rb
|
223
|
+
- spec/unit/converters/convert_regex_spec.rb
|
224
|
+
- spec/unit/converters/convert_string_spec.rb
|
225
|
+
- spec/unit/converters/on_error_spec.rb
|
226
|
+
- spec/unit/distance/distance_spec.rb
|
227
|
+
- spec/unit/enum_paginator_spec.rb
|
228
|
+
- spec/unit/enum_select_spec.rb
|
229
|
+
- spec/unit/error_spec.rb
|
230
|
+
- spec/unit/evaluator_spec.rb
|
231
|
+
- spec/unit/expand_spec.rb
|
232
|
+
- spec/unit/keypress_spec.rb
|
233
|
+
- spec/unit/mask_spec.rb
|
234
|
+
- spec/unit/multi_select_spec.rb
|
235
|
+
- spec/unit/multiline_spec.rb
|
236
|
+
- spec/unit/new_spec.rb
|
237
|
+
- spec/unit/ok_spec.rb
|
238
|
+
- spec/unit/paginator_spec.rb
|
239
|
+
- spec/unit/question/checks_spec.rb
|
240
|
+
- spec/unit/question/default_spec.rb
|
241
|
+
- spec/unit/question/echo_spec.rb
|
242
|
+
- spec/unit/question/in_spec.rb
|
243
|
+
- spec/unit/question/initialize_spec.rb
|
244
|
+
- spec/unit/question/modifier/apply_to_spec.rb
|
245
|
+
- spec/unit/question/modifier/letter_case_spec.rb
|
246
|
+
- spec/unit/question/modifier/whitespace_spec.rb
|
247
|
+
- spec/unit/question/modify_spec.rb
|
248
|
+
- spec/unit/question/required_spec.rb
|
249
|
+
- spec/unit/question/validate_spec.rb
|
250
|
+
- spec/unit/question/validation/call_spec.rb
|
251
|
+
- spec/unit/question/validation/coerce_spec.rb
|
252
|
+
- spec/unit/result_spec.rb
|
253
|
+
- spec/unit/say_spec.rb
|
254
|
+
- spec/unit/select_spec.rb
|
255
|
+
- spec/unit/slider_spec.rb
|
256
|
+
- spec/unit/statement/initialize_spec.rb
|
257
|
+
- spec/unit/subscribe_spec.rb
|
258
|
+
- spec/unit/suggest_spec.rb
|
259
|
+
- spec/unit/warn_spec.rb
|
260
|
+
- spec/unit/yes_no_spec.rb
|
212
261
|
- tasks/console.rake
|
213
262
|
- tasks/coverage.rake
|
214
263
|
- tasks/spec.rake
|
@@ -237,4 +286,60 @@ rubygems_version: 2.7.3
|
|
237
286
|
signing_key:
|
238
287
|
specification_version: 4
|
239
288
|
summary: A beautiful and powerful interactive command line prompt.
|
240
|
-
test_files:
|
289
|
+
test_files:
|
290
|
+
- spec/spec_helper.rb
|
291
|
+
- spec/unit/ask_spec.rb
|
292
|
+
- spec/unit/choice/eql_spec.rb
|
293
|
+
- spec/unit/choice/from_spec.rb
|
294
|
+
- spec/unit/choices/add_spec.rb
|
295
|
+
- spec/unit/choices/each_spec.rb
|
296
|
+
- spec/unit/choices/find_by_spec.rb
|
297
|
+
- spec/unit/choices/new_spec.rb
|
298
|
+
- spec/unit/choices/pluck_spec.rb
|
299
|
+
- spec/unit/collect_spec.rb
|
300
|
+
- spec/unit/converters/convert_bool_spec.rb
|
301
|
+
- spec/unit/converters/convert_char_spec.rb
|
302
|
+
- spec/unit/converters/convert_custom_spec.rb
|
303
|
+
- spec/unit/converters/convert_date_spec.rb
|
304
|
+
- spec/unit/converters/convert_file_spec.rb
|
305
|
+
- spec/unit/converters/convert_number_spec.rb
|
306
|
+
- spec/unit/converters/convert_path_spec.rb
|
307
|
+
- spec/unit/converters/convert_range_spec.rb
|
308
|
+
- spec/unit/converters/convert_regex_spec.rb
|
309
|
+
- spec/unit/converters/convert_string_spec.rb
|
310
|
+
- spec/unit/converters/on_error_spec.rb
|
311
|
+
- spec/unit/distance/distance_spec.rb
|
312
|
+
- spec/unit/enum_paginator_spec.rb
|
313
|
+
- spec/unit/enum_select_spec.rb
|
314
|
+
- spec/unit/error_spec.rb
|
315
|
+
- spec/unit/evaluator_spec.rb
|
316
|
+
- spec/unit/expand_spec.rb
|
317
|
+
- spec/unit/keypress_spec.rb
|
318
|
+
- spec/unit/mask_spec.rb
|
319
|
+
- spec/unit/multi_select_spec.rb
|
320
|
+
- spec/unit/multiline_spec.rb
|
321
|
+
- spec/unit/new_spec.rb
|
322
|
+
- spec/unit/ok_spec.rb
|
323
|
+
- spec/unit/paginator_spec.rb
|
324
|
+
- spec/unit/question/checks_spec.rb
|
325
|
+
- spec/unit/question/default_spec.rb
|
326
|
+
- spec/unit/question/echo_spec.rb
|
327
|
+
- spec/unit/question/in_spec.rb
|
328
|
+
- spec/unit/question/initialize_spec.rb
|
329
|
+
- spec/unit/question/modifier/apply_to_spec.rb
|
330
|
+
- spec/unit/question/modifier/letter_case_spec.rb
|
331
|
+
- spec/unit/question/modifier/whitespace_spec.rb
|
332
|
+
- spec/unit/question/modify_spec.rb
|
333
|
+
- spec/unit/question/required_spec.rb
|
334
|
+
- spec/unit/question/validate_spec.rb
|
335
|
+
- spec/unit/question/validation/call_spec.rb
|
336
|
+
- spec/unit/question/validation/coerce_spec.rb
|
337
|
+
- spec/unit/result_spec.rb
|
338
|
+
- spec/unit/say_spec.rb
|
339
|
+
- spec/unit/select_spec.rb
|
340
|
+
- spec/unit/slider_spec.rb
|
341
|
+
- spec/unit/statement/initialize_spec.rb
|
342
|
+
- spec/unit/subscribe_spec.rb
|
343
|
+
- spec/unit/suggest_spec.rb
|
344
|
+
- spec/unit/warn_spec.rb
|
345
|
+
- spec/unit/yes_no_spec.rb
|
data/.gitignore
DELETED
data/.rspec
DELETED
data/.travis.yml
DELETED
@@ -1,27 +0,0 @@
|
|
1
|
-
---
|
2
|
-
language: ruby
|
3
|
-
sudo: false
|
4
|
-
cache: bundler
|
5
|
-
before_install: "gem update bundler"
|
6
|
-
bundler_args: --without tools
|
7
|
-
script: "bundle exec rake ci"
|
8
|
-
rvm:
|
9
|
-
- 2.0.0
|
10
|
-
- 2.1.10
|
11
|
-
- 2.2.8
|
12
|
-
- 2.3.6
|
13
|
-
- 2.4.3
|
14
|
-
- 2.5.0
|
15
|
-
- ruby-head
|
16
|
-
- jruby-9000
|
17
|
-
- jruby-9.1.1.0
|
18
|
-
- jruby-head
|
19
|
-
matrix:
|
20
|
-
allow_failures:
|
21
|
-
- rvm: ruby-head
|
22
|
-
- rvm: jruby-head
|
23
|
-
fast_finish: true
|
24
|
-
branches:
|
25
|
-
only: master
|
26
|
-
notifications:
|
27
|
-
email: false
|
data/CHANGELOG.md
DELETED
@@ -1,289 +0,0 @@
|
|
1
|
-
# Change log
|
2
|
-
|
3
|
-
## [v0.16.1] - 2018-04-29
|
4
|
-
|
5
|
-
### Fixed
|
6
|
-
* Fix key events subscription to only listen for the current prompt events
|
7
|
-
|
8
|
-
## [v0.16.0] - 2018-03-11
|
9
|
-
|
10
|
-
### Added
|
11
|
-
* Add :disabled key to Choice
|
12
|
-
* Add ability to disable choices in #select, #multi_selct & #enum_select prompts
|
13
|
-
* Add #frozen_string_literal to all files
|
14
|
-
|
15
|
-
### Changed
|
16
|
-
* Change Choice#from to allow parsing different data strucutures
|
17
|
-
* Change all classes to prevent strings mutations
|
18
|
-
* Change Timeout to cleanly terminate keypress input without raising errors
|
19
|
-
|
20
|
-
### Fixed
|
21
|
-
* Fix #select, #enum_select & #multi_select navigation to work correctly with items longer than terminal screen width
|
22
|
-
* Fix timeout on Ruby 2.5 and stop raising Timeout::Error
|
23
|
-
|
24
|
-
## [v0.15.0] - 2018-02-08
|
25
|
-
|
26
|
-
### Added
|
27
|
-
* Add ability to filter list items in #select, #multi_select & #enum_selct prompts by Saverio Miroddi(@saveriomiroddi)
|
28
|
-
* Add support for array of values for an answer collector key by Danny Hadley(@dadleyy)
|
29
|
-
|
30
|
-
### Changed
|
31
|
-
* Relax dependency on timers by Andy Brody(@brodygov)
|
32
|
-
|
33
|
-
## [v0.14.0] - 2018-01-01
|
34
|
-
|
35
|
-
### Added
|
36
|
-
* Add :cycle option to #select, #multi_select & #enum_select prompts to allow toggling between infinite and bounded list by Jonas Müller(@muellerj)
|
37
|
-
|
38
|
-
### Changed
|
39
|
-
* Change #multi_selct, #select & #enum_select to stop cycling options by default by Jona Müller(@muellerj)
|
40
|
-
* Change gemspec to require ruby >= 2.0.0
|
41
|
-
* Change #slider prompt to display slider next to query and help underneath
|
42
|
-
* Change to use tty-reader v0.2.0 with new line editing features for processing long inputs
|
43
|
-
|
44
|
-
### Fixed
|
45
|
-
* Fix Paginator & EnumPaginator to allow only positive integer values by Andy Brody(@ab)
|
46
|
-
* Fix EnumSelect to report on default option out of range and raise correctly
|
47
|
-
* Fix #ask :file & :path converters to correctly locate the files
|
48
|
-
* Fix #ask, #multiline to correctly handle long strings that wrap around screen
|
49
|
-
* Fix #slider prompt to correctly scale sliding
|
50
|
-
|
51
|
-
## [v0.13.2] - 2017-08-30
|
52
|
-
|
53
|
-
### Changed
|
54
|
-
* Change to extract TTY::Prompt::Reader to its own dependency
|
55
|
-
|
56
|
-
## [v0.13.1] - 2017-08-16
|
57
|
-
|
58
|
-
### Added
|
59
|
-
* Add ability to manually cancel the time scheduler
|
60
|
-
|
61
|
-
### Changed
|
62
|
-
* Change #keypress to use new scheduler cancelling
|
63
|
-
* Change Reader to inline interrupt to allow for early exit
|
64
|
-
|
65
|
-
### Fix
|
66
|
-
* Fix keypress reading on Windows to distinguish between blocking & non-blocking IO
|
67
|
-
|
68
|
-
## [v0.13.0] - 2017-08-11
|
69
|
-
|
70
|
-
### Changed
|
71
|
-
* Change Timeout to use clock time instead of sleep to measure interval
|
72
|
-
* Upgrade tty-cursor to fix save & restore
|
73
|
-
|
74
|
-
### Fixed
|
75
|
-
* Fix keypress with timeout option to cleanly stop timeout thread
|
76
|
-
* Fix Reader on Windows to stop blocking when waiting for key press
|
77
|
-
|
78
|
-
## [v0.12.0] - 2017-03-19
|
79
|
-
|
80
|
-
### Added
|
81
|
-
* Add Multiline question type
|
82
|
-
* Add Keypress question type
|
83
|
-
* Add Reader::History for storing buffered lines
|
84
|
-
* Add Reader::Line for line abstraction
|
85
|
-
|
86
|
-
### Changed
|
87
|
-
* Remove :read option from Question
|
88
|
-
* Chnage Reader#read_line to handle raw mode for processing special
|
89
|
-
characters such as Ctrl+x, navigate through history buffer
|
90
|
-
using up/down arrows, allow editing current line by moving left/right
|
91
|
-
with arrow keys and inserting content
|
92
|
-
* Change Reader#read_multiline to gather multi line input correctly,
|
93
|
-
skip empty lines and terminate when Ctrl+d and Ctrl+z are pressed
|
94
|
-
* Change Reader::Mode to check if tty is available by Matt Martyn (@MMartyn)
|
95
|
-
* Change #keypress prompt to correctly refresh line and accept :keys & :timeout options
|
96
|
-
|
97
|
-
### Fixed
|
98
|
-
* Fix issue with #select, #multi_selct, #enum_select when choices are
|
99
|
-
provided as hash object together with prompt options.
|
100
|
-
* Fix issue with default parameter for yes?/no? prompt by Carlos Fonseca (@carlosefonseca)
|
101
|
-
* Fix List#help to allow setting help text through DSL
|
102
|
-
|
103
|
-
## [v0.11.0] - 2017-02-26
|
104
|
-
|
105
|
-
### Added
|
106
|
-
* Add Console for reading input characters on Unix systems
|
107
|
-
* Add WinConsole for reading input characters on Windows systems
|
108
|
-
* Add WindowsApi to allow for calls to external Windows api
|
109
|
-
* Add echo support to multilist by Keith Keith T. Garner(@ktgeek)
|
110
|
-
|
111
|
-
### Changed
|
112
|
-
* Change Reader to use Console for input reading
|
113
|
-
* Change Codes to use codepoints instead of strings
|
114
|
-
* Change Reader#read_line to match #gets behaviour
|
115
|
-
* Change Symbols to provide Unicode support on windows
|
116
|
-
* Change Slider to display Unicode when possible
|
117
|
-
* Change ConverterRegistry to be immutable
|
118
|
-
* Change Reader to expose #trigger in place of #publish for events firing
|
119
|
-
|
120
|
-
### Fixed
|
121
|
-
* Fix `modify` throwing exception, when user enters empty input by Igor Rzegocki(@ajgon)
|
122
|
-
* Fix #clear_line behaviour by using tty-cursor 0.4.0 to work in all terminals
|
123
|
-
* Fix paging issue for lists shorter than :per_page value repeating title
|
124
|
-
* Fix #mask prompt to correctly match input on Windows
|
125
|
-
* Fix @mask to use default error messages
|
126
|
-
* Fix #select & #multi_select prompts to allow changing options with arrow keys on Windows
|
127
|
-
* Fix #echo to work correctly in zsh shell by štef(@d4be4st)
|
128
|
-
* Fix Slider#keyright event accepting max value outside of range
|
129
|
-
* Fix 2.4.0 conversion errors by using necromancer 0.4.0
|
130
|
-
* Fix #enum_select preventing selection of first item
|
131
|
-
|
132
|
-
## [v0.10.1] - 2017-02-06
|
133
|
-
|
134
|
-
### Fixed
|
135
|
-
* Fix File namespacing
|
136
|
-
|
137
|
-
## [v0.10.0] - 2017-01-01
|
138
|
-
|
139
|
-
### Added
|
140
|
-
* Add :enable_color option for toggling colors support
|
141
|
-
|
142
|
-
### Changed
|
143
|
-
* Update pastel dependency version
|
144
|
-
|
145
|
-
## [v0.9.0] - 2016-12-20
|
146
|
-
|
147
|
-
### Added
|
148
|
-
* Add ability to paginate choices list for #select, #multi_select & #enum_select
|
149
|
-
with :per_page, :page_info and :default options
|
150
|
-
* Add ability to switch through options in #select & #multi_select using the tab key
|
151
|
-
|
152
|
-
### Fixed
|
153
|
-
* Fix readers to accept multibyte characters reported by Jaehyun Shin(@keepcosmos)
|
154
|
-
|
155
|
-
## [v0.8.0] - 2016-11-29
|
156
|
-
|
157
|
-
### Added
|
158
|
-
* Add ability to publish custom key events for VIM keybindings customisations etc...
|
159
|
-
|
160
|
-
### Fixed
|
161
|
-
* Fix Reader#read_char to use Ruby internal buffers instead of direct system call by @kke(Kimmo Lehto)
|
162
|
-
* Fix issue with #ask required & validate checks to take into account required when validating values
|
163
|
-
* Fix bug with #read_keypress to handle function keys and meta navigation keys
|
164
|
-
* Fix issue with default messages not displaying for `range`, `required` and `validate`
|
165
|
-
|
166
|
-
## [v0.7.1] - 2016-08-07
|
167
|
-
|
168
|
-
### Fixed
|
169
|
-
* Fix Reader::Mode to include standard io library
|
170
|
-
|
171
|
-
## [v0.7.0] - 2016-07-17
|
172
|
-
|
173
|
-
### Added
|
174
|
-
* Add :interrupt_handler option to customise keyboard interrupt behaviour
|
175
|
-
|
176
|
-
### Changed
|
177
|
-
* Remove tty-platform dependency
|
178
|
-
|
179
|
-
### Fixed
|
180
|
-
* Fix Reader#read_keypress issue when handling interrupt signal by Ondrej Moravcik(@ondra-m)
|
181
|
-
* Fix raw & echo modes to use standard library support by Kim Burgestrand(@Burgestrand)
|
182
|
-
|
183
|
-
## [v0.6.0] - 2016-05-21
|
184
|
-
|
185
|
-
### Changed
|
186
|
-
* Upgrade tty-cursor dependency
|
187
|
-
|
188
|
-
### Fixed
|
189
|
-
* Fix issue with reader trapping signals by @kylekyle
|
190
|
-
* Fix expand to use new prev_line implementation
|
191
|
-
|
192
|
-
## [v0.5.0] - 2016-03-28
|
193
|
-
|
194
|
-
### Added
|
195
|
-
* Add ConfirmQuestion for #yes? & #no? calls
|
196
|
-
* Add ability to collect more than one answer through #collect call
|
197
|
-
* Add Choices#find_by for selecting choice based on attribute
|
198
|
-
* Add Prompt#expand for expanding key options
|
199
|
-
* Add :active_color, :help_color, :prefix options for customizing prompts display
|
200
|
-
|
201
|
-
### Changed
|
202
|
-
* Change Choice#from to allow for coersion of complex objects with keys
|
203
|
-
* Change Choices#pluck to search through object attributes
|
204
|
-
* Change #select :enum option help text to display actual numbers range
|
205
|
-
|
206
|
-
### Fixed
|
207
|
-
* Fix #no? to correctly ask negative question by @ondra-m
|
208
|
-
* Fix #ask :default option to handle nil or empty string
|
209
|
-
* Fix #multi_select :default option and color changing
|
210
|
-
|
211
|
-
## [v0.4.0] - 2016-02-08
|
212
|
-
|
213
|
-
### Added
|
214
|
-
* Add :enum option for #select & #multi_select to allow for numerical selection by @rtoshiro
|
215
|
-
* Add new key event types to KeyEvent
|
216
|
-
* Add #slider for picking values from range of numbers
|
217
|
-
* Add #enum_select for selecting option from enumerated list
|
218
|
-
* Add ability to configure error messages for #ask call
|
219
|
-
* Add new ConversionError type
|
220
|
-
|
221
|
-
### Changed
|
222
|
-
* Move #blank? to Utils
|
223
|
-
* Update pastel dependency
|
224
|
-
|
225
|
-
## [v0.3.0] - 2015-12-28
|
226
|
-
|
227
|
-
### Added
|
228
|
-
* Add prefix option to prompt to customize #ask, #select, #multi_select
|
229
|
-
* Add default printing to #ask
|
230
|
-
* Add #yes?/#no? boolean queries
|
231
|
-
* Add Evaluator and Result for validation checking to Question
|
232
|
-
* Add ability for #ask to display error messages on failed validation
|
233
|
-
* Add ability to specify in-built names for validation e.i. :email
|
234
|
-
* Add KeyEvent for keyboard events publishing to Reader
|
235
|
-
* Add #read_multiline to Reader
|
236
|
-
* Add :convert option for ask configuration
|
237
|
-
* Add ability to specify custom proc converters
|
238
|
-
* Add #ask_keypress to gather character input
|
239
|
-
* Add #ask_multiline to gather multiline input
|
240
|
-
* Add MaskedQuestion & #mask method for masking input stream characters
|
241
|
-
|
242
|
-
### Changed
|
243
|
-
* Change Reader#read_keypress to be robust and read correctly byte sequences
|
244
|
-
* Change Reader#getc to #read_line and extend arguments with echo option
|
245
|
-
* Extract cursor movement to dependency tty-cursor
|
246
|
-
* Change List & MultiList to subscribe to keyboard events
|
247
|
-
* Change to move mode inside reader namespace
|
248
|
-
* Remove Response & Error objects
|
249
|
-
* Remove :char option from #ask
|
250
|
-
* Change :read option to specify mode of reading out of :line, :multiline, :keypress
|
251
|
-
* Rename #confirm to #ok
|
252
|
-
|
253
|
-
## [v0.2.0] - 2015-11-23
|
254
|
-
|
255
|
-
### Added
|
256
|
-
* Add ability to select choice form list #select
|
257
|
-
* Add ability to select multiple options #multi_select
|
258
|
-
* Add :read option to #ask for reading specific type input
|
259
|
-
|
260
|
-
### Changed
|
261
|
-
* Change #ask api to be similar to #select and #multi_select behaviour
|
262
|
-
* Change #ask :argument option to be :required
|
263
|
-
* Remove :valid option from #ask as #select is a better solution
|
264
|
-
|
265
|
-
## [v0.1.0] - 2015-11-01
|
266
|
-
|
267
|
-
* Initial implementation and release
|
268
|
-
|
269
|
-
[v0.16.1]: https://github.com/piotrmurach/tty-prompt/compare/v0.16.0...v0.16.1
|
270
|
-
[v0.16.0]: https://github.com/piotrmurach/tty-prompt/compare/v0.15.0...v0.16.0
|
271
|
-
[v0.15.0]: https://github.com/piotrmurach/tty-prompt/compare/v0.14.0...v0.15.0
|
272
|
-
[v0.14.0]: https://github.com/piotrmurach/tty-prompt/compare/v0.13.2...v0.14.0
|
273
|
-
[v0.13.2]: https://github.com/piotrmurach/tty-prompt/compare/v0.13.1...v0.13.2
|
274
|
-
[v0.13.1]: https://github.com/piotrmurach/tty-prompt/compare/v0.13.0...v0.13.1
|
275
|
-
[v0.13.0]: https://github.com/piotrmurach/tty-prompt/compare/v0.12.0...v0.13.0
|
276
|
-
[v0.12.0]: https://github.com/piotrmurach/tty-prompt/compare/v0.11.0...v0.12.0
|
277
|
-
[v0.11.0]: https://github.com/piotrmurach/tty-prompt/compare/v0.10.1...v0.11.0
|
278
|
-
[v0.10.1]: https://github.com/piotrmurach/tty-prompt/compare/v0.10.0...v0.10.1
|
279
|
-
[v0.10.0]: https://github.com/piotrmurach/tty-prompt/compare/v0.9.0...v0.10.0
|
280
|
-
[v0.9.0]: https://github.com/piotrmurach/tty-prompt/compare/v0.8.0...v0.9.0
|
281
|
-
[v0.8.0]: https://github.com/piotrmurach/tty-prompt/compare/v0.7.1...v0.8.0
|
282
|
-
[v0.7.1]: https://github.com/piotrmurach/tty-prompt/compare/v0.7.0...v0.7.1
|
283
|
-
[v0.7.0]: https://github.com/piotrmurach/tty-prompt/compare/v0.6.0...v0.7.0
|
284
|
-
[v0.6.0]: https://github.com/piotrmurach/tty-prompt/compare/v0.5.0...v0.6.0
|
285
|
-
[v0.5.0]: https://github.com/piotrmurach/tty-prompt/compare/v0.4.0...v0.5.0
|
286
|
-
[v0.4.0]: https://github.com/piotrmurach/tty-prompt/compare/v0.3.0...v0.4.0
|
287
|
-
[v0.3.0]: https://github.com/piotrmurach/tty-prompt/compare/v0.2.0...v0.3.0
|
288
|
-
[v0.2.0]: https://github.com/piotrmurach/tty-prompt/compare/v0.1.0...v0.2.0
|
289
|
-
[v0.1.0]: https://github.com/piotrmurach/tty-prompt/compare/v0.1.0
|