highline 1.2.4 → 1.2.5

Sign up to get free protection for your applications and to get access to all the features.
Files changed (3) hide show
  1. data/CHANGELOG +4 -0
  2. data/lib/highline.rb +2 -2
  3. metadata +2 -2
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.2.5
6
+
7
+ * Really fixed the bug I tried to fix in 1.2.4.
8
+
5
9
  == 1.2.4
6
10
 
7
11
  * Fixed a crash causing bug when using menus, reported by Patrick Hof.
@@ -28,7 +28,7 @@ require "abbrev"
28
28
  #
29
29
  class HighLine
30
30
  # The version of the installed library.
31
- VERSION = "1.2.4".freeze
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.1
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.4
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: