lono 0.2.0 → 0.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/README.md CHANGED
@@ -90,7 +90,7 @@ Here's how you would call it in the template.
90
90
  }
91
91
  ```
92
92
 
93
- #### Breaking up config/lono.rb
93
+ ## Breaking up config/lono.rb
94
94
 
95
95
  If you have a lot of templates, the config/lono.rb file can get unwieldy long. You can break up the lono.rb file and put template defintions in the config/lono directory. Any file in this directory will be automatically loaded.
96
96
 
data/lib/ext/hash.rb ADDED
@@ -0,0 +1,11 @@
1
+ class Hash
2
+ alias hkeys keys
3
+
4
+ def keys
5
+ hkeys.sort {|a,b| a.to_s <=> b.to_s }
6
+ end
7
+
8
+ def each
9
+ keys.each { |k| yield k, self[k] }
10
+ end
11
+ end
data/lib/lono/version.rb CHANGED
@@ -1,3 +1,3 @@
1
1
  module Lono
2
- VERSION = "0.2.0"
2
+ VERSION = "0.2.1"
3
3
  end
data/lib/lono.rb CHANGED
@@ -1,6 +1,7 @@
1
1
  require 'json'
2
2
 
3
3
  $:.unshift File.dirname(__FILE__)
4
+ require 'ext/hash'
4
5
  require 'lono/cli'
5
6
  require 'lono/task'
6
7
  require 'lono/dsl'
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: lono
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.0
4
+ version: 0.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: 2013-01-20 00:00:00.000000000 Z
12
+ date: 2013-02-21 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: rake
@@ -205,6 +205,7 @@ files:
205
205
  - README.md
206
206
  - Rakefile
207
207
  - bin/lono
208
+ - lib/ext/hash.rb
208
209
  - lib/files/Guardfile
209
210
  - lib/files/config/lono.rb
210
211
  - lib/files/templates/app.json.erb