calamum 1.0.1 → 1.0.2

Sign up to get free protection for your applications and to get access to all the features.
@@ -8,7 +8,7 @@ class Calamum::DefinitionParser
8
8
  end
9
9
 
10
10
  def get_resources
11
- @definition['resources']
11
+ Calamum::Config[:sort]? @definition['resources'].sort : @definition['resources']
12
12
  end
13
13
 
14
14
  def get_name
@@ -54,6 +54,13 @@ class Calamum::Runner
54
54
  :description => "The distination path for the generated doc directory",
55
55
  :default => ENV['HOME']
56
56
 
57
+ option :sort,
58
+ :short => "-s",
59
+ :long => "--sort",
60
+ :description => "Sort the resources alphabetically",
61
+ :boolean => true,
62
+ :default => false
63
+
57
64
  def run
58
65
  load_options
59
66
  Calamum::Config.merge!(config)
@@ -1,3 +1,3 @@
1
1
  module Calamum
2
- VERSION = "1.0.1"
2
+ VERSION = "1.0.2"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: calamum
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.1
4
+ version: 1.0.2
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: 2013-04-02 00:00:00.000000000 Z
12
+ date: 2013-04-09 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: activemodel