pinot 0.1.2 → 0.1.3
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +4 -0
- data/lib/pinot/client.rb +7 -1
- data/lib/pinot/version.rb +1 -1
- metadata +6 -6
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 6443fe94263c767cc5039c400a7684fae467ab856e2d04253959ef6e0042e1d1
|
4
|
+
data.tar.gz: 4cb05bc8fe5c6f9b83cffa623e359f3c90fdc768575033e13968a78c5f7d43ff
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: f217a53c1c2712e8d098aa94e5f3a4a93995e0839cad0f1a640f78c6e5269f7847afe9ef6d8344c2eb1d1df85ea087a5fb0db853ce3eb8c2d65d029ddbc6d554
|
7
|
+
data.tar.gz: 70694ca05dd5de01ef4e1d8af6e8bc61b899840e73ccb2b9680150d5d9dd48553fba2002607e6b22a9e3e1939d08d625e8c1d672adc6f4001345ad0ea5da9c5a
|
data/CHANGELOG.md
CHANGED
data/lib/pinot/client.rb
CHANGED
@@ -66,11 +66,17 @@ module Pinot
|
|
66
66
|
JSON.parse(response)
|
67
67
|
end
|
68
68
|
|
69
|
+
def tables
|
70
|
+
url = "#{controller_uri}/tables"
|
71
|
+
response = http.get(url)
|
72
|
+
JSON.parse(response)
|
73
|
+
end
|
74
|
+
|
69
75
|
def http(content_type: "application/json")
|
70
76
|
return @http if !@http.nil?
|
71
77
|
default_headers = {"Content-Type" => content_type}
|
72
78
|
default_headers["Authorization"] = "Bearer #{bearer_token}" if bearer_token
|
73
|
-
@http = HTTPX.with(headers: default_headers, timeout: {
|
79
|
+
@http = HTTPX.with(headers: default_headers, timeout: {connect_timeout: 5})
|
74
80
|
if socks5_uri
|
75
81
|
@http = @http.plugin(:proxy).with_proxy(uri: socks5_uri) if socks5_uri
|
76
82
|
end
|
data/lib/pinot/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: pinot
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.3
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Celso Fernandes
|
8
|
-
autorequire:
|
8
|
+
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2024-
|
11
|
+
date: 2024-07-02 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: httpx
|
@@ -90,7 +90,7 @@ metadata:
|
|
90
90
|
homepage_uri: https://github.com/fernandes/pinot-ruby
|
91
91
|
source_code_uri: https://github.com/fernandes/pinot
|
92
92
|
changelog_uri: https://github.com/fernandes/pinot/blob/main/CHANGELOG.md
|
93
|
-
post_install_message:
|
93
|
+
post_install_message:
|
94
94
|
rdoc_options: []
|
95
95
|
require_paths:
|
96
96
|
- lib
|
@@ -105,8 +105,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
105
105
|
- !ruby/object:Gem::Version
|
106
106
|
version: '0'
|
107
107
|
requirements: []
|
108
|
-
rubygems_version: 3.5.
|
109
|
-
signing_key:
|
108
|
+
rubygems_version: 3.5.14
|
109
|
+
signing_key:
|
110
110
|
specification_version: 4
|
111
111
|
summary: Client for Apache Pinot
|
112
112
|
test_files: []
|