lt-google-api 0.4.0 → 0.4.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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: faca9abedb6b078492d31453906ef726354152d5f350ad0b714664cfd2f045e8
4
- data.tar.gz: 0a8629ceae2e67f95366ec228f071845c5776e1a4dc18042e120d9cbf3bccc7e
3
+ metadata.gz: 28a33ba3510ac40f35aeec2c7dc0b892fa6f5f4a9f23e64eac694e2677d046bd
4
+ data.tar.gz: b2beeb6572175cf93ab96f4f8752ae4e7242a1c462f3269d481749f46b988ea5
5
5
  SHA512:
6
- metadata.gz: 182f0c4733210227d4531d187185844e2b9167ee462e79aefa84899a6a2e1efeacaead975fbd088d407b82ba336ce96f1f6ea40e89d6eeea495190d1dcf7d33b
7
- data.tar.gz: b3d35089ec2d0ff6967398c4a338b4a9bf321a728b5ef9b7b34c9db370c387e0b4e92ed8268e6b2183e6778b7988182a7bdac24e11756fbdfe12608c2993a202
6
+ metadata.gz: 3229b2f61d301598971eec816eaf5d7073387e3309980ed847342225a560dca55978147924ad33bd89ab9217891999c7113c0c42dc870b575b981397976863fd
7
+ data.tar.gz: bf883454ec8ccf4f0cda448bf4019007880c65563918f920f04f6642fddb7bb84d6371c51c6356d344bfcbd151b6e9ea00401179c72d6e84649ff128074462bb
data/CHANGELOG.md CHANGED
@@ -4,7 +4,14 @@ 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.4.0...HEAD)
7
+ ## [Unreleased](https://github.com/learningtapestry/lt-google-api/compare/v0.4.1...HEAD)
8
+
9
+ ## [0.4.1](https://github.com/learningtapestry/lt-google-api/compare/v0.4.0...v0.4.1) - 2025-09-22
10
+
11
+ ### Changed
12
+
13
+ - 'activesupport' version is limited to be less than 8.0.0
14
+ - Misc gem updates
8
15
 
9
16
  ## [0.4.0](https://github.com/learningtapestry/lt-google-api/compare/v0.3.2...v0.4.0) - 2025-06-21
10
17
 
data/Gemfile.lock CHANGED
@@ -1,14 +1,15 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- lt-google-api (0.4.0)
4
+ lt-google-api (0.4.1)
5
+ activesupport (~> 7)
5
6
  google-apis-drive_v3 (~> 0.66)
6
7
  googleauth (~> 1.14)
7
8
 
8
9
  GEM
9
10
  remote: https://rubygems.org/
10
11
  specs:
11
- activesupport (8.0.2)
12
+ activesupport (7.2.2.2)
12
13
  base64
13
14
  benchmark (>= 0.3)
14
15
  bigdecimal
@@ -20,58 +21,57 @@ GEM
20
21
  minitest (>= 5.1)
21
22
  securerandom (>= 0.3)
22
23
  tzinfo (~> 2.0, >= 2.0.5)
23
- uri (>= 0.13.1)
24
24
  addressable (2.8.7)
25
25
  public_suffix (>= 2.0.2, < 7.0)
26
26
  ast (2.4.3)
27
27
  base64 (0.3.0)
28
28
  benchmark (0.4.1)
29
- bigdecimal (3.2.0)
29
+ bigdecimal (3.2.3)
30
30
  childprocess (5.1.0)
31
31
  logger (~> 1.5)
32
32
  concurrent-ruby (1.3.5)
33
- connection_pool (2.5.3)
34
- csv (3.3.4)
33
+ connection_pool (2.5.4)
34
+ csv (3.3.5)
35
35
  declarative (0.0.20)
36
36
  drb (2.2.3)
37
- faraday (2.13.1)
37
+ faraday (2.13.4)
38
38
  faraday-net_http (>= 2.0, < 3.5)
39
39
  json
40
40
  logger
41
- faraday-net_http (3.4.0)
41
+ faraday-follow_redirects (0.3.0)
42
+ faraday (>= 1, < 3)
43
+ faraday-net_http (3.4.1)
42
44
  net-http (>= 0.5.0)
43
45
  ffi (1.17.2-aarch64-linux-gnu)
44
46
  ffi (1.17.2-x86_64-linux-gnu)
45
47
  fileutils (1.7.3)
46
- google-apis-core (0.16.0)
47
- addressable (~> 2.5, >= 2.5.1)
48
- googleauth (~> 1.9)
49
- httpclient (>= 2.8.3, < 3.a)
50
- mini_mime (~> 1.0)
51
- mutex_m
48
+ google-apis-core (1.0.2)
49
+ addressable (~> 2.8, >= 2.8.7)
50
+ faraday (~> 2.13)
51
+ faraday-follow_redirects (~> 0.3)
52
+ googleauth (~> 1.14)
53
+ mini_mime (~> 1.1)
52
54
  representable (~> 3.0)
53
- retriable (>= 2.0, < 4.a)
54
- google-apis-drive_v3 (0.66.0)
55
+ retriable (~> 3.1)
56
+ google-apis-drive_v3 (0.71.0)
55
57
  google-apis-core (>= 0.15.0, < 2.a)
56
58
  google-cloud-env (2.3.1)
57
59
  base64 (~> 0.2)
58
60
  faraday (>= 1.0, < 3.a)
59
61
  google-logging-utils (0.2.0)
60
- googleauth (1.14.0)
62
+ googleauth (1.15.0)
61
63
  faraday (>= 1.0, < 3.a)
62
64
  google-cloud-env (~> 2.2)
63
65
  google-logging-utils (~> 0.1)
64
- jwt (>= 1.4, < 3.0)
66
+ jwt (>= 1.4, < 4.0)
65
67
  multi_json (~> 1.11)
66
68
  os (>= 0.9, < 2.0)
67
69
  signet (>= 0.16, < 2.a)
68
- httpclient (2.9.0)
69
- mutex_m
70
70
  i18n (1.14.7)
71
71
  concurrent-ruby (~> 1.0)
72
72
  iniparse (1.5.0)
73
- json (2.12.2)
74
- jwt (2.10.1)
73
+ json (2.14.1)
74
+ jwt (3.1.2)
75
75
  base64
76
76
  language_server-protocol (3.17.0.5)
77
77
  lint_roller (1.1.0)
@@ -81,20 +81,20 @@ GEM
81
81
  logger (1.7.0)
82
82
  mini_mime (1.1.5)
83
83
  minitest (5.25.5)
84
- multi_json (1.15.0)
84
+ multi_json (1.17.0)
85
85
  mutex_m (0.3.0)
86
86
  net-http (0.6.0)
87
87
  uri
88
88
  os (1.1.4)
89
- overcommit (0.67.1)
89
+ overcommit (0.68.0)
90
90
  childprocess (>= 0.6.3, < 6)
91
91
  iniparse (~> 1.4)
92
92
  rexml (>= 3.3.9)
93
93
  parallel (1.27.0)
94
- parser (3.3.8.0)
94
+ parser (3.3.9.0)
95
95
  ast (~> 2.4.1)
96
96
  racc
97
- prism (1.4.0)
97
+ prism (1.5.1)
98
98
  public_suffix (6.0.2)
99
99
  racc (1.8.1)
100
100
  rainbow (3.1.1)
@@ -102,16 +102,16 @@ GEM
102
102
  rb-fsevent (0.11.2)
103
103
  rb-inotify (0.11.1)
104
104
  ffi (~> 1.0)
105
- rbs (3.9.4)
105
+ rbs (3.9.5)
106
106
  logger
107
- regexp_parser (2.10.0)
107
+ regexp_parser (2.11.3)
108
108
  representable (3.2.0)
109
109
  declarative (< 0.1.0)
110
110
  trailblazer-option (>= 0.1.1, < 0.2.0)
111
111
  uber (< 0.2.0)
112
112
  retriable (3.1.2)
113
- rexml (3.4.1)
114
- rubocop (1.75.8)
113
+ rexml (3.4.4)
114
+ rubocop (1.80.2)
115
115
  json (~> 2.3)
116
116
  language_server-protocol (~> 3.17.0.2)
117
117
  lint_roller (~> 1.1.0)
@@ -119,42 +119,46 @@ GEM
119
119
  parser (>= 3.3.0.2)
120
120
  rainbow (>= 2.2.2, < 4.0)
121
121
  regexp_parser (>= 2.9.3, < 3.0)
122
- rubocop-ast (>= 1.44.0, < 2.0)
122
+ rubocop-ast (>= 1.46.0, < 2.0)
123
123
  ruby-progressbar (~> 1.7)
124
124
  unicode-display_width (>= 2.4.0, < 4.0)
125
- rubocop-ast (1.44.1)
125
+ rubocop-ast (1.47.0)
126
126
  parser (>= 3.3.7.2)
127
127
  prism (~> 1.4)
128
128
  ruby-progressbar (1.13.0)
129
129
  securerandom (0.4.1)
130
- signet (0.20.0)
130
+ signet (0.21.0)
131
131
  addressable (~> 2.8)
132
132
  faraday (>= 0.17.5, < 3.a)
133
- jwt (>= 1.5, < 3.0)
133
+ jwt (>= 1.5, < 4.0)
134
134
  multi_json (~> 1.10)
135
- steep (1.5.3)
135
+ steep (1.10.0)
136
136
  activesupport (>= 5.1)
137
137
  concurrent-ruby (>= 1.1.10)
138
138
  csv (>= 3.0.9)
139
139
  fileutils (>= 1.1.0)
140
140
  json (>= 2.1.0)
141
- language_server-protocol (>= 3.15, < 4.0)
141
+ language_server-protocol (>= 3.17.0.4, < 4.0)
142
142
  listen (~> 3.0)
143
143
  logger (>= 1.3.0)
144
+ mutex_m (>= 0.3.0)
144
145
  parser (>= 3.1)
145
146
  rainbow (>= 2.2.2, < 4.0)
146
- rbs (>= 3.1.0)
147
+ rbs (~> 3.9)
147
148
  securerandom (>= 0.1)
148
149
  strscan (>= 1.0.0)
149
- terminal-table (>= 2, < 4)
150
+ terminal-table (>= 2, < 5)
151
+ uri (>= 0.12.0)
150
152
  strscan (3.1.5)
151
- terminal-table (3.0.2)
152
- unicode-display_width (>= 1.1.1, < 3)
153
+ terminal-table (4.0.0)
154
+ unicode-display_width (>= 1.1.1, < 4)
153
155
  trailblazer-option (0.1.2)
154
156
  tzinfo (2.0.6)
155
157
  concurrent-ruby (~> 1.0)
156
158
  uber (0.1.0)
157
- unicode-display_width (2.6.0)
159
+ unicode-display_width (3.2.0)
160
+ unicode-emoji (~> 4.1)
161
+ unicode-emoji (4.1.0)
158
162
  uri (1.0.3)
159
163
 
160
164
  PLATFORMS
@@ -167,7 +171,7 @@ DEPENDENCIES
167
171
  overcommit (~> 0.57)
168
172
  rake (~> 13)
169
173
  rubocop (~> 1)
170
- steep (~> 1.5.3)
174
+ steep (~> 1.10)
171
175
 
172
176
  BUNDLED WITH
173
177
  2.4.22
data/README.md CHANGED
@@ -5,6 +5,8 @@
5
5
 
6
6
  ## Installation
7
7
 
8
+ _Note:_ This is the Ruby 3.x branch. For Ruby 2.x, the latest version is `0.3.2`. If any updates are needed for the Ruby 2.x version, use the [`ruby-2x`](https://github.com/learningtapestry/lt-google-api/tree/ruby-2x) branch.
9
+
8
10
  Add this line to your application's Gemfile:
9
11
 
10
12
  ```ruby
data/docker-compose.yml CHANGED
@@ -1,8 +1,10 @@
1
- version: '3.8'
2
-
3
1
  services:
4
2
  app:
5
- image: learningtapestry/lt-google-api:legacy
3
+ image: learningtapestry/lt-google-api
6
4
  command: bash -c "bundle install && tail -f /dev/null"
7
5
  volumes:
8
6
  - .:/app
7
+ - bundle-3.2.1:/usr/local/bundle
8
+
9
+ volumes:
10
+ bundle-3.2.1:
@@ -52,7 +52,7 @@ module Lt
52
52
  new_files = list folder_id
53
53
  current_files = list target_id
54
54
 
55
- # delete old files not present on new version
55
+ # delete old files not present on a new version
56
56
  current_files.each do |file|
57
57
  next if new_files.detect { |f| f.name == file.name }
58
58
 
@@ -83,7 +83,7 @@ module Lt
83
83
  end
84
84
 
85
85
  def list_file_ids_in(folder_id, mime_type: MIME_FILE, with_subfolders: true)
86
- [].tap do |result|
86
+ [].tap do |result| # steep:ignore UnannotatedEmptyCollection
87
87
  page_token = nil
88
88
  loop do
89
89
  response = service.list_files(
@@ -3,7 +3,7 @@
3
3
  module Lt
4
4
  module Google
5
5
  module Api
6
- VERSION = '0.4.0'
6
+ VERSION = '0.4.1'
7
7
  end
8
8
  end
9
9
  end
@@ -36,10 +36,13 @@ Gem::Specification.new do |spec| # rubocop:disable Metrics/BlockLength
36
36
  spec.add_dependency 'google-apis-drive_v3', ' ~> 0.66'
37
37
  spec.add_dependency 'googleauth', '~> 1.14'
38
38
 
39
+ # NOTE: Limited to 7.x due to all clients are using 7.x
40
+ spec.add_dependency 'activesupport', '~> 7'
41
+
39
42
  spec.add_development_dependency 'bundler', '~> 2.4'
40
43
  spec.add_development_dependency 'overcommit', '~> 0.57'
41
44
  spec.add_development_dependency 'rake', '~> 13'
42
45
  spec.add_development_dependency 'rubocop', '~> 1'
43
- spec.add_development_dependency 'steep', '~> 1.5.3'
46
+ spec.add_development_dependency 'steep', '~> 1.10'
44
47
  spec.metadata['rubygems_mfa_required'] = 'true'
45
48
  end
@@ -1,10 +1,4 @@
1
1
  ---
2
- sources:
3
- - type: git
4
- name: ruby/gem_rbs_collection
5
- revision: 20e6e0f0685139dbd29df50e03367e222aa5d1b8
6
- remote: https://github.com/ruby/gem_rbs_collection.git
7
- repo_dir: gems
8
2
  path: ".gem_rbs_collection"
9
3
  gems:
10
4
  - name: activesupport
@@ -35,6 +29,18 @@ gems:
35
29
  version: '0'
36
30
  source:
37
31
  type: stdlib
32
+ - name: benchmark
33
+ version: '0'
34
+ source:
35
+ type: stdlib
36
+ - name: bigdecimal
37
+ version: '3.1'
38
+ source:
39
+ type: git
40
+ name: ruby/gem_rbs_collection
41
+ revision: fdacf4febfd1a10797f2340410e0876a9811cdf2
42
+ remote: https://github.com/ruby/gem_rbs_collection.git
43
+ repo_dir: gems
38
44
  - name: concurrent-ruby
39
45
  version: '1.1'
40
46
  source:
@@ -43,6 +49,14 @@ gems:
43
49
  revision: 5666e737d2b27a8425b4e3855c1a38cae54989f7
44
50
  remote: https://github.com/ruby/gem_rbs_collection.git
45
51
  repo_dir: gems
52
+ - name: connection_pool
53
+ version: '2.4'
54
+ source:
55
+ type: git
56
+ name: ruby/gem_rbs_collection
57
+ revision: fdacf4febfd1a10797f2340410e0876a9811cdf2
58
+ remote: https://github.com/ruby/gem_rbs_collection.git
59
+ repo_dir: gems
46
60
  - name: date
47
61
  version: '0'
48
62
  source:
@@ -67,12 +81,20 @@ gems:
67
81
  version: '0'
68
82
  source:
69
83
  type: stdlib
70
- - name: httpclient
71
- version: '2.8'
84
+ - name: google-apis-core
85
+ version: '0.15'
72
86
  source:
73
87
  type: git
74
88
  name: ruby/gem_rbs_collection
75
- revision: 5666e737d2b27a8425b4e3855c1a38cae54989f7
89
+ revision: fdacf4febfd1a10797f2340410e0876a9811cdf2
90
+ remote: https://github.com/ruby/gem_rbs_collection.git
91
+ repo_dir: gems
92
+ - name: googleauth
93
+ version: '1.11'
94
+ source:
95
+ type: git
96
+ name: ruby/gem_rbs_collection
97
+ revision: fdacf4febfd1a10797f2340410e0876a9811cdf2
76
98
  remote: https://github.com/ruby/gem_rbs_collection.git
77
99
  repo_dir: gems
78
100
  - name: i18n
@@ -99,6 +121,14 @@ gems:
99
121
  version: '0'
100
122
  source:
101
123
  type: stdlib
124
+ - name: mini_mime
125
+ version: '0.1'
126
+ source:
127
+ type: git
128
+ name: ruby/gem_rbs_collection
129
+ revision: fdacf4febfd1a10797f2340410e0876a9811cdf2
130
+ remote: https://github.com/ruby/gem_rbs_collection.git
131
+ repo_dir: gems
102
132
  - name: minitest
103
133
  version: '0'
104
134
  source:
@@ -111,6 +141,14 @@ gems:
111
141
  version: '0'
112
142
  source:
113
143
  type: stdlib
144
+ - name: net-http
145
+ version: '0'
146
+ source:
147
+ type: stdlib
148
+ - name: net-protocol
149
+ version: '0'
150
+ source:
151
+ type: stdlib
114
152
  - name: parallel
115
153
  version: '1.20'
116
154
  source:
@@ -131,6 +169,10 @@ gems:
131
169
  version: '0'
132
170
  source:
133
171
  type: stdlib
172
+ - name: prism
173
+ version: 1.5.1
174
+ source:
175
+ type: rubygems
134
176
  - name: rainbow
135
177
  version: '3.0'
136
178
  source:
@@ -175,22 +217,34 @@ gems:
175
217
  version: '0'
176
218
  source:
177
219
  type: stdlib
178
- - name: singleton
179
- version: '0'
180
- source:
181
- type: stdlib
182
- - name: thor
183
- version: '1.2'
220
+ - name: signet
221
+ version: '0.19'
184
222
  source:
185
223
  type: git
186
224
  name: ruby/gem_rbs_collection
187
- revision: 20e6e0f0685139dbd29df50e03367e222aa5d1b8
225
+ revision: fdacf4febfd1a10797f2340410e0876a9811cdf2
188
226
  remote: https://github.com/ruby/gem_rbs_collection.git
189
227
  repo_dir: gems
228
+ - name: singleton
229
+ version: '0'
230
+ source:
231
+ type: stdlib
190
232
  - name: time
191
233
  version: '0'
192
234
  source:
193
235
  type: stdlib
236
+ - name: timeout
237
+ version: '0'
238
+ source:
239
+ type: stdlib
240
+ - name: tzinfo
241
+ version: '2.0'
242
+ source:
243
+ type: git
244
+ name: ruby/gem_rbs_collection
245
+ revision: fdacf4febfd1a10797f2340410e0876a9811cdf2
246
+ remote: https://github.com/ruby/gem_rbs_collection.git
247
+ repo_dir: gems
194
248
  - name: uri
195
249
  version: '0'
196
250
  source:
@@ -18,7 +18,7 @@ module Lt
18
18
  def copy: (untyped file_ids, untyped folder_id) -> untyped
19
19
  def copy_files: (untyped folder_id, untyped target_id) -> untyped
20
20
  def create_folder: (untyped name, ?untyped? parent_id) -> untyped
21
- def list_file_ids_in: (untyped folder_id, ?mime_type: untyped, ?with_subfolders: bool) -> untyped
21
+ def list_file_ids_in: (untyped folder_id, ?mime_type: untyped, ?with_subfolders: bool) -> Array[String]
22
22
  def fetch_folders: (untyped name, untyped folder_id) -> untyped
23
23
 
24
24
  private
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.4.0
4
+ version: 0.4.1
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: 2025-06-21 00:00:00.000000000 Z
12
+ date: 2025-09-22 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: google-apis-drive_v3
@@ -39,6 +39,20 @@ dependencies:
39
39
  - - "~>"
40
40
  - !ruby/object:Gem::Version
41
41
  version: '1.14'
42
+ - !ruby/object:Gem::Dependency
43
+ name: activesupport
44
+ requirement: !ruby/object:Gem::Requirement
45
+ requirements:
46
+ - - "~>"
47
+ - !ruby/object:Gem::Version
48
+ version: '7'
49
+ type: :runtime
50
+ prerelease: false
51
+ version_requirements: !ruby/object:Gem::Requirement
52
+ requirements:
53
+ - - "~>"
54
+ - !ruby/object:Gem::Version
55
+ version: '7'
42
56
  - !ruby/object:Gem::Dependency
43
57
  name: bundler
44
58
  requirement: !ruby/object:Gem::Requirement
@@ -101,14 +115,14 @@ dependencies:
101
115
  requirements:
102
116
  - - "~>"
103
117
  - !ruby/object:Gem::Version
104
- version: 1.5.3
118
+ version: '1.10'
105
119
  type: :development
106
120
  prerelease: false
107
121
  version_requirements: !ruby/object:Gem::Requirement
108
122
  requirements:
109
123
  - - "~>"
110
124
  - !ruby/object:Gem::Version
111
- version: 1.5.3
125
+ version: '1.10'
112
126
  description: ''
113
127
  email:
114
128
  - paranoic.san@gmail.com
@@ -176,7 +190,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
176
190
  - !ruby/object:Gem::Version
177
191
  version: '0'
178
192
  requirements: []
179
- rubygems_version: 3.4.6
193
+ rubygems_version: 3.0.3.1
180
194
  signing_key:
181
195
  specification_version: 4
182
196
  summary: Provides the set of classes to simplify work with Google services