highline 1.0.0 → 1.0.1

Sign up to get free protection for your applications and to get access to all the features.
data/CHANGELOG CHANGED
@@ -2,6 +2,11 @@
2
2
 
3
3
  Below is a complete listing of changes for each revision of HighLine.
4
4
 
5
+ == 1.0.1
6
+
7
+ * Minor bug fix: Moved help initialization to before response building, so help
8
+ would show up in the default responses.
9
+
5
10
  == 1.0.0
6
11
 
7
12
  * Fixed documentation typo pointed out by Gavin Kistner.
data/Rakefile CHANGED
@@ -32,7 +32,7 @@ end
32
32
 
33
33
  spec = Gem::Specification.new do |spec|
34
34
  spec.name = "highline"
35
- spec.version = "1.0.0"
35
+ spec.version = "1.0.1"
36
36
  spec.platform = Gem::Platform::RUBY
37
37
  spec.summary = "HighLine is a high-level line oriented console interface."
38
38
  spec.files = Dir.glob("{examples,lib,test}/**/*.rb").
@@ -53,14 +53,13 @@ loop do
53
53
  menu.layout = :menu_only
54
54
 
55
55
  menu.shell = true
56
- menu.case = :capitalize
57
56
 
58
- menu.choice(:Load, "Load a file.") do |command, details|
57
+ menu.choice(:load, "Load a file.") do |command, details|
59
58
  say("Loading file with options: #{details}...")
60
59
  end
61
- menu.choice(:Save, "Save a file.") do |command, details|
60
+ menu.choice(:save, "Save a file.") do |command, details|
62
61
  say("Saving file with options: #{details}...")
63
62
  end
64
- menu.choice(:Quit, "Exit program.") { exit }
63
+ menu.choice(:quit, "Exit program.") { exit }
65
64
  end
66
65
  end
@@ -272,7 +272,7 @@ class HighLine
272
272
 
273
273
  #
274
274
  # This method is a utility for quickly and easily laying out lists. It can
275
- # be accessed within ERb replacments of any text that will be sent to the
275
+ # be accessed within ERb replacements of any text that will be sent to the
276
276
  # user.
277
277
  #
278
278
  # The only required parameter is _items_, which should be the Array of items
@@ -284,7 +284,7 @@ class HighLine
284
284
  # number of columns to be used. When absent,
285
285
  # columns will be determined based on _wrap_at_
286
286
  # or a default of 80 characters.
287
- # <tt>:columns_down</tt>:: Indentical to <tt>:columns_across</tt>, save
287
+ # <tt>:columns_down</tt>:: Identical to <tt>:columns_across</tt>, save
288
288
  # flow goes down.
289
289
  # <tt>:inline</tt>:: All _items_ are placed on a single line. The
290
290
  # last two _items_ are separated by _option_ or
@@ -49,8 +49,8 @@ class HighLine
49
49
 
50
50
  yield self if block_given?
51
51
 
52
- update_responses # rebuild responses based on our settings
53
52
  init_help if @shell and not @help.empty?
53
+ update_responses # rebuild responses based on our settings
54
54
  end
55
55
 
56
56
  #
metadata CHANGED
@@ -3,7 +3,7 @@ rubygems_version: 0.8.10
3
3
  specification_version: 1
4
4
  name: highline
5
5
  version: !ruby/object:Gem::Version
6
- version: 1.0.0
6
+ version: 1.0.1
7
7
  date: 2005-07-07
8
8
  summary: HighLine is a high-level line oriented console interface.
9
9
  require_paths: