prometheus-api-client 0.6.0 → 0.6.1

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: f9d556204a2bc7ffb30d4a1342ed4db68f0ca91c
4
- data.tar.gz: 9bd9dcae811c232acd507cc2865e3d005d4d7417
3
+ metadata.gz: '09b51aab2a4ea14ccb72c68fa4d7194d3521c6bf'
4
+ data.tar.gz: 4a609a3c9fdb38b281e608e06b720f2b9d22a4d5
5
5
  SHA512:
6
- metadata.gz: 554eece785a3c352385705ebefe7a4b0c83702d482beed3908b1e97f7b588948f71a2e35fcf5c81913c0e1bc1d22b915dc429cd8c200efcd76aea607d7f29d58
7
- data.tar.gz: 529325a6d350c546274187cca962de4e84f8acf991c4b1f9fcc2ce26695c2550f4d5b2f6a6d516cb8b352593af8eec2ade867bc08766b38ebce01893340c29b2
6
+ metadata.gz: b3f0caed50f59eeabfe188755e18e073d6827c8f06a59df8de46c350fb949b5c788c98278d5abd82ef1424f8c66b388f431e1f7a00801aca9c5e1c3c2a9eab04
7
+ data.tar.gz: 12ee13b3e9836dcc61790e0779e5c013c82e2d8411945842c247e57a16a0deb1a1443f259d8ae38642eb1b93e0aba2ea45d3b8d05de0f3ca87712e612327c3f8
@@ -102,8 +102,8 @@ module Prometheus
102
102
  response = get(command, options)
103
103
 
104
104
  JSON.parse(response.body)['data']
105
- rescue
106
- raise RequestError, 'Bad response from server'
105
+ rescue StandardError => err
106
+ raise RequestError, err.message
107
107
  end
108
108
 
109
109
  # Helper function to evalueate the low level proxy option
@@ -2,6 +2,6 @@
2
2
 
3
3
  module Prometheus
4
4
  module ApiClient
5
- VERSION = '0.6.0'
5
+ VERSION = '0.6.1'
6
6
  end
7
7
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: prometheus-api-client
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.6.0
4
+ version: 0.6.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Yaacov Zamir
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2017-09-05 00:00:00.000000000 Z
11
+ date: 2018-02-06 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: faraday
@@ -16,14 +16,14 @@ dependencies:
16
16
  requirements:
17
17
  - - "~>"
18
18
  - !ruby/object:Gem::Version
19
- version: 0.9.2
19
+ version: '0.9'
20
20
  type: :runtime
21
21
  prerelease: false
22
22
  version_requirements: !ruby/object:Gem::Requirement
23
23
  requirements:
24
24
  - - "~>"
25
25
  - !ruby/object:Gem::Version
26
- version: 0.9.2
26
+ version: '0.9'
27
27
  description:
28
28
  email:
29
29
  - kobi.zamir@gmail.com
@@ -56,7 +56,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
56
56
  version: '0'
57
57
  requirements: []
58
58
  rubyforge_project:
59
- rubygems_version: 2.6.11
59
+ rubygems_version: 2.6.14
60
60
  signing_key:
61
61
  specification_version: 4
62
62
  summary: A suite of reading metrics stored on a Prometheus server.