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 +4 -4
- data/CHANGELOG.md +9 -2
- data/lib/vra/resource.rb +1 -1
- data/lib/vra/version.rb +1 -1
- data/spec/resource_spec.rb +2 -2
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 0a2666973ad988e51940fd5fc5b5b88187fbe5a7
|
4
|
+
data.tar.gz: 7d255eaa08be39699f3abf709cc666201d0f9efa
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: c7ef574e421ec00928e6030ead0dcbfa14411eb4af2e6bece942a2382f4f5bf6cf176443c23f9db4b136e2cfec909fe977df0341d7cf7c35815c23a95fb4c788
|
7
|
+
data.tar.gz: 1fb7b83e916e0e1ef5b880c85edb692ffda5f8aa69f10eb252c446a4752e85cbef1629b5d3b00b43797534bba093c6b2c45448916ca3c2336e77bf93289fb3de
|
data/CHANGELOG.md
CHANGED
@@ -1,7 +1,14 @@
|
|
1
1
|
# Change Log
|
2
2
|
|
3
|
-
## [2.5.
|
4
|
-
[Full Changelog](https://github.com/chef-partners/vmware-vra-gem/compare/v2.
|
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
|
|
data/lib/vra/resource.rb
CHANGED
@@ -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
|
data/lib/vra/version.rb
CHANGED
data/spec/resource_spec.rb
CHANGED
@@ -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
|
-
|
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
|
-
|
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.
|
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-
|
12
|
+
date: 2017-10-19 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: ffi-yajl
|