gazer 0.2.53 → 0.2.54
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/scripts/parse_version.sh +16 -0
- data/.github/workflows/ruby-ci.yml +29 -5
- data/CHANGELOG.md +7 -0
- data/Gemfile.lock +12 -8
- data/lib/gzr/modules/session.rb +1 -1
- data/lib/gzr/version.rb +1 -1
- metadata +3 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 62185449c733517e6e3354b2faeb39e9a3b1bfbf61211c9296db1554979006fb
|
4
|
+
data.tar.gz: 5fe6d548b01e9fbb5bebf5807614a28b24f64bdd7bfdc1dd0e4fd1d50079a8ff
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 92692a5332311129b1cc7d49f73ec03170a4ab17b0f8c7b4c941ac022c11e73e8fdfa9ad520e349953aebbaa37d07c3ce6f2119f49ca4563064dbceaddd2bdfe
|
7
|
+
data.tar.gz: 0daba3450b0a3fe6ca302675c7730c14993b79a4a57f7a2c73b9b2c062698ede1e8d46e2c6efbbe3b1a7f29212918ceb16fe0a77c47f60c2ec404e2ffdabff4c
|
@@ -0,0 +1,16 @@
|
|
1
|
+
#!/bin/sh
|
2
|
+
|
3
|
+
BEFORE_MAJ=21
|
4
|
+
BEFORE_MIN=18
|
5
|
+
IFS=_ read -r maj min
|
6
|
+
if [ "$maj" -lt "$BEFORE_MAJ" ]; then
|
7
|
+
echo "${maj}_${min}"
|
8
|
+
elif [ "$maj" -eq "$BEFORE_MAJ" ]; then
|
9
|
+
if [ "$min" -lt "$BEFORE_MIN" ]; then
|
10
|
+
echo "${maj}_${min}"
|
11
|
+
else
|
12
|
+
echo "21_18"
|
13
|
+
fi
|
14
|
+
else
|
15
|
+
echo "21_18"
|
16
|
+
fi
|
@@ -9,16 +9,21 @@ on:
|
|
9
9
|
env:
|
10
10
|
LOOKERSDK_BASE_URL: https://localhost:20000
|
11
11
|
LOOKERSDK_VERIFY_SSL: false
|
12
|
-
TS_JUNIT_OUTPUT_DIR: results/sdk-codegen
|
13
12
|
LOOKERSDK_CLIENT_ID: ${{ secrets.LOOKERSDK_CLIENT_ID__21_18 }}
|
14
13
|
LOOKERSDK_CLIENT_SECRET: ${{ secrets.LOOKERSDK_CLIENT_SECRET__21_18 }}
|
15
14
|
|
16
15
|
jobs:
|
17
16
|
test:
|
18
|
-
|
19
|
-
runs-on:
|
17
|
+
name: Test - ${{ matrix.os }} / Looker.${{ matrix.looker }} / Ruby.${{ matrix.ruby-version }}
|
18
|
+
runs-on: ${{ matrix.os }}-latest
|
20
19
|
strategy:
|
21
20
|
matrix:
|
21
|
+
os:
|
22
|
+
- ubuntu
|
23
|
+
looker:
|
24
|
+
- '21_18'
|
25
|
+
- '21_20'
|
26
|
+
- '22_0'
|
22
27
|
ruby-version: [2.5.8]
|
23
28
|
|
24
29
|
steps:
|
@@ -38,11 +43,30 @@ jobs:
|
|
38
43
|
# TODO: can we cache some layers of the image for faster download?
|
39
44
|
# we probably don't want to cache the final image for IP security...
|
40
45
|
run: |
|
41
|
-
docker pull --quiet us-west1-docker.pkg.dev/cloud-looker-sdk-codegen-cicd/looker
|
46
|
+
docker pull --quiet us-west1-docker.pkg.dev/cloud-looker-sdk-codegen-cicd/looker/${{ matrix.looker }}
|
42
47
|
# set $LOOKER_OPTS to --no-ssl if we want to turn off ssl
|
43
|
-
docker run --name looker-sdk-codegen-ci -d -p 10000:9999 -p 20000:19999 us-west1-docker.pkg.dev/cloud-looker-sdk-codegen-cicd/looker
|
48
|
+
docker run --name looker-sdk-codegen-ci -d -p 10000:9999 -p 20000:19999 us-west1-docker.pkg.dev/cloud-looker-sdk-codegen-cicd/looker/${{ matrix.looker }}
|
44
49
|
docker logs -f looker-sdk-codegen-ci --until=30s &
|
45
50
|
|
51
|
+
- name: Determine credentials version
|
52
|
+
# Prior to 21_18, each version had different credentials and a
|
53
|
+
# different secret. 21_20 and later all use the same credentials
|
54
|
+
# as 21_18. The parse_version.sh script parses the version and
|
55
|
+
# yields 21_12, 21_14, 21_16 etc for those versions but 21_18 for
|
56
|
+
# anything 21_18, 21_20, 22_0, etc.
|
57
|
+
#
|
58
|
+
# This can be factored out entirely once 21_18 is the earliest
|
59
|
+
# supported looker version.
|
60
|
+
run: |
|
61
|
+
echo "CREDENTIALS_VERSION=$(${{ github.workspace }}/.github/scripts/parse_version.sh <<< ${{ matrix.looker }})" >> $GITHUB_ENV
|
62
|
+
|
63
|
+
- name: Set up Looker credentials
|
64
|
+
# Load the correct credentials based on the version from
|
65
|
+
# the prior step.
|
66
|
+
run: |
|
67
|
+
echo "LOOKERSDK_CLIENT_ID=${{ secrets[format('LOOKERSDK_CLIENT_ID__{0}', env.CREDENTIALS_VERSION )] }}" >> $GITHUB_ENV
|
68
|
+
echo "LOOKERSDK_CLIENT_SECRET=${{ secrets[format('LOOKERSDK_CLIENT_SECRET__{0}', env.CREDENTIALS_VERSION )] }}" >> $GITHUB_ENV
|
69
|
+
|
46
70
|
- name: Set up Ruby ${{ matrix.ruby-version }}
|
47
71
|
uses: ruby/setup-ruby@v1
|
48
72
|
with:
|
data/CHANGELOG.md
CHANGED
@@ -1,5 +1,12 @@
|
|
1
1
|
# Changelog
|
2
2
|
|
3
|
+
### [0.2.54](https://www.github.com/looker-open-source/gzr/compare/v0.2.53...v0.2.54) (2022-03-17)
|
4
|
+
|
5
|
+
|
6
|
+
### Bug Fixes
|
7
|
+
|
8
|
+
* Avoid API 4.0 for deprecation of spaces endpoint ([#124](https://www.github.com/looker-open-source/gzr/issues/124)) ([#125](https://www.github.com/looker-open-source/gzr/issues/125)) ([3823399](https://www.github.com/looker-open-source/gzr/commit/38233991bfc5456ac0cf3d485d12520f50a2ea76))
|
9
|
+
|
3
10
|
### [0.2.53](https://www.github.com/looker-open-source/gzr/compare/v0.2.52...v0.2.53) (2021-12-14)
|
4
11
|
|
5
12
|
|
data/Gemfile.lock
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
PATH
|
2
2
|
remote: .
|
3
3
|
specs:
|
4
|
-
gazer (0.2.
|
4
|
+
gazer (0.2.54)
|
5
5
|
looker-sdk (~> 0.1.1)
|
6
6
|
net-http-persistent (~> 4.0, >= 4.0.1)
|
7
7
|
netrc (~> 0.11.0)
|
@@ -19,25 +19,29 @@ GEM
|
|
19
19
|
public_suffix (>= 2.0.2, < 5.0)
|
20
20
|
connection_pool (2.2.5)
|
21
21
|
diff-lcs (1.4.4)
|
22
|
-
faraday (1.
|
22
|
+
faraday (1.10.0)
|
23
23
|
faraday-em_http (~> 1.0)
|
24
24
|
faraday-em_synchrony (~> 1.0)
|
25
25
|
faraday-excon (~> 1.1)
|
26
|
-
faraday-httpclient (~> 1.0
|
26
|
+
faraday-httpclient (~> 1.0)
|
27
|
+
faraday-multipart (~> 1.0)
|
27
28
|
faraday-net_http (~> 1.0)
|
28
|
-
faraday-net_http_persistent (~> 1.
|
29
|
+
faraday-net_http_persistent (~> 1.0)
|
29
30
|
faraday-patron (~> 1.0)
|
30
31
|
faraday-rack (~> 1.0)
|
31
|
-
|
32
|
+
faraday-retry (~> 1.0)
|
32
33
|
ruby2_keywords (>= 0.0.4)
|
33
34
|
faraday-em_http (1.0.0)
|
34
35
|
faraday-em_synchrony (1.0.0)
|
35
36
|
faraday-excon (1.1.0)
|
36
37
|
faraday-httpclient (1.0.1)
|
38
|
+
faraday-multipart (1.0.3)
|
39
|
+
multipart-post (>= 1.2, < 3)
|
37
40
|
faraday-net_http (1.0.1)
|
38
41
|
faraday-net_http_persistent (1.2.0)
|
39
42
|
faraday-patron (1.0.0)
|
40
43
|
faraday-rack (1.0.0)
|
44
|
+
faraday-retry (1.0.3)
|
41
45
|
looker-sdk (0.1.2)
|
42
46
|
faraday (>= 1.2, < 2.0)
|
43
47
|
sawyer (~> 0.8)
|
@@ -64,15 +68,15 @@ GEM
|
|
64
68
|
rspec-support (3.10.2)
|
65
69
|
ruby2_keywords (0.0.5)
|
66
70
|
rubyzip (1.3.0)
|
67
|
-
sawyer (0.
|
71
|
+
sawyer (0.9.0)
|
68
72
|
addressable (>= 2.3.5)
|
69
|
-
faraday (
|
73
|
+
faraday (>= 0.9, < 3)
|
70
74
|
strings (0.2.1)
|
71
75
|
strings-ansi (~> 0.2)
|
72
76
|
unicode-display_width (>= 1.5, < 3.0)
|
73
77
|
unicode_utils (~> 1.4)
|
74
78
|
strings-ansi (0.2.0)
|
75
|
-
thor (1.1
|
79
|
+
thor (1.2.1)
|
76
80
|
tty-color (0.6.0)
|
77
81
|
tty-cursor (0.7.1)
|
78
82
|
tty-reader (0.9.0)
|
data/lib/gzr/modules/session.rb
CHANGED
@@ -155,7 +155,7 @@ module Gzr
|
|
155
155
|
begin
|
156
156
|
versions_response = agent.call(:get,"/versions")
|
157
157
|
@versions = versions_response.data.supported_versions
|
158
|
-
@current_version =
|
158
|
+
@current_version = "3.1"
|
159
159
|
rescue Faraday::SSLError => e
|
160
160
|
raise Gzr::CLI::Error, "SSL Certificate could not be verified\nDo you need the --no-verify-ssl option or the --no-ssl option?"
|
161
161
|
rescue Faraday::ConnectionFailed => cf
|
data/lib/gzr/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: gazer
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.2.
|
4
|
+
version: 0.2.54
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Mike DeAngelo
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2022-03-17 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: tty-reader
|
@@ -216,6 +216,7 @@ executables:
|
|
216
216
|
extensions: []
|
217
217
|
extra_rdoc_files: []
|
218
218
|
files:
|
219
|
+
- ".github/scripts/parse_version.sh"
|
219
220
|
- ".github/scripts/wait_for_looker.sh"
|
220
221
|
- ".github/workflows/release.yml"
|
221
222
|
- ".github/workflows/ruby-ci.yml"
|