dnapi 1.1.74 → 1.1.75.ruby193

Sign up to get free protection for your applications and to get access to all the features.
@@ -129,7 +129,10 @@ module DNApi
129
129
  def to_hash
130
130
  data = members.zip(values)
131
131
  association_data = _many.zip(_many_values) + _ones.zip(_ones_values)
132
- (data + association_data).inject({}) {|h,(k,v)| h.update(k => v) } #.reject {|k,v| v.nil? }
132
+ hash = (data + association_data).inject({}) do |h,(k,v)|
133
+ h.update(k => v)
134
+ end #.reject {|k,v| v.nil? }
135
+ hash
133
136
  end
134
137
 
135
138
  def ==(other)
@@ -1,6 +1,6 @@
1
1
  require 'dnapi'
2
2
 
3
- %w( randexp ey_slater ).each do |dep|
3
+ %w( randexp ).each do |dep|
4
4
  begin
5
5
  require dep
6
6
  rescue LoadError => e
@@ -1,3 +1,3 @@
1
1
  module DNApi
2
- VERSION = '1.1.74'
2
+ VERSION = '1.1.75.ruby193'
3
3
  end
@@ -1,4 +1,4 @@
1
- require File.dirname(__FILE__) + '/proxies'
1
+ require File.expand_path('proxies', File.dirname(__FILE__))
2
2
  require 'pp'
3
3
  require 'sexp_processor' #defines Object#deep_copy
4
4
 
@@ -83,6 +83,7 @@ describe DNApi::Stack do
83
83
  end
84
84
 
85
85
  context "responds to legacy helper methods" do
86
+ subject { DNApi::Stack.all.first }
86
87
  it { should respond_to(:apache?)}
87
88
  it { should respond_to(:nginx?)}
88
89
  it { should respond_to(:passenger?)}
metadata CHANGED
@@ -1,74 +1,56 @@
1
- --- !ruby/object:Gem::Specification
1
+ --- !ruby/object:Gem::Specification
2
2
  name: dnapi
3
- version: !ruby/object:Gem::Version
4
- hash: 135
5
- prerelease:
6
- segments:
7
- - 1
8
- - 1
9
- - 74
10
- version: 1.1.74
3
+ version: !ruby/object:Gem::Version
4
+ version: 1.1.75.ruby193
5
+ prerelease: 7
11
6
  platform: ruby
12
- authors:
7
+ authors:
13
8
  - Engine Yard
14
9
  autorequire:
15
10
  bindir: bin
16
11
  cert_chain: []
17
-
18
- date: 2011-07-26 00:00:00 Z
19
- dependencies:
20
- - !ruby/object:Gem::Dependency
12
+ date: 2011-07-26 00:00:00.000000000 Z
13
+ dependencies:
14
+ - !ruby/object:Gem::Dependency
21
15
  name: json
22
- prerelease: false
23
- requirement: &id001 !ruby/object:Gem::Requirement
16
+ requirement: &2154018380 !ruby/object:Gem::Requirement
24
17
  none: false
25
- requirements:
26
- - - ">="
27
- - !ruby/object:Gem::Version
28
- hash: 3
29
- segments:
30
- - 0
31
- version: "0"
18
+ requirements:
19
+ - - ! '>='
20
+ - !ruby/object:Gem::Version
21
+ version: '0'
32
22
  type: :runtime
33
- version_requirements: *id001
34
- - !ruby/object:Gem::Dependency
35
- name: extlib
36
23
  prerelease: false
37
- requirement: &id002 !ruby/object:Gem::Requirement
24
+ version_requirements: *2154018380
25
+ - !ruby/object:Gem::Dependency
26
+ name: extlib
27
+ requirement: &2154017660 !ruby/object:Gem::Requirement
38
28
  none: false
39
- requirements:
40
- - - ">="
41
- - !ruby/object:Gem::Version
42
- hash: 3
43
- segments:
44
- - 0
45
- version: "0"
29
+ requirements:
30
+ - - ! '>='
31
+ - !ruby/object:Gem::Version
32
+ version: '0'
46
33
  type: :runtime
47
- version_requirements: *id002
48
- - !ruby/object:Gem::Dependency
49
- name: sexp_processor
50
34
  prerelease: false
51
- requirement: &id003 !ruby/object:Gem::Requirement
35
+ version_requirements: *2154017660
36
+ - !ruby/object:Gem::Dependency
37
+ name: sexp_processor
38
+ requirement: &2154017120 !ruby/object:Gem::Requirement
52
39
  none: false
53
- requirements:
54
- - - ">="
55
- - !ruby/object:Gem::Version
56
- hash: 3
57
- segments:
58
- - 0
59
- version: "0"
40
+ requirements:
41
+ - - ! '>='
42
+ - !ruby/object:Gem::Version
43
+ version: '0'
60
44
  type: :runtime
61
- version_requirements: *id003
45
+ prerelease: false
46
+ version_requirements: *2154017120
62
47
  description: API for chef DNA.
63
- email:
48
+ email:
64
49
  - gems@engineyard.com
65
50
  executables: []
66
-
67
51
  extensions: []
68
-
69
52
  extra_rdoc_files: []
70
-
71
- files:
53
+ files:
72
54
  - lib/dnapi/app.rb
73
55
  - lib/dnapi/component.rb
74
56
  - lib/dnapi/component_possessor.rb
@@ -126,40 +108,29 @@ files:
126
108
  - spec/struct_spec.rb
127
109
  homepage: http://github.com/engineyard/dnapi
128
110
  licenses: []
129
-
130
111
  post_install_message:
131
112
  rdoc_options: []
132
-
133
- require_paths:
113
+ require_paths:
134
114
  - lib
135
- required_ruby_version: !ruby/object:Gem::Requirement
115
+ required_ruby_version: !ruby/object:Gem::Requirement
136
116
  none: false
137
- requirements:
138
- - - ">="
139
- - !ruby/object:Gem::Version
140
- hash: 3
141
- segments:
142
- - 0
143
- version: "0"
144
- required_rubygems_version: !ruby/object:Gem::Requirement
117
+ requirements:
118
+ - - ! '>='
119
+ - !ruby/object:Gem::Version
120
+ version: '0'
121
+ required_rubygems_version: !ruby/object:Gem::Requirement
145
122
  none: false
146
- requirements:
147
- - - ">"
148
- - !ruby/object:Gem::Version
149
- hash: 25
150
- segments:
151
- - 1
152
- - 3
153
- - 1
123
+ requirements:
124
+ - - ! '>'
125
+ - !ruby/object:Gem::Version
154
126
  version: 1.3.1
155
127
  requirements: []
156
-
157
128
  rubyforge_project:
158
- rubygems_version: 1.8.6
129
+ rubygems_version: 1.8.10
159
130
  signing_key:
160
131
  specification_version: 3
161
132
  summary: API for chef DNA.
162
- test_files:
133
+ test_files:
163
134
  - spec/app_spec.rb
164
135
  - spec/component_spec.rb
165
136
  - spec/components/addons_spec.rb