vmware-vra 2.5.0 → 2.5.1

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: 02e1b10df2a11fb1f980c90789893abd150206e9
4
- data.tar.gz: 90be02ee5327c620bc60433006d0c793c9001669
3
+ metadata.gz: 0a2666973ad988e51940fd5fc5b5b88187fbe5a7
4
+ data.tar.gz: 7d255eaa08be39699f3abf709cc666201d0f9efa
5
5
  SHA512:
6
- metadata.gz: b090835fe0a8e5cf65efab244878adb1110430427d2e9eb3f2ea3768db1dedefe682c88e2318637b22f1bcb73cc896aa33138173bbec00147dfb0adabce8d9e4
7
- data.tar.gz: e084aca8bf49456971c54844c7619c7465287b7f2b2657af6225558b95af0616697c18fcb92e498265355b6263e86fd71ec42e3c7951a7d90ac8e7a58a7c776b
6
+ metadata.gz: c7ef574e421ec00928e6030ead0dcbfa14411eb4af2e6bece942a2382f4f5bf6cf176443c23f9db4b136e2cfec909fe977df0341d7cf7c35815c23a95fb4c788
7
+ data.tar.gz: 1fb7b83e916e0e1ef5b880c85edb692ffda5f8aa69f10eb252c446a4752e85cbef1629b5d3b00b43797534bba093c6b2c45448916ca3c2336e77bf93289fb3de
@@ -1,7 +1,14 @@
1
1
  # Change Log
2
2
 
3
- ## [2.5.0](https://github.com/chef-partners/vmware-vra-gem/tree/2.5.0) (2017-10-17)
4
- [Full Changelog](https://github.com/chef-partners/vmware-vra-gem/compare/v2.4.0...2.5.0)
3
+ ## [2.5.1](https://github.com/chef-partners/vmware-vra-gem/tree/2.5.1) (2017-10-19)
4
+ [Full Changelog](https://github.com/chef-partners/vmware-vra-gem/compare/v2.5.0...2.5.1)
5
+
6
+ **Merged pull requests:**
7
+
8
+ - Fixes a bug with Resource.by\_name [\#63](https://github.com/chef-partners/vmware-vra-gem/pull/63) ([logicminds](https://github.com/logicminds))
9
+
10
+ ## [v2.5.0](https://github.com/chef-partners/vmware-vra-gem/tree/v2.5.0) (2017-10-17)
11
+ [Full Changelog](https://github.com/chef-partners/vmware-vra-gem/compare/v2.4.0...v2.5.0)
5
12
 
6
13
  **Closed issues:**
7
14
 
@@ -50,7 +50,7 @@ module Vra
50
50
  def self.by_name(client, name)
51
51
  raise ArgumentError.new("name cannot be nil") if name.nil?
52
52
  raise ArgumentError.new("client cannot be nil") if client.nil?
53
- Resources.all.find { |r| r.name.downcase =~ /#{name.downcase}/ }
53
+ Resources.all(client).find { |r| r.name.downcase =~ /#{name.downcase}/ }
54
54
  end
55
55
 
56
56
  def fetch_resource_data
@@ -18,5 +18,5 @@
18
18
  #
19
19
 
20
20
  module Vra
21
- VERSION = "2.5.0"
21
+ VERSION = "2.5.1"
22
22
  end
@@ -72,7 +72,7 @@ describe Vra::Resource do
72
72
  resource = Vra::Resource.allocate
73
73
  allow(resource).to receive(:name).and_return("host1234")
74
74
  name = resource.name
75
- allow(Vra::Resources).to receive(:all).and_return([resource])
75
+ expect(Vra::Resources).to receive(:all).with(client).and_return([resource])
76
76
  expect(Vra::Resource.by_name(client, name)).to eq(resource)
77
77
  end
78
78
 
@@ -80,7 +80,7 @@ describe Vra::Resource do
80
80
  resource = Vra::Resource.allocate
81
81
  allow(resource).to receive(:name).and_return("host1234")
82
82
  name = "somethingelse1234"
83
- allow(Vra::Resources).to receive(:all).and_return([resource])
83
+ expect(Vra::Resources).to receive(:all).with(client).and_return([resource])
84
84
  expect(Vra::Resource.by_name(client, name)).to be nil
85
85
  end
86
86
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: vmware-vra
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.5.0
4
+ version: 2.5.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Adam Leff
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2017-10-17 00:00:00.000000000 Z
12
+ date: 2017-10-19 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: ffi-yajl