rna 0.4.0 → 0.4.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/Gemfile CHANGED
@@ -1,3 +1,3 @@
1
- source :rubygems
1
+ source "https://rubygems.org"
2
2
 
3
3
  gemspec
data/lib/rna/dsl.rb CHANGED
@@ -174,9 +174,7 @@ module Rna
174
174
 
175
175
  @data = {
176
176
  :name => name,
177
- :attributes => {
178
- :role => name
179
- },
177
+ :attributes => {},
180
178
  :includes => @@default_includes != name ? @@default_includes : nil,
181
179
  :output => true
182
180
  }
data/lib/rna/version.rb CHANGED
@@ -1,3 +1,3 @@
1
1
  module Rna
2
- VERSION = '0.4.0'
2
+ VERSION = '0.4.1'
3
3
  end
data/spec/lib/rna_spec.rb CHANGED
@@ -43,7 +43,6 @@ describe Rna do
43
43
  it "base.json should contain correct attributes" do
44
44
  @dsl.run
45
45
  base = JSON.load(IO.read("#{@project}/output/base.json"))
46
- base['role'].should == 'base'
47
46
  base['run_list'].should == ["role[base]"]
48
47
  end
49
48
 
@@ -57,7 +56,6 @@ describe Rna do
57
56
  it "prod-api-redis.json should contain base and settings attributes" do
58
57
  @dsl.run
59
58
  json = JSON.load(IO.read("#{@project}/output/prod-api-redis.json"))
60
- json['role'].should == 'prod-api-redis'
61
59
  json['run_list'].should == ["role[base]", "role[api_redis]"]
62
60
  json['framework_env'].should == 'production'
63
61
  json['deploy_code'].should == nil
@@ -66,7 +64,6 @@ describe Rna do
66
64
  it "prod-api-resque should contain inherited attributes" do
67
65
  @dsl.run
68
66
  json = JSON.load(IO.read("#{@project}/output/prod-api-resque.json"))
69
- json['role'].should == 'prod-api-resque'
70
67
  json['run_list'].should == ["role[base]","role[api_resque]"]
71
68
  json['deploy_code'].should == true
72
69
  json['framework_env'].should == 'production'
@@ -78,7 +75,6 @@ describe Rna do
78
75
  it "stag-api-redis.json should contain base and settings attributes and apply rules" do
79
76
  @dsl.run
80
77
  json = JSON.load(IO.read("#{@project}/output/stag-api-redis.json"))
81
- json['role'].should == 'stag-api-redis'
82
78
  json['run_list'].should == ["role[base]", "role[api_redis]"]
83
79
  json['deploy_code'].should == nil
84
80
  json['framework_env'].should == 'staging' # this is tests the rule
@@ -87,7 +83,6 @@ describe Rna do
87
83
  it "prod-api-app.json should contain base and settings attributes" do
88
84
  @dsl.run
89
85
  json = JSON.load(IO.read("#{@project}/output/prod-api-app.json"))
90
- json['role'].should == 'prod-api-app'
91
86
  json['run_list'].should == ["role[base]","role[api_app]"]
92
87
  json['deploy_code'].should == true
93
88
  json['framework_env'].should == 'production'
@@ -105,7 +100,6 @@ describe Rna do
105
100
  it "prod-api-app.json should contain pre and post rules" do
106
101
  @dsl.run
107
102
  json = JSON.load(IO.read("#{@project}/output/prod-api-app.json"))
108
- json['role'].should == 'prod-api-app'
109
103
  json['run_list'].should == ["role[base]","role[api_app]"]
110
104
  json['deploy_code'].should == true
111
105
  json['framework_env'].should == 'production'
@@ -148,7 +142,6 @@ describe Rna do
148
142
  raw = bucket.objects["#{config['folder']}/prod-api-app.json"].read
149
143
 
150
144
  json = JSON.load(raw)
151
- json['role'].should == 'prod-api-app'
152
145
  json['run_list'].should == ["role[base]","role[api_app]"]
153
146
  json['deploy_code'].should == true
154
147
  json['framework_env'].should == 'production'
@@ -171,7 +164,6 @@ describe Rna do
171
164
  :project_root => @project
172
165
  )
173
166
  json = JSON.load(IO.read("#{@project}/output/prod-api-app.json"))
174
- json['role'].should == 'prod-api-app'
175
167
  json['run_list'].should == ["role[base]","role[api_app]"]
176
168
  json['deploy_code'].should == true
177
169
  json['framework_env'].should == 'production'
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.0
4
+ version: 0.4.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-03-05 00:00:00.000000000 Z
12
+ date: 2013-03-24 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: rake
@@ -249,7 +249,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
249
249
  version: '0'
250
250
  requirements: []
251
251
  rubyforge_project:
252
- rubygems_version: 1.8.24
252
+ rubygems_version: 1.8.25
253
253
  signing_key:
254
254
  specification_version: 3
255
255
  summary: Rna is a simple DSL for generating node.json files required by chef-solo.