lt-google-api 0.2.2 → 0.2.3
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 +4 -4
- data/.github/workflows/rubocop-analysis.yml +1 -1
- data/CHANGELOG.md +8 -2
- data/Gemfile.lock +63 -25
- data/lib/lt/google/api/drive.rb +4 -4
- data/lib/lt/google/api/version.rb +1 -1
- metadata +3 -3
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 49e7855c5ab40fb80281ba58f130333ad81631cbaa24dd9b5d64b79d40fc8bc8
|
|
4
|
+
data.tar.gz: fb1393d24c6a05c168da9cd43bc460a4439424cdbb9f233f86b7df274aca474a
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: cec024f4b0490b44dccaf9232dbebac79c466fab348ac4b0bd16e61b2fbda688c57d32c998938c2abf6c3638ed39fa039ac186706358112c26f31569380f089d
|
|
7
|
+
data.tar.gz: 3d100192c9e212ed8046c44b657f8660e42e0a0b839ae57a988c08b060e8ed1ae290e97cbc9469040d09fbd67f399bf768dba73f99674c8ed5e17801c7d1f1ec
|
data/CHANGELOG.md
CHANGED
|
@@ -4,9 +4,15 @@ 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.2.
|
|
7
|
+
## [Unreleased](https://github.com/learningtapestry/lt-google-api/compare/v0.2.3...HEAD)
|
|
8
8
|
|
|
9
|
-
## [0.2.
|
|
9
|
+
## [0.2.3](https://github.com/learningtapestry/lt-lcms/compare/v0.2.2...v0.2.3) - 2021-07-02
|
|
10
|
+
|
|
11
|
+
### Fixed
|
|
12
|
+
|
|
13
|
+
- Fix Google API query when object name contains special characters like " ' " ([#11](https://github.com/learningtapestry/lt-google-api/pull/11))
|
|
14
|
+
|
|
15
|
+
## [0.2.2](https://github.com/learningtapestry/lt-lcms/compare/v0.2.1...v0.2.2) - 2020-12-25
|
|
10
16
|
|
|
11
17
|
### Fixed
|
|
12
18
|
|
data/Gemfile.lock
CHANGED
|
@@ -1,32 +1,60 @@
|
|
|
1
1
|
PATH
|
|
2
2
|
remote: .
|
|
3
3
|
specs:
|
|
4
|
-
lt-google-api (0.2.
|
|
4
|
+
lt-google-api (0.2.3)
|
|
5
5
|
google-api-client (~> 0.46)
|
|
6
6
|
googleauth (~> 0.14)
|
|
7
7
|
|
|
8
8
|
GEM
|
|
9
9
|
remote: https://rubygems.org/
|
|
10
10
|
specs:
|
|
11
|
+
activesupport (6.1.4)
|
|
12
|
+
concurrent-ruby (~> 1.0, >= 1.0.2)
|
|
13
|
+
i18n (>= 1.6, < 2)
|
|
14
|
+
minitest (>= 5.1)
|
|
15
|
+
tzinfo (~> 2.0)
|
|
16
|
+
zeitwerk (~> 2.3)
|
|
11
17
|
addressable (2.7.0)
|
|
12
18
|
public_suffix (>= 2.0.2, < 5.0)
|
|
13
|
-
ast (2.4.
|
|
14
|
-
childprocess (4.
|
|
19
|
+
ast (2.4.2)
|
|
20
|
+
childprocess (4.1.0)
|
|
21
|
+
concurrent-ruby (1.1.9)
|
|
15
22
|
declarative (0.0.20)
|
|
16
|
-
|
|
17
|
-
|
|
23
|
+
faraday (1.4.3)
|
|
24
|
+
faraday-em_http (~> 1.0)
|
|
25
|
+
faraday-em_synchrony (~> 1.0)
|
|
26
|
+
faraday-excon (~> 1.1)
|
|
27
|
+
faraday-net_http (~> 1.0)
|
|
28
|
+
faraday-net_http_persistent (~> 1.1)
|
|
18
29
|
multipart-post (>= 1.2, < 3)
|
|
19
|
-
ruby2_keywords
|
|
20
|
-
|
|
30
|
+
ruby2_keywords (>= 0.0.4)
|
|
31
|
+
faraday-em_http (1.0.0)
|
|
32
|
+
faraday-em_synchrony (1.0.0)
|
|
33
|
+
faraday-excon (1.1.0)
|
|
34
|
+
faraday-net_http (1.0.1)
|
|
35
|
+
faraday-net_http_persistent (1.1.0)
|
|
36
|
+
gems (1.2.0)
|
|
37
|
+
google-api-client (0.53.0)
|
|
38
|
+
google-apis-core (~> 0.1)
|
|
39
|
+
google-apis-generator (~> 0.1)
|
|
40
|
+
google-apis-core (0.4.0)
|
|
21
41
|
addressable (~> 2.5, >= 2.5.1)
|
|
22
|
-
googleauth (
|
|
23
|
-
httpclient (>= 2.8.1, < 3.
|
|
42
|
+
googleauth (>= 0.16.2, < 2.a)
|
|
43
|
+
httpclient (>= 2.8.1, < 3.a)
|
|
24
44
|
mini_mime (~> 1.0)
|
|
25
45
|
representable (~> 3.0)
|
|
26
|
-
retriable (>= 2.0, < 4.
|
|
46
|
+
retriable (>= 2.0, < 4.a)
|
|
27
47
|
rexml
|
|
28
|
-
|
|
29
|
-
|
|
48
|
+
webrick
|
|
49
|
+
google-apis-discovery_v1 (0.5.0)
|
|
50
|
+
google-apis-core (>= 0.3, < 2.a)
|
|
51
|
+
google-apis-generator (0.4.0)
|
|
52
|
+
activesupport (>= 5.0)
|
|
53
|
+
gems (~> 1.2)
|
|
54
|
+
google-apis-core (>= 0.4, < 2.a)
|
|
55
|
+
google-apis-discovery_v1 (~> 0.5)
|
|
56
|
+
thor (>= 0.20, < 2.a)
|
|
57
|
+
googleauth (0.16.2)
|
|
30
58
|
faraday (>= 0.17.3, < 2.0)
|
|
31
59
|
jwt (>= 1.4, < 3.0)
|
|
32
60
|
memoist (~> 0.16)
|
|
@@ -34,29 +62,33 @@ GEM
|
|
|
34
62
|
os (>= 0.9, < 2.0)
|
|
35
63
|
signet (~> 0.14)
|
|
36
64
|
httpclient (2.8.3)
|
|
65
|
+
i18n (1.8.10)
|
|
66
|
+
concurrent-ruby (~> 1.0)
|
|
37
67
|
iniparse (1.5.0)
|
|
38
|
-
jwt (2.2.
|
|
68
|
+
jwt (2.2.3)
|
|
39
69
|
memoist (0.16.2)
|
|
40
|
-
mini_mime (1.0
|
|
70
|
+
mini_mime (1.1.0)
|
|
71
|
+
minitest (5.14.4)
|
|
41
72
|
multi_json (1.15.0)
|
|
42
73
|
multipart-post (2.1.1)
|
|
43
74
|
os (1.1.1)
|
|
44
|
-
overcommit (0.
|
|
75
|
+
overcommit (0.58.0)
|
|
45
76
|
childprocess (>= 0.6.3, < 5)
|
|
46
77
|
iniparse (~> 1.4)
|
|
78
|
+
rexml (~> 3.2)
|
|
47
79
|
parallel (1.20.1)
|
|
48
|
-
parser (
|
|
80
|
+
parser (3.0.1.1)
|
|
49
81
|
ast (~> 2.4.1)
|
|
50
82
|
public_suffix (4.0.6)
|
|
51
83
|
rainbow (3.0.0)
|
|
52
84
|
rake (13.0.3)
|
|
53
|
-
regexp_parser (2.
|
|
54
|
-
representable (3.
|
|
85
|
+
regexp_parser (2.1.1)
|
|
86
|
+
representable (3.1.1)
|
|
55
87
|
declarative (< 0.1.0)
|
|
56
|
-
|
|
88
|
+
trailblazer-option (>= 0.1.1, < 0.2.0)
|
|
57
89
|
uber (< 0.2.0)
|
|
58
90
|
retriable (3.1.2)
|
|
59
|
-
rexml (3.2.
|
|
91
|
+
rexml (3.2.5)
|
|
60
92
|
rubocop (0.93.1)
|
|
61
93
|
parallel (~> 1.10)
|
|
62
94
|
parser (>= 2.7.1.5)
|
|
@@ -66,17 +98,23 @@ GEM
|
|
|
66
98
|
rubocop-ast (>= 0.6.0)
|
|
67
99
|
ruby-progressbar (~> 1.7)
|
|
68
100
|
unicode-display_width (>= 1.4.0, < 2.0)
|
|
69
|
-
rubocop-ast (1.
|
|
70
|
-
parser (>=
|
|
71
|
-
ruby-progressbar (1.
|
|
72
|
-
ruby2_keywords (0.0.
|
|
73
|
-
signet (0.
|
|
101
|
+
rubocop-ast (1.7.0)
|
|
102
|
+
parser (>= 3.0.1.1)
|
|
103
|
+
ruby-progressbar (1.11.0)
|
|
104
|
+
ruby2_keywords (0.0.4)
|
|
105
|
+
signet (0.15.0)
|
|
74
106
|
addressable (~> 2.3)
|
|
75
107
|
faraday (>= 0.17.3, < 2.0)
|
|
76
108
|
jwt (>= 1.5, < 3.0)
|
|
77
109
|
multi_json (~> 1.10)
|
|
110
|
+
thor (1.1.0)
|
|
111
|
+
trailblazer-option (0.1.1)
|
|
112
|
+
tzinfo (2.0.4)
|
|
113
|
+
concurrent-ruby (~> 1.0)
|
|
78
114
|
uber (0.1.0)
|
|
79
115
|
unicode-display_width (1.7.0)
|
|
116
|
+
webrick (1.7.0)
|
|
117
|
+
zeitwerk (2.4.2)
|
|
80
118
|
|
|
81
119
|
PLATFORMS
|
|
82
120
|
ruby
|
data/lib/lt/google/api/drive.rb
CHANGED
|
@@ -85,9 +85,9 @@ module Lt
|
|
|
85
85
|
page_token = nil
|
|
86
86
|
loop do
|
|
87
87
|
response = service.list_files(
|
|
88
|
-
q: "
|
|
88
|
+
q: %("#{folder_id}" in parents and trashed = false"),
|
|
89
89
|
fields: 'files(id, mime_type), nextPageToken',
|
|
90
|
-
page_token: page_token,
|
|
90
|
+
page_token: page_token.to_s,
|
|
91
91
|
include_items_from_all_drives: true,
|
|
92
92
|
supports_all_drives: true
|
|
93
93
|
)
|
|
@@ -109,7 +109,7 @@ module Lt
|
|
|
109
109
|
|
|
110
110
|
def fetch_folders(name, folder_id)
|
|
111
111
|
service.list_files(
|
|
112
|
-
q: "
|
|
112
|
+
q: %("#{folder_id}" in parents and name = "#{name}" and mimeType = "#{MIME_FOLDER}" and trashed = false),
|
|
113
113
|
fields: 'files(id)',
|
|
114
114
|
include_items_from_all_drives: true,
|
|
115
115
|
supports_all_drives: true
|
|
@@ -120,7 +120,7 @@ module Lt
|
|
|
120
120
|
|
|
121
121
|
def list(folder_id)
|
|
122
122
|
service.list_files(
|
|
123
|
-
q: "
|
|
123
|
+
q: %("#{folder_id}" in parents and mimeType = "#{MIME_FILE}" and trashed = false),
|
|
124
124
|
fields: 'files(id, name)',
|
|
125
125
|
include_items_from_all_drives: true,
|
|
126
126
|
supports_all_drives: true
|
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: lt-google-api
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.2.
|
|
4
|
+
version: 0.2.3
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Alexander Kuznetsov
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: exe
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date:
|
|
11
|
+
date: 2021-07-02 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: google-api-client
|
|
@@ -145,7 +145,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
|
145
145
|
- !ruby/object:Gem::Version
|
|
146
146
|
version: '0'
|
|
147
147
|
requirements: []
|
|
148
|
-
rubygems_version: 3.0.
|
|
148
|
+
rubygems_version: 3.0.9
|
|
149
149
|
signing_key:
|
|
150
150
|
specification_version: 4
|
|
151
151
|
summary: Provides the set of classes to simplify work with Google services
|