rna 0.4.1 → 0.4.2

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/.gitignore CHANGED
@@ -18,3 +18,5 @@ test/version_tmp
18
18
  tmp
19
19
  output
20
20
  spec/project
21
+ config/aws.yml
22
+ config/s3.yml
data/.ruby-version CHANGED
@@ -1 +1 @@
1
- 1.9.3@rna
1
+ 1.9.3
data/lib/ext/hash.rb CHANGED
@@ -1,11 +1,11 @@
1
- class Hash
2
- alias hkeys keys
1
+ # class Hash
2
+ # alias hkeys keys
3
3
 
4
- def keys
5
- hkeys.sort {|a,b| a.to_s <=> b.to_s }
6
- end
4
+ # def keys
5
+ # hkeys.sort {|a,b| a.to_s <=> b.to_s }
6
+ # end
7
7
 
8
- def each
9
- keys.each { |k| yield k, self[k] }
10
- end
11
- end
8
+ # def each
9
+ # keys.each { |k| yield k, self[k] }
10
+ # end
11
+ # end
data/lib/rna/version.rb CHANGED
@@ -1,3 +1,3 @@
1
1
  module Rna
2
- VERSION = '0.4.1'
2
+ VERSION = '0.4.2'
3
3
  end
data/spec/lib/rna_spec.rb CHANGED
@@ -8,7 +8,7 @@ describe Rna do
8
8
  end
9
9
 
10
10
  after(:each) do
11
- FileUtils.rm_rf("#{@project}/output")
11
+ # FileUtils.rm_rf("#{@project}/output")
12
12
  end
13
13
 
14
14
  describe "cli specs" do
@@ -110,16 +110,16 @@ describe Rna do
110
110
 
111
111
  it "masta-app should not generate output file" do
112
112
  @dsl.run
113
- File.exist?("#{@project}/output/masta-app.json").should be_false
114
- File.exist?("#{@project}/output/prod-masta-android.json").should be_true
113
+ File.exist?("#{@project}/output/masta-app.json").should == false
114
+ File.exist?("#{@project}/output/prod-masta-android.json").should == true
115
115
  json = JSON.load(IO.read("#{@project}/output/prod-masta-android.json"))
116
116
  json['masta_app'].should == 123
117
117
  end
118
118
 
119
119
  it "should be able to read shared settings" do
120
120
  @dsl.run
121
- File.exist?("#{@project}/output/masta-app.json").should be_false
122
- File.exist?("#{@project}/output/prod-masta-android.json").should be_true
121
+ File.exist?("#{@project}/output/masta-app.json").should == false
122
+ File.exist?("#{@project}/output/prod-masta-android.json").should == true
123
123
  json = JSON.load(IO.read("#{@project}/output/prod-masta-android.json"))
124
124
  json['relayhost'].should == "smtp.sendgrid.net"
125
125
  json = JSON.load(IO.read("#{@project}/output/prod-api-app.json"))
@@ -154,8 +154,8 @@ describe Rna do
154
154
  end if ENV['S3'] == '1'
155
155
 
156
156
  it "task init should set up project" do
157
- File.exist?("#{@project}/config/s3.example.yml").should be_true
158
- File.exist?("#{@project}/config/rna.rb").should be_true
157
+ File.exist?("#{@project}/config/s3.example.yml").should == true
158
+ File.exist?("#{@project}/config/rna.rb").should == true
159
159
  end
160
160
 
161
161
  it "task build should generate node.json files" do
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.4.1
4
+ version: 0.4.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-03-24 00:00:00.000000000 Z
12
+ date: 2015-04-16 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: rake
@@ -210,7 +210,6 @@ files:
210
210
  - config/rna/api.rb
211
211
  - config/rna/blog.rb
212
212
  - config/s3.example.yml
213
- - config/s3.yml
214
213
  - lib/ext/hash.rb
215
214
  - lib/mash.rb
216
215
  - lib/node.rb
@@ -249,7 +248,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
249
248
  version: '0'
250
249
  requirements: []
251
250
  rubyforge_project:
252
- rubygems_version: 1.8.25
251
+ rubygems_version: 1.8.23
253
252
  signing_key:
254
253
  specification_version: 3
255
254
  summary: Rna is a simple DSL for generating node.json files required by chef-solo.
data/config/s3.yml DELETED
@@ -1,4 +0,0 @@
1
- access_key_id: 0JABDCSHH7HR4CEMM6G2
2
- secret_access_key: eQavuSsZRfmSiY1noIFDBy29jARbsqjHBWvPFtDK
3
- bucket: br-testing
4
- folder: chef/rna