ovirt 0.11.0 → 0.12.0

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 5048f3089d3d263bbd87e8269ebf1b62aa07d71a
4
- data.tar.gz: 678194cdf3266c45341f285a242c1c4736e1bc34
3
+ metadata.gz: 89f156bda5b4ff94f3844c5039630cce59eb70b9
4
+ data.tar.gz: 304522e896dde670c8949a01e7e218a60552454d
5
5
  SHA512:
6
- metadata.gz: e28b83730c169e9180e02ed1a8b920ad99bbbd5862980a320fa480495f0119b3060abfffa54db49c80eceac6d1d0053e71f9fee70f6c2532d8149a7e9acf9209
7
- data.tar.gz: f0bd623f3e33d426d8580a7a57045ad834cb8445527f1ccd2f86ec43f5c3d2dc752cc0d2c12b512eb5d9d82d13580028d6dddaa42246e5bf29bc30ced614d78c
6
+ metadata.gz: bc6be10d2a3d4dcb3240ea0489d941eda4d209202ea7aa29228ab0aea945a6e87fb8d1416315313f13e3c8b51454d94af85d6fb381c319fd4413ef72acd80e81
7
+ data.tar.gz: 8456ee3d7d0db568137e21425a2762d03e22b045171980f76b7816394bf1b104a326ded7349655e02fd9a45cfcac144227dbebe7b64acd94eacc250cab6befd7
@@ -130,7 +130,7 @@ module Ovirt
130
130
  SECONDARY_ITEMS = {
131
131
  # Key RHEVM API methods
132
132
  :datacenter => [:storagedomains],
133
- :host => [:statistics, :host_nics], # :cdroms, tags
133
+ :host => [:statistics, :nics], # :cdroms, tags
134
134
  :vm => [:disks, :snapshots, :nics],
135
135
  :template => [:disks]
136
136
  }
@@ -161,7 +161,11 @@ module Ovirt
161
161
 
162
162
  def collect_primary_targeted_jobs(jobs)
163
163
  results = collect_in_parallel(jobs) do |key, ems_ref|
164
- get_resources_by_uri_path(ems_ref, key.to_s)
164
+ if ems_ref.kind_of?(Array)
165
+ ems_ref.flat_map { |item| get_resources_by_uri_path(item) rescue Array.new }
166
+ else
167
+ get_resources_by_uri_path(ems_ref) rescue Array.new
168
+ end
165
169
  end
166
170
 
167
171
  jobs.zip(results).each_with_object({}) do |((key, _), result), hash|
data/lib/ovirt/version.rb CHANGED
@@ -1,3 +1,3 @@
1
1
  module Ovirt
2
- VERSION = "0.11.0"
2
+ VERSION = "0.12.0"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: ovirt
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.11.0
4
+ version: 0.12.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Jason Frey
@@ -17,151 +17,152 @@ authors:
17
17
  - Dávid Halász
18
18
  - pkliczewski
19
19
  - Juan Hernandez
20
+ - Martin Betak
20
21
  autorequire:
21
22
  bindir: bin
22
23
  cert_chain: []
23
- date: 2016-07-07 00:00:00.000000000 Z
24
+ date: 2016-08-09 00:00:00.000000000 Z
24
25
  dependencies:
25
26
  - !ruby/object:Gem::Dependency
26
27
  name: activesupport
27
28
  requirement: !ruby/object:Gem::Requirement
28
29
  requirements:
29
- - - <
30
+ - - "<"
30
31
  - !ruby/object:Gem::Version
31
32
  version: '5'
32
33
  type: :development
33
34
  prerelease: false
34
35
  version_requirements: !ruby/object:Gem::Requirement
35
36
  requirements:
36
- - - <
37
+ - - "<"
37
38
  - !ruby/object:Gem::Version
38
39
  version: '5'
39
40
  - !ruby/object:Gem::Dependency
40
41
  name: bundler
41
42
  requirement: !ruby/object:Gem::Requirement
42
43
  requirements:
43
- - - ~>
44
+ - - "~>"
44
45
  - !ruby/object:Gem::Version
45
46
  version: '1.3'
46
47
  type: :development
47
48
  prerelease: false
48
49
  version_requirements: !ruby/object:Gem::Requirement
49
50
  requirements:
50
- - - ~>
51
+ - - "~>"
51
52
  - !ruby/object:Gem::Version
52
53
  version: '1.3'
53
54
  - !ruby/object:Gem::Dependency
54
55
  name: factory_girl
55
56
  requirement: !ruby/object:Gem::Requirement
56
57
  requirements:
57
- - - ~>
58
+ - - "~>"
58
59
  - !ruby/object:Gem::Version
59
60
  version: '4.0'
60
61
  type: :development
61
62
  prerelease: false
62
63
  version_requirements: !ruby/object:Gem::Requirement
63
64
  requirements:
64
- - - ~>
65
+ - - "~>"
65
66
  - !ruby/object:Gem::Version
66
67
  version: '4.0'
67
68
  - !ruby/object:Gem::Dependency
68
69
  name: rake
69
70
  requirement: !ruby/object:Gem::Requirement
70
71
  requirements:
71
- - - '>='
72
+ - - ">="
72
73
  - !ruby/object:Gem::Version
73
74
  version: '0'
74
75
  type: :development
75
76
  prerelease: false
76
77
  version_requirements: !ruby/object:Gem::Requirement
77
78
  requirements:
78
- - - '>='
79
+ - - ">="
79
80
  - !ruby/object:Gem::Version
80
81
  version: '0'
81
82
  - !ruby/object:Gem::Dependency
82
83
  name: rspec
83
84
  requirement: !ruby/object:Gem::Requirement
84
85
  requirements:
85
- - - ~>
86
+ - - "~>"
86
87
  - !ruby/object:Gem::Version
87
88
  version: '3.0'
88
89
  type: :development
89
90
  prerelease: false
90
91
  version_requirements: !ruby/object:Gem::Requirement
91
92
  requirements:
92
- - - ~>
93
+ - - "~>"
93
94
  - !ruby/object:Gem::Version
94
95
  version: '3.0'
95
96
  - !ruby/object:Gem::Dependency
96
97
  name: coveralls
97
98
  requirement: !ruby/object:Gem::Requirement
98
99
  requirements:
99
- - - '>='
100
+ - - ">="
100
101
  - !ruby/object:Gem::Version
101
102
  version: '0'
102
103
  type: :development
103
104
  prerelease: false
104
105
  version_requirements: !ruby/object:Gem::Requirement
105
106
  requirements:
106
- - - '>='
107
+ - - ">="
107
108
  - !ruby/object:Gem::Version
108
109
  version: '0'
109
110
  - !ruby/object:Gem::Dependency
110
111
  name: more_core_extensions
111
112
  requirement: !ruby/object:Gem::Requirement
112
113
  requirements:
113
- - - '>='
114
+ - - ">="
114
115
  - !ruby/object:Gem::Version
115
116
  version: 3.0.0
116
117
  type: :runtime
117
118
  prerelease: false
118
119
  version_requirements: !ruby/object:Gem::Requirement
119
120
  requirements:
120
- - - '>='
121
+ - - ">="
121
122
  - !ruby/object:Gem::Version
122
123
  version: 3.0.0
123
124
  - !ruby/object:Gem::Dependency
124
125
  name: nokogiri
125
126
  requirement: !ruby/object:Gem::Requirement
126
127
  requirements:
127
- - - '>='
128
+ - - ">="
128
129
  - !ruby/object:Gem::Version
129
130
  version: '0'
130
131
  type: :runtime
131
132
  prerelease: false
132
133
  version_requirements: !ruby/object:Gem::Requirement
133
134
  requirements:
134
- - - '>='
135
+ - - ">="
135
136
  - !ruby/object:Gem::Version
136
137
  version: '0'
137
138
  - !ruby/object:Gem::Dependency
138
139
  name: parallel
139
140
  requirement: !ruby/object:Gem::Requirement
140
141
  requirements:
141
- - - '>='
142
+ - - ">="
142
143
  - !ruby/object:Gem::Version
143
144
  version: '0'
144
145
  type: :runtime
145
146
  prerelease: false
146
147
  version_requirements: !ruby/object:Gem::Requirement
147
148
  requirements:
148
- - - '>='
149
+ - - ">="
149
150
  - !ruby/object:Gem::Version
150
151
  version: '0'
151
152
  - !ruby/object:Gem::Dependency
152
153
  name: rest-client
153
154
  requirement: !ruby/object:Gem::Requirement
154
155
  requirements:
155
- - - '>='
156
+ - - ">="
156
157
  - !ruby/object:Gem::Version
157
- version: 2.0.0.rc1
158
+ version: 2.0.0
158
159
  type: :runtime
159
160
  prerelease: false
160
161
  version_requirements: !ruby/object:Gem::Requirement
161
162
  requirements:
162
- - - '>='
163
+ - - ">="
163
164
  - !ruby/object:Gem::Version
164
- version: 2.0.0.rc1
165
+ version: 2.0.0
165
166
  description: Ovirt provides a simple Object Oriented interface to the REST API of
166
167
  oVirt and RHEV-M servers.
167
168
  email:
@@ -178,11 +179,12 @@ email:
178
179
  - dhalasz@redhat.com
179
180
  - piotr.kliczewski@gmail.com
180
181
  - juan.hernandez@redhat.com
182
+ - mbetak@redhat.com
181
183
  executables: []
182
184
  extensions: []
183
185
  extra_rdoc_files: []
184
186
  files:
185
- - .rspec
187
+ - ".rspec"
186
188
  - LICENSE.txt
187
189
  - README.md
188
190
  - lib/ovirt.rb
@@ -239,17 +241,17 @@ require_paths:
239
241
  - lib
240
242
  required_ruby_version: !ruby/object:Gem::Requirement
241
243
  requirements:
242
- - - '>='
244
+ - - ">="
243
245
  - !ruby/object:Gem::Version
244
246
  version: 2.0.0
245
247
  required_rubygems_version: !ruby/object:Gem::Requirement
246
248
  requirements:
247
- - - '>='
249
+ - - ">="
248
250
  - !ruby/object:Gem::Version
249
251
  version: '0'
250
252
  requirements: []
251
253
  rubyforge_project:
252
- rubygems_version: 2.6.6
254
+ rubygems_version: 2.5.1
253
255
  signing_key:
254
256
  specification_version: 4
255
257
  summary: Ovirt provides a simple Object Oriented interface to the REST API of oVirt
@@ -265,4 +267,4 @@ test_files:
265
267
  - spec/spec_helper.rb
266
268
  - spec/template_spec.rb
267
269
  - spec/vm_spec.rb
268
- - .rspec
270
+ - ".rspec"