prometheus-api-client 0.6.1 → 0.6.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
- SHA1:
3
- metadata.gz: '09b51aab2a4ea14ccb72c68fa4d7194d3521c6bf'
4
- data.tar.gz: 4a609a3c9fdb38b281e608e06b720f2b9d22a4d5
2
+ SHA256:
3
+ metadata.gz: 2d294bf6f65b6fec8a2351a5be3ff46629c26fd7ae1d1592b468180faf71ea04
4
+ data.tar.gz: b66b47d6a953fbf0416793533eaaf33d7d33ef4e575f02a987f9f7de09446bd5
5
5
  SHA512:
6
- metadata.gz: b3f0caed50f59eeabfe188755e18e073d6827c8f06a59df8de46c350fb949b5c788c98278d5abd82ef1424f8c66b388f431e1f7a00801aca9c5e1c3c2a9eab04
7
- data.tar.gz: 12ee13b3e9836dcc61790e0779e5c013c82e2d8411945842c247e57a16a0deb1a1443f259d8ae38642eb1b93e0aba2ea45d3b8d05de0f3ca87712e612327c3f8
6
+ metadata.gz: 9b14ee8b7de5de2deb0a09f768a826aefba9584506e5a75851b82cafcb865d98e494585f1750ed0420bf6be47749c8e39a3a5ad33305150d009df1b8cf005cb5
7
+ data.tar.gz: 2d81ef022b0dc8d8ec7ad0a0b999989455c2770d7056f2e155ed9a18a9c39daaa01791b5fba28ff33909ea31b732efba91a1feea98710fd52768af7c8e5226e4
data/README.md CHANGED
@@ -1,9 +1,9 @@
1
1
  # Prometheus API Ruby Client
2
2
 
3
3
  [![Gem Version][1]](http://badge.fury.io/rb/prometheus-api-client)
4
- [![Build Status][2]](http://travis-ci.org/yaacov/prometheus_api_client_ruby)
5
- [![Build Status][3]](https://codeclimate.com/github/yaacov/prometheus_api_client_ruby)
6
- [![Coverage Status][4]](https://coveralls.io/github/yaacov/prometheus_api_client_ruby?branch=master)
4
+ [![Build Status][2]](http://travis-ci.org/prometheus/prometheus_api_client_ruby)
5
+ [![Build Status][3]](https://codeclimate.com/github/prometheus/prometheus_api_client_ruby)
6
+ [![Coverage Status][4]](https://coveralls.io/github/prometheus/prometheus_api_client_ruby?branch=master)
7
7
 
8
8
  A Ruby library for reading metrics stored on a Prometheus server.
9
9
 
@@ -42,7 +42,7 @@ prometheus = Prometheus::ApiClient.client(url: 'https://example.com:443'
42
42
  credentials: { token: 'TopSecret' })
43
43
  ```
44
44
 
45
- #### Low lavel calls
45
+ #### Low level calls
46
46
 
47
47
  ###### query
48
48
 
@@ -2,6 +2,7 @@
2
2
 
3
3
  require 'json'
4
4
  require 'faraday'
5
+ require 'faraday/net_http'
5
6
 
6
7
  module Prometheus
7
8
  # Client is a ruby implementation for a Prometheus compatible api_client.
@@ -38,7 +39,9 @@ module Prometheus
38
39
 
39
40
  @client = Faraday.new(
40
41
  faraday_options(options),
41
- )
42
+ ) do |f|
43
+ f.adapter :net_http
44
+ end
42
45
  end
43
46
 
44
47
  # Evaluates an instant query at a single point in time:
@@ -2,6 +2,6 @@
2
2
 
3
3
  module Prometheus
4
4
  module ApiClient
5
- VERSION = '0.6.1'
5
+ VERSION = '0.6.3'
6
6
  end
7
7
  end
metadata CHANGED
@@ -1,30 +1,36 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: prometheus-api-client
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.6.1
4
+ version: 0.6.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Yaacov Zamir
8
- autorequire:
8
+ autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2018-02-06 00:00:00.000000000 Z
11
+ date: 2023-03-30 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: faraday
15
15
  requirement: !ruby/object:Gem::Requirement
16
16
  requirements:
17
- - - "~>"
17
+ - - ">="
18
18
  - !ruby/object:Gem::Version
19
- version: '0.9'
19
+ version: 2.0.0
20
+ - - "<"
21
+ - !ruby/object:Gem::Version
22
+ version: 3.0.0
20
23
  type: :runtime
21
24
  prerelease: false
22
25
  version_requirements: !ruby/object:Gem::Requirement
23
26
  requirements:
24
- - - "~>"
27
+ - - ">="
28
+ - !ruby/object:Gem::Version
29
+ version: 2.0.0
30
+ - - "<"
25
31
  - !ruby/object:Gem::Version
26
- version: '0.9'
27
- description:
32
+ version: 3.0.0
33
+ description:
28
34
  email:
29
35
  - kobi.zamir@gmail.com
30
36
  executables: []
@@ -40,7 +46,7 @@ homepage: https://github.com/yaacov/prometheus_api_client_ruby
40
46
  licenses:
41
47
  - Apache-2.0
42
48
  metadata: {}
43
- post_install_message:
49
+ post_install_message:
44
50
  rdoc_options: []
45
51
  require_paths:
46
52
  - lib
@@ -48,16 +54,15 @@ required_ruby_version: !ruby/object:Gem::Requirement
48
54
  requirements:
49
55
  - - ">="
50
56
  - !ruby/object:Gem::Version
51
- version: '0'
57
+ version: 3.0.0
52
58
  required_rubygems_version: !ruby/object:Gem::Requirement
53
59
  requirements:
54
60
  - - ">="
55
61
  - !ruby/object:Gem::Version
56
62
  version: '0'
57
63
  requirements: []
58
- rubyforge_project:
59
- rubygems_version: 2.6.14
60
- signing_key:
64
+ rubygems_version: 3.4.6
65
+ signing_key:
61
66
  specification_version: 4
62
67
  summary: A suite of reading metrics stored on a Prometheus server.
63
68
  test_files: []