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.
Files changed (3) hide show
  1. checksums.yaml +8 -8
  2. data/lib/stash-api/client.rb +2 -2
  3. metadata +1 -1
checksums.yaml CHANGED
@@ -1,15 +1,15 @@
1
1
  ---
2
2
  !binary "U0hBMQ==":
3
3
  metadata.gz: !binary |-
4
- OGMyNjExZjNiMDE1NWYwM2I4NmRhNjIxN2Y5NmFkOWJhZGQyYjJjMA==
4
+ ZmE3ZmJjYTllZGFkYWY5NDU5OGQxZjQ4ZjAyNTNlZWU1NjA1M2I3ZA==
5
5
  data.tar.gz: !binary |-
6
- MmY4YWQwMWQ5ZmViODM4OGZhMWJmOGI0NGNlZjJjMDE3YjM1YmJiNA==
6
+ YTZlNWNjYjI2NmIwNjhjZDBjZjk5YjgxMmQzYWRiNGVhNmVlZjVlNA==
7
7
  SHA512:
8
8
  metadata.gz: !binary |-
9
- NTcwMjk4YjgxZTVmNGVlZmQwZGUyNzI2OWU1ODcyZTBmNzhjMmYyMjk1NDlm
10
- YzdjYjZhMTk3MWZhZDdmMTQxM2ZkMDU2NzhiZGRmNGZiYWM4OWMyMWZkMzkx
11
- ZDJlMjZiYzYwZDAxZjE1ZDJhOTYyZGU4ODQ3ODJjNTY5MWRhNWM=
9
+ Y2U4ZGExNTc4MzFkZGFjMDMzZTYwNDllZGRlMDRiNjRiYzRiMjgzMjI0MDQ1
10
+ ZDNjYzk2ZTY0NTAxZDExNGUyM2YxNGI0MjMyNzJjOGM1ZjA4YjMyZDc5ZjRk
11
+ NjdiYThiOTc2NmY2Y2M2Yjc0NDRlZmEyOTA3ZmUwMjY4NDhkNjc=
12
12
  data.tar.gz: !binary |-
13
- MGY5OGFiNmQwZDZhODY1ZWIzZGVhNDVlMTNkMmI5ZjZjOWI0ZmUzZGQ2YjI0
14
- NDQwMDgyMTBkMzlmZTkwOTVmNDQ1YzQ5NTY4MGI5MzkyMzc3Mjg1MzkwOGM0
15
- OGE4ZTQ5ZDA1N2NkNGE0ZmQ1NTkyZGRmMWJmYWJjMWM1OGY5ZDY=
13
+ MzZjM2IyNjFlZjg2Y2YzMWRmZGIyMzVlNzUwNjhmNjBlNzgzN2NmMjc3ZmVl
14
+ MWRjNTk5YTcyNDNjMDI5NjAxOTUzY2MzYjkxYzdkNDNhYTYzY2EwNThmMTI1
15
+ NDIzZTdlOWVmZjUxNjA2NzMyYzU4YTBiZjczNjk2ODE3MDhlMTE=
@@ -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
- raise "Could not retrieve repository information - #{JSON::pretty_generate(JSON::parse(response.body))}" if !response.code.to_s.match(/^2\d{2}$/)
36
- repository_information = JSON::pretty_generate(JSON.parse(json))
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
 
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: stash-api
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.1.25.0
4
+ version: 1.1.26.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Warren Parad