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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 272c26166c448a718a3c830e265d33f767f545ce941caf440d63136ffa760fdc
4
- data.tar.gz: 2c4321c2f58f3b9440bafcbee0d79a0132a727a8399971210abea5656cee971b
3
+ metadata.gz: b14a297ba73b80d63d5c040aa2af7fc39f85dad7703b2d935ea524dc93905f1c
4
+ data.tar.gz: cef4ecf15195ec67dfc772573a29729594e439c064a78f3801b036b7f8fa46d2
5
5
  SHA512:
6
- metadata.gz: ecb086d38bdfdc1768f4345db82e01f370ffe6e2b0123f9c1eba8cff19787d3d5cb7e0ee2acad1b5afc0071defbe59529a679b114e8903d5e9b2a93b6e652934
7
- data.tar.gz: 86e8a6b0d61166e23418f8730c3a0d97e9e2a7e2d81107398ab449f82b6a23262b2f3820efc746290154999f06e1667522af15476671b2c416b750d50da36342
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)
5
- googleauth (~> 1.5)
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.7.4)
16
- faraday-net_http (>= 2.0, < 3.1)
17
- ruby2_keywords (>= 0.0.4)
18
- faraday-net_http (3.0.2)
19
- googleauth (1.5.0)
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 (>= 0.16, < 2.a)
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 is a RubyGems library that allows you to perform OAuth authentication with Google from the command-line interface (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
- - Authenticates with Google using OAuth from CLI.
8
- - Spins up a simple web server to receive the authorization code.
9
- - Supports passing a file path as an optional argument to persist the refresh token, making it easier to handle token refreshing in subsequent requests.
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
 
@@ -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/tree/main/CHANGELOG"
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", "~> 1.5"
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
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  class GoogleOAuthCli
4
- VERSION = "0.1.5"
4
+ VERSION = "1.0.1"
5
5
  end
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.5
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: '1.5'
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: '1.5'
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/tree/main/CHANGELOG
75
+ changelog_uri: https://github.com/fujikky/google-oauth-cli/releases
71
76
  post_install_message:
72
77
  rdoc_options: []
73
78
  require_paths:
data/CHANGELOG.md DELETED
@@ -1,5 +0,0 @@
1
- ## [Unreleased]
2
-
3
- ## [0.1.0] - 2023-04-06
4
-
5
- - Initial release