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.
@@ -0,0 +1,13 @@
1
+ require 'dnapi/components/metadata'
2
+
3
+ module DNApi
4
+ module Components
5
+ class AppMetadata < Metadata
6
+ include Component
7
+
8
+ key :app_metadata
9
+
10
+ belongs_to App
11
+ end
12
+ end
13
+ end
@@ -0,0 +1,13 @@
1
+ require 'dnapi/components/metadata'
2
+
3
+ module DNApi
4
+ module Components
5
+ class EnvironmentMetadata < Metadata
6
+ include Component
7
+
8
+ key :environment_metadata
9
+
10
+ belongs_to Environment
11
+ end
12
+ end
13
+ end
@@ -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
@@ -11,7 +11,7 @@ module DNApi
11
11
 
12
12
  NAME = 'Node.js'.freeze
13
13
  VERSION = '0.6'.freeze
14
- PATCH_LEVEL = '1'.freeze
14
+ PATCH_LEVEL = '8'.freeze
15
15
 
16
16
  def self.label
17
17
  "#{NAME} - #{version}"
@@ -153,7 +153,7 @@ module DNApi
153
153
 
154
154
  class JRuby < RubyVersion
155
155
  NAME = 'JRuby'.freeze
156
- VERSION = '1.6.5.1'.freeze
156
+ VERSION = '1.6.6'.freeze
157
157
  PATCH_LEVEL = nil
158
158
  RUBYGEMS_VERSION = '1.5.1'.freeze
159
159
 
@@ -10,7 +10,7 @@ module DNApi
10
10
 
11
11
  NAME = 'V8'.freeze
12
12
  VERSION = '3.6'.freeze
13
- PATCH_LEVEL = '6.7'.freeze
13
+ PATCH_LEVEL = '6.19'.freeze
14
14
 
15
15
  def self.label
16
16
  "#{NAME} - #{version}"
@@ -1,3 +1,3 @@
1
1
  module DNApi
2
- VERSION = '1.1.85.php'
2
+ VERSION = '1.1.85'
3
3
  end
@@ -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.1'
12
- @nodejs.label.should == 'Node.js - 0.6.1'
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 == '1' }
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.5.1 #{jruby.compat_version}"
285
- @ruby.label.should == "JRuby 1.6.5.1 #{jruby.compat_version}"
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.5.1'
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: 961239177
5
- prerelease: true
4
+ hash: 185
5
+ prerelease:
6
6
  segments:
7
7
  - 1
8
8
  - 1
9
9
  - 85
10
- - php
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 -07: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.3.7
162
+ rubygems_version: 1.8.6
163
163
  signing_key:
164
164
  specification_version: 3
165
165
  summary: API for chef DNA.