googleauth 0.9.0 → 0.17.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/.yardopts +11 -0
- data/CHANGELOG.md +113 -21
- data/README.md +13 -15
- data/SECURITY.md +7 -0
- data/lib/googleauth/application_default.rb +9 -9
- data/lib/googleauth/compute_engine.rb +55 -30
- data/lib/googleauth/credentials.rb +253 -64
- data/lib/googleauth/credentials_loader.rb +15 -16
- data/lib/googleauth/iam.rb +1 -1
- data/{spec/googleauth/stores/store_examples.rb → lib/googleauth/id_tokens/errors.rb} +36 -23
- data/lib/googleauth/id_tokens/key_sources.rb +396 -0
- data/lib/googleauth/id_tokens/verifier.rb +142 -0
- data/lib/googleauth/id_tokens.rb +233 -0
- data/lib/googleauth/json_key_reader.rb +6 -2
- data/lib/googleauth/scope_util.rb +1 -1
- data/lib/googleauth/service_account.rb +61 -36
- data/lib/googleauth/signet.rb +9 -7
- data/lib/googleauth/stores/file_token_store.rb +1 -0
- data/lib/googleauth/stores/redis_token_store.rb +1 -0
- data/lib/googleauth/user_authorizer.rb +8 -3
- data/lib/googleauth/user_refresh.rb +1 -1
- data/lib/googleauth/version.rb +1 -1
- data/lib/googleauth/web_user_authorizer.rb +5 -8
- data/lib/googleauth.rb +1 -0
- metadata +33 -76
- data/.github/CONTRIBUTING.md +0 -74
- data/.github/ISSUE_TEMPLATE/bug_report.md +0 -36
- data/.github/ISSUE_TEMPLATE/feature_request.md +0 -21
- data/.github/ISSUE_TEMPLATE/support_request.md +0 -7
- data/.gitignore +0 -36
- data/.kokoro/build.bat +0 -16
- data/.kokoro/build.sh +0 -4
- data/.kokoro/continuous/common.cfg +0 -24
- data/.kokoro/continuous/linux.cfg +0 -15
- data/.kokoro/continuous/osx.cfg +0 -3
- data/.kokoro/continuous/windows.cfg +0 -19
- data/.kokoro/osx.sh +0 -4
- data/.kokoro/presubmit/common.cfg +0 -24
- data/.kokoro/presubmit/linux.cfg +0 -14
- data/.kokoro/presubmit/osx.cfg +0 -3
- data/.kokoro/presubmit/windows.cfg +0 -19
- data/.kokoro/release.cfg +0 -53
- data/.kokoro/trampoline.bat +0 -10
- data/.kokoro/trampoline.sh +0 -4
- data/.rspec +0 -2
- data/.rubocop.yml +0 -42
- data/Gemfile +0 -25
- data/Rakefile +0 -89
- data/googleauth.gemspec +0 -35
- data/spec/googleauth/apply_auth_examples.rb +0 -148
- data/spec/googleauth/client_id_spec.rb +0 -160
- data/spec/googleauth/compute_engine_spec.rb +0 -122
- data/spec/googleauth/credentials_spec.rb +0 -459
- data/spec/googleauth/get_application_default_spec.rb +0 -286
- data/spec/googleauth/iam_spec.rb +0 -80
- data/spec/googleauth/scope_util_spec.rb +0 -77
- data/spec/googleauth/service_account_spec.rb +0 -482
- data/spec/googleauth/signet_spec.rb +0 -134
- data/spec/googleauth/stores/file_token_store_spec.rb +0 -57
- data/spec/googleauth/stores/redis_token_store_spec.rb +0 -50
- data/spec/googleauth/user_authorizer_spec.rb +0 -323
- data/spec/googleauth/user_refresh_spec.rb +0 -359
- data/spec/googleauth/web_user_authorizer_spec.rb +0 -172
- data/spec/spec_helper.rb +0 -92
- /data/{COPYING → LICENSE} +0 -0
metadata
CHANGED
@@ -1,29 +1,35 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: googleauth
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.17.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Tim Emiola
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2021-09-01 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: faraday
|
15
15
|
requirement: !ruby/object:Gem::Requirement
|
16
16
|
requirements:
|
17
|
-
- - "
|
17
|
+
- - ">="
|
18
|
+
- !ruby/object:Gem::Version
|
19
|
+
version: 0.17.3
|
20
|
+
- - "<"
|
18
21
|
- !ruby/object:Gem::Version
|
19
|
-
version: '0
|
22
|
+
version: '2.0'
|
20
23
|
type: :runtime
|
21
24
|
prerelease: false
|
22
25
|
version_requirements: !ruby/object:Gem::Requirement
|
23
26
|
requirements:
|
24
|
-
- - "
|
27
|
+
- - ">="
|
28
|
+
- !ruby/object:Gem::Version
|
29
|
+
version: 0.17.3
|
30
|
+
- - "<"
|
25
31
|
- !ruby/object:Gem::Version
|
26
|
-
version: '0
|
32
|
+
version: '2.0'
|
27
33
|
- !ruby/object:Gem::Dependency
|
28
34
|
name: jwt
|
29
35
|
requirement: !ruby/object:Gem::Requirement
|
@@ -98,51 +104,28 @@ dependencies:
|
|
98
104
|
requirements:
|
99
105
|
- - "~>"
|
100
106
|
- !ruby/object:Gem::Version
|
101
|
-
version: '0.
|
107
|
+
version: '0.15'
|
102
108
|
type: :runtime
|
103
109
|
prerelease: false
|
104
110
|
version_requirements: !ruby/object:Gem::Requirement
|
105
111
|
requirements:
|
106
112
|
- - "~>"
|
107
113
|
- !ruby/object:Gem::Version
|
108
|
-
version: '0.
|
109
|
-
description:
|
110
|
-
|
111
|
-
|
112
|
-
|
113
|
-
email: temiola@google.com
|
114
|
+
version: '0.15'
|
115
|
+
description: Implements simple authorization for accessing Google APIs, and provides
|
116
|
+
support for Application Default Credentials.
|
117
|
+
email:
|
118
|
+
- temiola@google.com
|
114
119
|
executables: []
|
115
120
|
extensions: []
|
116
121
|
extra_rdoc_files: []
|
117
122
|
files:
|
118
|
-
- ".
|
119
|
-
- ".github/ISSUE_TEMPLATE/bug_report.md"
|
120
|
-
- ".github/ISSUE_TEMPLATE/feature_request.md"
|
121
|
-
- ".github/ISSUE_TEMPLATE/support_request.md"
|
122
|
-
- ".gitignore"
|
123
|
-
- ".kokoro/build.bat"
|
124
|
-
- ".kokoro/build.sh"
|
125
|
-
- ".kokoro/continuous/common.cfg"
|
126
|
-
- ".kokoro/continuous/linux.cfg"
|
127
|
-
- ".kokoro/continuous/osx.cfg"
|
128
|
-
- ".kokoro/continuous/windows.cfg"
|
129
|
-
- ".kokoro/osx.sh"
|
130
|
-
- ".kokoro/presubmit/common.cfg"
|
131
|
-
- ".kokoro/presubmit/linux.cfg"
|
132
|
-
- ".kokoro/presubmit/osx.cfg"
|
133
|
-
- ".kokoro/presubmit/windows.cfg"
|
134
|
-
- ".kokoro/release.cfg"
|
135
|
-
- ".kokoro/trampoline.bat"
|
136
|
-
- ".kokoro/trampoline.sh"
|
137
|
-
- ".rspec"
|
138
|
-
- ".rubocop.yml"
|
123
|
+
- ".yardopts"
|
139
124
|
- CHANGELOG.md
|
140
125
|
- CODE_OF_CONDUCT.md
|
141
|
-
-
|
142
|
-
- Gemfile
|
126
|
+
- LICENSE
|
143
127
|
- README.md
|
144
|
-
-
|
145
|
-
- googleauth.gemspec
|
128
|
+
- SECURITY.md
|
146
129
|
- lib/googleauth.rb
|
147
130
|
- lib/googleauth/application_default.rb
|
148
131
|
- lib/googleauth/client_id.rb
|
@@ -151,6 +134,10 @@ files:
|
|
151
134
|
- lib/googleauth/credentials_loader.rb
|
152
135
|
- lib/googleauth/default_credentials.rb
|
153
136
|
- lib/googleauth/iam.rb
|
137
|
+
- lib/googleauth/id_tokens.rb
|
138
|
+
- lib/googleauth/id_tokens/errors.rb
|
139
|
+
- lib/googleauth/id_tokens/key_sources.rb
|
140
|
+
- lib/googleauth/id_tokens/verifier.rb
|
154
141
|
- lib/googleauth/json_key_reader.rb
|
155
142
|
- lib/googleauth/scope_util.rb
|
156
143
|
- lib/googleauth/service_account.rb
|
@@ -162,26 +149,13 @@ files:
|
|
162
149
|
- lib/googleauth/user_refresh.rb
|
163
150
|
- lib/googleauth/version.rb
|
164
151
|
- lib/googleauth/web_user_authorizer.rb
|
165
|
-
|
166
|
-
- spec/googleauth/client_id_spec.rb
|
167
|
-
- spec/googleauth/compute_engine_spec.rb
|
168
|
-
- spec/googleauth/credentials_spec.rb
|
169
|
-
- spec/googleauth/get_application_default_spec.rb
|
170
|
-
- spec/googleauth/iam_spec.rb
|
171
|
-
- spec/googleauth/scope_util_spec.rb
|
172
|
-
- spec/googleauth/service_account_spec.rb
|
173
|
-
- spec/googleauth/signet_spec.rb
|
174
|
-
- spec/googleauth/stores/file_token_store_spec.rb
|
175
|
-
- spec/googleauth/stores/redis_token_store_spec.rb
|
176
|
-
- spec/googleauth/stores/store_examples.rb
|
177
|
-
- spec/googleauth/user_authorizer_spec.rb
|
178
|
-
- spec/googleauth/user_refresh_spec.rb
|
179
|
-
- spec/googleauth/web_user_authorizer_spec.rb
|
180
|
-
- spec/spec_helper.rb
|
181
|
-
homepage: https://github.com/google/google-auth-library-ruby
|
152
|
+
homepage: https://github.com/googleapis/google-auth-library-ruby
|
182
153
|
licenses:
|
183
154
|
- Apache-2.0
|
184
|
-
metadata:
|
155
|
+
metadata:
|
156
|
+
changelog_uri: https://github.com/googleapis/google-auth-library-ruby/blob/master/CHANGELOG.md
|
157
|
+
source_code_uri: https://github.com/googleapis/google-auth-library-ruby
|
158
|
+
bug_tracker_uri: https://github.com/googleapis/google-auth-library-ruby/issues
|
185
159
|
post_install_message:
|
186
160
|
rdoc_options: []
|
187
161
|
require_paths:
|
@@ -190,32 +164,15 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
190
164
|
requirements:
|
191
165
|
- - ">="
|
192
166
|
- !ruby/object:Gem::Version
|
193
|
-
version: '
|
167
|
+
version: '2.5'
|
194
168
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
195
169
|
requirements:
|
196
170
|
- - ">="
|
197
171
|
- !ruby/object:Gem::Version
|
198
172
|
version: '0'
|
199
173
|
requirements: []
|
200
|
-
|
201
|
-
rubygems_version: 2.7.6.2
|
174
|
+
rubygems_version: 3.2.17
|
202
175
|
signing_key:
|
203
176
|
specification_version: 4
|
204
177
|
summary: Google Auth Library for Ruby
|
205
|
-
test_files:
|
206
|
-
- spec/googleauth/apply_auth_examples.rb
|
207
|
-
- spec/googleauth/client_id_spec.rb
|
208
|
-
- spec/googleauth/compute_engine_spec.rb
|
209
|
-
- spec/googleauth/credentials_spec.rb
|
210
|
-
- spec/googleauth/get_application_default_spec.rb
|
211
|
-
- spec/googleauth/iam_spec.rb
|
212
|
-
- spec/googleauth/scope_util_spec.rb
|
213
|
-
- spec/googleauth/service_account_spec.rb
|
214
|
-
- spec/googleauth/signet_spec.rb
|
215
|
-
- spec/googleauth/stores/file_token_store_spec.rb
|
216
|
-
- spec/googleauth/stores/redis_token_store_spec.rb
|
217
|
-
- spec/googleauth/stores/store_examples.rb
|
218
|
-
- spec/googleauth/user_authorizer_spec.rb
|
219
|
-
- spec/googleauth/user_refresh_spec.rb
|
220
|
-
- spec/googleauth/web_user_authorizer_spec.rb
|
221
|
-
- spec/spec_helper.rb
|
178
|
+
test_files: []
|
data/.github/CONTRIBUTING.md
DELETED
@@ -1,74 +0,0 @@
|
|
1
|
-
# How to become a contributor and submit your own code
|
2
|
-
|
3
|
-
## Contributor License Agreements
|
4
|
-
|
5
|
-
We'd love to accept your sample apps and patches! Before we can take them, we
|
6
|
-
have to jump a couple of legal hurdles.
|
7
|
-
|
8
|
-
Please fill out either the individual or corporate Contributor License Agreement
|
9
|
-
(CLA).
|
10
|
-
|
11
|
-
* If you are an individual writing original source code and you're sure you
|
12
|
-
own the intellectual property, then you'll need to sign an [individual CLA].
|
13
|
-
* If you work for a company that wants to allow you to contribute your work,
|
14
|
-
then you'll need to sign a [corporate CLA].
|
15
|
-
|
16
|
-
[individual CLA]: http://code.google.com/legal/individual-cla-v1.0.html
|
17
|
-
[corporate CLA]: http://code.google.com/legal/corporate-cla-v1.0.html
|
18
|
-
|
19
|
-
Follow either of the two links above to access the appropriate CLA and
|
20
|
-
instructions for how to sign and return it. Once we receive it, we'll be able to
|
21
|
-
accept your pull requests.
|
22
|
-
|
23
|
-
## Issue reporting
|
24
|
-
|
25
|
-
* Check that the issue has not already been reported.
|
26
|
-
* Check that the issue has not already been fixed in the latest code
|
27
|
-
(a.k.a. `master`).
|
28
|
-
* Be clear, concise and precise in your description of the problem.
|
29
|
-
* Open an issue with a descriptive title and a summary in grammatically correct,
|
30
|
-
complete sentences.
|
31
|
-
* Include any relevant code to the issue summary.
|
32
|
-
|
33
|
-
## Pull requests
|
34
|
-
|
35
|
-
* Read [how to properly contribute to open source projects on Github][2].
|
36
|
-
* Fork the project.
|
37
|
-
* Use a topic/feature branch to easily amend a pull request later, if necessary.
|
38
|
-
* Write [good commit messages][3].
|
39
|
-
* Use the same coding conventions as the rest of the project.
|
40
|
-
* Commit and push until you are happy with your contribution.
|
41
|
-
* Make sure to add tests for it. This is important so I don't break it
|
42
|
-
in a future version unintentionally.
|
43
|
-
* Add an entry to the [Changelog](CHANGELOG.md) accordingly. See [changelog entry format](#changelog-entry-format).
|
44
|
-
* Please try not to mess with the Rakefile, version, or history. If you want to
|
45
|
-
have your own version, or is otherwise necessary, that is fine, but please
|
46
|
-
isolate to its own commit so I can cherry-pick around it.
|
47
|
-
* Make sure the test suite is passing and the code you wrote doesn't produce
|
48
|
-
RuboCop offenses.
|
49
|
-
* [Squash related commits together][5].
|
50
|
-
* Open a [pull request][4] that relates to *only* one subject with a clear title
|
51
|
-
and description in grammatically correct, complete sentences.
|
52
|
-
|
53
|
-
### Changelog entry format
|
54
|
-
|
55
|
-
Here are a few examples:
|
56
|
-
|
57
|
-
```
|
58
|
-
* makes the scope parameter's optional in all APIs. (@tbetbetbe[])
|
59
|
-
* [#14](https://github.com/google/google-auth-library-ruby/issues/14): ADC Support for JWT Service Tokens. ([@tbetbetbe][])
|
60
|
-
```
|
61
|
-
|
62
|
-
* Mark it up in [Markdown syntax][6].
|
63
|
-
* The entry line should start with `* ` (an asterisk and a space).
|
64
|
-
* If the change has a related GitHub issue (e.g. a bug fix for a reported issue), put a link to the issue as `[#123](https://github.com/google/google-auth-library-ruby/issues/11): `.
|
65
|
-
* Describe the brief of the change. The sentence should end with a punctuation.
|
66
|
-
* At the end of the entry, add an implicit link to your GitHub user page as `([@username][])`.
|
67
|
-
* If this is your first contribution to google-auth-library-ruby project, add a link definition for the implicit link to the bottom of the changelog as `[@username]: https://github.com/username`.
|
68
|
-
|
69
|
-
[1]: https://github.com/google/google-auth-ruby-library/issues
|
70
|
-
[2]: http://gun.io/blog/how-to-github-fork-branch-and-pull-request
|
71
|
-
[3]: http://tbaggery.com/2008/04/19/a-note-about-git-commit-messages.html
|
72
|
-
[4]: https://help.github.com/articles/using-pull-requests
|
73
|
-
[5]: http://gitready.com/advanced/2009/02/10/squashing-commits-with-rebase.html
|
74
|
-
[6]: http://daringfireball.net/projects/markdown/syntax
|
@@ -1,36 +0,0 @@
|
|
1
|
-
---
|
2
|
-
name: Bug report
|
3
|
-
about: Create a report to help us improve
|
4
|
-
|
5
|
-
---
|
6
|
-
|
7
|
-
Thanks for stopping by to let us know something could be better!
|
8
|
-
|
9
|
-
**PLEASE READ**: If you have a support contract with Google, please create an issue in the [support console](https://cloud.google.com/support/) instead of filing on GitHub. This will ensure a timely response.
|
10
|
-
|
11
|
-
Please run down the following list and make sure you've tried the usual "quick fixes":
|
12
|
-
|
13
|
-
- Search the issues already opened: https://github.com/googleapis/google-auth-library-ruby/issues
|
14
|
-
- Search Stack Overflow: https://stackoverflow.com/questions/tagged/google-auth-library-ruby
|
15
|
-
|
16
|
-
If you are still having issues, please be sure to include as much information as possible:
|
17
|
-
|
18
|
-
#### Environment details
|
19
|
-
|
20
|
-
- OS:
|
21
|
-
- Ruby version:
|
22
|
-
- Gem name and version:
|
23
|
-
|
24
|
-
#### Steps to reproduce
|
25
|
-
|
26
|
-
1. ...
|
27
|
-
|
28
|
-
#### Code example
|
29
|
-
|
30
|
-
```ruby
|
31
|
-
# example
|
32
|
-
```
|
33
|
-
|
34
|
-
Making sure to follow these steps will guarantee the quickest resolution possible.
|
35
|
-
|
36
|
-
Thanks!
|
@@ -1,21 +0,0 @@
|
|
1
|
-
---
|
2
|
-
name: Feature request
|
3
|
-
about: Suggest an idea for this library
|
4
|
-
|
5
|
-
---
|
6
|
-
|
7
|
-
Thanks for stopping by to let us know something could be better!
|
8
|
-
|
9
|
-
**PLEASE READ**: If you have a support contract with Google, please create an issue in the [support console](https://cloud.google.com/support/) instead of filing on GitHub. This will ensure a timely response.
|
10
|
-
|
11
|
-
**Is your feature request related to a problem? Please describe.**
|
12
|
-
A clear and concise description of what the problem is. Ex. I'm always frustrated when [...]
|
13
|
-
|
14
|
-
**Describe the solution you'd like**
|
15
|
-
A clear and concise description of what you want to happen.
|
16
|
-
|
17
|
-
**Describe alternatives you've considered**
|
18
|
-
A clear and concise description of any alternative solutions or features you've considered.
|
19
|
-
|
20
|
-
**Additional context**
|
21
|
-
Add any other context or screenshots about the feature request here.
|
@@ -1,7 +0,0 @@
|
|
1
|
-
---
|
2
|
-
name: Support request
|
3
|
-
about: If you have a support contract with Google, please create an issue in the Google Cloud Support console.
|
4
|
-
|
5
|
-
---
|
6
|
-
|
7
|
-
**PLEASE READ**: If you have a support contract with Google, please create an issue in the [support console](https://cloud.google.com/support/) instead of filing on GitHub. This will ensure a timely response.
|
data/.gitignore
DELETED
@@ -1,36 +0,0 @@
|
|
1
|
-
*~
|
2
|
-
Gemfile.lock
|
3
|
-
*.gem
|
4
|
-
*.rbc
|
5
|
-
/.config
|
6
|
-
/coverage/
|
7
|
-
/InstalledFiles
|
8
|
-
/pkg/
|
9
|
-
/spec/reports/
|
10
|
-
/test/tmp/
|
11
|
-
/test/version_tmp/
|
12
|
-
/tmp/
|
13
|
-
|
14
|
-
## Specific to RubyMotion:
|
15
|
-
.dat*
|
16
|
-
.repl_history
|
17
|
-
build/
|
18
|
-
|
19
|
-
## Documentation cache and generated files:
|
20
|
-
/.yardoc/
|
21
|
-
/_yardoc/
|
22
|
-
/doc/
|
23
|
-
/rdoc/
|
24
|
-
|
25
|
-
## Environment normalisation:
|
26
|
-
/.bundle/
|
27
|
-
/lib/bundler/man/
|
28
|
-
|
29
|
-
# for a library or gem, you might want to ignore these files since the code is
|
30
|
-
# intended to run in multiple environments; otherwise, check them in:
|
31
|
-
# Gemfile.lock
|
32
|
-
# .ruby-version
|
33
|
-
# .ruby-gemset
|
34
|
-
|
35
|
-
# unless supporting rvm < 1.11.0 or doing something fancy, ignore this:
|
36
|
-
.rvmrc
|
data/.kokoro/build.bat
DELETED
@@ -1,16 +0,0 @@
|
|
1
|
-
REM This file runs tests for merges, PRs, and nightlies.
|
2
|
-
REM There are a few rules for what tests are run:
|
3
|
-
REM * PRs run all non-acceptance tests for every library.
|
4
|
-
REM * Merges run all non-acceptance tests for every library, and acceptance tests for all altered libraries.
|
5
|
-
REM * Nightlies run all acceptance tests for every library.
|
6
|
-
REM Currently only runs tests on 2.5.1
|
7
|
-
|
8
|
-
SET url="https://raw.githubusercontent.com/googleapis/google-cloud-ruby/master/.kokoro/build.bat"
|
9
|
-
|
10
|
-
SET "download=powershell -C Invoke-WebRequest -Uri %url% -OutFile master-build.bat"
|
11
|
-
|
12
|
-
SET EXIT_STATUS=1
|
13
|
-
|
14
|
-
%download% && master-build.bat && SET EXIT_STATUS=0
|
15
|
-
|
16
|
-
EXIT %EXIT_STATUS%
|
data/.kokoro/build.sh
DELETED
@@ -1,24 +0,0 @@
|
|
1
|
-
# Format: //devtools/kokoro/config/proto/build.proto
|
2
|
-
|
3
|
-
# Build logs will be here
|
4
|
-
action {
|
5
|
-
define_artifacts {
|
6
|
-
regex: "**/*sponge_log.xml"
|
7
|
-
}
|
8
|
-
}
|
9
|
-
|
10
|
-
# Download trampoline resources.
|
11
|
-
gfile_resources: "/bigstore/cloud-devrel-kokoro-resources/trampoline"
|
12
|
-
|
13
|
-
# Download resources for system tests (service account key, etc.)
|
14
|
-
gfile_resources: "/bigstore/cloud-devrel-kokoro-resources/google-cloud-ruby"
|
15
|
-
|
16
|
-
env_vars: {
|
17
|
-
key: "JOB_TYPE"
|
18
|
-
value: "continuous"
|
19
|
-
}
|
20
|
-
|
21
|
-
env_vars: {
|
22
|
-
key: "REPO_DIR"
|
23
|
-
value: "github/google-auth-library-ruby"
|
24
|
-
}
|
@@ -1,15 +0,0 @@
|
|
1
|
-
# Format: //devtools/kokoro/config/proto/build.proto
|
2
|
-
|
3
|
-
build_file: "google-auth-library-ruby/.kokoro/trampoline.sh"
|
4
|
-
|
5
|
-
# Configure the docker image for kokoro-trampoline.
|
6
|
-
# Dockerfile is maintained at https://github.com/googleapis/google-cloud-ruby/tree/master/.kokoro/docker/ruby-multi
|
7
|
-
env_vars: {
|
8
|
-
key: "TRAMPOLINE_IMAGE"
|
9
|
-
value: "gcr.io/cloud-devrel-kokoro-resources/yoshi-ruby/ruby-multi"
|
10
|
-
}
|
11
|
-
|
12
|
-
env_vars: {
|
13
|
-
key: "TRAMPOLINE_BUILD_FILE"
|
14
|
-
value: "github/google-auth-library-ruby/.kokoro/build.sh"
|
15
|
-
}
|
data/.kokoro/continuous/osx.cfg
DELETED
@@ -1,19 +0,0 @@
|
|
1
|
-
# Format: //devtools/kokoro/config/proto/build.proto
|
2
|
-
|
3
|
-
build_file: "google-auth-library-ruby/.kokoro/trampoline.bat"
|
4
|
-
|
5
|
-
# Configure the docker image for kokoro-trampoline.
|
6
|
-
env_vars: {
|
7
|
-
key: "TRAMPOLINE_IMAGE"
|
8
|
-
value: "gcr.io/cloud-devrel-kokoro-resources/yoshi-ruby/windows"
|
9
|
-
}
|
10
|
-
|
11
|
-
env_vars: {
|
12
|
-
key: "TRAMPOLINE_BUILD_FILE"
|
13
|
-
value: "github/google-auth-library-ruby/.kokoro/build.bat"
|
14
|
-
}
|
15
|
-
|
16
|
-
env_vars: {
|
17
|
-
key: "REPO_DIR"
|
18
|
-
value: "google-auth-library-ruby"
|
19
|
-
}
|
data/.kokoro/osx.sh
DELETED
@@ -1,24 +0,0 @@
|
|
1
|
-
# Format: //devtools/kokoro/config/proto/build.proto
|
2
|
-
|
3
|
-
# Build logs will be here
|
4
|
-
action {
|
5
|
-
define_artifacts {
|
6
|
-
regex: "**/*sponge_log.xml"
|
7
|
-
}
|
8
|
-
}
|
9
|
-
|
10
|
-
# Download trampoline resources.
|
11
|
-
gfile_resources: "/bigstore/cloud-devrel-kokoro-resources/trampoline"
|
12
|
-
|
13
|
-
# Download resources for system tests (service account key, etc.)
|
14
|
-
gfile_resources: "/bigstore/cloud-devrel-kokoro-resources/google-cloud-ruby"
|
15
|
-
|
16
|
-
env_vars: {
|
17
|
-
key: "JOB_TYPE"
|
18
|
-
value: "presubmit"
|
19
|
-
}
|
20
|
-
|
21
|
-
env_vars: {
|
22
|
-
key: "REPO_DIR"
|
23
|
-
value: "github/google-auth-library-ruby"
|
24
|
-
}
|
data/.kokoro/presubmit/linux.cfg
DELETED
@@ -1,14 +0,0 @@
|
|
1
|
-
# Format: //devtools/kokoro/config/proto/build.proto
|
2
|
-
|
3
|
-
build_file: "google-auth-library-ruby/.kokoro/trampoline.sh"
|
4
|
-
|
5
|
-
# Configure the docker image for kokoro-trampoline.
|
6
|
-
env_vars: {
|
7
|
-
key: "TRAMPOLINE_IMAGE"
|
8
|
-
value: "gcr.io/cloud-devrel-kokoro-resources/yoshi-ruby/ruby-multi"
|
9
|
-
}
|
10
|
-
|
11
|
-
env_vars: {
|
12
|
-
key: "TRAMPOLINE_BUILD_FILE"
|
13
|
-
value: "github/google-auth-library-ruby/.kokoro/build.sh"
|
14
|
-
}
|
data/.kokoro/presubmit/osx.cfg
DELETED
@@ -1,19 +0,0 @@
|
|
1
|
-
# Format: //devtools/kokoro/config/proto/build.proto
|
2
|
-
|
3
|
-
build_file: "google-auth-library-ruby/.kokoro/trampoline.bat"
|
4
|
-
|
5
|
-
# Configure the docker image for kokoro-trampoline.
|
6
|
-
env_vars: {
|
7
|
-
key: "TRAMPOLINE_IMAGE"
|
8
|
-
value: "gcr.io/cloud-devrel-kokoro-resources/yoshi-ruby/windows"
|
9
|
-
}
|
10
|
-
|
11
|
-
env_vars: {
|
12
|
-
key: "TRAMPOLINE_BUILD_FILE"
|
13
|
-
value: "github/google-auth-library-ruby/.kokoro/build.bat"
|
14
|
-
}
|
15
|
-
|
16
|
-
env_vars: {
|
17
|
-
key: "REPO_DIR"
|
18
|
-
value: "google-auth-library-ruby"
|
19
|
-
}
|
data/.kokoro/release.cfg
DELETED
@@ -1,53 +0,0 @@
|
|
1
|
-
# Format: //devtools/kokoro/config/proto/build.proto
|
2
|
-
|
3
|
-
# Build logs will be here
|
4
|
-
action {
|
5
|
-
define_artifacts {
|
6
|
-
regex: "**/*sponge_log.xml"
|
7
|
-
}
|
8
|
-
}
|
9
|
-
|
10
|
-
# Fetch the token needed for reporting release status to GitHub
|
11
|
-
before_action {
|
12
|
-
fetch_keystore {
|
13
|
-
keystore_resource {
|
14
|
-
keystore_config_id: 73713
|
15
|
-
keyname: "yoshi-automation-github-key"
|
16
|
-
}
|
17
|
-
}
|
18
|
-
}
|
19
|
-
|
20
|
-
# Download resources for system tests (service account key, etc.)
|
21
|
-
gfile_resources: "/bigstore/cloud-devrel-kokoro-resources/google-cloud-ruby"
|
22
|
-
|
23
|
-
# Download trampoline resources.
|
24
|
-
gfile_resources: "/bigstore/cloud-devrel-kokoro-resources/trampoline"
|
25
|
-
|
26
|
-
# Use the trampoline script to run in docker.
|
27
|
-
build_file: "google-auth-library-ruby/.kokoro/trampoline.sh"
|
28
|
-
|
29
|
-
# Configure the docker image for kokoro-trampoline.
|
30
|
-
env_vars: {
|
31
|
-
key: "TRAMPOLINE_IMAGE"
|
32
|
-
value: "gcr.io/cloud-devrel-kokoro-resources/google-cloud-ruby/ruby-release"
|
33
|
-
}
|
34
|
-
|
35
|
-
env_vars: {
|
36
|
-
key: "TRAMPOLINE_BUILD_FILE"
|
37
|
-
value: "github/google-auth-library-ruby/.kokoro/build.sh"
|
38
|
-
}
|
39
|
-
|
40
|
-
env_vars: {
|
41
|
-
key: "JOB_TYPE"
|
42
|
-
value: "release"
|
43
|
-
}
|
44
|
-
|
45
|
-
env_vars: {
|
46
|
-
key: "OS"
|
47
|
-
value: "linux"
|
48
|
-
}
|
49
|
-
|
50
|
-
env_vars: {
|
51
|
-
key: "REPO_DIR"
|
52
|
-
value: "github/google-auth-library-ruby"
|
53
|
-
}
|
data/.kokoro/trampoline.bat
DELETED
@@ -1,10 +0,0 @@
|
|
1
|
-
|
2
|
-
SET url="https://raw.githubusercontent.com/googleapis/google-cloud-ruby/master/.kokoro/trampoline.bat"
|
3
|
-
|
4
|
-
SET "download=powershell -C Invoke-WebRequest -Uri %url% -OutFile master-trampoline.bat"
|
5
|
-
|
6
|
-
SET EXIT_STATUS=1
|
7
|
-
|
8
|
-
%download% && master-trampoline.bat && SET EXIT_STATUS=0
|
9
|
-
|
10
|
-
EXIT %EXIT_STATUS%
|
data/.kokoro/trampoline.sh
DELETED
data/.rspec
DELETED
data/.rubocop.yml
DELETED
@@ -1,42 +0,0 @@
|
|
1
|
-
AllCops:
|
2
|
-
Exclude:
|
3
|
-
- "spec/**/*"
|
4
|
-
- "Rakefile"
|
5
|
-
|
6
|
-
Metrics/AbcSize:
|
7
|
-
Max: 25
|
8
|
-
Metrics/BlockLength:
|
9
|
-
Exclude:
|
10
|
-
- "googleauth.gemspec"
|
11
|
-
Metrics/CyclomaticComplexity:
|
12
|
-
Max: 8
|
13
|
-
Metrics/PerceivedComplexity:
|
14
|
-
Max: 8
|
15
|
-
Metrics/LineLength:
|
16
|
-
Max: 120
|
17
|
-
Metrics/MethodLength:
|
18
|
-
Max: 21
|
19
|
-
Metrics/ModuleLength:
|
20
|
-
Max: 150
|
21
|
-
Metrics/ClassLength:
|
22
|
-
Enabled: false
|
23
|
-
Layout/IndentHeredoc:
|
24
|
-
Enabled: false
|
25
|
-
Style/FormatString:
|
26
|
-
Enabled: false
|
27
|
-
Style/GuardClause:
|
28
|
-
Enabled: false
|
29
|
-
Style/PercentLiteralDelimiters: # Contradicting rule
|
30
|
-
Enabled: false
|
31
|
-
Style/StringLiterals:
|
32
|
-
EnforcedStyle: double_quotes
|
33
|
-
Style/SymbolArray: # Undefined syntax in Ruby 1.9.3
|
34
|
-
Enabled: false
|
35
|
-
Style/MethodDefParentheses:
|
36
|
-
Enabled: false
|
37
|
-
Style/WordArray:
|
38
|
-
Enabled: false
|
39
|
-
Style/TrivialAccessors:
|
40
|
-
Enabled: false
|
41
|
-
Style/RescueModifier:
|
42
|
-
Enabled: false
|
data/Gemfile
DELETED
@@ -1,25 +0,0 @@
|
|
1
|
-
source "https://rubygems.org"
|
2
|
-
|
3
|
-
# Specify your gem's dependencies in googleauth.gemspec
|
4
|
-
gemspec
|
5
|
-
|
6
|
-
group :development do
|
7
|
-
gem "bundler", ">= 1.9"
|
8
|
-
gem "coveralls", "~> 0.7"
|
9
|
-
gem "fakefs", "~> 0.6"
|
10
|
-
gem "fakeredis", "~> 0.5"
|
11
|
-
gem "logging", "~> 2.0"
|
12
|
-
gem "rack-test", "~> 0.6"
|
13
|
-
gem "rake", "~> 10.0"
|
14
|
-
gem "redis", "~> 3.2"
|
15
|
-
gem "rspec", "~> 3.0"
|
16
|
-
gem "rubocop", ">= 0.41", "< 0.50"
|
17
|
-
gem "simplecov", "~> 0.9"
|
18
|
-
gem "sinatra"
|
19
|
-
gem "webmock", "~> 1.21"
|
20
|
-
end
|
21
|
-
|
22
|
-
platforms :jruby do
|
23
|
-
group :development do
|
24
|
-
end
|
25
|
-
end
|