looker-sdk 0.1.1 → 0.1.4
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.github/scripts/wait_for_looker.sh +35 -0
- data/.github/workflows/release-metrics.yml +44 -0
- data/.github/workflows/release.yml +47 -0
- data/.github/workflows/ruby-ci.yml +137 -0
- data/.gitignore +3 -1
- data/CHANGELOG.md +36 -0
- data/CODE_OF_CONDUCT.md +73 -26
- data/CONTRIBUTING.md +29 -0
- data/Gemfile.lock +85 -0
- data/LICENSE.md +14 -26
- data/Octokit_LICENSE.md +22 -0
- data/{readme.md → README.md} +3 -2
- data/Rakefile +5 -1
- data/examples/add_delete_users.rb +1 -1
- data/examples/change_credentials_email_address_for_users.rb +1 -1
- data/examples/convert_look_to_lookless_tile.rb +2 -2
- data/examples/create_credentials_email_for_users.rb +1 -1
- data/examples/delete_all_user_sessions.rb +1 -1
- data/examples/delete_credentials_google_for_users.rb +1 -1
- data/examples/errors.rb +47 -0
- data/examples/generate_password_reset_tokens_for_users.rb +1 -1
- data/examples/ldap_roles_test.rb +1 -1
- data/examples/me.rb +1 -1
- data/examples/refresh_user_notification_addresses.rb +1 -1
- data/examples/roles_and_users_with_permission.rb +1 -1
- data/examples/sdk_setup.rb +3 -3
- data/examples/streaming_downloads.rb +1 -1
- data/examples/users_with_credentials_email.rb +1 -1
- data/examples/users_with_credentials_embed.rb +1 -1
- data/examples/users_with_credentials_google.rb +1 -1
- data/examples/users_with_credentials_google_without_credentials_email.rb +1 -1
- data/lib/looker-sdk/authentication.rb +1 -1
- data/lib/looker-sdk/client/dynamic.rb +1 -1
- data/lib/looker-sdk/client.rb +1 -1
- data/lib/looker-sdk/configurable.rb +1 -1
- data/lib/looker-sdk/default.rb +1 -1
- data/lib/looker-sdk/error.rb +41 -2
- data/lib/looker-sdk/rate_limit.rb +1 -1
- data/lib/looker-sdk/response/raise_error.rb +1 -1
- data/lib/looker-sdk/sawyer_patch.rb +1 -1
- data/lib/looker-sdk/version.rb +2 -2
- data/lib/looker-sdk.rb +18 -15
- data/looker-sdk.gemspec +6 -4
- data/shell/Gemfile +1 -1
- data/shell/shell.rb +3 -3
- data/shell.nix +38 -0
- data/test/helper.rb +31 -5
- data/test/looker/test_client.rb +36 -14
- data/test/looker/test_dynamic_client.rb +1 -1
- data/test/looker/test_dynamic_client_agent.rb +1 -1
- metadata +47 -11
- data/.travis.yml +0 -15
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: eec4f085f75f425e9a066942d67bde11f67fa7f2ebf1fd7a38778a6b02a01104
|
4
|
+
data.tar.gz: 41246f423ed0288d8cbbbb5f2dba3fe011ad23cca48dec84e6a6ddfb575ec73f
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: d6eb98d64177c6b30dd98c3fc0a6dc2ecf0ab0a83fdb4c694476cc791c63e8c2fc14c18a199dd6c01f59926691c7a340bccdf38ef4a0f1f3e10cbf8ff6a505ac
|
7
|
+
data.tar.gz: 7630058cb8ae0d8e3968fddfb81b1e22c52bf446621cfed83d8e9b44d7c9685c306a801d8709197d2a2a84db970a5d73fe2fdc0212d9a713639bb2043abfdd5f
|
@@ -0,0 +1,35 @@
|
|
1
|
+
#!/bin/sh
|
2
|
+
|
3
|
+
check_looker() {
|
4
|
+
status=$(curl --silent --insecure --write "%{http_code}" \
|
5
|
+
--data "client_id=$LOOKERSDK_CLIENT_ID&client_secret=$LOOKERSDK_CLIENT_SECRET"\
|
6
|
+
$LOOKERSDK_BASE_URL/api/${LOOKERSDK_API_VERSION:-4.0}/login\
|
7
|
+
-o /dev/null)
|
8
|
+
}
|
9
|
+
|
10
|
+
MAX_RETRIES=160
|
11
|
+
ATTEMPTS=1
|
12
|
+
status=0
|
13
|
+
check_looker
|
14
|
+
while [ $status -ne 200 ];
|
15
|
+
do
|
16
|
+
RETRY_MSG="after $ATTEMPTS attempts: $(expr $MAX_RETRIES - $ATTEMPTS) retries remaining."
|
17
|
+
if [ $ATTEMPTS -ge $MAX_RETRIES ];
|
18
|
+
then
|
19
|
+
echo 'Looker took too long to start'
|
20
|
+
exit 1
|
21
|
+
else
|
22
|
+
if [ $status -ne 0 ];
|
23
|
+
then
|
24
|
+
echo "Received status($status) from Looker $RETRY_MSG"
|
25
|
+
else
|
26
|
+
echo "Looker server connection rejected $RETRY_MSG"
|
27
|
+
fi
|
28
|
+
fi
|
29
|
+
|
30
|
+
sleep 2
|
31
|
+
ATTEMPTS=$(( $ATTEMPTS + 1 ))
|
32
|
+
check_looker
|
33
|
+
done
|
34
|
+
echo "Looker ready after $ATTEMPTS attempts"
|
35
|
+
exit 0
|
@@ -0,0 +1,44 @@
|
|
1
|
+
name: Send publish metrics to bigquery
|
2
|
+
on:
|
3
|
+
release:
|
4
|
+
types: published
|
5
|
+
jobs:
|
6
|
+
publish:
|
7
|
+
runs-on: ubuntu-latest
|
8
|
+
steps:
|
9
|
+
- name: Set up Cloud SDK
|
10
|
+
uses: google-github-actions/setup-gcloud@v0.2.0
|
11
|
+
with:
|
12
|
+
project_id: ${{ secrets.GCP_PROJECT_ID }}
|
13
|
+
service_account_key: ${{ secrets.GCP_BQ_METRICS_KEY }}
|
14
|
+
export_default_credentials: true
|
15
|
+
|
16
|
+
- name: Debug event json
|
17
|
+
run: cat $GITHUB_EVENT_PATH
|
18
|
+
|
19
|
+
- name: Check for release key
|
20
|
+
run: echo "HAS_RELEASE_KEY=$(jq 'has("release")' $GITHUB_EVENT_PATH)" >> $GITHUB_ENV
|
21
|
+
|
22
|
+
- name: Write release json
|
23
|
+
if: ${{env.HAS_RELEASE_KEY== 'true'}}
|
24
|
+
run: 'jq -c ''.release |
|
25
|
+
{
|
26
|
+
package_name: .name | split(" ")[0],
|
27
|
+
name,
|
28
|
+
tag_name,
|
29
|
+
version: try(.tag_name | split("-v")[1]),
|
30
|
+
html_url,
|
31
|
+
target_commitish,
|
32
|
+
created_at,
|
33
|
+
published_at,
|
34
|
+
draft,
|
35
|
+
prerelease
|
36
|
+
}'' $GITHUB_EVENT_PATH > releases.json'
|
37
|
+
|
38
|
+
- name: Debug release json
|
39
|
+
if: ${{env.HAS_RELEASE_KEY== 'true'}}
|
40
|
+
run: cat releases.json
|
41
|
+
|
42
|
+
- name: Send release.json to BQ
|
43
|
+
if: ${{env.HAS_RELEASE_KEY== 'true'}}
|
44
|
+
run: bq load --source_format=NEWLINE_DELIMITED_JSON metrics.releases releases.json
|
@@ -0,0 +1,47 @@
|
|
1
|
+
# .github/workflows/release.yml
|
2
|
+
|
3
|
+
name: release
|
4
|
+
|
5
|
+
on:
|
6
|
+
push:
|
7
|
+
branches:
|
8
|
+
- main
|
9
|
+
|
10
|
+
jobs:
|
11
|
+
release-please:
|
12
|
+
runs-on: ubuntu-latest
|
13
|
+
steps:
|
14
|
+
- uses: GoogleCloudPlatform/release-please-action@v2
|
15
|
+
id: release
|
16
|
+
with:
|
17
|
+
release-type: ruby
|
18
|
+
package-name: looker-sdk
|
19
|
+
bump-minor-pre-major: true
|
20
|
+
bump-patch-for-minor-pre-major: true
|
21
|
+
version-file: "lib/looker-sdk/version.rb"
|
22
|
+
token: ${{ secrets.LOS_AUTO_BOT_RP_TOKEN }}
|
23
|
+
# Checkout code if release was created
|
24
|
+
- uses: actions/checkout@v2
|
25
|
+
if: ${{ steps.release.outputs.release_created }}
|
26
|
+
# Setup ruby if a release was created
|
27
|
+
- uses: ruby/setup-ruby@v1
|
28
|
+
with:
|
29
|
+
ruby-version: 2.7.7
|
30
|
+
if: ${{ steps.release.outputs.release_created }}
|
31
|
+
# Bundle install
|
32
|
+
- run: bundle install
|
33
|
+
if: ${{ steps.release.outputs.release_created }}
|
34
|
+
# Publish
|
35
|
+
- name: publish gem
|
36
|
+
run: |
|
37
|
+
mkdir -p $HOME/.gem
|
38
|
+
touch $HOME/.gem/credentials
|
39
|
+
chmod 0600 $HOME/.gem/credentials
|
40
|
+
printf -- "---\n:rubygems_api_key: ${GEM_HOST_API_KEY}\n" > $HOME/.gem/credentials
|
41
|
+
gem build *.gemspec
|
42
|
+
gem push *.gem
|
43
|
+
env:
|
44
|
+
# Make sure to update the secret name
|
45
|
+
# if yours isn't named RUBYGEMS_AUTH_TOKEN
|
46
|
+
GEM_HOST_API_KEY: "${{secrets.RUBYGEMS_AUTH_TOKEN}}"
|
47
|
+
if: ${{ steps.release.outputs.release_created }}
|
@@ -0,0 +1,137 @@
|
|
1
|
+
name: Ruby-CI test matrix
|
2
|
+
|
3
|
+
on:
|
4
|
+
push:
|
5
|
+
branches: [ main ]
|
6
|
+
pull_request:
|
7
|
+
branches: [ main ]
|
8
|
+
workflow_dispatch:
|
9
|
+
env:
|
10
|
+
LOOKERSDK_BASE_URL: https://localhost:20000
|
11
|
+
LOOKERSDK_VERIFY_SSL: false
|
12
|
+
LOOKERSDK_API_VERSION: "4.0"
|
13
|
+
|
14
|
+
jobs:
|
15
|
+
setup:
|
16
|
+
uses: looker-open-source/reusable-actions/.github/workflows/supported-versions.yml@main
|
17
|
+
|
18
|
+
test:
|
19
|
+
name: Ruby-CI ${{ matrix.ruby-version }}/${{ matrix.looker }}
|
20
|
+
env:
|
21
|
+
LOOKERSDK_CLIENT_ID: ${{ secrets.LOOKERSDK_CLIENT_ID }}
|
22
|
+
LOOKERSDK_CLIENT_SECRET: ${{ secrets.LOOKERSDK_CLIENT_SECRET }}
|
23
|
+
CI_REPORTS: results/Ruby-CI-ruby_${{ matrix.ruby-version }}_Looker_${{ matrix.looker }}
|
24
|
+
|
25
|
+
needs: setup
|
26
|
+
runs-on: ubuntu-latest
|
27
|
+
strategy:
|
28
|
+
matrix:
|
29
|
+
ruby-version: [2.7.7]
|
30
|
+
looker: ${{ fromJson(needs.setup.outputs.matrix_json) }}
|
31
|
+
|
32
|
+
steps:
|
33
|
+
- name: Cancel Previous Runs
|
34
|
+
uses: styfle/cancel-workflow-action@0.11.0
|
35
|
+
with:
|
36
|
+
access_token: ${{ secrets.GITHUB_TOKEN }}
|
37
|
+
|
38
|
+
- uses: actions/checkout@v3
|
39
|
+
|
40
|
+
- name: Authenticate to Google Cloud
|
41
|
+
uses: google-github-actions/auth@v1.0.0
|
42
|
+
with:
|
43
|
+
credentials_json: ${{ secrets.GCP_AR_READER_SA_KEY }}
|
44
|
+
project_id: ${{ secrets.GCP_PROJECT_ID }}
|
45
|
+
create_credentials_file: true
|
46
|
+
export_environment_variables: true
|
47
|
+
|
48
|
+
- name: Set up Cloud SDK
|
49
|
+
uses: google-github-actions/setup-gcloud@v1.1.0
|
50
|
+
|
51
|
+
- name: Authenticate Artifact Repository
|
52
|
+
run: gcloud auth configure-docker us-west1-docker.pkg.dev --quiet
|
53
|
+
|
54
|
+
- name: Pull and run Looker docker image
|
55
|
+
# TODO: can we cache some layers of the image for faster download?
|
56
|
+
# we probably don't want to cache the final image for IP security...
|
57
|
+
run: |
|
58
|
+
docker pull --quiet us-west1-docker.pkg.dev/cloud-looker-sdk-codegen-cicd/looker/${{ matrix.looker }}
|
59
|
+
# set $LOOKER_OPTS to --no-ssl if we want to turn off ssl
|
60
|
+
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 }}
|
61
|
+
docker logs -f looker-sdk-codegen-ci --until=30s &
|
62
|
+
|
63
|
+
- name: Set up Ruby ${{ matrix.ruby-version }}
|
64
|
+
uses: ruby/setup-ruby@v1
|
65
|
+
with:
|
66
|
+
ruby-version: ${{ matrix.ruby-version }}
|
67
|
+
bundler-cache: false
|
68
|
+
|
69
|
+
- name: Install dependencies
|
70
|
+
run: bundle install
|
71
|
+
|
72
|
+
- name: Mock .netrc
|
73
|
+
run: |
|
74
|
+
mkdir -p test/fixtures
|
75
|
+
echo "machine localhost" > test/fixtures/.netrc
|
76
|
+
echo " login $LOOKERSDK_CLIENT_ID" >> test/fixtures/.netrc
|
77
|
+
echo " password $LOOKERSDK_CLIENT_SECRET" >> test/fixtures/.netrc
|
78
|
+
chmod 600 test/fixtures/.netrc
|
79
|
+
|
80
|
+
- name: Check that Looker is ready
|
81
|
+
run: |
|
82
|
+
${{ github.workspace }}/.github/scripts/wait_for_looker.sh
|
83
|
+
|
84
|
+
- name: Report Failure
|
85
|
+
run: |
|
86
|
+
curl --request POST \
|
87
|
+
--url https://api.github.com/repos/looker-open-source/sdk-codegen/check-runs \
|
88
|
+
--header "authorization: Bearer ${{ secrets.GITHUB_TOKEN }}" \
|
89
|
+
--header "content-type: application/json" \
|
90
|
+
--header "Accept: application/vnd.github.v3+json" \
|
91
|
+
--data '{
|
92
|
+
"name": "Ruby-CI Tests",
|
93
|
+
"head_sha": "${{ github.event.pull_request.head.sha || github.sha }}",
|
94
|
+
"conclusion": "failure"
|
95
|
+
}' \
|
96
|
+
--fail
|
97
|
+
if: failure()
|
98
|
+
|
99
|
+
- name: Run tests
|
100
|
+
run: bundle exec rake test --trace
|
101
|
+
|
102
|
+
- name: remove mock .netrc
|
103
|
+
if: ${{ always() }}
|
104
|
+
run: |
|
105
|
+
rm test/fixtures/.netrc
|
106
|
+
|
107
|
+
- name: Upload ts unit test results
|
108
|
+
if: ${{ always() }}
|
109
|
+
uses: actions/upload-artifact@v3.1.2
|
110
|
+
with:
|
111
|
+
name: ruby-ci-test-results
|
112
|
+
path: results/
|
113
|
+
|
114
|
+
publish-test-results:
|
115
|
+
needs: [test]
|
116
|
+
if: success() || failure()
|
117
|
+
runs-on: ubuntu-latest
|
118
|
+
|
119
|
+
steps:
|
120
|
+
- name: Download Artifacts
|
121
|
+
uses: actions/download-artifact@v3
|
122
|
+
with:
|
123
|
+
name: ruby-ci-test-results
|
124
|
+
path: artifacts
|
125
|
+
|
126
|
+
- name: Publish Test Results
|
127
|
+
uses: EnricoMi/publish-unit-test-result-action@v1.12
|
128
|
+
with:
|
129
|
+
# Cosmetic issue with `check_name` being associated to the wrong
|
130
|
+
# workflow: https://github.com/EnricoMi/publish-unit-test-result-action/issues/12
|
131
|
+
check_name: Ruby-CI Tests
|
132
|
+
github_token: ${{ secrets.GITHUB_TOKEN }}
|
133
|
+
report_individual_runs: true
|
134
|
+
hide_comments: orphaned commits
|
135
|
+
check_run_annotations: 'none'
|
136
|
+
compare_to_earlier_commit: false
|
137
|
+
files: 'artifacts/**/*.xml'
|
data/.gitignore
CHANGED
@@ -11,6 +11,7 @@
|
|
11
11
|
*.sass-cache
|
12
12
|
*.iml
|
13
13
|
|
14
|
+
|
14
15
|
# OS or Editor folders
|
15
16
|
.DS_Store
|
16
17
|
.cache
|
@@ -25,6 +26,8 @@ intermediate
|
|
25
26
|
publish
|
26
27
|
target
|
27
28
|
.idea
|
29
|
+
.direnv
|
30
|
+
.env
|
28
31
|
out
|
29
32
|
|
30
33
|
# markdown previews
|
@@ -36,7 +39,6 @@ out
|
|
36
39
|
.bundle
|
37
40
|
.config
|
38
41
|
.yardoc
|
39
|
-
Gemfile.lock
|
40
42
|
Gemfile.optional.lock
|
41
43
|
InstalledFiles
|
42
44
|
_yardoc
|
data/CHANGELOG.md
ADDED
@@ -0,0 +1,36 @@
|
|
1
|
+
# Changelog
|
2
|
+
|
3
|
+
### [0.1.4](https://www.github.com/looker-open-source/looker-sdk-ruby/compare/v0.1.3...v0.1.4) (2023-03-14)
|
4
|
+
|
5
|
+
|
6
|
+
### Features
|
7
|
+
|
8
|
+
* upgrade faraday dependency ([#108](https://www.github.com/looker-open-source/looker-sdk-ruby/issues/108)) ([0abdea6](https://www.github.com/looker-open-source/looker-sdk-ruby/commit/0abdea60e579a104e4f060a9ca9b3cd7ae17d7b0))
|
9
|
+
### [0.1.3](https://www.github.com/looker-open-source/looker-sdk-ruby/compare/v0.1.2...v0.1.3) (2023-03-11)
|
10
|
+
|
11
|
+
|
12
|
+
### Bug Fixes
|
13
|
+
|
14
|
+
* Add processing to look up error documents ([a982253](https://www.github.com/looker-open-source/looker-sdk-ruby/commit/a982253a806833b4ec53ca5322f6ba046ad8fe74))
|
15
|
+
* Add release-please workflow ([8e8de5b](https://www.github.com/looker-open-source/looker-sdk-ruby/commit/8e8de5b9cb0063047a0f92511ce3f5e93237d109))
|
16
|
+
* allow faraday 2.x ([cbf1d6d](https://www.github.com/looker-open-source/looker-sdk-ruby/commit/cbf1d6df15e1c3e2101772de3be78e95e7a6cf06))
|
17
|
+
* change references from old location github.com/looker to new location github.com/looker-open-source ([baf0f31](https://www.github.com/looker-open-source/looker-sdk-ruby/commit/baf0f315deec45d04d53ca2ba08ad7139beed884))
|
18
|
+
* fix api version in CI workflow ([158334b](https://www.github.com/looker-open-source/looker-sdk-ruby/commit/158334bf7675ebbc3293f8fc06b028e0039eddf7))
|
19
|
+
* initial implementation of CI ([241b28e](https://www.github.com/looker-open-source/looker-sdk-ruby/commit/241b28ef9569fc4c7b940803537d49c48a4b3224))
|
20
|
+
* minor typo in release.yml ([44ea762](https://www.github.com/looker-open-source/looker-sdk-ruby/commit/44ea76282eade774b82750ee2dfa98c603a60733))
|
21
|
+
* rename readme.md to more common README.md ([83aa2c7](https://www.github.com/looker-open-source/looker-sdk-ruby/commit/83aa2c788c60c7a305b7af40990e75128353cb8d))
|
22
|
+
* set proper version of looker in CI workflow ([a452c91](https://www.github.com/looker-open-source/looker-sdk-ruby/commit/a452c91a364ebecd420bf1a110f9b497b3fb0349))
|
23
|
+
* slight adjustment to output of documentation url in error plus added error example ([5a4a75a](https://www.github.com/looker-open-source/looker-sdk-ruby/commit/5a4a75ad0af2c477db9980743fe59388e2a6cfb6))
|
24
|
+
* update ports back to 19999 for defaults. ([3f91b99](https://www.github.com/looker-open-source/looker-sdk-ruby/commit/3f91b9923c1821e840e84014759c54ea07b7072f))
|
25
|
+
|
26
|
+
### [0.1.2](https://www.github.com/looker-open-source/looker-sdk-ruby/compare/v0.1.1...v0.1.2) (2021-11-19)
|
27
|
+
|
28
|
+
|
29
|
+
### Bug Fixes
|
30
|
+
|
31
|
+
* Add release-please workflow ([8e8de5b](https://www.github.com/looker-open-source/looker-sdk-ruby/commit/8e8de5b9cb0063047a0f92511ce3f5e93237d109))
|
32
|
+
* change references from old location github.com/looker to new location github.com/looker-open-source ([baf0f31](https://www.github.com/looker-open-source/looker-sdk-ruby/commit/baf0f315deec45d04d53ca2ba08ad7139beed884))
|
33
|
+
* fix api version in CI workflow ([158334b](https://www.github.com/looker-open-source/looker-sdk-ruby/commit/158334bf7675ebbc3293f8fc06b028e0039eddf7))
|
34
|
+
* initial implementation of CI ([241b28e](https://www.github.com/looker-open-source/looker-sdk-ruby/commit/241b28ef9569fc4c7b940803537d49c48a4b3224))
|
35
|
+
* minor typo in release.yml ([44ea762](https://www.github.com/looker-open-source/looker-sdk-ruby/commit/44ea76282eade774b82750ee2dfa98c603a60733))
|
36
|
+
* set proper version of looker in CI workflow ([a452c91](https://www.github.com/looker-open-source/looker-sdk-ruby/commit/a452c91a364ebecd420bf1a110f9b497b3fb0349))
|
data/CODE_OF_CONDUCT.md
CHANGED
@@ -1,46 +1,93 @@
|
|
1
|
-
#
|
1
|
+
# Code of Conduct
|
2
2
|
|
3
3
|
## Our Pledge
|
4
4
|
|
5
|
-
In the interest of fostering an open and welcoming environment, we as
|
5
|
+
In the interest of fostering an open and welcoming environment, we as
|
6
|
+
contributors and maintainers pledge to making participation in our project and
|
7
|
+
our community a harassment-free experience for everyone, regardless of age, body
|
8
|
+
size, disability, ethnicity, gender identity and expression, level of
|
9
|
+
experience, education, socio-economic status, nationality, personal appearance,
|
10
|
+
race, religion, or sexual identity and orientation.
|
6
11
|
|
7
12
|
## Our Standards
|
8
13
|
|
9
|
-
Examples of behavior that contributes to creating a positive environment
|
14
|
+
Examples of behavior that contributes to creating a positive environment
|
15
|
+
include:
|
10
16
|
|
11
|
-
*
|
12
|
-
*
|
13
|
-
*
|
14
|
-
*
|
15
|
-
*
|
17
|
+
* Using welcoming and inclusive language
|
18
|
+
* Being respectful of differing viewpoints and experiences
|
19
|
+
* Gracefully accepting constructive criticism
|
20
|
+
* Focusing on what is best for the community
|
21
|
+
* Showing empathy towards other community members
|
16
22
|
|
17
23
|
Examples of unacceptable behavior by participants include:
|
18
24
|
|
19
|
-
*
|
20
|
-
|
21
|
-
*
|
22
|
-
*
|
23
|
-
*
|
25
|
+
* The use of sexualized language or imagery and unwelcome sexual attention or
|
26
|
+
advances
|
27
|
+
* Trolling, insulting/derogatory comments, and personal or political attacks
|
28
|
+
* Public or private harassment
|
29
|
+
* Publishing others' private information, such as a physical or electronic
|
30
|
+
address, without explicit permission
|
31
|
+
* Other conduct which could reasonably be considered inappropriate in a
|
32
|
+
professional setting
|
24
33
|
|
25
34
|
## Our Responsibilities
|
26
35
|
|
27
|
-
Project maintainers are responsible for clarifying the standards of acceptable
|
36
|
+
Project maintainers are responsible for clarifying the standards of acceptable
|
37
|
+
behavior and are expected to take appropriate and fair corrective action in
|
38
|
+
response to any instances of unacceptable behavior.
|
28
39
|
|
29
|
-
Project maintainers have the right and responsibility to remove, edit, or reject
|
40
|
+
Project maintainers have the right and responsibility to remove, edit, or reject
|
41
|
+
comments, commits, code, wiki edits, issues, and other contributions that are
|
42
|
+
not aligned to this Code of Conduct, or to ban temporarily or permanently any
|
43
|
+
contributor for other behaviors that they deem inappropriate, threatening,
|
44
|
+
offensive, or harmful.
|
30
45
|
|
31
46
|
## Scope
|
32
47
|
|
33
|
-
This Code of Conduct applies both within project spaces and in public spaces
|
34
|
-
|
35
|
-
|
36
|
-
|
37
|
-
|
38
|
-
|
39
|
-
|
48
|
+
This Code of Conduct applies both within project spaces and in public spaces
|
49
|
+
when an individual is representing the project or its community. Examples of
|
50
|
+
representing a project or community include using an official project e-mail
|
51
|
+
address, posting via an official social media account, or acting as an appointed
|
52
|
+
representative at an online or offline event. Representation of a project may be
|
53
|
+
further defined and clarified by project maintainers.
|
54
|
+
|
55
|
+
This Code of Conduct also applies outside the project spaces when the Project
|
56
|
+
Steward has a reasonable belief that an individual's behavior may have a
|
57
|
+
negative impact on the project or its community.
|
58
|
+
|
59
|
+
## Conflict Resolution
|
60
|
+
|
61
|
+
We do not believe that all conflict is bad; healthy debate and disagreement
|
62
|
+
often yield positive results. However, it is never okay to be disrespectful or
|
63
|
+
to engage in behavior that violates the project’s code of conduct.
|
64
|
+
|
65
|
+
If you see someone violating the code of conduct, you are encouraged to address
|
66
|
+
the behavior directly with those involved. Many issues can be resolved quickly
|
67
|
+
and easily, and this gives people more control over the outcome of their
|
68
|
+
dispute. If you are unable to resolve the matter for any reason, or if the
|
69
|
+
behavior is threatening or harassing, report it. We are dedicated to providing
|
70
|
+
an environment where participants feel welcome and safe.
|
71
|
+
|
72
|
+
Reports should be directed to *Mike DeAngelo* drstrangelove@google.com, the
|
73
|
+
Project Steward(s) for *looker-sdk-ruby*. It is the Project Steward’s duty to
|
74
|
+
receive and address reported violations of the code of conduct. They will then
|
75
|
+
work with a committee consisting of representatives from the Open Source
|
76
|
+
Programs Office and the Google Open Source Strategy team. If for any reason you
|
77
|
+
are uncomfortable reaching out to the Project Steward, please email
|
78
|
+
opensource@google.com.
|
79
|
+
|
80
|
+
We will investigate every complaint, but you may not receive a direct response.
|
81
|
+
We will use our discretion in determining when and how to follow up on reported
|
82
|
+
incidents, which may range from not taking action to permanent expulsion from
|
83
|
+
the project and project-sponsored spaces. We will notify the accused of the
|
84
|
+
report and provide them an opportunity to discuss it before any action is taken.
|
85
|
+
The identity of the reporter will be omitted from the details of the report
|
86
|
+
supplied to the accused. In potentially harmful situations, such as ongoing
|
87
|
+
harassment or threats to anyone's safety, we may take action without notice.
|
40
88
|
|
41
89
|
## Attribution
|
42
90
|
|
43
|
-
This Code of Conduct is adapted from the
|
44
|
-
|
45
|
-
|
46
|
-
[version]: http://contributor-covenant.org/version/1/4/
|
91
|
+
This Code of Conduct is adapted from the Contributor Covenant, version 1.4,
|
92
|
+
available at
|
93
|
+
https://www.contributor-covenant.org/version/1/4/code-of-conduct.html
|
data/CONTRIBUTING.md
ADDED
@@ -0,0 +1,29 @@
|
|
1
|
+
# How to Contribute
|
2
|
+
|
3
|
+
We'd love to accept your patches and contributions to this project. There are
|
4
|
+
just a few small guidelines you need to follow.
|
5
|
+
|
6
|
+
## Contributor License Agreement
|
7
|
+
|
8
|
+
Contributions to this project must be accompanied by a Contributor License
|
9
|
+
Agreement (CLA). You (or your employer) retain the copyright to your
|
10
|
+
contribution; this simply gives us permission to use and redistribute your
|
11
|
+
contributions as part of the project. Head over to
|
12
|
+
<https://cla.developers.google.com/> to see your current agreements on file or
|
13
|
+
to sign a new one.
|
14
|
+
|
15
|
+
You generally only need to submit a CLA once, so if you've already submitted one
|
16
|
+
(even if it was for a different project), you probably don't need to do it
|
17
|
+
again.
|
18
|
+
|
19
|
+
## Code Reviews
|
20
|
+
|
21
|
+
All submissions, including submissions by project members, require review. We
|
22
|
+
use GitHub pull requests for this purpose. Consult
|
23
|
+
[GitHub Help](https://help.github.com/articles/about-pull-requests/) for more
|
24
|
+
information on using pull requests.
|
25
|
+
|
26
|
+
## Community Guidelines
|
27
|
+
|
28
|
+
This project follows
|
29
|
+
[Google's Open Source Community Guidelines](https://opensource.google/conduct/).
|
data/Gemfile.lock
ADDED
@@ -0,0 +1,85 @@
|
|
1
|
+
PATH
|
2
|
+
remote: .
|
3
|
+
specs:
|
4
|
+
looker-sdk (0.1.4)
|
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
|
+
awesome_print (1.6.1)
|
14
|
+
builder (3.2.4)
|
15
|
+
ci_reporter (2.1.0)
|
16
|
+
builder (>= 2.1.2)
|
17
|
+
rexml
|
18
|
+
ci_reporter_minitest (1.0.0)
|
19
|
+
ci_reporter (~> 2.0)
|
20
|
+
minitest (~> 5.0)
|
21
|
+
faraday (1.10.3)
|
22
|
+
faraday-em_http (~> 1.0)
|
23
|
+
faraday-em_synchrony (~> 1.0)
|
24
|
+
faraday-excon (~> 1.1)
|
25
|
+
faraday-httpclient (~> 1.0)
|
26
|
+
faraday-multipart (~> 1.0)
|
27
|
+
faraday-net_http (~> 1.0)
|
28
|
+
faraday-net_http_persistent (~> 1.0)
|
29
|
+
faraday-patron (~> 1.0)
|
30
|
+
faraday-rack (~> 1.0)
|
31
|
+
faraday-retry (~> 1.0)
|
32
|
+
ruby2_keywords (>= 0.0.4)
|
33
|
+
faraday-em_http (1.0.0)
|
34
|
+
faraday-em_synchrony (1.0.0)
|
35
|
+
faraday-excon (1.1.0)
|
36
|
+
faraday-httpclient (1.0.1)
|
37
|
+
faraday-multipart (1.0.4)
|
38
|
+
multipart-post (~> 2)
|
39
|
+
faraday-net_http (1.0.1)
|
40
|
+
faraday-net_http_persistent (1.2.0)
|
41
|
+
faraday-patron (1.0.0)
|
42
|
+
faraday-rack (1.0.0)
|
43
|
+
faraday-retry (1.0.3)
|
44
|
+
metaclass (0.0.4)
|
45
|
+
minitest (5.9.1)
|
46
|
+
mocha (1.1.0)
|
47
|
+
metaclass (~> 0.0.1)
|
48
|
+
multi_json (1.15.0)
|
49
|
+
multipart-post (2.3.0)
|
50
|
+
netrc (0.7.9)
|
51
|
+
public_suffix (5.0.1)
|
52
|
+
rack (1.6.4)
|
53
|
+
rack-test (0.6.2)
|
54
|
+
rack (>= 1.0)
|
55
|
+
rake (10.5.0)
|
56
|
+
redcarpet (3.1.2)
|
57
|
+
rexml (3.2.5)
|
58
|
+
ruby2_keywords (0.0.5)
|
59
|
+
sawyer (0.9.2)
|
60
|
+
addressable (>= 2.3.5)
|
61
|
+
faraday (>= 0.17.3, < 3)
|
62
|
+
simplecov (0.7.1)
|
63
|
+
multi_json (~> 1.0)
|
64
|
+
simplecov-html (~> 0.7.1)
|
65
|
+
simplecov-html (0.7.1)
|
66
|
+
|
67
|
+
PLATFORMS
|
68
|
+
x86_64-linux
|
69
|
+
|
70
|
+
DEPENDENCIES
|
71
|
+
awesome_print (~> 1.6.1)
|
72
|
+
ci_reporter_minitest (~> 1.0)
|
73
|
+
faraday (~> 1.10)
|
74
|
+
looker-sdk!
|
75
|
+
minitest (= 5.9.1)
|
76
|
+
mocha (= 1.1.0)
|
77
|
+
netrc (~> 0.7.7)
|
78
|
+
rack (= 1.6.4)
|
79
|
+
rack-test (= 0.6.2)
|
80
|
+
rake (< 11.0)
|
81
|
+
redcarpet (~> 3.1.2)
|
82
|
+
simplecov (~> 0.7.1)
|
83
|
+
|
84
|
+
BUNDLED WITH
|
85
|
+
2.4.8
|
data/LICENSE.md
CHANGED
@@ -1,33 +1,21 @@
|
|
1
1
|
The MIT License (MIT)
|
2
2
|
|
3
3
|
Copyright (c) 2015 Looker Data Sciences, Inc.
|
4
|
+
Copyright (c) 2021 Google LLC
|
4
5
|
|
5
|
-
Permission is hereby granted, free of charge, to any person obtaining a copy
|
6
|
-
|
7
|
-
|
8
|
-
|
9
|
-
|
10
|
-
|
6
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy of
|
7
|
+
this software and associated documentation files (the "Software"), to deal in
|
8
|
+
the Software without restriction, including without limitation the rights to
|
9
|
+
use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of
|
10
|
+
the Software, and to permit persons to whom the Software is furnished to do so,
|
11
|
+
subject to the following conditions:
|
11
12
|
|
12
|
-
The above copyright notice and this permission notice shall be included in
|
13
|
-
|
13
|
+
The above copyright notice and this permission notice shall be included in all
|
14
|
+
copies or substantial portions of the Software.
|
14
15
|
|
15
16
|
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
16
|
-
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
17
|
-
|
18
|
-
|
19
|
-
|
20
|
-
|
21
|
-
THE SOFTWARE.
|
22
|
-
|
23
|
-
The Looker SDK for Ruby is based in part on [Octokit](https://github.com/octokit/octokit.rb).
|
24
|
-
|
25
|
-
Octokit's license:
|
26
|
-
|
27
|
-
Copyright (c) 2009-2014 Wynn Netherland, Adam Stacoviak, Erik Michaels-Ober
|
28
|
-
|
29
|
-
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
|
30
|
-
|
31
|
-
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
|
32
|
-
|
33
|
-
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
17
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS
|
18
|
+
FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR
|
19
|
+
COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER
|
20
|
+
IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
|
21
|
+
CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
data/Octokit_LICENSE.md
ADDED
@@ -0,0 +1,22 @@
|
|
1
|
+
The Looker SDK for Ruby is based in part on [Octokit](https://github.com/octokit/octokit.rb).
|
2
|
+
|
3
|
+
Octokit's license:
|
4
|
+
|
5
|
+
Copyright (c) 2009-2014 Wynn Netherland, Adam Stacoviak, Erik Michaels-Ober
|
6
|
+
|
7
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy of
|
8
|
+
this software and associated documentation files (the "Software"), to deal in
|
9
|
+
the Software without restriction, including without limitation the rights to
|
10
|
+
use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of
|
11
|
+
the Software, and to permit persons to whom the Software is furnished to do so,
|
12
|
+
subject to the following conditions:
|
13
|
+
|
14
|
+
The above copyright notice and this permission notice shall be included in all
|
15
|
+
copies or substantial portions of the Software.
|
16
|
+
|
17
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
18
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS
|
19
|
+
FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR
|
20
|
+
COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER
|
21
|
+
IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
|
22
|
+
CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|