highline 1.0.0 → 1.0.1
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 +5 -0
- data/Rakefile +1 -1
- data/examples/menus.rb +3 -4
- data/lib/highline.rb +2 -2
- data/lib/highline/menu.rb +1 -1
- metadata +1 -1
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.
|
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").
|
data/examples/menus.rb
CHANGED
@@ -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(:
|
57
|
+
menu.choice(:load, "Load a file.") do |command, details|
|
59
58
|
say("Loading file with options: #{details}...")
|
60
59
|
end
|
61
|
-
menu.choice(:
|
60
|
+
menu.choice(:save, "Save a file.") do |command, details|
|
62
61
|
say("Saving file with options: #{details}...")
|
63
62
|
end
|
64
|
-
menu.choice(:
|
63
|
+
menu.choice(:quit, "Exit program.") { exit }
|
65
64
|
end
|
66
65
|
end
|
data/lib/highline.rb
CHANGED
@@ -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
|
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>::
|
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
|
data/lib/highline/menu.rb
CHANGED