lt-google-api 0.3.0 → 0.3.2

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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 6ef6072dcd14c9155a6862c96e7297c3404bfa4650c0ffa96f3a5a51cfe6fcc2
4
- data.tar.gz: 84db76b71530c838107cd7299a593ce0cc303746c8137b54a882991ebe845157
3
+ metadata.gz: d67409850dd6edb3a3e87407fd72455607efa5d3ea28cdbba77546095bc985e7
4
+ data.tar.gz: e6a884b8a377aae41ca2fe467550dbc338890c4ad3bf6f6aa4aa14f210d23d52
5
5
  SHA512:
6
- metadata.gz: fb20c295a3d7b200e0f141825e21834d0b04b6d538fea872768cc6586856e0bbda68c3864c7ea59c973aa7ce9640e5400682a9fad9e33fcc4d9089436a23baca
7
- data.tar.gz: 8e66041fe64bcbfda26cabbce165a608cb2dee3bbf2877879e5e100b8f2c6e21636bf7056019a3299ea93b383e28005d7757b0ccc552f62e806f52cab912a552
6
+ metadata.gz: 0ee254f16420d275a8fddff6598070b21914caacd11eb2ae6e750cf527af25ce760a9aa118d8addeafcf4b036308892dcae2c845882c7d089997bdaa8289c66a
7
+ data.tar.gz: c8f94a660173a69a469b601fe1109810c986d66af19a2d447d0e000e0ea9a57aad09cf542c4c2bdb4602c7db098b50ce38f6c5fcc05a75854bbefcd8a614dc5b
data/.gitignore CHANGED
@@ -13,3 +13,4 @@
13
13
  # Misc
14
14
  .DS_Store
15
15
  .gem_rbs_collection/
16
+ /notes
data/CHANGELOG.md CHANGED
@@ -4,7 +4,13 @@ All notable changes to this project will be documented in this file.
4
4
  The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
5
5
  and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
6
6
 
7
- ## [Unreleased](https://github.com/learningtapestry/lt-google-api/compare/v0.3.0...HEAD)
7
+ ## [Unreleased](https://github.com/learningtapestry/lt-google-api/compare/v0.3.2...HEAD)
8
+
9
+ ## [0.3.0](https://github.com/learningtapestry/lt-lcms/compare/v0.3.0...v0.3.2) - 2023-12-23
10
+
11
+ ### Changed
12
+
13
+ - Bumped versions for 'google-apis-drive_v3' to '~> 0.63.0' and 'googleauth', '~> 1.11.2'
8
14
 
9
15
  ## [0.3.0](https://github.com/learningtapestry/lt-lcms/compare/v0.2.4...v0.3.0) - 2023-12-23
10
16
  ### Added
data/Dockerfile CHANGED
@@ -1,15 +1,15 @@
1
1
  FROM ruby:2.7.7
2
2
 
3
- ENV APP_PATH /app/
4
- ENV LANG C.UTF-8
5
- ENV GIT_AUTHOR_NAME "Joe Doe"
6
- ENV GIT_AUTHOR_EMAIL joe@doe.com
3
+ ENV APP_PATH=/app/
4
+ ENV LANG=C.UTF-8
5
+ ENV GIT_AUTHOR_NAME="Joe Doe"
6
+ ENV GIT_AUTHOR_EMAIL=joe@doe.com
7
7
 
8
8
  WORKDIR $APP_PATH
9
9
 
10
10
  COPY . $APP_PATH
11
11
 
12
- ENV BUNDLER_VERSION 2.4.22
12
+ ENV BUNDLER_VERSION=2.4.22
13
13
  RUN gem install bundler:"$BUNDLER_VERSION" \
14
14
  && bundle install --jobs `expr $(cat /proc/cpuinfo | grep -c "cpu cores") - 1` --retry 3 \
15
15
  && rm -rf /usr/local/bundle/cache/*.gem \
data/Gemfile.lock CHANGED
@@ -1,109 +1,131 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- lt-google-api (0.3.0)
5
- google-apis-drive_v3 (~> 0.46)
6
- googleauth (~> 1.9)
4
+ lt-google-api (0.3.1)
5
+ google-apis-drive_v3 (~> 0.63.0)
6
+ googleauth (~> 1.11.2)
7
7
 
8
8
  GEM
9
9
  remote: https://rubygems.org/
10
10
  specs:
11
- activesupport (7.0.7.2)
12
- concurrent-ruby (~> 1.0, >= 1.0.2)
11
+ activesupport (8.0.2)
12
+ base64
13
+ benchmark (>= 0.3)
14
+ bigdecimal
15
+ concurrent-ruby (~> 1.0, >= 1.3.1)
16
+ connection_pool (>= 2.2.5)
17
+ drb
13
18
  i18n (>= 1.6, < 2)
19
+ logger (>= 1.4.2)
14
20
  minitest (>= 5.1)
15
- tzinfo (~> 2.0)
16
- addressable (2.8.6)
17
- public_suffix (>= 2.0.2, < 6.0)
18
- ast (2.4.2)
19
- base64 (0.1.1)
20
- childprocess (4.1.0)
21
- concurrent-ruby (1.2.2)
22
- csv (3.2.7)
21
+ securerandom (>= 0.3)
22
+ tzinfo (~> 2.0, >= 2.0.5)
23
+ uri (>= 0.13.1)
24
+ addressable (2.8.7)
25
+ public_suffix (>= 2.0.2, < 7.0)
26
+ ast (2.4.3)
27
+ base64 (0.3.0)
28
+ benchmark (0.4.1)
29
+ bigdecimal (3.2.0)
30
+ childprocess (5.1.0)
31
+ logger (~> 1.5)
32
+ concurrent-ruby (1.3.5)
33
+ connection_pool (2.5.3)
34
+ csv (3.3.4)
23
35
  declarative (0.0.20)
24
- faraday (2.7.12)
25
- base64
26
- faraday-net_http (>= 2.0, < 3.1)
27
- ruby2_keywords (>= 0.0.4)
28
- faraday-net_http (3.0.2)
29
- ffi (1.15.5)
30
- fileutils (1.7.1)
31
- google-apis-core (0.11.2)
36
+ drb (2.2.3)
37
+ faraday (2.13.1)
38
+ faraday-net_http (>= 2.0, < 3.5)
39
+ json
40
+ logger
41
+ faraday-net_http (3.4.0)
42
+ net-http (>= 0.5.0)
43
+ ffi (1.17.2-aarch64-linux-gnu)
44
+ ffi (1.17.2-x86_64-linux-gnu)
45
+ fileutils (1.7.3)
46
+ google-apis-core (0.16.0)
32
47
  addressable (~> 2.5, >= 2.5.1)
33
- googleauth (>= 0.16.2, < 2.a)
34
- httpclient (>= 2.8.1, < 3.a)
48
+ googleauth (~> 1.9)
49
+ httpclient (>= 2.8.3, < 3.a)
35
50
  mini_mime (~> 1.0)
51
+ mutex_m
36
52
  representable (~> 3.0)
37
53
  retriable (>= 2.0, < 4.a)
38
- rexml
39
- webrick
40
- google-apis-drive_v3 (0.46.0)
41
- google-apis-core (>= 0.11.0, < 2.a)
42
- google-cloud-env (2.1.0)
54
+ google-apis-drive_v3 (0.63.0)
55
+ google-apis-core (>= 0.15.0, < 2.a)
56
+ google-cloud-env (2.3.1)
57
+ base64 (~> 0.2)
43
58
  faraday (>= 1.0, < 3.a)
44
- googleauth (1.9.1)
59
+ googleauth (1.11.2)
45
60
  faraday (>= 1.0, < 3.a)
46
61
  google-cloud-env (~> 2.1)
47
62
  jwt (>= 1.4, < 3.0)
48
63
  multi_json (~> 1.11)
49
64
  os (>= 0.9, < 2.0)
50
65
  signet (>= 0.16, < 2.a)
51
- httpclient (2.8.3)
52
- i18n (1.14.1)
66
+ httpclient (2.9.0)
67
+ mutex_m
68
+ i18n (1.14.7)
53
69
  concurrent-ruby (~> 1.0)
54
70
  iniparse (1.5.0)
55
- json (2.6.3)
56
- jwt (2.7.1)
57
- language_server-protocol (3.17.0.3)
58
- listen (3.8.0)
71
+ json (2.12.2)
72
+ jwt (2.10.1)
73
+ base64
74
+ language_server-protocol (3.17.0.5)
75
+ lint_roller (1.1.0)
76
+ listen (3.9.0)
59
77
  rb-fsevent (~> 0.10, >= 0.10.3)
60
78
  rb-inotify (~> 0.9, >= 0.9.10)
61
- logger (1.5.3)
79
+ logger (1.7.0)
62
80
  mini_mime (1.1.5)
63
- minitest (5.19.0)
81
+ minitest (5.25.5)
64
82
  multi_json (1.15.0)
83
+ mutex_m (0.3.0)
84
+ net-http (0.6.0)
85
+ uri
65
86
  os (1.1.4)
66
- overcommit (0.60.0)
67
- childprocess (>= 0.6.3, < 5)
87
+ overcommit (0.67.1)
88
+ childprocess (>= 0.6.3, < 6)
68
89
  iniparse (~> 1.4)
69
- rexml (~> 3.2)
70
- parallel (1.23.0)
71
- parser (3.2.2.3)
90
+ rexml (>= 3.3.9)
91
+ parallel (1.27.0)
92
+ parser (3.3.8.0)
72
93
  ast (~> 2.4.1)
73
94
  racc
74
- public_suffix (5.0.4)
75
- racc (1.7.1)
95
+ prism (1.4.0)
96
+ public_suffix (6.0.2)
97
+ racc (1.8.1)
76
98
  rainbow (3.1.1)
77
- rake (13.0.6)
99
+ rake (13.3.0)
78
100
  rb-fsevent (0.11.2)
79
- rb-inotify (0.10.1)
101
+ rb-inotify (0.11.1)
80
102
  ffi (~> 1.0)
81
- rbs (3.1.3)
82
- regexp_parser (2.8.1)
103
+ rbs (3.9.4)
104
+ logger
105
+ regexp_parser (2.10.0)
83
106
  representable (3.2.0)
84
107
  declarative (< 0.1.0)
85
108
  trailblazer-option (>= 0.1.1, < 0.2.0)
86
109
  uber (< 0.2.0)
87
110
  retriable (3.1.2)
88
- rexml (3.2.6)
89
- rubocop (1.56.2)
90
- base64 (~> 0.1.1)
111
+ rexml (3.4.1)
112
+ rubocop (1.75.8)
91
113
  json (~> 2.3)
92
- language_server-protocol (>= 3.17.0)
114
+ language_server-protocol (~> 3.17.0.2)
115
+ lint_roller (~> 1.1.0)
93
116
  parallel (~> 1.10)
94
- parser (>= 3.2.2.3)
117
+ parser (>= 3.3.0.2)
95
118
  rainbow (>= 2.2.2, < 4.0)
96
- regexp_parser (>= 1.8, < 3.0)
97
- rexml (>= 3.2.5, < 4.0)
98
- rubocop-ast (>= 1.28.1, < 2.0)
119
+ regexp_parser (>= 2.9.3, < 3.0)
120
+ rubocop-ast (>= 1.44.0, < 2.0)
99
121
  ruby-progressbar (~> 1.7)
100
- unicode-display_width (>= 2.4.0, < 3.0)
101
- rubocop-ast (1.29.0)
102
- parser (>= 3.2.1.0)
122
+ unicode-display_width (>= 2.4.0, < 4.0)
123
+ rubocop-ast (1.44.1)
124
+ parser (>= 3.3.7.2)
125
+ prism (~> 1.4)
103
126
  ruby-progressbar (1.13.0)
104
- ruby2_keywords (0.0.5)
105
- securerandom (0.2.2)
106
- signet (0.18.0)
127
+ securerandom (0.4.1)
128
+ signet (0.20.0)
107
129
  addressable (~> 2.8)
108
130
  faraday (>= 0.17.5, < 3.a)
109
131
  jwt (>= 1.5, < 3.0)
@@ -123,17 +145,18 @@ GEM
123
145
  securerandom (>= 0.1)
124
146
  strscan (>= 1.0.0)
125
147
  terminal-table (>= 2, < 4)
126
- strscan (3.0.6)
148
+ strscan (3.1.5)
127
149
  terminal-table (3.0.2)
128
150
  unicode-display_width (>= 1.1.1, < 3)
129
151
  trailblazer-option (0.1.2)
130
152
  tzinfo (2.0.6)
131
153
  concurrent-ruby (~> 1.0)
132
154
  uber (0.1.0)
133
- unicode-display_width (2.4.2)
134
- webrick (1.8.1)
155
+ unicode-display_width (2.6.0)
156
+ uri (1.0.3)
135
157
 
136
158
  PLATFORMS
159
+ aarch64-linux
137
160
  x86_64-linux
138
161
 
139
162
  DEPENDENCIES
@@ -145,4 +168,4 @@ DEPENDENCIES
145
168
  steep (~> 1.5.3)
146
169
 
147
170
  BUNDLED WITH
148
- 2.4.22
171
+ 2.4.6
data/README.md CHANGED
@@ -33,7 +33,7 @@ $ gem install lt-google-api
33
33
  ## Development
34
34
 
35
35
  ```shell
36
- docker buildx build --platform linux/arm64/v8,linux/amd64 -t learningtapestry/lt-google-api --push .
36
+ docker buildx build --platform linux/arm64/v8,linux/amd64 -t learningtapestry/lt-google-api:legacy --push .
37
37
  ```
38
38
 
39
39
  ### Type checking
@@ -0,0 +1,8 @@
1
+ version: '3.8'
2
+
3
+ services:
4
+ app:
5
+ image: learningtapestry/lt-google-api:legacy
6
+ command: bash -c "bundle install && tail -f /dev/null"
7
+ volumes:
8
+ - .:/app
@@ -65,7 +65,11 @@ module Lt
65
65
  end
66
66
 
67
67
  def remove_expired_token
68
- data = ::JSON.parse(redis.get(user_token)) rescue nil
68
+ data = begin
69
+ ::JSON.parse(redis.get(user_token))
70
+ rescue StandardError
71
+ nil
72
+ end
69
73
  return unless data
70
74
 
71
75
  expires_at = data['expiration_time_millis'].to_i / 1_000
@@ -99,7 +99,7 @@ module Lt
99
99
  case f.mime_type
100
100
  when mime_type then result << f.id
101
101
  when MIME_FOLDER
102
- result.concat(list_file_ids_in f.id, mime_type: mime_type) if with_subfolders
102
+ result.concat(list_file_ids_in(f.id, mime_type: mime_type)) if with_subfolders
103
103
  end
104
104
  end
105
105
 
@@ -3,7 +3,7 @@
3
3
  module Lt
4
4
  module Google
5
5
  module Api
6
- VERSION = '0.3.0'
6
+ VERSION = '0.3.2'
7
7
  end
8
8
  end
9
9
  end
@@ -33,8 +33,8 @@ Gem::Specification.new do |spec| # rubocop:disable Metrics/BlockLength
33
33
  spec.executables = spec.files.grep(%r{^exe/}) { |f| File.basename(f) }
34
34
  spec.require_paths = ['lib']
35
35
 
36
- spec.add_dependency 'google-apis-drive_v3', '~> 0.46'
37
- spec.add_dependency 'googleauth', '~> 1.9'
36
+ spec.add_dependency 'google-apis-drive_v3', '~> 0.63.0'
37
+ spec.add_dependency 'googleauth', '~> 1.11.2'
38
38
 
39
39
  spec.add_development_dependency 'bundler', '~> 2.4'
40
40
  spec.add_development_dependency 'overcommit', '~> 0.57'
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: lt-google-api
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.3.0
4
+ version: 0.3.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Alexander Kuznetsov
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: exe
11
11
  cert_chain: []
12
- date: 2023-12-23 00:00:00.000000000 Z
12
+ date: 2025-06-21 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: google-apis-drive_v3
@@ -17,28 +17,28 @@ dependencies:
17
17
  requirements:
18
18
  - - "~>"
19
19
  - !ruby/object:Gem::Version
20
- version: '0.46'
20
+ version: 0.63.0
21
21
  type: :runtime
22
22
  prerelease: false
23
23
  version_requirements: !ruby/object:Gem::Requirement
24
24
  requirements:
25
25
  - - "~>"
26
26
  - !ruby/object:Gem::Version
27
- version: '0.46'
27
+ version: 0.63.0
28
28
  - !ruby/object:Gem::Dependency
29
29
  name: googleauth
30
30
  requirement: !ruby/object:Gem::Requirement
31
31
  requirements:
32
32
  - - "~>"
33
33
  - !ruby/object:Gem::Version
34
- version: '1.9'
34
+ version: 1.11.2
35
35
  type: :runtime
36
36
  prerelease: false
37
37
  version_requirements: !ruby/object:Gem::Requirement
38
38
  requirements:
39
39
  - - "~>"
40
40
  - !ruby/object:Gem::Version
41
- version: '1.9'
41
+ version: 1.11.2
42
42
  - !ruby/object:Gem::Dependency
43
43
  name: bundler
44
44
  requirement: !ruby/object:Gem::Requirement
@@ -136,6 +136,7 @@ files:
136
136
  - bin/console
137
137
  - bin/overcommit
138
138
  - bin/setup
139
+ - docker-compose.yml
139
140
  - lib/lt/google/api.rb
140
141
  - lib/lt/google/api/auth/cli.rb
141
142
  - lib/lt/google/api/auth/credentials.rb
@@ -175,7 +176,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
175
176
  - !ruby/object:Gem::Version
176
177
  version: '0'
177
178
  requirements: []
178
- rubygems_version: 3.0.3.1
179
+ rubygems_version: 3.1.6
179
180
  signing_key:
180
181
  specification_version: 4
181
182
  summary: Provides the set of classes to simplify work with Google services