rna 0.4.1 → 0.4.2
Sign up to get free protection for your applications and to get access to all the features.
- data/.gitignore +2 -0
- data/.ruby-version +1 -1
- data/lib/ext/hash.rb +9 -9
- data/lib/rna/version.rb +1 -1
- data/spec/lib/rna_spec.rb +7 -7
- metadata +3 -4
- data/config/s3.yml +0 -4
data/.gitignore
CHANGED
data/.ruby-version
CHANGED
@@ -1 +1 @@
|
|
1
|
-
1.9.3
|
1
|
+
1.9.3
|
data/lib/ext/hash.rb
CHANGED
@@ -1,11 +1,11 @@
|
|
1
|
-
class Hash
|
2
|
-
|
1
|
+
# class Hash
|
2
|
+
# alias hkeys keys
|
3
3
|
|
4
|
-
|
5
|
-
|
6
|
-
|
4
|
+
# def keys
|
5
|
+
# hkeys.sort {|a,b| a.to_s <=> b.to_s }
|
6
|
+
# end
|
7
7
|
|
8
|
-
|
9
|
-
|
10
|
-
|
11
|
-
end
|
8
|
+
# def each
|
9
|
+
# keys.each { |k| yield k, self[k] }
|
10
|
+
# end
|
11
|
+
# end
|
data/lib/rna/version.rb
CHANGED
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
|
114
|
-
File.exist?("#{@project}/output/prod-masta-android.json").should
|
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
|
122
|
-
File.exist?("#{@project}/output/prod-masta-android.json").should
|
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
|
158
|
-
File.exist?("#{@project}/config/rna.rb").should
|
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.
|
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:
|
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.
|
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