rna 0.3.7 → 0.3.8

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/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/rna.rb CHANGED
@@ -4,8 +4,9 @@ require 'yaml'
4
4
  require 'aws-sdk'
5
5
  require 'pp'
6
6
 
7
- $:.unshift File.dirname(__FILE__)
7
+ $:.unshift File.expand_path('../', __FILE__)
8
8
  require 'node'
9
+ require 'ext/hash'
9
10
  require 'rna/version'
10
11
  require 'rna/cli'
11
12
  require 'rna/task'
data/lib/rna/cli.rb CHANGED
@@ -21,8 +21,10 @@ Builds the node.json files based on config/rna.rb and writes them to s3 based on
21
21
  EOL
22
22
  method_option :output, :aliases => '-o', :desc => "specify where to output the generated files to", :default => 'filesystem'
23
23
  method_option :clean, :type => :boolean, :aliases => "-c", :desc => "remove all output files before generating"
24
+ method_option :verbose, :type => :boolean, :aliases => "-v", :desc => "show files being generated"
24
25
  def generate
25
- Rna::Task.generate(options.dup.merge(:verbose => true))
26
+ Rna::Task.generate(options)
27
+ puts "Rna files generated"
26
28
  end
27
29
  end
28
30
 
data/lib/rna/version.rb CHANGED
@@ -1,3 +1,3 @@
1
1
  module Rna
2
- VERSION = '0.3.7'
2
+ VERSION = '0.3.8'
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: rna
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.3.7
4
+ version: 0.3.8
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-11 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
@@ -190,6 +190,7 @@ files:
190
190
  - README.md
191
191
  - Rakefile
192
192
  - bin/rna
193
+ - lib/ext/hash.rb
193
194
  - lib/files/Guardfile
194
195
  - lib/files/rna.rb
195
196
  - lib/files/s3.yml