vmc 0.4.0.beta.37 → 0.4.0.beta.38

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -44,6 +44,11 @@ class EventLog
44
44
  @input.close
45
45
  end
46
46
 
47
+ def kill_process
48
+ @process.kill
49
+ @process.join
50
+ end
51
+
47
52
  def next_event
48
53
  if @queue.empty?
49
54
  if @process.status == false
@@ -398,6 +398,10 @@ module VMCMatchers
398
398
  def gives_up(what)
399
399
  $vmc_event.should give_up(what)
400
400
  end
401
+
402
+ def kill
403
+ $vmc_event.kill_process
404
+ end
401
405
  end
402
406
 
403
407
  RSpec.configure do |c|
@@ -411,8 +415,10 @@ RSpec.configure do |c|
411
415
  :username => VMCHelpers::USER,
412
416
  :password => VMCHelpers::PASSWORD)
413
417
 
414
- client.current_organization = client.organizations.first
415
- client.current_space = client.current_organization.spaces.first
418
+ unless client.is_a? CFoundry::V1::Client
419
+ client.current_organization = client.organizations.first
420
+ client.current_space = client.current_organization.spaces.first
421
+ end
416
422
  end
417
423
  end
418
424
 
@@ -1,3 +1,3 @@
1
1
  module VMC
2
- VERSION = "0.4.0.beta.37"
2
+ VERSION = "0.4.0.beta.38"
3
3
  end
metadata CHANGED
@@ -1,15 +1,15 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: vmc
3
3
  version: !ruby/object:Gem::Version
4
- hash: -1929453892
4
+ hash: 2894787247
5
5
  prerelease: 6
6
6
  segments:
7
7
  - 0
8
8
  - 4
9
9
  - 0
10
10
  - beta
11
- - 37
12
- version: 0.4.0.beta.37
11
+ - 38
12
+ version: 0.4.0.beta.38
13
13
  platform: ruby
14
14
  authors:
15
15
  - VMware
@@ -17,7 +17,7 @@ autorequire:
17
17
  bindir: bin
18
18
  cert_chain: []
19
19
 
20
- date: 2012-08-29 00:00:00 Z
20
+ date: 2012-08-30 00:00:00 Z
21
21
  dependencies:
22
22
  - !ruby/object:Gem::Dependency
23
23
  name: json_pure
@@ -175,7 +175,7 @@ dependencies:
175
175
  segments:
176
176
  - 0
177
177
  version: "0"
178
- type: :runtime
178
+ type: :development
179
179
  version_requirements: *id009
180
180
  - !ruby/object:Gem::Dependency
181
181
  name: rspec
@@ -191,7 +191,7 @@ dependencies:
191
191
  - 3
192
192
  - 0
193
193
  version: 1.3.0
194
- type: :runtime
194
+ type: :development
195
195
  version_requirements: *id010
196
196
  - !ruby/object:Gem::Dependency
197
197
  name: webmock
@@ -207,7 +207,7 @@ dependencies:
207
207
  - 5
208
208
  - 0
209
209
  version: 1.5.0
210
- type: :runtime
210
+ type: :development
211
211
  version_requirements: *id011
212
212
  - !ruby/object:Gem::Dependency
213
213
  name: json_pure
@@ -336,7 +336,7 @@ dependencies:
336
336
  - 2
337
337
  - 2
338
338
  version: 0.9.2.2
339
- type: :runtime
339
+ type: :development
340
340
  version_requirements: *id019
341
341
  - !ruby/object:Gem::Dependency
342
342
  name: rspec
@@ -352,7 +352,7 @@ dependencies:
352
352
  - 11
353
353
  - 0
354
354
  version: 2.11.0
355
- type: :runtime
355
+ type: :development
356
356
  version_requirements: *id020
357
357
  - !ruby/object:Gem::Dependency
358
358
  name: simplecov
@@ -368,7 +368,7 @@ dependencies:
368
368
  - 6
369
369
  - 4
370
370
  version: 0.6.4
371
- type: :runtime
371
+ type: :development
372
372
  version_requirements: *id021
373
373
  description:
374
374
  email: support@vmware.com