bosh-workspace 0.9.8 → 0.9.9

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.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 2a436bec65906d24adb7c0bafc96e21e6df833b4
4
- data.tar.gz: 11818e982632c6757381382c450ecccb75e48602
3
+ metadata.gz: fb42ac514b65d3d2594dd182f99ecc68fac7b03d
4
+ data.tar.gz: 4b1a88f3cf642fff7825c3df30cacbac64750d17
5
5
  SHA512:
6
- metadata.gz: 822956b6fb582d1de0f8e5ce43a1e80d3e1a5e77e48aae1eac8fc186aec5ef33495e9b96cc3f7a0295b5977cfacb933a4d171d237caf046f86bec2d05ab608ac
7
- data.tar.gz: 152ea4addf1d2f4f040f2ac3ba56cfccb89393a6f2e92713cbe7b84a576c9ee28f2e9aa0da5704c8cb7c5a68a371b1f9468b2b9b48b5f201cf5944d02244686d
6
+ metadata.gz: 714b02d2b7ff27549c2c482855fa294983d47c272e27e09212001153e22ebe7276119e5033c2b91c9685f467316185271bc9bb51f97b13d9367e3e8d168a05b9
7
+ data.tar.gz: 6d713efe07eb71549606609d4c901f079aa84388da299bc3f1150a7c38cde2d39c46b712c8794d316442bfd9450dcd90f55bf099aa4ad22064ce63fb7dfd0930
@@ -26,7 +26,7 @@ module Bosh::Workspace
26
26
 
27
27
  def credentials
28
28
  @credentials ||= begin
29
- Hash[raw_credentials.map { |c| [c.delete('url'), symbolize_keys(c)] }]
29
+ Hash[raw_credentials.map { |c| c = c.dup; [c.delete('url'), symbolize_keys(c)] }]
30
30
  end
31
31
  end
32
32
 
@@ -1,5 +1,5 @@
1
1
  module Bosh
2
2
  module Manifests
3
- VERSION = "0.9.8"
3
+ VERSION = "0.9.9"
4
4
  end
5
5
  end
@@ -24,9 +24,17 @@ module Bosh::Workspace
24
24
  end
25
25
 
26
26
  describe '#url_protocols' do
27
- it "returns credentials when found multiple times" do
28
- expect(subject).to receive(:git_protocol_from_url)
27
+ before do
28
+ allow(subject).to receive(:git_protocol_from_url)
29
29
  .with('foo').and_return(:https)
30
+ end
31
+
32
+ it "returns credentials when found multiple times" do
33
+ expect(subject.url_protocols).to eq('foo' => :https)
34
+ end
35
+
36
+ it "it can be called after find_by_url has been invoked" do
37
+ subject.find_by_url("foo")
30
38
  expect(subject.url_protocols).to eq('foo' => :https)
31
39
  end
32
40
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: bosh-workspace
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.9.8
4
+ version: 0.9.9
5
5
  platform: ruby
6
6
  authors:
7
7
  - Ruben Koster