dnapi 1.1.85.php → 1.1.85
Sign up to get free protection for your applications and to get access to all the features.
- data/lib/dnapi/components/app_metadata.rb +13 -0
- data/lib/dnapi/components/environment_metadata.rb +13 -0
- data/lib/dnapi/components/metadata.rb +22 -0
- data/lib/dnapi/components/nodejs.rb +1 -1
- data/lib/dnapi/components/ruby.rb +1 -1
- data/lib/dnapi/components/v8.rb +1 -1
- data/lib/dnapi/version.rb +1 -1
- data/spec/components/nodejs_spec.rb +3 -3
- data/spec/components/ruby_spec.rb +3 -3
- metadata +8 -8
@@ -0,0 +1,22 @@
|
|
1
|
+
require 'ostruct'
|
2
|
+
|
3
|
+
module DNApi
|
4
|
+
module Components
|
5
|
+
class Metadata < OpenStruct
|
6
|
+
include Component
|
7
|
+
|
8
|
+
desc "Adds arbitrary data to the DNA. DO UNDER NO CIRCUMSTANCE ADD ANY VALIDATION TO THIS!"
|
9
|
+
|
10
|
+
def [](key)
|
11
|
+
self.send(key)
|
12
|
+
end
|
13
|
+
|
14
|
+
|
15
|
+
def to_json(*args)
|
16
|
+
vals = @table.clone
|
17
|
+
vals.delete :parent
|
18
|
+
JSON.dump(({:key => key}).merge(vals))
|
19
|
+
end
|
20
|
+
end
|
21
|
+
end
|
22
|
+
end
|
data/lib/dnapi/components/v8.rb
CHANGED
data/lib/dnapi/version.rb
CHANGED
@@ -8,8 +8,8 @@ describe DNApi::Components::NodeJS do
|
|
8
8
|
|
9
9
|
describe "#label" do
|
10
10
|
it "should have the right label" do
|
11
|
-
described_class.label.should == 'Node.js - 0.6.
|
12
|
-
@nodejs.label.should == 'Node.js - 0.6.
|
11
|
+
described_class.label.should == 'Node.js - 0.6.8'
|
12
|
+
@nodejs.label.should == 'Node.js - 0.6.8'
|
13
13
|
end
|
14
14
|
end
|
15
15
|
|
@@ -22,6 +22,6 @@ describe DNApi::Components::NodeJS do
|
|
22
22
|
end
|
23
23
|
|
24
24
|
describe "#patch_level" do
|
25
|
-
it { @nodejs.patch_level.should == '
|
25
|
+
it { @nodejs.patch_level.should == '8' }
|
26
26
|
end
|
27
27
|
end
|
@@ -281,8 +281,8 @@ describe 'JRuby' do
|
|
281
281
|
|
282
282
|
describe "#label" do
|
283
283
|
it "should have the right label" do
|
284
|
-
described_class.label.should == "JRuby 1.6.
|
285
|
-
@ruby.label.should == "JRuby 1.6.
|
284
|
+
described_class.label.should == "JRuby 1.6.6 #{jruby.compat_version}"
|
285
|
+
@ruby.label.should == "JRuby 1.6.6 #{jruby.compat_version}"
|
286
286
|
end
|
287
287
|
end
|
288
288
|
|
@@ -294,7 +294,7 @@ describe 'JRuby' do
|
|
294
294
|
|
295
295
|
describe "#version" do
|
296
296
|
it 'is 1.6.5.1' do
|
297
|
-
@ruby.version.should == '1.6.
|
297
|
+
@ruby.version.should == '1.6.6'
|
298
298
|
end
|
299
299
|
end
|
300
300
|
|
metadata
CHANGED
@@ -1,14 +1,13 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: dnapi
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
hash:
|
5
|
-
prerelease:
|
4
|
+
hash: 185
|
5
|
+
prerelease:
|
6
6
|
segments:
|
7
7
|
- 1
|
8
8
|
- 1
|
9
9
|
- 85
|
10
|
-
|
11
|
-
version: 1.1.85.php
|
10
|
+
version: 1.1.85
|
12
11
|
platform: ruby
|
13
12
|
authors:
|
14
13
|
- Engine Yard
|
@@ -16,8 +15,7 @@ autorequire:
|
|
16
15
|
bindir: bin
|
17
16
|
cert_chain: []
|
18
17
|
|
19
|
-
date: 2011-07-26 00:00:00
|
20
|
-
default_executable:
|
18
|
+
date: 2011-07-26 00:00:00 Z
|
21
19
|
dependencies:
|
22
20
|
- !ruby/object:Gem::Dependency
|
23
21
|
name: json
|
@@ -76,9 +74,12 @@ files:
|
|
76
74
|
- lib/dnapi/component_possessor.rb
|
77
75
|
- lib/dnapi/components/addons.rb
|
78
76
|
- lib/dnapi/components/apache.rb
|
77
|
+
- lib/dnapi/components/app_metadata.rb
|
79
78
|
- lib/dnapi/components/cloudkick.rb
|
80
79
|
- lib/dnapi/components/encrypted_backup.rb
|
80
|
+
- lib/dnapi/components/environment_metadata.rb
|
81
81
|
- lib/dnapi/components/exim.rb
|
82
|
+
- lib/dnapi/components/metadata.rb
|
82
83
|
- lib/dnapi/components/monitor.rb
|
83
84
|
- lib/dnapi/components/nagios.rb
|
84
85
|
- lib/dnapi/components/newrelic.rb
|
@@ -127,7 +128,6 @@ files:
|
|
127
128
|
- spec/spec_helper.rb
|
128
129
|
- spec/stack_spec.rb
|
129
130
|
- spec/struct_spec.rb
|
130
|
-
has_rdoc: true
|
131
131
|
homepage: http://github.com/engineyard/dnapi
|
132
132
|
licenses: []
|
133
133
|
|
@@ -159,7 +159,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
159
159
|
requirements: []
|
160
160
|
|
161
161
|
rubyforge_project:
|
162
|
-
rubygems_version: 1.
|
162
|
+
rubygems_version: 1.8.6
|
163
163
|
signing_key:
|
164
164
|
specification_version: 3
|
165
165
|
summary: API for chef DNA.
|