lt-google-api 0.2.2 → 0.2.3

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: 792d156e9613ca9fce4229d451f7393002dd8b3afe971175bfac68dd12898622
4
- data.tar.gz: 4adc95510a384d2fbf01a2e62b302672c67f09158804cc0d9fdbe1a2f8e459ad
3
+ metadata.gz: 49e7855c5ab40fb80281ba58f130333ad81631cbaa24dd9b5d64b79d40fc8bc8
4
+ data.tar.gz: fb1393d24c6a05c168da9cd43bc460a4439424cdbb9f233f86b7df274aca474a
5
5
  SHA512:
6
- metadata.gz: 78065c646e75ca5eb9a10a7426c423b9ee81364ed851792903f2b1545b6b3d000b18f3c79d8cb2bd95c6e5816fc1dcdf4922536724c89710bf386a289650b901
7
- data.tar.gz: 80313bffccf3df4867bc07170e515df3e1e6c7a0ba327214bdd86a7a3b1cb13bd96a48e14f31cfb218954b4bd38527eeecc34136ee8314e85819745a6d3512fa
6
+ metadata.gz: cec024f4b0490b44dccaf9232dbebac79c466fab348ac4b0bd16e61b2fbda688c57d32c998938c2abf6c3638ed39fa039ac186706358112c26f31569380f089d
7
+ data.tar.gz: 3d100192c9e212ed8046c44b657f8660e42e0a0b839ae57a988c08b060e8ed1ae290e97cbc9469040d09fbd67f399bf768dba73f99674c8ed5e17801c7d1f1ec
@@ -1,6 +1,6 @@
1
1
  name: "Rubocop"
2
2
 
3
- on: push
3
+ on: pull_request
4
4
 
5
5
  jobs:
6
6
  rubocop:
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.2...HEAD)
7
+ ## [Unreleased](https://github.com/learningtapestry/lt-google-api/compare/v0.2.3...HEAD)
8
8
 
9
- ## [0.2.1](https://github.com/learningtapestry/lt-lcms/compare/v0.2.1...v0.2.2) - 2020-12-25
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.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.1)
14
- childprocess (4.0.0)
19
+ ast (2.4.2)
20
+ childprocess (4.1.0)
21
+ concurrent-ruby (1.1.9)
15
22
  declarative (0.0.20)
16
- declarative-option (0.1.0)
17
- faraday (1.2.0)
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
- google-api-client (0.52.0)
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 (~> 0.9)
23
- httpclient (>= 2.8.1, < 3.0)
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.0)
46
+ retriable (>= 2.0, < 4.a)
27
47
  rexml
28
- signet (~> 0.12)
29
- googleauth (0.14.0)
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.2)
68
+ jwt (2.2.3)
39
69
  memoist (0.16.2)
40
- mini_mime (1.0.2)
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.57.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 (2.7.2.0)
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.0.1)
54
- representable (3.0.4)
85
+ regexp_parser (2.1.1)
86
+ representable (3.1.1)
55
87
  declarative (< 0.1.0)
56
- declarative-option (< 0.2.0)
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.4)
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.3.0)
70
- parser (>= 2.7.1.5)
71
- ruby-progressbar (1.10.1)
72
- ruby2_keywords (0.0.2)
73
- signet (0.14.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
@@ -85,9 +85,9 @@ module Lt
85
85
  page_token = nil
86
86
  loop do
87
87
  response = service.list_files(
88
- q: "'#{folder_id}' in parents and trashed = false",
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: "'#{folder_id}' in parents and name = '#{name}' and mimeType = '#{MIME_FOLDER}' and trashed = false",
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: "'#{folder_id}' in parents and mimeType = '#{MIME_FILE}' and trashed = false",
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
@@ -3,7 +3,7 @@
3
3
  module Lt
4
4
  module Google
5
5
  module Api
6
- VERSION = '0.2.2'
6
+ VERSION = '0.2.3'
7
7
  end
8
8
  end
9
9
  end
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.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: 2020-12-25 00:00:00.000000000 Z
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.6
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