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.
Files changed (4) hide show
  1. data/NEWS.md +5 -0
  2. data/lib/cri.rb +1 -1
  3. data/lib/cri/command.rb +1 -1
  4. metadata +2 -2
data/NEWS.md CHANGED
@@ -1,6 +1,11 @@
1
1
  Cri News
2
2
  ========
3
3
 
4
+ 2.2.1
5
+ -----
6
+
7
+ * Made command help sort subcommands
8
+
4
9
  2.2.0
5
10
  -----
6
11
 
data/lib/cri.rb CHANGED
@@ -17,7 +17,7 @@ module Cri
17
17
  end
18
18
 
19
19
  # The current Cri version.
20
- VERSION = '2.2.0'
20
+ VERSION = '2.2.1'
21
21
 
22
22
  autoload 'Command', 'cri/command'
23
23
  autoload 'CommandDSL', 'cri/command_dsl'
@@ -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.0
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-02-19 00:00:00.000000000 Z
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.