highline 1.6.6 → 1.6.7
Sign up to get free protection for your applications and to get access to all the features.
- data/CHANGELOG +4 -0
- data/lib/highline.rb +3 -3
- metadata +1 -1
data/CHANGELOG
CHANGED
@@ -2,6 +2,10 @@
|
|
2
2
|
|
3
3
|
Below is a complete listing of changes for each revision of HighLine.
|
4
4
|
|
5
|
+
== 1.6.7
|
6
|
+
|
7
|
+
* Fixed bug introduced in 1.6.6 attempted fix (by Aaron Gifford).
|
8
|
+
|
5
9
|
== 1.6.6
|
6
10
|
|
7
11
|
* Fixed old style references causing <tt>HighLine::String</tt> errors (by Aaron Gifford).
|
data/lib/highline.rb
CHANGED
@@ -30,7 +30,7 @@ require "highline/style"
|
|
30
30
|
#
|
31
31
|
class HighLine
|
32
32
|
# The version of the installed library.
|
33
|
-
VERSION = "1.6.
|
33
|
+
VERSION = "1.6.7".freeze
|
34
34
|
|
35
35
|
# An internal HighLine error. User code does not need to trap this.
|
36
36
|
class QuestionError < StandardError
|
@@ -820,7 +820,7 @@ class HighLine
|
|
820
820
|
restore_mode if stty
|
821
821
|
end
|
822
822
|
if @question.overwrite
|
823
|
-
@output.print("\r#{HighLine.Style(
|
823
|
+
@output.print("\r#{HighLine.Style(:erase_line).code}")
|
824
824
|
@output.flush
|
825
825
|
else
|
826
826
|
say("\n")
|
@@ -833,7 +833,7 @@ class HighLine
|
|
833
833
|
else
|
834
834
|
response = get_character(@input).chr
|
835
835
|
if @question.overwrite
|
836
|
-
@output.print("\r#{HighLine.Style(
|
836
|
+
@output.print("\r#{HighLine.Style(:erase_line).code}")
|
837
837
|
@output.flush
|
838
838
|
else
|
839
839
|
echo = if @question.echo == true
|