stash-api 1.1.25.0 → 1.1.26.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +8 -8
- data/lib/stash-api/client.rb +2 -2
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,15 +1,15 @@
|
|
1
1
|
---
|
2
2
|
!binary "U0hBMQ==":
|
3
3
|
metadata.gz: !binary |-
|
4
|
-
|
4
|
+
ZmE3ZmJjYTllZGFkYWY5NDU5OGQxZjQ4ZjAyNTNlZWU1NjA1M2I3ZA==
|
5
5
|
data.tar.gz: !binary |-
|
6
|
-
|
6
|
+
YTZlNWNjYjI2NmIwNjhjZDBjZjk5YjgxMmQzYWRiNGVhNmVlZjVlNA==
|
7
7
|
SHA512:
|
8
8
|
metadata.gz: !binary |-
|
9
|
-
|
10
|
-
|
11
|
-
|
9
|
+
Y2U4ZGExNTc4MzFkZGFjMDMzZTYwNDllZGRlMDRiNjRiYzRiMjgzMjI0MDQ1
|
10
|
+
ZDNjYzk2ZTY0NTAxZDExNGUyM2YxNGI0MjMyNzJjOGM1ZjA4YjMyZDc5ZjRk
|
11
|
+
NjdiYThiOTc2NmY2Y2M2Yjc0NDRlZmEyOTA3ZmUwMjY4NDhkNjc=
|
12
12
|
data.tar.gz: !binary |-
|
13
|
-
|
14
|
-
|
15
|
-
|
13
|
+
MzZjM2IyNjFlZjg2Y2YzMWRmZGIyMzVlNzUwNjhmNjBlNzgzN2NmMjc3ZmVl
|
14
|
+
MWRjNTk5YTcyNDNjMDI5NjAxOTUzY2MzYjkxYzdkNDNhYTYzY2EwNThmMTI1
|
15
|
+
NDIzZTdlOWVmZjUxNjA2NzMyYzU4YTBiZjczNjk2ODE3MDhlMTE=
|
data/lib/stash-api/client.rb
CHANGED
@@ -32,8 +32,8 @@ module Stash
|
|
32
32
|
:user => @username,
|
33
33
|
:password => @password,
|
34
34
|
:headers => { :accept => :json, :content_type => :json }).execute do |response, request, result|
|
35
|
-
|
36
|
-
repository_information
|
35
|
+
repository_information = JSON::pretty_generate(JSON.parse(response.body))
|
36
|
+
raise "Could not retrieve repository information - #{repository_information}" if !response.code.to_s.match(/^2\d{2}$/)
|
37
37
|
end
|
38
38
|
@ssh_url = repository_information['links']['clone'].select{|link| link['name'].match(/^ssh$/i)}.first['href']
|
39
39
|
|