looker-sdk 0.1.6 → 0.1.7
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/.github/CODEOWNERS +1 -0
- data/.github/workflows/ruby-ci.yml +3 -0
- data/CHANGELOG.md +7 -0
- data/Gemfile.lock +1 -1
- data/lib/looker-sdk/client.rb +5 -3
- data/lib/looker-sdk/version.rb +1 -1
- data/shell/Gemfile.lock +60 -0
- data/test/helper.rb +1 -1
- data/test/looker/test_dynamic_client.rb +1 -1
- metadata +4 -2
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 8d92e39845c05e99175eeaf366eaa61981e138a8cddfc9046494c9dda29ad0e5
|
|
4
|
+
data.tar.gz: 1c33387b2b71d67e9c2a306e062e01d28f7d16a04882a546bb802b74a83484f7
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 91b5a312f6b0fc6188fee2ed880aa56c2ae5d385989c639c02a7b082f785c26c0c0cf4760e29d91fdd8430399d00caf6ceeeca30770f2893e205b4622aa7b7ad
|
|
7
|
+
data.tar.gz: 6a182f3f7bfd096939f5a2923f3df01f2fe0c843341e9a75100201e6f0a5ef230b0ddd188b4a594200407500d1ce957de0d9c7fc439c9fd57010bbab10b4b419
|
data/.github/CODEOWNERS
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
* @looker-open-source/cloud-looker-devrel
|
|
@@ -28,6 +28,7 @@ jobs:
|
|
|
28
28
|
matrix:
|
|
29
29
|
ruby-version: [2.7.7]
|
|
30
30
|
looker: ${{ fromJson(needs.setup.outputs.matrix_json) }}
|
|
31
|
+
use_faraday_multipart: ['true', 'false']
|
|
31
32
|
|
|
32
33
|
steps:
|
|
33
34
|
- name: Cancel Previous Runs
|
|
@@ -98,6 +99,8 @@ jobs:
|
|
|
98
99
|
|
|
99
100
|
- name: Run tests
|
|
100
101
|
run: bundle exec rake test --trace
|
|
102
|
+
env:
|
|
103
|
+
USE_FARADAY_MULTIPART: ${{ matrix.use_faraday_multipart }}
|
|
101
104
|
|
|
102
105
|
- name: remove mock .netrc
|
|
103
106
|
if: ${{ always() }}
|
data/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,12 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
+
## [0.1.7](https://github.com/looker-open-source/looker-sdk-ruby/compare/v0.1.6...v0.1.7) (2024-01-19)
|
|
4
|
+
|
|
5
|
+
|
|
6
|
+
### Bug Fixes
|
|
7
|
+
|
|
8
|
+
* **deps:** Fix for faraday multipart disabled ([2255a4e](https://github.com/looker-open-source/looker-sdk-ruby/commit/2255a4e4d67b87c06cefe87d945e9e11ae069465))
|
|
9
|
+
|
|
3
10
|
## [0.1.6](https://github.com/looker-open-source/looker-sdk-ruby/compare/v0.1.5...v0.1.6) (2023-06-28)
|
|
4
11
|
|
|
5
12
|
|
data/Gemfile.lock
CHANGED
data/lib/looker-sdk/client.rb
CHANGED
|
@@ -423,7 +423,7 @@ module LookerSDK
|
|
|
423
423
|
if Gem.loaded_specs['faraday'].version < Gem::Version.new('2.0')
|
|
424
424
|
data.kind_of?(Faraday::UploadIO) ? data : super
|
|
425
425
|
else
|
|
426
|
-
data.kind_of?(Faraday::FilePart) ? data : super
|
|
426
|
+
defined?(Faraday::FilePart) && data.kind_of?(Faraday::FilePart) ? data : super
|
|
427
427
|
end
|
|
428
428
|
end
|
|
429
429
|
|
|
@@ -476,9 +476,11 @@ module LookerSDK
|
|
|
476
476
|
|
|
477
477
|
def merge_content_type_if_body(body, options = {})
|
|
478
478
|
if body
|
|
479
|
-
|
|
479
|
+
multipart = Gem.loaded_specs['faraday'].version < Gem::Version.new('2.0') ?
|
|
480
|
+
body.kind_of?(Faraday::UploadIO) :
|
|
481
|
+
defined?(Faraday::FilePart) && body.kind_of?(Faraday::FilePart)
|
|
480
482
|
|
|
481
|
-
if
|
|
483
|
+
if multipart
|
|
482
484
|
length = File.new(body.local_path).size.to_s
|
|
483
485
|
headers = {:content_type => body.content_type, :content_length => length}.merge(options[:headers] || {})
|
|
484
486
|
else
|
data/lib/looker-sdk/version.rb
CHANGED
data/shell/Gemfile.lock
ADDED
|
@@ -0,0 +1,60 @@
|
|
|
1
|
+
PATH
|
|
2
|
+
remote: ..
|
|
3
|
+
specs:
|
|
4
|
+
looker-sdk (0.1.6)
|
|
5
|
+
faraday (>= 1.2, < 3.0)
|
|
6
|
+
sawyer (~> 0.8)
|
|
7
|
+
|
|
8
|
+
GEM
|
|
9
|
+
remote: https://rubygems.org/
|
|
10
|
+
specs:
|
|
11
|
+
addressable (2.8.1)
|
|
12
|
+
public_suffix (>= 2.0.2, < 6.0)
|
|
13
|
+
coderay (1.1.3)
|
|
14
|
+
faraday (1.10.2)
|
|
15
|
+
faraday-em_http (~> 1.0)
|
|
16
|
+
faraday-em_synchrony (~> 1.0)
|
|
17
|
+
faraday-excon (~> 1.1)
|
|
18
|
+
faraday-httpclient (~> 1.0)
|
|
19
|
+
faraday-multipart (~> 1.0)
|
|
20
|
+
faraday-net_http (~> 1.0)
|
|
21
|
+
faraday-net_http_persistent (~> 1.0)
|
|
22
|
+
faraday-patron (~> 1.0)
|
|
23
|
+
faraday-rack (~> 1.0)
|
|
24
|
+
faraday-retry (~> 1.0)
|
|
25
|
+
ruby2_keywords (>= 0.0.4)
|
|
26
|
+
faraday-em_http (1.0.0)
|
|
27
|
+
faraday-em_synchrony (1.0.0)
|
|
28
|
+
faraday-excon (1.1.0)
|
|
29
|
+
faraday-httpclient (1.0.1)
|
|
30
|
+
faraday-multipart (1.0.4)
|
|
31
|
+
multipart-post (~> 2)
|
|
32
|
+
faraday-net_http (1.0.1)
|
|
33
|
+
faraday-net_http_persistent (1.2.0)
|
|
34
|
+
faraday-patron (1.0.0)
|
|
35
|
+
faraday-rack (1.0.0)
|
|
36
|
+
faraday-retry (1.0.3)
|
|
37
|
+
method_source (0.8.2)
|
|
38
|
+
multipart-post (2.2.3)
|
|
39
|
+
netrc (0.7.9)
|
|
40
|
+
pry (0.10.4)
|
|
41
|
+
coderay (~> 1.1.0)
|
|
42
|
+
method_source (~> 0.8.1)
|
|
43
|
+
slop (~> 3.4)
|
|
44
|
+
public_suffix (4.0.7)
|
|
45
|
+
ruby2_keywords (0.0.5)
|
|
46
|
+
sawyer (0.9.2)
|
|
47
|
+
addressable (>= 2.3.5)
|
|
48
|
+
faraday (>= 0.17.3, < 3)
|
|
49
|
+
slop (3.6.0)
|
|
50
|
+
|
|
51
|
+
PLATFORMS
|
|
52
|
+
x86_64-linux
|
|
53
|
+
|
|
54
|
+
DEPENDENCIES
|
|
55
|
+
looker-sdk!
|
|
56
|
+
netrc (~> 0.7.7)
|
|
57
|
+
pry (~> 0.10.1)
|
|
58
|
+
|
|
59
|
+
BUNDLED WITH
|
|
60
|
+
2.4.14
|
data/test/helper.rb
CHANGED
|
@@ -42,7 +42,7 @@ require 'mocha/mini_test'
|
|
|
42
42
|
require "rack/test"
|
|
43
43
|
require "rack/request"
|
|
44
44
|
require "faraday/rack"
|
|
45
|
-
require "faraday/multipart"
|
|
45
|
+
require "faraday/multipart" if ENV['USE_FARADAY_MULTIPART'] == 'true'
|
|
46
46
|
|
|
47
47
|
def fixture_path
|
|
48
48
|
File.expand_path("../fixtures", __FILE__)
|
|
@@ -226,9 +226,9 @@ class LookerDynamicClientTest < MiniTest::Spec
|
|
|
226
226
|
if Gem.loaded_specs['faraday'].version < Gem::Version.new('2.0')
|
|
227
227
|
sdk.create_user(Faraday::UploadIO.new(name, "application/vnd.BOGUS3+json"))
|
|
228
228
|
else
|
|
229
|
+
skip unless defined?(Faraday::FilePart)
|
|
229
230
|
sdk.create_user(Faraday::FilePart.new(name, "application/vnd.BOGUS3+json"))
|
|
230
231
|
end
|
|
231
|
-
|
|
232
232
|
end
|
|
233
233
|
end
|
|
234
234
|
|
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: looker-sdk
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.1.
|
|
4
|
+
version: 0.1.7
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Looker
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: bin
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date:
|
|
11
|
+
date: 2024-01-19 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: sawyer
|
|
@@ -110,6 +110,7 @@ executables: []
|
|
|
110
110
|
extensions: []
|
|
111
111
|
extra_rdoc_files: []
|
|
112
112
|
files:
|
|
113
|
+
- ".github/CODEOWNERS"
|
|
113
114
|
- ".github/scripts/wait_for_looker.sh"
|
|
114
115
|
- ".github/workflows/release-metrics.yml"
|
|
115
116
|
- ".github/workflows/release.yml"
|
|
@@ -162,6 +163,7 @@ files:
|
|
|
162
163
|
- shell/.gitignore
|
|
163
164
|
- shell/.netrc
|
|
164
165
|
- shell/Gemfile
|
|
166
|
+
- shell/Gemfile.lock
|
|
165
167
|
- shell/readme.md
|
|
166
168
|
- shell/shell.rb
|
|
167
169
|
- streaming.md
|