highline 1.2.4 → 1.2.5
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.
- data/CHANGELOG +4 -0
- data/lib/highline.rb +2 -2
- metadata +2 -2
data/CHANGELOG
CHANGED
data/lib/highline.rb
CHANGED
@@ -28,7 +28,7 @@ require "abbrev"
|
|
28
28
|
#
|
29
29
|
class HighLine
|
30
30
|
# The version of the installed library.
|
31
|
-
VERSION = "1.2.
|
31
|
+
VERSION = "1.2.5".freeze
|
32
32
|
|
33
33
|
# An internal HighLine error. User code does not need to trap this.
|
34
34
|
class QuestionError < StandardError
|
@@ -243,7 +243,7 @@ class HighLine
|
|
243
243
|
# Set _answer_type_ so we can double as the Question for ask().
|
244
244
|
@menu.answer_type = if @menu.shell
|
245
245
|
lambda do |command| # shell-style selection
|
246
|
-
first_word = command.to_s.split.first
|
246
|
+
first_word = command.to_s.split.first || ""
|
247
247
|
|
248
248
|
options = @menu.options
|
249
249
|
options.extend(OptionParser::Completion)
|
metadata
CHANGED
@@ -1,9 +1,9 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
|
-
rubygems_version: 0.9.
|
2
|
+
rubygems_version: 0.9.0
|
3
3
|
specification_version: 1
|
4
4
|
name: highline
|
5
5
|
version: !ruby/object:Gem::Version
|
6
|
-
version: 1.2.
|
6
|
+
version: 1.2.5
|
7
7
|
date: 2007-01-17 00:00:00 -06:00
|
8
8
|
summary: HighLine is a high-level command-line IO library.
|
9
9
|
require_paths:
|