lt-google-api 0.3.2 → 0.4.0

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: d67409850dd6edb3a3e87407fd72455607efa5d3ea28cdbba77546095bc985e7
4
- data.tar.gz: e6a884b8a377aae41ca2fe467550dbc338890c4ad3bf6f6aa4aa14f210d23d52
3
+ metadata.gz: faca9abedb6b078492d31453906ef726354152d5f350ad0b714664cfd2f045e8
4
+ data.tar.gz: 0a8629ceae2e67f95366ec228f071845c5776e1a4dc18042e120d9cbf3bccc7e
5
5
  SHA512:
6
- metadata.gz: 0ee254f16420d275a8fddff6598070b21914caacd11eb2ae6e750cf527af25ce760a9aa118d8addeafcf4b036308892dcae2c845882c7d089997bdaa8289c66a
7
- data.tar.gz: c8f94a660173a69a469b601fe1109810c986d66af19a2d447d0e000e0ea9a57aad09cf542c4c2bdb4602c7db098b50ce38f6c5fcc05a75854bbefcd8a614dc5b
6
+ metadata.gz: 182f0c4733210227d4531d187185844e2b9167ee462e79aefa84899a6a2e1efeacaead975fbd088d407b82ba336ce96f1f6ea40e89d6eeea495190d1dcf7d33b
7
+ data.tar.gz: b3d35089ec2d0ff6967398c4a338b4a9bf321a728b5ef9b7b34c9db370c387e0b4e92ed8268e6b2183e6778b7988182a7bdac24e11756fbdfe12608c2993a202
data/.rubocop.yml CHANGED
@@ -13,7 +13,7 @@ AllCops:
13
13
  - db/schema.rb
14
14
  - node_modules/**/*
15
15
  NewCops: enable
16
- TargetRubyVersion: 2.7
16
+ TargetRubyVersion: 3.2
17
17
 
18
18
  Gemspec/DevelopmentDependencies:
19
19
  EnforcedStyle: gemspec
data/.ruby-version CHANGED
@@ -1 +1 @@
1
- 2.7.7
1
+ 3.2.1
data/CHANGELOG.md CHANGED
@@ -4,15 +4,26 @@ 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.2...HEAD)
7
+ ## [Unreleased](https://github.com/learningtapestry/lt-google-api/compare/v0.4.0...HEAD)
8
8
 
9
- ## [0.3.0](https://github.com/learningtapestry/lt-lcms/compare/v0.3.0...v0.3.2) - 2023-12-23
9
+ ## [0.4.0](https://github.com/learningtapestry/lt-google-api/compare/v0.3.2...v0.4.0) - 2025-06-21
10
+
11
+ ### Removed
12
+
13
+ - Ruby 2.7 support
14
+
15
+ ## [0.3.2](https://github.com/learningtapestry/lt-google-api/compare/v0.3.0...v0.3.2) - 2023-12-23
10
16
 
11
17
  ### Changed
12
18
 
13
19
  - Bumped versions for 'google-apis-drive_v3' to '~> 0.63.0' and 'googleauth', '~> 1.11.2'
14
20
 
15
- ## [0.3.0](https://github.com/learningtapestry/lt-lcms/compare/v0.2.4...v0.3.0) - 2023-12-23
21
+ ## [0.3.1](https://github.com/learningtapestry/lt-google-api/compare/v0.3.0...v0.3.1) - 2024-10-22
22
+ ### Changed
23
+ - Updated dependencies [@shlag3n](https://github.com/shlag3n)
24
+ - Upgraded google-api to 0.15 [@shlag3n](https://github.com/shlag3n)
25
+
26
+ ## [0.3.0](https://github.com/learningtapestry/lt-google-api/compare/v0.2.4...v0.3.0) - 2023-12-23
16
27
  ### Added
17
28
 
18
29
  - Added Docker support [@paranoicsan](https://github.com/paranoicsan)
@@ -25,25 +36,25 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
25
36
  - Ruby updated to 2.7.7 [@shlag3n](https://github.com/shlag3n) at the main branch
26
37
  - Upgraded google-api to 0.11 [@shlag3n](https://github.com/shlag3n)
27
38
 
28
- ## [0.2.4](https://github.com/learningtapestry/lt-lcms/compare/v0.2.3...v0.2.4) - 2021-07-16
39
+ ## [0.2.4](https://github.com/learningtapestry/lt-google-api/compare/v0.2.3...v0.2.4) - 2021-07-16
29
40
 
30
41
  ### Fixed
31
42
 
32
43
  - Fix for Google Query ([#13](https://github.com/learningtapestry/lt-google-api/pull/13))
33
44
 
34
- ## [0.2.3](https://github.com/learningtapestry/lt-lcms/compare/v0.2.2...v0.2.3) - 2021-07-02
45
+ ## [0.2.3](https://github.com/learningtapestry/lt-google-api/compare/v0.2.2...v0.2.3) - 2021-07-02
35
46
 
36
47
  ### Fixed
37
48
 
38
49
  - Fix Google API query when object name contains special characters like " ' " ([#11](https://github.com/learningtapestry/lt-google-api/pull/11))
39
50
 
40
- ## [0.2.2](https://github.com/learningtapestry/lt-lcms/compare/v0.2.1...v0.2.2) - 2020-12-25
51
+ ## [0.2.2](https://github.com/learningtapestry/lt-google-api/compare/v0.2.1...v0.2.2) - 2020-12-25
41
52
 
42
53
  ### Fixed
43
54
 
44
55
  - Fix Google API namespace ([#9](https://github.com/learningtapestry/lt-google-api/pull/9))
45
56
 
46
- ## [0.2.1](https://github.com/learningtapestry/lt-lcms/compare/v0.2.0...v0.2.1) - 2020-10-15
57
+ ## [0.2.1](https://github.com/learningtapestry/lt-google-api/compare/v0.2.0...v0.2.1) - 2020-10-15
47
58
 
48
59
  ### Fixed
49
60
 
@@ -55,7 +66,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
55
66
 
56
67
  - Add support for Google Shared Drives ([#7](https://github.com/learningtapestry/lt-google-api/pull/7))
57
68
 
58
- ## [0.1.1](https://github.com/learningtapestry/lt-lcms/compare/v0.1.0...v0.1.1) - 2020-01-13
69
+ ## [0.1.1](https://github.com/learningtapestry/lt-google-api/compare/v0.1.0...v0.1.1) - 2020-01-13
59
70
 
60
71
  ### Added
61
72
 
data/Dockerfile CHANGED
@@ -1,4 +1,4 @@
1
- FROM ruby:2.7.7
1
+ FROM ruby:3.2.1
2
2
 
3
3
  ENV APP_PATH=/app/
4
4
  ENV LANG=C.UTF-8
data/Gemfile.lock CHANGED
@@ -1,9 +1,9 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- lt-google-api (0.3.1)
5
- google-apis-drive_v3 (~> 0.63.0)
6
- googleauth (~> 1.11.2)
4
+ lt-google-api (0.4.0)
5
+ google-apis-drive_v3 (~> 0.66)
6
+ googleauth (~> 1.14)
7
7
 
8
8
  GEM
9
9
  remote: https://rubygems.org/
@@ -51,14 +51,16 @@ GEM
51
51
  mutex_m
52
52
  representable (~> 3.0)
53
53
  retriable (>= 2.0, < 4.a)
54
- google-apis-drive_v3 (0.63.0)
54
+ google-apis-drive_v3 (0.66.0)
55
55
  google-apis-core (>= 0.15.0, < 2.a)
56
56
  google-cloud-env (2.3.1)
57
57
  base64 (~> 0.2)
58
58
  faraday (>= 1.0, < 3.a)
59
- googleauth (1.11.2)
59
+ google-logging-utils (0.2.0)
60
+ googleauth (1.14.0)
60
61
  faraday (>= 1.0, < 3.a)
61
- google-cloud-env (~> 2.1)
62
+ google-cloud-env (~> 2.2)
63
+ google-logging-utils (~> 0.1)
62
64
  jwt (>= 1.4, < 3.0)
63
65
  multi_json (~> 1.11)
64
66
  os (>= 0.9, < 2.0)
@@ -168,4 +170,4 @@ DEPENDENCIES
168
170
  steep (~> 1.5.3)
169
171
 
170
172
  BUNDLED WITH
171
- 2.4.6
173
+ 2.4.22
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:legacy --push .
36
+ docker buildx build --platform linux/arm64/v8,linux/amd64 -t learningtapestry/lt-google-api --push .
37
37
  ```
38
38
 
39
39
  ### Type checking
@@ -18,7 +18,7 @@ module Lt
18
18
  client_id =
19
19
  ::Google::Auth::ClientId.new(ENV.fetch('GOOGLE_OAUTH2_CLIENT_ID', nil),
20
20
  ENV.fetch('GOOGLE_OAUTH2_CLIENT_SECRET', nil))
21
- token_store ||= ::Google::Auth::Stores::RedisTokenStore.new(redis: redis)
21
+ token_store ||= ::Google::Auth::Stores::RedisTokenStore.new(redis:)
22
22
  scope = %w(https://www.googleapis.com/auth/drive)
23
23
  ::Google::Auth::WebUserAuthorizer.new(client_id, scope, token_store, callback_path)
24
24
  end
@@ -6,7 +6,7 @@ module Lt
6
6
  module Google
7
7
  module Api
8
8
  class Drive
9
- FOLDER_RE = %r{/drive/(.*/)?folders/([^/?]+)/?}.freeze
9
+ FOLDER_RE = %r{/drive/(.*/)?folders/([^/?]+)/?}
10
10
  MIME_FILE = 'application/vnd.google-apps.document'
11
11
  MIME_FOLDER = 'application/vnd.google-apps.folder'
12
12
 
@@ -75,7 +75,7 @@ module Lt
75
75
  end
76
76
 
77
77
  metadata = ::Google::Apis::DriveV3::File.new(
78
- name: name,
78
+ name:,
79
79
  mime_type: MIME_FOLDER,
80
80
  parents: [parent_id]
81
81
  )
@@ -3,7 +3,7 @@
3
3
  module Lt
4
4
  module Google
5
5
  module Api
6
- VERSION = '0.3.2'
6
+ VERSION = '0.4.0'
7
7
  end
8
8
  end
9
9
  end
@@ -15,7 +15,7 @@ Gem::Specification.new do |spec| # rubocop:disable Metrics/BlockLength
15
15
  spec.description = ''
16
16
  spec.license = 'Apache-2.0'
17
17
 
18
- spec.required_ruby_version = '>= 2.7'
18
+ spec.required_ruby_version = '>= 3.2'
19
19
 
20
20
  # Prevent pushing this gem to RubyGems.org. To allow pushes either set the 'allowed_push_host'
21
21
  # to allow pushing to a single host or delete this section to allow pushing to any host.
@@ -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.63.0'
37
- spec.add_dependency 'googleauth', '~> 1.11.2'
36
+ spec.add_dependency 'google-apis-drive_v3', ' ~> 0.66'
37
+ spec.add_dependency 'googleauth', '~> 1.14'
38
38
 
39
39
  spec.add_development_dependency 'bundler', '~> 2.4'
40
40
  spec.add_development_dependency 'overcommit', '~> 0.57'
@@ -1,7 +1,7 @@
1
1
  module Lt
2
2
  module Google
3
3
  module Api
4
- VERSION: "0.2.4"
4
+ VERSION: "0.3.1"
5
5
  end
6
6
  end
7
7
  end
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.2
4
+ version: 0.4.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Alexander Kuznetsov
@@ -17,28 +17,28 @@ dependencies:
17
17
  requirements:
18
18
  - - "~>"
19
19
  - !ruby/object:Gem::Version
20
- version: 0.63.0
20
+ version: '0.66'
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.63.0
27
+ version: '0.66'
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.11.2
34
+ version: '1.14'
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.11.2
41
+ version: '1.14'
42
42
  - !ruby/object:Gem::Dependency
43
43
  name: bundler
44
44
  requirement: !ruby/object:Gem::Requirement
@@ -169,14 +169,14 @@ required_ruby_version: !ruby/object:Gem::Requirement
169
169
  requirements:
170
170
  - - ">="
171
171
  - !ruby/object:Gem::Version
172
- version: '2.7'
172
+ version: '3.2'
173
173
  required_rubygems_version: !ruby/object:Gem::Requirement
174
174
  requirements:
175
175
  - - ">="
176
176
  - !ruby/object:Gem::Version
177
177
  version: '0'
178
178
  requirements: []
179
- rubygems_version: 3.1.6
179
+ rubygems_version: 3.4.6
180
180
  signing_key:
181
181
  specification_version: 4
182
182
  summary: Provides the set of classes to simplify work with Google services