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.
- data/lib/dnapi/struct.rb +4 -1
- data/lib/dnapi/test.rb +1 -1
- data/lib/dnapi/version.rb +1 -1
- data/spec/proxies_spec.rb +1 -1
- data/spec/stack_spec.rb +1 -0
- metadata +45 -74
data/lib/dnapi/struct.rb
CHANGED
@@ -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({})
|
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)
|
data/lib/dnapi/test.rb
CHANGED
data/lib/dnapi/version.rb
CHANGED
data/spec/proxies_spec.rb
CHANGED
data/spec/stack_spec.rb
CHANGED
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
|
-
|
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
|
-
|
19
|
-
|
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
|
-
|
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
|
-
|
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
|
-
|
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
|
-
|
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
|
-
|
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
|
-
|
57
|
-
segments:
|
58
|
-
- 0
|
59
|
-
version: "0"
|
40
|
+
requirements:
|
41
|
+
- - ! '>='
|
42
|
+
- !ruby/object:Gem::Version
|
43
|
+
version: '0'
|
60
44
|
type: :runtime
|
61
|
-
|
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
|
-
|
141
|
-
|
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.
|
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
|