google-oauth-cli 0.1.5 → 1.0.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/Gemfile.lock +9 -9
- data/README.md +8 -5
- data/google-oauth-cli.gemspec +2 -2
- data/lib/google-oauth-cli/version.rb +1 -1
- metadata +12 -7
- data/CHANGELOG.md +0 -5
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: b14a297ba73b80d63d5c040aa2af7fc39f85dad7703b2d935ea524dc93905f1c
|
4
|
+
data.tar.gz: cef4ecf15195ec67dfc772573a29729594e439c064a78f3801b036b7f8fa46d2
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: bdf2a3fefb40491d71bfabed1f6b3237afa207f89510fdc1d77d1ee3ac088724675c5928b7b1540b9c72f9596887be7128953c69065b93d9b602899cb3c59fa8
|
7
|
+
data.tar.gz: 68d77c04d54ac47ebc06155e9cbc80f53e117e5c7cbed14359e8480879c285b0184f48172dadc80ef377d32f3dfd1d7affe60720ef0f5d5ad1e73277c7c1009f
|
data/Gemfile.lock
CHANGED
@@ -1,8 +1,8 @@
|
|
1
1
|
PATH
|
2
2
|
remote: .
|
3
3
|
specs:
|
4
|
-
google-oauth-cli (0.1
|
5
|
-
googleauth (
|
4
|
+
google-oauth-cli (1.0.1)
|
5
|
+
googleauth (>= 0.5.0, < 2.0.0)
|
6
6
|
launchy (~> 2.5)
|
7
7
|
|
8
8
|
GEM
|
@@ -12,23 +12,23 @@ GEM
|
|
12
12
|
public_suffix (>= 2.0.2, < 6.0)
|
13
13
|
ast (2.4.2)
|
14
14
|
diff-lcs (1.5.0)
|
15
|
-
faraday (2.
|
16
|
-
|
17
|
-
ruby2_keywords
|
18
|
-
|
19
|
-
|
20
|
-
faraday (>= 0.17.3, < 3.a)
|
15
|
+
faraday (1.2.0)
|
16
|
+
multipart-post (>= 1.2, < 3)
|
17
|
+
ruby2_keywords
|
18
|
+
googleauth (0.17.1)
|
19
|
+
faraday (>= 0.17.3, < 2.0)
|
21
20
|
jwt (>= 1.4, < 3.0)
|
22
21
|
memoist (~> 0.16)
|
23
22
|
multi_json (~> 1.11)
|
24
23
|
os (>= 0.9, < 2.0)
|
25
|
-
signet (
|
24
|
+
signet (~> 0.15)
|
26
25
|
json (2.6.3)
|
27
26
|
jwt (2.7.0)
|
28
27
|
launchy (2.5.2)
|
29
28
|
addressable (~> 2.8)
|
30
29
|
memoist (0.16.2)
|
31
30
|
multi_json (1.15.0)
|
31
|
+
multipart-post (2.3.0)
|
32
32
|
os (1.1.4)
|
33
33
|
parallel (1.22.1)
|
34
34
|
parser (3.2.2.0)
|
data/README.md
CHANGED
@@ -1,16 +1,19 @@
|
|
1
1
|
# google-oauth-cli
|
2
2
|
|
3
|
-
google-oauth-cli
|
3
|
+
[![gem version](https://badge.fury.io/rb/google-oauth-cli.svg)](https://badge.fury.io/rb/google-oauth-cli)
|
4
|
+
![test](https://github.com/fujikky/google-oauth-cli/actions/workflows/test.yml/badge.svg?branch=main)
|
5
|
+
|
6
|
+
`google-oauth-cli` is a RubyGems library that allows you to perform OAuth authentication with Google from the CLI.
|
4
7
|
|
5
8
|
## Features
|
6
9
|
|
7
|
-
-
|
8
|
-
-
|
9
|
-
-
|
10
|
+
- Authenticate with Google using OAuth from the CLI.
|
11
|
+
- Start a simple web server to receive authentication codes.
|
12
|
+
- You can persist a refresh token by passing a file path as an optional argument. If a refresh token is present, the authentication flow is skipped and the access token refresh process is performed.
|
10
13
|
|
11
14
|
## Motivation
|
12
15
|
|
13
|
-
Google deprecates to the OOB flow by Google in February 2022.
|
16
|
+
[Google deprecates to the OOB flow by Google in February 2022](https://developers.google.com/identity/protocols/oauth2/resources/oob-migration).
|
14
17
|
|
15
18
|
## Usage
|
16
19
|
|
data/google-oauth-cli.gemspec
CHANGED
@@ -20,7 +20,7 @@ Gem::Specification.new do |spec|
|
|
20
20
|
spec.metadata["rubygems_mfa_required"] = "true"
|
21
21
|
spec.metadata["homepage_uri"] = spec.homepage
|
22
22
|
spec.metadata["source_code_uri"] = "https://github.com/fujikky/google-oauth-cli"
|
23
|
-
spec.metadata["changelog_uri"] = "https://github.com/fujikky/google-oauth-cli/
|
23
|
+
spec.metadata["changelog_uri"] = "https://github.com/fujikky/google-oauth-cli/releases"
|
24
24
|
|
25
25
|
# Specify which files should be added to the gem when it is released.
|
26
26
|
# The `git ls-files -z` loads the files in the RubyGem that have been added into git.
|
@@ -34,7 +34,7 @@ Gem::Specification.new do |spec|
|
|
34
34
|
spec.require_paths = ["lib"]
|
35
35
|
|
36
36
|
# Uncomment to register a new dependency of your gem
|
37
|
-
spec.add_dependency "googleauth", "
|
37
|
+
spec.add_dependency "googleauth", [">= 0.5.0", "< 2.0.0"]
|
38
38
|
spec.add_dependency "launchy", "~> 2.5"
|
39
39
|
|
40
40
|
# For more information and examples about making a new gem, check out our
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: google-oauth-cli
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1
|
4
|
+
version: 1.0.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Yusuke Fujiki
|
@@ -14,16 +14,22 @@ dependencies:
|
|
14
14
|
name: googleauth
|
15
15
|
requirement: !ruby/object:Gem::Requirement
|
16
16
|
requirements:
|
17
|
-
- - "
|
17
|
+
- - ">="
|
18
|
+
- !ruby/object:Gem::Version
|
19
|
+
version: 0.5.0
|
20
|
+
- - "<"
|
18
21
|
- !ruby/object:Gem::Version
|
19
|
-
version:
|
22
|
+
version: 2.0.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.5.0
|
30
|
+
- - "<"
|
25
31
|
- !ruby/object:Gem::Version
|
26
|
-
version:
|
32
|
+
version: 2.0.0
|
27
33
|
- !ruby/object:Gem::Dependency
|
28
34
|
name: launchy
|
29
35
|
requirement: !ruby/object:Gem::Requirement
|
@@ -49,7 +55,6 @@ extra_rdoc_files: []
|
|
49
55
|
files:
|
50
56
|
- ".rspec"
|
51
57
|
- ".rubocop.yml"
|
52
|
-
- CHANGELOG.md
|
53
58
|
- Gemfile
|
54
59
|
- Gemfile.lock
|
55
60
|
- LICENSE.txt
|
@@ -67,7 +72,7 @@ metadata:
|
|
67
72
|
rubygems_mfa_required: 'true'
|
68
73
|
homepage_uri: https://github.com/fujikky/google-oauth-cli
|
69
74
|
source_code_uri: https://github.com/fujikky/google-oauth-cli
|
70
|
-
changelog_uri: https://github.com/fujikky/google-oauth-cli/
|
75
|
+
changelog_uri: https://github.com/fujikky/google-oauth-cli/releases
|
71
76
|
post_install_message:
|
72
77
|
rdoc_options: []
|
73
78
|
require_paths:
|