highline 2.0.0.pre.develop.13 → 2.0.0.pre.develop.14
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/Changelog.md +3 -0
- data/lib/highline.rb +1 -0
- data/lib/highline/question.rb +1 -1
- data/lib/highline/terminal.rb +3 -5
- data/lib/highline/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: 5ab46fe65f6eb631cce1fe0cc62caf13925bd40b
|
4
|
+
data.tar.gz: 4ac57c74c9460edca617bb6a829c1ec50bce410e
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 24f92f0180bb9cdfa88f76d73f5e3ab0794276120b41741e9083b5325aa7be9411be8226b8d62591692693fe1b3f4302dc2fbb0704d79c9b227f76ee319e57b9
|
7
|
+
data.tar.gz: 2ed1a02b7bfd2d06bdd87b0e91fa6d1505d9d8d877461787ea431f0931acc2ae83eec795dbde832afa0cbb674113ae83442c47486d36e747a9333bf2cecf9282
|
data/Changelog.md
CHANGED
@@ -2,6 +2,9 @@
|
|
2
2
|
|
3
3
|
Below is a complete listing of changes for each revision of HighLine.
|
4
4
|
|
5
|
+
### 2.0.0-develop.14 / 2017-11-21
|
6
|
+
* PR #222 / I #221 - Fix inconsistent behaviour when using agree with readline (@abinoam, @ailisp)
|
7
|
+
|
5
8
|
### 2.0.0-develop.13 / 2017-11-05
|
6
9
|
* PR #219 - Make possible to use a callable as response (@abinoam)
|
7
10
|
|
data/lib/highline.rb
CHANGED
data/lib/highline/question.rb
CHANGED
@@ -575,7 +575,7 @@ class HighLine
|
|
575
575
|
# @param highline [HighLine] context
|
576
576
|
# @return [void]
|
577
577
|
def show_question(highline)
|
578
|
-
highline.say(self)
|
578
|
+
highline.say(self)
|
579
579
|
end
|
580
580
|
|
581
581
|
# Returns an echo string that is adequate for this Question settings.
|
data/lib/highline/terminal.rb
CHANGED
@@ -98,9 +98,7 @@ class HighLine
|
|
98
98
|
def get_line_with_readline(question, highline)
|
99
99
|
require "readline" # load only if needed
|
100
100
|
|
101
|
-
|
102
|
-
|
103
|
-
raw_answer = readline_read(question_string, question)
|
101
|
+
raw_answer = readline_read(question)
|
104
102
|
|
105
103
|
if !raw_answer && highline.track_eof?
|
106
104
|
raise EOFError, "The input stream is exhausted."
|
@@ -113,7 +111,7 @@ class HighLine
|
|
113
111
|
# @param prompt [String] Readline prompt
|
114
112
|
# @param question [HighLine::Question] question from where to get
|
115
113
|
# autocomplete candidate strings
|
116
|
-
def readline_read(
|
114
|
+
def readline_read(question)
|
117
115
|
# prep auto-completion
|
118
116
|
unless question.selection.empty?
|
119
117
|
Readline.completion_proc = lambda do |str|
|
@@ -126,7 +124,7 @@ class HighLine
|
|
126
124
|
$VERBOSE = nil
|
127
125
|
|
128
126
|
raw_answer = run_preserving_stty do
|
129
|
-
Readline.readline(
|
127
|
+
Readline.readline("", true)
|
130
128
|
end
|
131
129
|
|
132
130
|
$VERBOSE = old_verbose
|
data/lib/highline/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: highline
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 2.0.0.pre.develop.
|
4
|
+
version: 2.0.0.pre.develop.14
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- James Edward Gray II
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2017-11-
|
11
|
+
date: 2017-11-22 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|