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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: dc12c931af8cd247929cbab2185c0ccd69a7d241e750211ba95287af996e3914
4
- data.tar.gz: 3682d27b5db1c615f1084af77ef1d64496859a6db92a21a4bdf4d45761f8b741
3
+ metadata.gz: 6443fe94263c767cc5039c400a7684fae467ab856e2d04253959ef6e0042e1d1
4
+ data.tar.gz: 4cb05bc8fe5c6f9b83cffa623e359f3c90fdc768575033e13968a78c5f7d43ff
5
5
  SHA512:
6
- metadata.gz: f9a4464727f662abe8c7cace2952076e45ea08802d1380a09568b9c60f4d2b58b6f8bd501f29216e59525a2d54f131bd66d19de12dbb7a5880780dc1bab06831
7
- data.tar.gz: 890d0696eb36c2059873a9d8330f584fdd3b6ff13870567f5eee7d69a7fd286f895b9143f6ecc387a150fce460f27e3c7db4b063fb1500d9d849a7403d3c3468
6
+ metadata.gz: f217a53c1c2712e8d098aa94e5f3a4a93995e0839cad0f1a640f78c6e5269f7847afe9ef6d8344c2eb1d1df85ea087a5fb0db853ce3eb8c2d65d029ddbc6d554
7
+ data.tar.gz: 70694ca05dd5de01ef4e1d8af6e8bc61b899840e73ccb2b9680150d5d9dd48553fba2002607e6b22a9e3e1939d08d625e8c1d672adc6f4001345ad0ea5da9c5a
data/CHANGELOG.md CHANGED
@@ -1,5 +1,9 @@
1
1
  ## [Unreleased]
2
2
 
3
+ ## [0.1.3] - 2024-07-02
4
+
5
+ - feature: add tables command
6
+
3
7
  ## [0.1.2] - 2024-05-29
4
8
 
5
9
  - feature: support socks5
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: { connect_timeout: 5 })
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
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Pinot
4
- VERSION = "0.1.2"
4
+ VERSION = "0.1.3"
5
5
  end
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.2
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-05-29 00:00:00.000000000 Z
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.3
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: []