cri 2.2.0 → 2.2.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/NEWS.md +5 -0
- data/lib/cri.rb +1 -1
- data/lib/cri/command.rb +1 -1
- metadata +2 -2
data/NEWS.md
CHANGED
data/lib/cri.rb
CHANGED
data/lib/cri/command.rb
CHANGED
|
@@ -327,7 +327,7 @@ module Cri
|
|
|
327
327
|
text << (self.supercommand ? 'subcommands' : 'commands') << ":\n"
|
|
328
328
|
text << "\n"
|
|
329
329
|
length = self.commands.inject(0) { |m,c| [ m, c.name.size ].max }
|
|
330
|
-
self.commands.each do |cmd|
|
|
330
|
+
self.commands.sort_by { |cmd| cmd.name }.each do |cmd|
|
|
331
331
|
text << sprintf(" %-#{length+4}s %s\n",
|
|
332
332
|
cmd.name,
|
|
333
333
|
cmd.summary)
|
metadata
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: cri
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 2.2.
|
|
4
|
+
version: 2.2.1
|
|
5
5
|
prerelease:
|
|
6
6
|
platform: ruby
|
|
7
7
|
authors:
|
|
@@ -9,7 +9,7 @@ authors:
|
|
|
9
9
|
autorequire:
|
|
10
10
|
bindir: bin
|
|
11
11
|
cert_chain: []
|
|
12
|
-
date: 2012-
|
|
12
|
+
date: 2012-03-17 00:00:00.000000000 Z
|
|
13
13
|
dependencies: []
|
|
14
14
|
description: Cri allows building easy-to-use commandline interfaces with support for
|
|
15
15
|
subcommands.
|