superset 0.5.0 → 0.5.1
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 +4 -4
- data/CHANGELOG.md +7 -0
- data/lib/superset/client.rb +1 -1
- data/lib/superset/guest_token.rb +1 -1
- data/lib/superset/version.rb +1 -1
- data/superset.gemspec +3 -1
- metadata +9 -5
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: a3d9470c571c5c52d7986021b754aec48a47aa96e8ba570833d7050802395550
|
|
4
|
+
data.tar.gz: 1699db0d45666f43b5e34a5090d1533aa293aa5aa4ad890cb6d8c47bc5f4e49a
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 42518d4e36fc4e46f9c570c7c6f70ce365d8ea3fd46c38de5b9d391c636425e5b95c18f8bd57712837b3d3bb9df44790e10a5ab50ef84cf7f2ba958c94ac0244
|
|
7
|
+
data.tar.gz: 5e51ed128fe8fff41e34e63a82d0039b517098d47856c2cb285cbc032e3926289a0dcde65ca56146c005f19e3bc5d88c51f38a8b0c6eed9b7eb2f9a4b22cb0da
|
data/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,12 @@
|
|
|
1
1
|
## Changelog
|
|
2
2
|
|
|
3
|
+
## 0.5.1 - 2026-08-27
|
|
4
|
+
|
|
5
|
+
* **Fix:** `Superset::Client` and `Superset::GuestToken` raised `NameError: uninitialized constant FaradayMiddleware::ParseJson` on every request. Both connections used `FaradayMiddleware::ParseJson`, but this gem has never declared or required `faraday_middleware` — the constant only reached the bundle transitively via happi, and happi 1.0.0 dropped it. Replaced with Faraday's own `f.response :json`, which is equivalent (same `content_type:` option, same `respond_to?(:to_str)` guard, same `Faraday::ParsingError` on bad bodies)
|
|
6
|
+
* Raise the `faraday` floor from `~> 1.0` to `~> 1.10` — `Faraday::Response::Json` only ships from 1.10
|
|
7
|
+
* Pin the development `happi` to v1.0.0 so `faraday_middleware` is absent from this gem's own bundle and CI catches any reintroduction
|
|
8
|
+
* Add `#connection` specs to both classes asserting the handler stack, which the previous suite never exercised
|
|
9
|
+
|
|
3
10
|
## 0.5.0 - 2026-07-21
|
|
4
11
|
|
|
5
12
|
* Decouple from Rollbar — remove the `Rollbar.error(...) if defined?(Rollbar)` call in `WarmUpCache`; exceptions now propagate to the caller so consumers' own error handling can react
|
data/lib/superset/client.rb
CHANGED
|
@@ -77,7 +77,7 @@ module Superset
|
|
|
77
77
|
@connection ||= Faraday.new(superset_host) do |f|
|
|
78
78
|
f.authorization :Bearer, access_token
|
|
79
79
|
f.use :cookie_jar # persist the Flask session cookie across the csrf_token GET and the write
|
|
80
|
-
f.
|
|
80
|
+
f.response :json, content_type: 'application/json'
|
|
81
81
|
|
|
82
82
|
if self.config.use_json
|
|
83
83
|
f.request :json
|
data/lib/superset/guest_token.rb
CHANGED
|
@@ -75,7 +75,7 @@ module Superset
|
|
|
75
75
|
@connection ||= Faraday.new(authenticator.superset_host) do |f|
|
|
76
76
|
f.authorization :Bearer, access_token
|
|
77
77
|
f.use :cookie_jar # replay the Flask session cookie from the csrf_token GET on the POST
|
|
78
|
-
f.
|
|
78
|
+
f.response :json, content_type: 'application/json'
|
|
79
79
|
f.request :json
|
|
80
80
|
f.adapter :net_http
|
|
81
81
|
end
|
data/lib/superset/version.rb
CHANGED
data/superset.gemspec
CHANGED
|
@@ -37,7 +37,9 @@ Gem::Specification.new do |spec|
|
|
|
37
37
|
spec.add_dependency "json", ">= 2.0"
|
|
38
38
|
spec.add_dependency "terminal-table", "~> 4.0"
|
|
39
39
|
spec.add_dependency "require_all", ">= 3.0"
|
|
40
|
-
|
|
40
|
+
# >= 1.10 because the connections use Faraday's own `f.response :json`
|
|
41
|
+
# (Faraday::Response::Json), which only ships from 1.10.
|
|
42
|
+
spec.add_dependency "faraday", "~> 1.10"
|
|
41
43
|
spec.add_dependency "faraday-multipart", "~> 1.0"
|
|
42
44
|
spec.add_dependency "faraday-cookie_jar", "~> 0.0.7" # replay the Flask session cookie for CSRF
|
|
43
45
|
spec.add_dependency "enumerate_it", ">= 1.7"
|
metadata
CHANGED
|
@@ -1,13 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: superset
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.5.
|
|
4
|
+
version: 0.5.1
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- jbat
|
|
8
|
+
autorequire:
|
|
8
9
|
bindir: bin
|
|
9
10
|
cert_chain: []
|
|
10
|
-
date:
|
|
11
|
+
date: 2026-08-27 00:00:00.000000000 Z
|
|
11
12
|
dependencies:
|
|
12
13
|
- !ruby/object:Gem::Dependency
|
|
13
14
|
name: json
|
|
@@ -57,14 +58,14 @@ dependencies:
|
|
|
57
58
|
requirements:
|
|
58
59
|
- - "~>"
|
|
59
60
|
- !ruby/object:Gem::Version
|
|
60
|
-
version: '1.
|
|
61
|
+
version: '1.10'
|
|
61
62
|
type: :runtime
|
|
62
63
|
prerelease: false
|
|
63
64
|
version_requirements: !ruby/object:Gem::Requirement
|
|
64
65
|
requirements:
|
|
65
66
|
- - "~>"
|
|
66
67
|
- !ruby/object:Gem::Version
|
|
67
|
-
version: '1.
|
|
68
|
+
version: '1.10'
|
|
68
69
|
- !ruby/object:Gem::Dependency
|
|
69
70
|
name: faraday-multipart
|
|
70
71
|
requirement: !ruby/object:Gem::Requirement
|
|
@@ -191,6 +192,7 @@ dependencies:
|
|
|
191
192
|
- - ">="
|
|
192
193
|
- !ruby/object:Gem::Version
|
|
193
194
|
version: '0.14'
|
|
195
|
+
description:
|
|
194
196
|
email:
|
|
195
197
|
- jonathon.batson@gmail.com
|
|
196
198
|
executables: []
|
|
@@ -295,6 +297,7 @@ homepage: https://github.com/rdytech/superset-client
|
|
|
295
297
|
licenses:
|
|
296
298
|
- MIT
|
|
297
299
|
metadata: {}
|
|
300
|
+
post_install_message:
|
|
298
301
|
rdoc_options: []
|
|
299
302
|
require_paths:
|
|
300
303
|
- lib
|
|
@@ -309,7 +312,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
|
309
312
|
- !ruby/object:Gem::Version
|
|
310
313
|
version: '0'
|
|
311
314
|
requirements: []
|
|
312
|
-
rubygems_version: 3.
|
|
315
|
+
rubygems_version: 3.0.3.1
|
|
316
|
+
signing_key:
|
|
313
317
|
specification_version: 4
|
|
314
318
|
summary: A Ruby Client for Apache Superset API
|
|
315
319
|
test_files: []
|