stash-api 1.1.26.0 → 1.1.27.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
|
+
MTVhMzBjOTI2YmFmYjIwODBmOTgzN2E4OWVkNDliNDdiZmM1Y2ZjZQ==
|
5
5
|
data.tar.gz: !binary |-
|
6
|
-
|
6
|
+
ZjkzYzgzNjM0NThiNWU0YWY5ZGU4NzgzZTM2YTk5ZjA4YmMxODIyNg==
|
7
7
|
SHA512:
|
8
8
|
metadata.gz: !binary |-
|
9
|
-
|
10
|
-
|
11
|
-
|
9
|
+
MmI5ZTY1M2M5MTQzY2RmNjEwMjc3YjgxZTRlMDNjMjM1ZjA5NTQzNWVlZTJi
|
10
|
+
Y2U4NmNiNWU0MTRiNTU4M2MwYzE0N2VhNWQ5MGY3MzM5ZjBiMGRkNjUyZjkx
|
11
|
+
NjVhYTQ4ODlhODE0ZjAxNmQyZjM1YmY5MTJmZTNmYTVlYTk3Yzk=
|
12
12
|
data.tar.gz: !binary |-
|
13
|
-
|
14
|
-
|
15
|
-
|
13
|
+
ZTQzNDkwMWYzNGU3MWIwNjkzMzU5YjJhOGQ2OWM2ZjBlNjE5YzIxYWExYTUz
|
14
|
+
Y2VmZTMxOGE4MjE0OTIxMzgyZDQ0NWNiOTVmMDExMTIwODI3YmIyY2M3M2Jk
|
15
|
+
YzE2ZjA5MjAyNTBiZjRmYTQ5MWMzNGU0NzYwMGY0ZGI3ZDk4Yzg=
|
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
|
-
repository_information = JSON
|
36
|
-
raise "Could not retrieve repository information - #{repository_information}" if !response.code.to_s.match(/^2\d{2}$/)
|
35
|
+
repository_information = JSON.parse(response.body)
|
36
|
+
raise "Could not retrieve repository information - #{JSON::pretty_generate(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
|
|