dnapi 1.1.94 → 1.1.97
Sign up to get free protection for your applications and to get access to all the features.
- data/lib/dnapi/components/ruby.rb +6 -6
- data/lib/dnapi/version.rb +1 -1
- data/spec/components/ruby_spec.rb +75 -41
- metadata +85 -71
@@ -85,11 +85,11 @@ module DNApi
|
|
85
85
|
|
86
86
|
NAME = 'REE'.freeze
|
87
87
|
VERSION = '1.8.7'.freeze
|
88
|
-
PATCH_LEVEL = '
|
88
|
+
PATCH_LEVEL = '2012.02'.freeze
|
89
89
|
RUBYGEMS_VERSION = '1.5.2'.freeze
|
90
90
|
|
91
91
|
def self.label
|
92
|
-
|
92
|
+
self::NAME
|
93
93
|
end
|
94
94
|
|
95
95
|
def ruby_version
|
@@ -184,7 +184,7 @@ module DNApi
|
|
184
184
|
key :jruby_187
|
185
185
|
|
186
186
|
def self.compat_version
|
187
|
-
'(ruby-1.8.7
|
187
|
+
'(ruby-1.8.7)'
|
188
188
|
end
|
189
189
|
end
|
190
190
|
|
@@ -198,7 +198,7 @@ module DNApi
|
|
198
198
|
key :jruby_192
|
199
199
|
|
200
200
|
def self.compat_version
|
201
|
-
'(ruby-1.9.2
|
201
|
+
'(ruby-1.9.2)'
|
202
202
|
end
|
203
203
|
end
|
204
204
|
|
@@ -218,7 +218,7 @@ module DNApi
|
|
218
218
|
RUBYGEMS_VERSION = nil
|
219
219
|
|
220
220
|
def self.label
|
221
|
-
"#{self::NAME}
|
221
|
+
"#{self::NAME} (ruby-1.8.7)"
|
222
222
|
end
|
223
223
|
|
224
224
|
def ruby_version
|
@@ -254,7 +254,7 @@ module DNApi
|
|
254
254
|
RUBYGEMS_VERSION = nil
|
255
255
|
|
256
256
|
def self.label
|
257
|
-
"#{self::NAME}
|
257
|
+
"#{self::NAME} (ruby-1.9.3)"
|
258
258
|
end
|
259
259
|
|
260
260
|
def self.compat_version
|
data/lib/dnapi/version.rb
CHANGED
@@ -84,8 +84,8 @@ describe DNApi::Components::REE do
|
|
84
84
|
|
85
85
|
describe "#label" do
|
86
86
|
it "should have the right label" do
|
87
|
-
described_class.label.should == 'REE
|
88
|
-
@ruby.label.should == 'REE
|
87
|
+
described_class.label.should == 'REE'
|
88
|
+
@ruby.label.should == 'REE'
|
89
89
|
end
|
90
90
|
end
|
91
91
|
|
@@ -102,8 +102,8 @@ describe DNApi::Components::REE do
|
|
102
102
|
end
|
103
103
|
|
104
104
|
describe "#patch_level" do
|
105
|
-
it 'is
|
106
|
-
@ruby.patch_level.should == '
|
105
|
+
it 'is 2012.02' do
|
106
|
+
@ruby.patch_level.should == '2012.02'
|
107
107
|
end
|
108
108
|
end
|
109
109
|
|
@@ -204,8 +204,8 @@ describe DNApi::Components::Rubinius do
|
|
204
204
|
|
205
205
|
describe "#label" do
|
206
206
|
it "should have the right label" do
|
207
|
-
described_class.label.should == 'Rubinius
|
208
|
-
@ruby.label.should == 'Rubinius
|
207
|
+
described_class.label.should == 'Rubinius (ruby-1.8.7)'
|
208
|
+
@ruby.label.should == 'Rubinius (ruby-1.8.7)'
|
209
209
|
end
|
210
210
|
end
|
211
211
|
|
@@ -241,8 +241,8 @@ describe DNApi::Components::Rubinius19 do
|
|
241
241
|
|
242
242
|
describe "#label" do
|
243
243
|
it "should have the right label" do
|
244
|
-
described_class.label.should == 'Rubinius
|
245
|
-
@ruby.label.should == 'Rubinius
|
244
|
+
described_class.label.should == 'Rubinius (ruby-1.9.3)'
|
245
|
+
@ruby.label.should == 'Rubinius (ruby-1.9.3)'
|
246
246
|
end
|
247
247
|
end
|
248
248
|
|
@@ -271,44 +271,78 @@ describe DNApi::Components::Rubinius19 do
|
|
271
271
|
end
|
272
272
|
end
|
273
273
|
|
274
|
-
describe
|
275
|
-
|
276
|
-
|
277
|
-
|
278
|
-
|
279
|
-
@ruby = @environment.add_component(jruby.key_id)
|
280
|
-
end
|
274
|
+
describe DNApi::Components::JRuby187 do
|
275
|
+
before do
|
276
|
+
@environment = DNApi::Environment.new
|
277
|
+
@ruby = @environment.add_component(:jruby_187)
|
278
|
+
end
|
281
279
|
|
282
|
-
|
283
|
-
|
284
|
-
|
285
|
-
|
286
|
-
|
287
|
-
|
280
|
+
describe "#label" do
|
281
|
+
it "should have the right label" do
|
282
|
+
described_class.label.should == "JRuby 1.6.7 (ruby-1.8.7)"
|
283
|
+
@ruby.label.should == "JRuby 1.6.7 (ruby-1.8.7)"
|
284
|
+
end
|
285
|
+
end
|
288
286
|
|
289
|
-
|
290
|
-
|
291
|
-
|
292
|
-
|
293
|
-
|
287
|
+
describe "#name" do
|
288
|
+
it 'is JRuby' do
|
289
|
+
@ruby.name.should == 'JRuby'
|
290
|
+
end
|
291
|
+
end
|
294
292
|
|
295
|
-
|
296
|
-
|
297
|
-
|
298
|
-
|
299
|
-
|
293
|
+
describe "#version" do
|
294
|
+
it 'is the expected version' do
|
295
|
+
@ruby.version.should == '1.6.7'
|
296
|
+
end
|
297
|
+
end
|
300
298
|
|
301
|
-
|
302
|
-
|
303
|
-
|
304
|
-
|
305
|
-
|
299
|
+
describe "#patch_level" do
|
300
|
+
it 'is nil' do
|
301
|
+
@ruby.patch_level.should be_nil
|
302
|
+
end
|
303
|
+
end
|
306
304
|
|
307
|
-
|
308
|
-
|
309
|
-
|
310
|
-
|
311
|
-
|
305
|
+
describe "#rubygems_version" do
|
306
|
+
it 'is 1.5.1' do
|
307
|
+
@ruby.rubygems_version.should == '1.5.1'
|
308
|
+
end
|
309
|
+
end
|
310
|
+
end
|
311
|
+
|
312
|
+
describe DNApi::Components::JRuby192 do
|
313
|
+
before do
|
314
|
+
@environment = DNApi::Environment.new
|
315
|
+
@ruby = @environment.add_component(:jruby_192)
|
316
|
+
end
|
317
|
+
|
318
|
+
describe "#label" do
|
319
|
+
it "should have the right label" do
|
320
|
+
described_class.label.should == "JRuby 1.6.7 (ruby-1.9.2)"
|
321
|
+
@ruby.label.should == "JRuby 1.6.7 (ruby-1.9.2)"
|
322
|
+
end
|
323
|
+
end
|
324
|
+
|
325
|
+
describe "#name" do
|
326
|
+
it 'is JRuby' do
|
327
|
+
@ruby.name.should == 'JRuby'
|
328
|
+
end
|
329
|
+
end
|
330
|
+
|
331
|
+
describe "#version" do
|
332
|
+
it 'is the expected version' do
|
333
|
+
@ruby.version.should == '1.6.7'
|
334
|
+
end
|
335
|
+
end
|
336
|
+
|
337
|
+
describe "#patch_level" do
|
338
|
+
it 'is nil' do
|
339
|
+
@ruby.patch_level.should be_nil
|
340
|
+
end
|
341
|
+
end
|
342
|
+
|
343
|
+
describe "#rubygems_version" do
|
344
|
+
it 'is 1.5.1' do
|
345
|
+
@ruby.rubygems_version.should == '1.5.1'
|
312
346
|
end
|
313
347
|
end
|
314
348
|
end
|
metadata
CHANGED
@@ -1,87 +1,90 @@
|
|
1
|
-
--- !ruby/object:Gem::Specification
|
1
|
+
--- !ruby/object:Gem::Specification
|
2
2
|
name: dnapi
|
3
|
-
version: !ruby/object:Gem::Version
|
4
|
-
|
3
|
+
version: !ruby/object:Gem::Version
|
4
|
+
hash: 209
|
5
5
|
prerelease:
|
6
|
+
segments:
|
7
|
+
- 1
|
8
|
+
- 1
|
9
|
+
- 97
|
10
|
+
version: 1.1.97
|
6
11
|
platform: ruby
|
7
|
-
authors:
|
12
|
+
authors:
|
8
13
|
- Engine Yard
|
9
14
|
autorequire:
|
10
15
|
bindir: bin
|
11
16
|
cert_chain: []
|
12
|
-
|
13
|
-
|
14
|
-
|
17
|
+
|
18
|
+
date: 2012-07-19 00:00:00 Z
|
19
|
+
dependencies:
|
20
|
+
- !ruby/object:Gem::Dependency
|
15
21
|
name: json
|
16
|
-
requirement: !ruby/object:Gem::Requirement
|
17
|
-
none: false
|
18
|
-
requirements:
|
19
|
-
- - ! '>='
|
20
|
-
- !ruby/object:Gem::Version
|
21
|
-
version: '0'
|
22
|
-
type: :runtime
|
23
22
|
prerelease: false
|
24
|
-
|
25
|
-
none: false
|
26
|
-
requirements:
|
27
|
-
- - ! '>='
|
28
|
-
- !ruby/object:Gem::Version
|
29
|
-
version: '0'
|
30
|
-
- !ruby/object:Gem::Dependency
|
31
|
-
name: extlib
|
32
|
-
requirement: !ruby/object:Gem::Requirement
|
23
|
+
requirement: &id001 !ruby/object:Gem::Requirement
|
33
24
|
none: false
|
34
|
-
requirements:
|
35
|
-
- -
|
36
|
-
- !ruby/object:Gem::Version
|
37
|
-
|
25
|
+
requirements:
|
26
|
+
- - ">="
|
27
|
+
- !ruby/object:Gem::Version
|
28
|
+
hash: 3
|
29
|
+
segments:
|
30
|
+
- 0
|
31
|
+
version: "0"
|
38
32
|
type: :runtime
|
33
|
+
version_requirements: *id001
|
34
|
+
- !ruby/object:Gem::Dependency
|
35
|
+
name: extlib
|
39
36
|
prerelease: false
|
40
|
-
|
41
|
-
none: false
|
42
|
-
requirements:
|
43
|
-
- - ! '>='
|
44
|
-
- !ruby/object:Gem::Version
|
45
|
-
version: '0'
|
46
|
-
- !ruby/object:Gem::Dependency
|
47
|
-
name: sexp_processor
|
48
|
-
requirement: !ruby/object:Gem::Requirement
|
37
|
+
requirement: &id002 !ruby/object:Gem::Requirement
|
49
38
|
none: false
|
50
|
-
requirements:
|
51
|
-
- -
|
52
|
-
- !ruby/object:Gem::Version
|
53
|
-
|
39
|
+
requirements:
|
40
|
+
- - ">="
|
41
|
+
- !ruby/object:Gem::Version
|
42
|
+
hash: 3
|
43
|
+
segments:
|
44
|
+
- 0
|
45
|
+
version: "0"
|
54
46
|
type: :runtime
|
47
|
+
version_requirements: *id002
|
48
|
+
- !ruby/object:Gem::Dependency
|
49
|
+
name: sexp_processor
|
55
50
|
prerelease: false
|
56
|
-
|
57
|
-
none: false
|
58
|
-
requirements:
|
59
|
-
- - ! '>='
|
60
|
-
- !ruby/object:Gem::Version
|
61
|
-
version: '0'
|
62
|
-
- !ruby/object:Gem::Dependency
|
63
|
-
name: jexp
|
64
|
-
requirement: !ruby/object:Gem::Requirement
|
51
|
+
requirement: &id003 !ruby/object:Gem::Requirement
|
65
52
|
none: false
|
66
|
-
requirements:
|
67
|
-
- -
|
68
|
-
- !ruby/object:Gem::Version
|
69
|
-
|
53
|
+
requirements:
|
54
|
+
- - ">="
|
55
|
+
- !ruby/object:Gem::Version
|
56
|
+
hash: 3
|
57
|
+
segments:
|
58
|
+
- 0
|
59
|
+
version: "0"
|
70
60
|
type: :runtime
|
61
|
+
version_requirements: *id003
|
62
|
+
- !ruby/object:Gem::Dependency
|
63
|
+
name: jexp
|
71
64
|
prerelease: false
|
72
|
-
|
65
|
+
requirement: &id004 !ruby/object:Gem::Requirement
|
73
66
|
none: false
|
74
|
-
requirements:
|
75
|
-
- -
|
76
|
-
- !ruby/object:Gem::Version
|
67
|
+
requirements:
|
68
|
+
- - ">="
|
69
|
+
- !ruby/object:Gem::Version
|
70
|
+
hash: 25
|
71
|
+
segments:
|
72
|
+
- 0
|
73
|
+
- 1
|
74
|
+
- 1
|
77
75
|
version: 0.1.1
|
76
|
+
type: :runtime
|
77
|
+
version_requirements: *id004
|
78
78
|
description: API for chef DNA.
|
79
|
-
email:
|
79
|
+
email:
|
80
80
|
- gems@engineyard.com
|
81
81
|
executables: []
|
82
|
+
|
82
83
|
extensions: []
|
84
|
+
|
83
85
|
extra_rdoc_files: []
|
84
|
-
|
86
|
+
|
87
|
+
files:
|
85
88
|
- lib/dnapi/app.rb
|
86
89
|
- lib/dnapi/component.rb
|
87
90
|
- lib/dnapi/component_possessor.rb
|
@@ -145,29 +148,40 @@ files:
|
|
145
148
|
- spec/vhost_spec.rb
|
146
149
|
homepage: http://github.com/engineyard/dnapi
|
147
150
|
licenses: []
|
151
|
+
|
148
152
|
post_install_message:
|
149
153
|
rdoc_options: []
|
150
|
-
|
154
|
+
|
155
|
+
require_paths:
|
151
156
|
- lib
|
152
|
-
required_ruby_version: !ruby/object:Gem::Requirement
|
157
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
153
158
|
none: false
|
154
|
-
requirements:
|
155
|
-
- -
|
156
|
-
- !ruby/object:Gem::Version
|
157
|
-
|
158
|
-
|
159
|
+
requirements:
|
160
|
+
- - ">="
|
161
|
+
- !ruby/object:Gem::Version
|
162
|
+
hash: 3
|
163
|
+
segments:
|
164
|
+
- 0
|
165
|
+
version: "0"
|
166
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
159
167
|
none: false
|
160
|
-
requirements:
|
161
|
-
- -
|
162
|
-
- !ruby/object:Gem::Version
|
168
|
+
requirements:
|
169
|
+
- - ">"
|
170
|
+
- !ruby/object:Gem::Version
|
171
|
+
hash: 25
|
172
|
+
segments:
|
173
|
+
- 1
|
174
|
+
- 3
|
175
|
+
- 1
|
163
176
|
version: 1.3.1
|
164
177
|
requirements: []
|
178
|
+
|
165
179
|
rubyforge_project:
|
166
|
-
rubygems_version: 1.8.
|
180
|
+
rubygems_version: 1.8.24
|
167
181
|
signing_key:
|
168
182
|
specification_version: 3
|
169
183
|
summary: API for chef DNA.
|
170
|
-
test_files:
|
184
|
+
test_files:
|
171
185
|
- spec/app_spec.rb
|
172
186
|
- spec/component_spec.rb
|
173
187
|
- spec/components/addons_spec.rb
|