gocd 1.1 → 1.2

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 6e4a8f7ee005ef2453ffa3acb68fc21e179a3e92
4
- data.tar.gz: f8b9d5969b926945fb9e90e9ea3db7fce9607914
3
+ metadata.gz: ff9162b128856ee7f0f2a2064e26b86360f37853
4
+ data.tar.gz: 325206893d65edebe3193aa5f99ed3cffab5bc73
5
5
  SHA512:
6
- metadata.gz: 0680c58875b5b1516efe35ea40e84ce176b0c459687e091e58d364b4ad48853bf5dc57956eb0f1f53afcd355d01e0b2bd3f5d25ebca0f43e47e38fbfff62527a
7
- data.tar.gz: 9b8f48342eeb38975f7047450473bd8b0b0ba6af5a995e9435e2841dac8ddce25072abec144b4c092529cf013a95ca578bc6843409e1c0152be94a14d9b4f10f
6
+ metadata.gz: 30cb568c05ce92b7e3f6c87a88e1a70a0260645cfe777e39614a75d2a7b7bdf518ad1b00c1b0ee315e2e9af7f96b903fd8c09bc0b050ce7675be54f020f4f383
7
+ data.tar.gz: 17a2c1c0464ad067a5fa7e99ba2c6bd34aeb0d11b4d5b617cf82b84fbe98500a8eef80d87579555fe0eaffea922c74861649a452dc5364f9e4aafbe6fae02f6b
@@ -20,11 +20,12 @@ module GOCD
20
20
  }
21
21
 
22
22
  begin
23
- response = RestClient::Request.execute(request).body
23
+ res = RestClient::Request.execute(request)
24
+ response = res.body unless res.nil?
24
25
  rescue => e
25
26
  error = <<-ERROR
26
27
  Could not fetch history for #{job.pipeline}::#{job.stage}::#{job.name}
27
- Response received from server: #{e.response.body}
28
+ Response received from server: #{e.response}
28
29
  ERROR
29
30
  response = nil
30
31
  puts error
data/lib/gocd/version.rb CHANGED
@@ -1,3 +1,3 @@
1
1
  module GOCD
2
- VERSION = '1.1'
2
+ VERSION = '1.2'
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: gocd
3
3
  version: !ruby/object:Gem::Version
4
- version: '1.1'
4
+ version: '1.2'
5
5
  platform: ruby
6
6
  authors:
7
7
  - Ajit Singh