lt-lcms 0.6.0 → 0.7.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 +4 -4
- data/.rubocop.yml +1 -1
- data/.ruby-version +1 -1
- data/CHANGELOG.md +17 -1
- data/Dockerfile +6 -6
- data/Gemfile.lock +101 -75
- data/README.md +0 -4
- data/docker-compose.yml +8 -0
- data/lib/lt/lcms/lesson/downloader/gdoc.rb +4 -3
- data/lib/lt/lcms/lesson/uploader/gdoc.rb +2 -2
- data/lib/lt/lcms/version.rb +1 -1
- data/lt-lcms.gemspec +4 -4
- data/rbs_collection.lock.yaml +56 -54
- data/vendor/rbs/.keep +0 -0
- metadata +12 -25
- data/vendor/rbs/lt-google-api/lib/lt/google/api/auth/cli.rbs +0 -22
- data/vendor/rbs/lt-google-api/lib/lt/google/api/auth/credentials.rbs +0 -28
- data/vendor/rbs/lt-google-api/lib/lt/google/api/auth/service.rbs +0 -36
- data/vendor/rbs/lt-google-api/lib/lt/google/api/drive.rbs +0 -30
- data/vendor/rbs/lt-google-api/lib/lt/google/api/version.rbs +0 -7
- data/vendor/rbs/lt-google-api/lib/lt/google/api.rbs +0 -6
- data/vendor/rbs/lt-google-api/polifill/google-api-clients.rbs +0 -15
- data/vendor/rbs/lt-google-api/polifill/googleauth.rbs +0 -31
- data/vendor/rbs/lt-google-api/polifill/rails.rbs +0 -5
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: bd7e38020b4b2efbdf8b077f5bc067299a7ae6b2554c4aa43437bb9ea6f1ec8a
|
4
|
+
data.tar.gz: e9b70a15f2e0a1d7c7301be61c32acfabfe3149ef379f55d98760add140bc158
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 2432d159af04b6d35a7e3ceb430eea6ccc1c3a2e284d3326301db5df4afd275e8be637af7efc727bc7c723e24fee1f14854d2a3026a533c12edf1089911d5841
|
7
|
+
data.tar.gz: b6d1993292df38cde978abc3d9dc721c793f46a0d7a53e6897686474bcf33a59f4ff7f2b2c399529ed8bfc09c919a7d14f16175a9448c4143558242cefcdc41e
|
data/.rubocop.yml
CHANGED
data/.ruby-version
CHANGED
@@ -1 +1 @@
|
|
1
|
-
2.
|
1
|
+
3.2.1
|
data/CHANGELOG.md
CHANGED
@@ -4,7 +4,23 @@ 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/lcms-engine/compare/v0.
|
7
|
+
## [Unreleased](https://github.com/learningtapestry/lcms-engine/compare/v0.7.0...HEAD)
|
8
|
+
|
9
|
+
## [0.6.1](https://github.com/learningtapestry/lt-lcms/compare/v0.6.1...v0.7.0) - 2025-06-21
|
10
|
+
|
11
|
+
### Removed
|
12
|
+
|
13
|
+
- Drop Ruby < 3.2 support
|
14
|
+
|
15
|
+
### Added
|
16
|
+
|
17
|
+
- Bump lt-google-api to 0.4.0
|
18
|
+
|
19
|
+
## [0.6.1](https://github.com/learningtapestry/lt-lcms/compare/v0.6.1...v0.6.0) - 2025-06-21
|
20
|
+
|
21
|
+
### Added
|
22
|
+
|
23
|
+
- Bump lt-google-api to 0.3.2
|
8
24
|
|
9
25
|
## [0.6.0](https://github.com/learningtapestry/lt-lcms/compare/v0.5.0...v0.6.0) - 2023-12-23
|
10
26
|
### Added
|
data/Dockerfile
CHANGED
@@ -1,15 +1,15 @@
|
|
1
|
-
FROM ruby:2.
|
1
|
+
FROM ruby:3.2.1
|
2
2
|
|
3
|
-
ENV APP_PATH
|
4
|
-
ENV LANG
|
5
|
-
ENV GIT_AUTHOR_NAME
|
6
|
-
ENV GIT_AUTHOR_EMAIL
|
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
|
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,124 +1,150 @@
|
|
1
1
|
PATH
|
2
2
|
remote: .
|
3
3
|
specs:
|
4
|
-
lt-lcms (0.6.
|
5
|
-
google-apis-core (~> 0.
|
6
|
-
httparty (~> 0.
|
7
|
-
lt-google-api (~> 0.
|
4
|
+
lt-lcms (0.6.2)
|
5
|
+
google-apis-core (~> 0.18)
|
6
|
+
httparty (~> 0.22)
|
7
|
+
lt-google-api (~> 0.4.0)
|
8
8
|
nokogiri (~> 1.10, >= 1.10.8)
|
9
9
|
rubyzip (~> 2)
|
10
10
|
|
11
11
|
GEM
|
12
12
|
remote: https://rubygems.org/
|
13
13
|
specs:
|
14
|
-
activesupport (
|
15
|
-
|
14
|
+
activesupport (8.0.2)
|
15
|
+
base64
|
16
|
+
benchmark (>= 0.3)
|
17
|
+
bigdecimal
|
18
|
+
concurrent-ruby (~> 1.0, >= 1.3.1)
|
19
|
+
connection_pool (>= 2.2.5)
|
20
|
+
drb
|
16
21
|
i18n (>= 1.6, < 2)
|
22
|
+
logger (>= 1.4.2)
|
17
23
|
minitest (>= 5.1)
|
18
|
-
|
19
|
-
|
20
|
-
|
21
|
-
|
22
|
-
|
23
|
-
|
24
|
-
|
25
|
-
|
24
|
+
securerandom (>= 0.3)
|
25
|
+
tzinfo (~> 2.0, >= 2.0.5)
|
26
|
+
uri (>= 0.13.1)
|
27
|
+
addressable (2.8.7)
|
28
|
+
public_suffix (>= 2.0.2, < 7.0)
|
29
|
+
ast (2.4.3)
|
30
|
+
base64 (0.3.0)
|
31
|
+
benchmark (0.4.1)
|
32
|
+
bigdecimal (3.2.0)
|
33
|
+
childprocess (5.1.0)
|
34
|
+
logger (~> 1.5)
|
35
|
+
concurrent-ruby (1.3.5)
|
36
|
+
connection_pool (2.5.3)
|
37
|
+
csv (3.3.4)
|
26
38
|
declarative (0.0.20)
|
27
|
-
|
28
|
-
|
29
|
-
faraday-net_http (>= 2.0, < 3.
|
30
|
-
|
31
|
-
|
32
|
-
|
33
|
-
|
34
|
-
|
39
|
+
drb (2.2.3)
|
40
|
+
faraday (2.13.1)
|
41
|
+
faraday-net_http (>= 2.0, < 3.5)
|
42
|
+
json
|
43
|
+
logger
|
44
|
+
faraday-net_http (3.4.0)
|
45
|
+
net-http (>= 0.5.0)
|
46
|
+
ffi (1.17.2-aarch64-linux-gnu)
|
47
|
+
ffi (1.17.2-x86_64-linux-gnu)
|
48
|
+
fileutils (1.7.3)
|
49
|
+
google-apis-core (0.18.0)
|
35
50
|
addressable (~> 2.5, >= 2.5.1)
|
36
|
-
googleauth (
|
37
|
-
httpclient (>= 2.8.
|
51
|
+
googleauth (~> 1.9)
|
52
|
+
httpclient (>= 2.8.3, < 3.a)
|
38
53
|
mini_mime (~> 1.0)
|
54
|
+
mutex_m
|
39
55
|
representable (~> 3.0)
|
40
56
|
retriable (>= 2.0, < 4.a)
|
41
|
-
|
42
|
-
|
43
|
-
google-
|
44
|
-
|
45
|
-
google-cloud-env (2.1.0)
|
57
|
+
google-apis-drive_v3 (0.66.0)
|
58
|
+
google-apis-core (>= 0.15.0, < 2.a)
|
59
|
+
google-cloud-env (2.3.1)
|
60
|
+
base64 (~> 0.2)
|
46
61
|
faraday (>= 1.0, < 3.a)
|
47
|
-
|
62
|
+
google-logging-utils (0.2.0)
|
63
|
+
googleauth (1.14.0)
|
48
64
|
faraday (>= 1.0, < 3.a)
|
49
|
-
google-cloud-env (~> 2.
|
65
|
+
google-cloud-env (~> 2.2)
|
66
|
+
google-logging-utils (~> 0.1)
|
50
67
|
jwt (>= 1.4, < 3.0)
|
51
68
|
multi_json (~> 1.11)
|
52
69
|
os (>= 0.9, < 2.0)
|
53
70
|
signet (>= 0.16, < 2.a)
|
54
|
-
httparty (0.
|
71
|
+
httparty (0.23.1)
|
72
|
+
csv
|
55
73
|
mini_mime (>= 1.0.0)
|
56
74
|
multi_xml (>= 0.5.2)
|
57
|
-
httpclient (2.
|
58
|
-
|
75
|
+
httpclient (2.9.0)
|
76
|
+
mutex_m
|
77
|
+
i18n (1.14.7)
|
59
78
|
concurrent-ruby (~> 1.0)
|
60
79
|
iniparse (1.5.0)
|
61
|
-
json (2.
|
62
|
-
jwt (2.
|
63
|
-
|
64
|
-
|
80
|
+
json (2.12.2)
|
81
|
+
jwt (2.10.1)
|
82
|
+
base64
|
83
|
+
language_server-protocol (3.17.0.5)
|
84
|
+
lint_roller (1.1.0)
|
85
|
+
listen (3.9.0)
|
65
86
|
rb-fsevent (~> 0.10, >= 0.10.3)
|
66
87
|
rb-inotify (~> 0.9, >= 0.9.10)
|
67
|
-
logger (1.
|
68
|
-
lt-google-api (0.
|
69
|
-
google-apis-drive_v3 (~> 0.
|
70
|
-
googleauth (~> 1.
|
88
|
+
logger (1.7.0)
|
89
|
+
lt-google-api (0.4.0)
|
90
|
+
google-apis-drive_v3 (~> 0.66)
|
91
|
+
googleauth (~> 1.14)
|
71
92
|
mini_mime (1.1.5)
|
72
|
-
minitest (5.
|
93
|
+
minitest (5.25.5)
|
73
94
|
multi_json (1.15.0)
|
74
|
-
multi_xml (0.
|
75
|
-
|
95
|
+
multi_xml (0.7.2)
|
96
|
+
bigdecimal (~> 3.1)
|
97
|
+
mutex_m (0.3.0)
|
98
|
+
net-http (0.6.0)
|
99
|
+
uri
|
100
|
+
nokogiri (1.18.8-aarch64-linux-gnu)
|
76
101
|
racc (~> 1.4)
|
77
|
-
nokogiri (1.
|
102
|
+
nokogiri (1.18.8-x86_64-linux-gnu)
|
78
103
|
racc (~> 1.4)
|
79
104
|
os (1.1.4)
|
80
|
-
overcommit (0.
|
81
|
-
childprocess (>= 0.6.3, <
|
105
|
+
overcommit (0.67.1)
|
106
|
+
childprocess (>= 0.6.3, < 6)
|
82
107
|
iniparse (~> 1.4)
|
83
|
-
rexml (
|
84
|
-
parallel (1.
|
85
|
-
parser (3.
|
108
|
+
rexml (>= 3.3.9)
|
109
|
+
parallel (1.27.0)
|
110
|
+
parser (3.3.8.0)
|
86
111
|
ast (~> 2.4.1)
|
87
112
|
racc
|
88
|
-
|
89
|
-
|
113
|
+
prism (1.4.0)
|
114
|
+
public_suffix (6.0.2)
|
115
|
+
racc (1.8.1)
|
90
116
|
rainbow (3.1.1)
|
91
|
-
rake (13.0
|
117
|
+
rake (13.3.0)
|
92
118
|
rb-fsevent (0.11.2)
|
93
|
-
rb-inotify (0.
|
119
|
+
rb-inotify (0.11.1)
|
94
120
|
ffi (~> 1.0)
|
95
|
-
rbs (3.
|
96
|
-
|
121
|
+
rbs (3.9.4)
|
122
|
+
logger
|
123
|
+
regexp_parser (2.10.0)
|
97
124
|
representable (3.2.0)
|
98
125
|
declarative (< 0.1.0)
|
99
126
|
trailblazer-option (>= 0.1.1, < 0.2.0)
|
100
127
|
uber (< 0.2.0)
|
101
128
|
retriable (3.1.2)
|
102
|
-
rexml (3.
|
103
|
-
rubocop (1.
|
104
|
-
base64 (~> 0.1.1)
|
129
|
+
rexml (3.4.1)
|
130
|
+
rubocop (1.75.8)
|
105
131
|
json (~> 2.3)
|
106
|
-
language_server-protocol (
|
132
|
+
language_server-protocol (~> 3.17.0.2)
|
133
|
+
lint_roller (~> 1.1.0)
|
107
134
|
parallel (~> 1.10)
|
108
|
-
parser (>= 3.
|
135
|
+
parser (>= 3.3.0.2)
|
109
136
|
rainbow (>= 2.2.2, < 4.0)
|
110
|
-
regexp_parser (>=
|
111
|
-
|
112
|
-
rubocop-ast (>= 1.28.1, < 2.0)
|
137
|
+
regexp_parser (>= 2.9.3, < 3.0)
|
138
|
+
rubocop-ast (>= 1.44.0, < 2.0)
|
113
139
|
ruby-progressbar (~> 1.7)
|
114
|
-
unicode-display_width (>= 2.4.0, <
|
115
|
-
rubocop-ast (1.
|
116
|
-
parser (>= 3.
|
140
|
+
unicode-display_width (>= 2.4.0, < 4.0)
|
141
|
+
rubocop-ast (1.44.1)
|
142
|
+
parser (>= 3.3.7.2)
|
143
|
+
prism (~> 1.4)
|
117
144
|
ruby-progressbar (1.13.0)
|
118
|
-
|
119
|
-
|
120
|
-
|
121
|
-
signet (0.18.0)
|
145
|
+
rubyzip (2.4.1)
|
146
|
+
securerandom (0.4.1)
|
147
|
+
signet (0.20.0)
|
122
148
|
addressable (~> 2.8)
|
123
149
|
faraday (>= 0.17.5, < 3.a)
|
124
150
|
jwt (>= 1.5, < 3.0)
|
@@ -138,15 +164,15 @@ GEM
|
|
138
164
|
securerandom (>= 0.1)
|
139
165
|
strscan (>= 1.0.0)
|
140
166
|
terminal-table (>= 2, < 4)
|
141
|
-
strscan (3.
|
167
|
+
strscan (3.1.5)
|
142
168
|
terminal-table (3.0.2)
|
143
169
|
unicode-display_width (>= 1.1.1, < 3)
|
144
170
|
trailblazer-option (0.1.2)
|
145
171
|
tzinfo (2.0.6)
|
146
172
|
concurrent-ruby (~> 1.0)
|
147
173
|
uber (0.1.0)
|
148
|
-
unicode-display_width (2.
|
149
|
-
|
174
|
+
unicode-display_width (2.6.0)
|
175
|
+
uri (1.0.3)
|
150
176
|
|
151
177
|
PLATFORMS
|
152
178
|
aarch64-linux
|
data/README.md
CHANGED
@@ -1,9 +1,5 @@
|
|
1
1
|
# Lt::Lcms
|
2
2
|
|
3
|
-
[](https://codeclimate.com/github/learningtapestry/lt-lcms/maintainability)
|
4
|
-
[](https://app.codeship.com/projects/330485)
|
5
|
-
|
6
|
-
|
7
3
|
## Installation
|
8
4
|
|
9
5
|
Add this line to your application's Gemfile:
|
data/docker-compose.yml
ADDED
@@ -1,14 +1,15 @@
|
|
1
1
|
# frozen_string_literal: true
|
2
2
|
|
3
3
|
require 'lt/lcms/lesson/downloader/base'
|
4
|
+
require 'httparty'
|
4
5
|
|
5
6
|
module Lt
|
6
7
|
module Lcms
|
7
8
|
module Lesson
|
8
9
|
module Downloader
|
9
10
|
class Gdoc < Base
|
10
|
-
GOOGLE_DRAWING_RE = %r{https?://docs\.google\.com/?[^"]*/drawings/[^"]*}i
|
11
|
-
GOOGLE_URL_RE = %r{https://www\.google\.com/url\?q=([^&]*)&?.*}i
|
11
|
+
GOOGLE_DRAWING_RE = %r{https?://docs\.google\.com/?[^"]*/drawings/[^"]*}i
|
12
|
+
GOOGLE_URL_RE = %r{https://www\.google\.com/url\?q=([^&]*)&?.*}i
|
12
13
|
MIME_TYPE = 'application/vnd.google-apps.document'
|
13
14
|
MIME_TYPE_EXPORT = 'text/html'
|
14
15
|
|
@@ -46,7 +47,7 @@ module Lt
|
|
46
47
|
|
47
48
|
match.to_a.uniq.each do |url|
|
48
49
|
upd_url = updated_drawing_url_for(url)
|
49
|
-
response = HTTParty.get CGI.unescapeHTML(upd_url), headers: { 'Authorization' => "Bearer #{bearer}" }
|
50
|
+
response = ::HTTParty.get CGI.unescapeHTML(upd_url), headers: { 'Authorization' => "Bearer #{bearer}" }
|
50
51
|
|
51
52
|
next unless response.code == 200
|
52
53
|
|
@@ -11,7 +11,7 @@ module Lt
|
|
11
11
|
|
12
12
|
def upload(name, content, content_type, parent_folder_id = nil)
|
13
13
|
file_metadata = {
|
14
|
-
name
|
14
|
+
name:,
|
15
15
|
mime_type: Lt::Google::Api::Drive::MIME_FILE
|
16
16
|
}
|
17
17
|
file_metadata[:parents] = Array.wrap(parent_folder_id) unless parent_folder_id.nil?
|
@@ -19,7 +19,7 @@ module Lt
|
|
19
19
|
file_metadata,
|
20
20
|
fields: 'id',
|
21
21
|
upload_source: StringIO.new(content),
|
22
|
-
content_type
|
22
|
+
content_type:,
|
23
23
|
supports_all_drives: true
|
24
24
|
)
|
25
25
|
file.id
|
data/lib/lt/lcms/version.rb
CHANGED
data/lt-lcms.gemspec
CHANGED
@@ -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
|
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.
|
@@ -34,9 +34,9 @@ Gem::Specification.new do |spec| # rubocop:disable Metrics/BlockLength
|
|
34
34
|
spec.executables = spec.files.grep(%r{^exe/}) { |f| File.basename(f) }
|
35
35
|
spec.require_paths = ['lib']
|
36
36
|
|
37
|
-
spec.add_dependency 'google-apis-core', '~> 0.
|
38
|
-
spec.add_dependency 'httparty', '~> 0.
|
39
|
-
spec.add_dependency 'lt-google-api', '~> 0.
|
37
|
+
spec.add_dependency 'google-apis-core', '~> 0.18'
|
38
|
+
spec.add_dependency 'httparty', '~> 0.22'
|
39
|
+
spec.add_dependency 'lt-google-api', '~> 0.4.0'
|
40
40
|
spec.add_dependency 'nokogiri', '~> 1.10', '>= 1.10.8'
|
41
41
|
spec.add_dependency 'rubyzip', '~> 2'
|
42
42
|
|
data/rbs_collection.lock.yaml
CHANGED
@@ -1,26 +1,12 @@
|
|
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
|
-
- name: activesupport
|
11
|
-
version: '7.0'
|
12
|
-
source:
|
13
|
-
type: git
|
14
|
-
name: ruby/gem_rbs_collection
|
15
|
-
revision: b42e4de88058603a34446942143b3ac197b9685c
|
16
|
-
remote: https://github.com/ruby/gem_rbs_collection.git
|
17
|
-
repo_dir: gems
|
18
4
|
- name: addressable
|
19
5
|
version: '2.8'
|
20
6
|
source:
|
21
7
|
type: git
|
22
8
|
name: ruby/gem_rbs_collection
|
23
|
-
revision:
|
9
|
+
revision: 218cf130d31f63e110e350efc3fa265311b0f238
|
24
10
|
remote: https://github.com/ruby/gem_rbs_collection.git
|
25
11
|
repo_dir: gems
|
26
12
|
- name: ast
|
@@ -28,27 +14,27 @@ gems:
|
|
28
14
|
source:
|
29
15
|
type: git
|
30
16
|
name: ruby/gem_rbs_collection
|
31
|
-
revision:
|
17
|
+
revision: 218cf130d31f63e110e350efc3fa265311b0f238
|
32
18
|
remote: https://github.com/ruby/gem_rbs_collection.git
|
33
19
|
repo_dir: gems
|
34
20
|
- name: base64
|
35
21
|
version: '0'
|
36
22
|
source:
|
37
23
|
type: stdlib
|
38
|
-
- name:
|
24
|
+
- name: bigdecimal
|
39
25
|
version: '0'
|
40
26
|
source:
|
41
27
|
type: stdlib
|
42
|
-
- name:
|
28
|
+
- name: csv
|
43
29
|
version: '0'
|
44
30
|
source:
|
45
31
|
type: stdlib
|
46
32
|
- name: faraday
|
47
|
-
version: '2.
|
33
|
+
version: '2.7'
|
48
34
|
source:
|
49
35
|
type: git
|
50
36
|
name: ruby/gem_rbs_collection
|
51
|
-
revision:
|
37
|
+
revision: 218cf130d31f63e110e350efc3fa265311b0f238
|
52
38
|
remote: https://github.com/ruby/gem_rbs_collection.git
|
53
39
|
repo_dir: gems
|
54
40
|
- name: fileutils
|
@@ -59,28 +45,36 @@ gems:
|
|
59
45
|
version: '0'
|
60
46
|
source:
|
61
47
|
type: stdlib
|
62
|
-
- name:
|
63
|
-
version: '0.
|
48
|
+
- name: google-apis-core
|
49
|
+
version: '0.15'
|
64
50
|
source:
|
65
51
|
type: git
|
66
52
|
name: ruby/gem_rbs_collection
|
67
|
-
revision:
|
53
|
+
revision: 218cf130d31f63e110e350efc3fa265311b0f238
|
68
54
|
remote: https://github.com/ruby/gem_rbs_collection.git
|
69
55
|
repo_dir: gems
|
70
|
-
- name:
|
71
|
-
version: '
|
56
|
+
- name: googleauth
|
57
|
+
version: '1.11'
|
72
58
|
source:
|
73
59
|
type: git
|
74
60
|
name: ruby/gem_rbs_collection
|
75
|
-
revision:
|
61
|
+
revision: 218cf130d31f63e110e350efc3fa265311b0f238
|
76
62
|
remote: https://github.com/ruby/gem_rbs_collection.git
|
77
63
|
repo_dir: gems
|
78
|
-
- name:
|
79
|
-
version: '
|
64
|
+
- name: httparty
|
65
|
+
version: '0.18'
|
80
66
|
source:
|
81
67
|
type: git
|
82
68
|
name: ruby/gem_rbs_collection
|
83
|
-
revision:
|
69
|
+
revision: 218cf130d31f63e110e350efc3fa265311b0f238
|
70
|
+
remote: https://github.com/ruby/gem_rbs_collection.git
|
71
|
+
repo_dir: gems
|
72
|
+
- name: httpclient
|
73
|
+
version: '2.8'
|
74
|
+
source:
|
75
|
+
type: git
|
76
|
+
name: ruby/gem_rbs_collection
|
77
|
+
revision: 218cf130d31f63e110e350efc3fa265311b0f238
|
84
78
|
remote: https://github.com/ruby/gem_rbs_collection.git
|
85
79
|
repo_dir: gems
|
86
80
|
- name: json
|
@@ -92,17 +86,25 @@ gems:
|
|
92
86
|
source:
|
93
87
|
type: git
|
94
88
|
name: ruby/gem_rbs_collection
|
95
|
-
revision:
|
89
|
+
revision: 218cf130d31f63e110e350efc3fa265311b0f238
|
96
90
|
remote: https://github.com/ruby/gem_rbs_collection.git
|
97
91
|
repo_dir: gems
|
98
92
|
- name: logger
|
99
93
|
version: '0'
|
100
94
|
source:
|
101
95
|
type: stdlib
|
102
|
-
- name:
|
103
|
-
version:
|
96
|
+
- name: lt-google-api
|
97
|
+
version: 0.3.1
|
104
98
|
source:
|
105
|
-
type:
|
99
|
+
type: rubygems
|
100
|
+
- name: mini_mime
|
101
|
+
version: '0.1'
|
102
|
+
source:
|
103
|
+
type: git
|
104
|
+
name: ruby/gem_rbs_collection
|
105
|
+
revision: 218cf130d31f63e110e350efc3fa265311b0f238
|
106
|
+
remote: https://github.com/ruby/gem_rbs_collection.git
|
107
|
+
repo_dir: gems
|
106
108
|
- name: monitor
|
107
109
|
version: '0'
|
108
110
|
source:
|
@@ -115,12 +117,16 @@ gems:
|
|
115
117
|
version: '0'
|
116
118
|
source:
|
117
119
|
type: stdlib
|
120
|
+
- name: net-protocol
|
121
|
+
version: '0'
|
122
|
+
source:
|
123
|
+
type: stdlib
|
118
124
|
- name: nokogiri
|
119
125
|
version: '1.11'
|
120
126
|
source:
|
121
127
|
type: git
|
122
128
|
name: ruby/gem_rbs_collection
|
123
|
-
revision:
|
129
|
+
revision: 218cf130d31f63e110e350efc3fa265311b0f238
|
124
130
|
remote: https://github.com/ruby/gem_rbs_collection.git
|
125
131
|
repo_dir: gems
|
126
132
|
- name: parallel
|
@@ -128,7 +134,7 @@ gems:
|
|
128
134
|
source:
|
129
135
|
type: git
|
130
136
|
name: ruby/gem_rbs_collection
|
131
|
-
revision:
|
137
|
+
revision: 218cf130d31f63e110e350efc3fa265311b0f238
|
132
138
|
remote: https://github.com/ruby/gem_rbs_collection.git
|
133
139
|
repo_dir: gems
|
134
140
|
- name: parser
|
@@ -136,15 +142,19 @@ gems:
|
|
136
142
|
source:
|
137
143
|
type: git
|
138
144
|
name: ruby/gem_rbs_collection
|
139
|
-
revision:
|
145
|
+
revision: 218cf130d31f63e110e350efc3fa265311b0f238
|
140
146
|
remote: https://github.com/ruby/gem_rbs_collection.git
|
141
147
|
repo_dir: gems
|
148
|
+
- name: prism
|
149
|
+
version: 1.4.0
|
150
|
+
source:
|
151
|
+
type: rubygems
|
142
152
|
- name: rainbow
|
143
153
|
version: '3.0'
|
144
154
|
source:
|
145
155
|
type: git
|
146
156
|
name: ruby/gem_rbs_collection
|
147
|
-
revision:
|
157
|
+
revision: 218cf130d31f63e110e350efc3fa265311b0f238
|
148
158
|
remote: https://github.com/ruby/gem_rbs_collection.git
|
149
159
|
repo_dir: gems
|
150
160
|
- name: rake
|
@@ -152,7 +162,7 @@ gems:
|
|
152
162
|
source:
|
153
163
|
type: git
|
154
164
|
name: ruby/gem_rbs_collection
|
155
|
-
revision:
|
165
|
+
revision: 218cf130d31f63e110e350efc3fa265311b0f238
|
156
166
|
remote: https://github.com/ruby/gem_rbs_collection.git
|
157
167
|
repo_dir: gems
|
158
168
|
- name: regexp_parser
|
@@ -160,7 +170,7 @@ gems:
|
|
160
170
|
source:
|
161
171
|
type: git
|
162
172
|
name: ruby/gem_rbs_collection
|
163
|
-
revision:
|
173
|
+
revision: 218cf130d31f63e110e350efc3fa265311b0f238
|
164
174
|
remote: https://github.com/ruby/gem_rbs_collection.git
|
165
175
|
repo_dir: gems
|
166
176
|
- name: rubocop
|
@@ -168,7 +178,7 @@ gems:
|
|
168
178
|
source:
|
169
179
|
type: git
|
170
180
|
name: ruby/gem_rbs_collection
|
171
|
-
revision:
|
181
|
+
revision: 218cf130d31f63e110e350efc3fa265311b0f238
|
172
182
|
remote: https://github.com/ruby/gem_rbs_collection.git
|
173
183
|
repo_dir: gems
|
174
184
|
- name: rubocop-ast
|
@@ -176,7 +186,7 @@ gems:
|
|
176
186
|
source:
|
177
187
|
type: git
|
178
188
|
name: ruby/gem_rbs_collection
|
179
|
-
revision:
|
189
|
+
revision: 218cf130d31f63e110e350efc3fa265311b0f238
|
180
190
|
remote: https://github.com/ruby/gem_rbs_collection.git
|
181
191
|
repo_dir: gems
|
182
192
|
- name: rubyzip
|
@@ -184,26 +194,18 @@ gems:
|
|
184
194
|
source:
|
185
195
|
type: git
|
186
196
|
name: ruby/gem_rbs_collection
|
187
|
-
revision:
|
197
|
+
revision: 218cf130d31f63e110e350efc3fa265311b0f238
|
188
198
|
remote: https://github.com/ruby/gem_rbs_collection.git
|
189
199
|
repo_dir: gems
|
190
|
-
- name:
|
191
|
-
version: '0'
|
192
|
-
source:
|
193
|
-
type: stdlib
|
194
|
-
- name: singleton
|
195
|
-
version: '0'
|
196
|
-
source:
|
197
|
-
type: stdlib
|
198
|
-
- name: thor
|
199
|
-
version: '1.2'
|
200
|
+
- name: signet
|
201
|
+
version: '0.19'
|
200
202
|
source:
|
201
203
|
type: git
|
202
204
|
name: ruby/gem_rbs_collection
|
203
|
-
revision:
|
205
|
+
revision: 218cf130d31f63e110e350efc3fa265311b0f238
|
204
206
|
remote: https://github.com/ruby/gem_rbs_collection.git
|
205
207
|
repo_dir: gems
|
206
|
-
- name:
|
208
|
+
- name: stringio
|
207
209
|
version: '0'
|
208
210
|
source:
|
209
211
|
type: stdlib
|
data/vendor/rbs/.keep
ADDED
File without changes
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: lt-lcms
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.7.0
|
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: 2025-06-21 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: google-apis-core
|
@@ -16,48 +16,42 @@ dependencies:
|
|
16
16
|
requirements:
|
17
17
|
- - "~>"
|
18
18
|
- !ruby/object:Gem::Version
|
19
|
-
version: '0.
|
20
|
-
- - ">="
|
21
|
-
- !ruby/object:Gem::Version
|
22
|
-
version: 0.11.1
|
19
|
+
version: '0.18'
|
23
20
|
type: :runtime
|
24
21
|
prerelease: false
|
25
22
|
version_requirements: !ruby/object:Gem::Requirement
|
26
23
|
requirements:
|
27
24
|
- - "~>"
|
28
25
|
- !ruby/object:Gem::Version
|
29
|
-
version: '0.
|
30
|
-
- - ">="
|
31
|
-
- !ruby/object:Gem::Version
|
32
|
-
version: 0.11.1
|
26
|
+
version: '0.18'
|
33
27
|
- !ruby/object:Gem::Dependency
|
34
28
|
name: httparty
|
35
29
|
requirement: !ruby/object:Gem::Requirement
|
36
30
|
requirements:
|
37
31
|
- - "~>"
|
38
32
|
- !ruby/object:Gem::Version
|
39
|
-
version: '0.
|
33
|
+
version: '0.22'
|
40
34
|
type: :runtime
|
41
35
|
prerelease: false
|
42
36
|
version_requirements: !ruby/object:Gem::Requirement
|
43
37
|
requirements:
|
44
38
|
- - "~>"
|
45
39
|
- !ruby/object:Gem::Version
|
46
|
-
version: '0.
|
40
|
+
version: '0.22'
|
47
41
|
- !ruby/object:Gem::Dependency
|
48
42
|
name: lt-google-api
|
49
43
|
requirement: !ruby/object:Gem::Requirement
|
50
44
|
requirements:
|
51
45
|
- - "~>"
|
52
46
|
- !ruby/object:Gem::Version
|
53
|
-
version:
|
47
|
+
version: 0.4.0
|
54
48
|
type: :runtime
|
55
49
|
prerelease: false
|
56
50
|
version_requirements: !ruby/object:Gem::Requirement
|
57
51
|
requirements:
|
58
52
|
- - "~>"
|
59
53
|
- !ruby/object:Gem::Version
|
60
|
-
version:
|
54
|
+
version: 0.4.0
|
61
55
|
- !ruby/object:Gem::Dependency
|
62
56
|
name: nokogiri
|
63
57
|
requirement: !ruby/object:Gem::Requirement
|
@@ -189,6 +183,7 @@ files:
|
|
189
183
|
- bin/console
|
190
184
|
- bin/overcommit
|
191
185
|
- bin/setup
|
186
|
+
- docker-compose.yml
|
192
187
|
- docker-entrypoint.sh
|
193
188
|
- lib/lt/lcms.rb
|
194
189
|
- lib/lt/lcms/lesson/downloader.rb
|
@@ -213,15 +208,7 @@ files:
|
|
213
208
|
- sig/lt/lcms/version.rbs
|
214
209
|
- sig/polifill/google-api-client.rbs
|
215
210
|
- sig/polifill/httparty.rbs
|
216
|
-
- vendor/rbs
|
217
|
-
- vendor/rbs/lt-google-api/lib/lt/google/api/auth/cli.rbs
|
218
|
-
- vendor/rbs/lt-google-api/lib/lt/google/api/auth/credentials.rbs
|
219
|
-
- vendor/rbs/lt-google-api/lib/lt/google/api/auth/service.rbs
|
220
|
-
- vendor/rbs/lt-google-api/lib/lt/google/api/drive.rbs
|
221
|
-
- vendor/rbs/lt-google-api/lib/lt/google/api/version.rbs
|
222
|
-
- vendor/rbs/lt-google-api/polifill/google-api-clients.rbs
|
223
|
-
- vendor/rbs/lt-google-api/polifill/googleauth.rbs
|
224
|
-
- vendor/rbs/lt-google-api/polifill/rails.rbs
|
211
|
+
- vendor/rbs/.keep
|
225
212
|
homepage: https://github.com/learningtapestry/lt-lcms
|
226
213
|
licenses:
|
227
214
|
- Apache-2.0
|
@@ -236,14 +223,14 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
236
223
|
requirements:
|
237
224
|
- - ">="
|
238
225
|
- !ruby/object:Gem::Version
|
239
|
-
version: '2
|
226
|
+
version: '3.2'
|
240
227
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
241
228
|
requirements:
|
242
229
|
- - ">="
|
243
230
|
- !ruby/object:Gem::Version
|
244
231
|
version: '0'
|
245
232
|
requirements: []
|
246
|
-
rubygems_version: 3.
|
233
|
+
rubygems_version: 3.4.6
|
247
234
|
signing_key:
|
248
235
|
specification_version: 4
|
249
236
|
summary: Contains set of classes to work with Google Docs based lesson objects
|
@@ -1,22 +0,0 @@
|
|
1
|
-
module Lt
|
2
|
-
module Google
|
3
|
-
module Api
|
4
|
-
module Auth
|
5
|
-
class Cli
|
6
|
-
self.@authorizer: untyped
|
7
|
-
|
8
|
-
@credentials: untyped
|
9
|
-
|
10
|
-
CONFIG_SECRET_FILE: untyped
|
11
|
-
CONFIG_TOKEN_FILE: untyped
|
12
|
-
SCOPE: ::Array["https://www.googleapis.com/auth/drive" | "https://www.googleapis.com/auth/documents"]
|
13
|
-
USER_ID: "default"
|
14
|
-
|
15
|
-
def self.authorizer: -> untyped
|
16
|
-
def authorizer: -> untyped
|
17
|
-
def credentials: -> untyped
|
18
|
-
end
|
19
|
-
end
|
20
|
-
end
|
21
|
-
end
|
22
|
-
end
|
@@ -1,28 +0,0 @@
|
|
1
|
-
module Lt
|
2
|
-
module Google
|
3
|
-
module Api
|
4
|
-
module Auth
|
5
|
-
module Credentials
|
6
|
-
interface _ActionController_Redirecting
|
7
|
-
def redirect_to: (String | Symbol | untyped options) -> untyped
|
8
|
-
end
|
9
|
-
include _ActionController_Redirecting
|
10
|
-
|
11
|
-
@google_auth_options: untyped
|
12
|
-
@google_credentials: untyped
|
13
|
-
@service: untyped
|
14
|
-
|
15
|
-
extend ActiveSupport::Concern
|
16
|
-
|
17
|
-
attr_reader google_credentials: untyped
|
18
|
-
|
19
|
-
def obtain_google_credentials: (?::Hash[untyped, untyped] options) -> untyped
|
20
|
-
|
21
|
-
private
|
22
|
-
|
23
|
-
def service: -> untyped
|
24
|
-
end
|
25
|
-
end
|
26
|
-
end
|
27
|
-
end
|
28
|
-
end
|
@@ -1,36 +0,0 @@
|
|
1
|
-
module Lt
|
2
|
-
module Google
|
3
|
-
module Api
|
4
|
-
module Auth
|
5
|
-
class Service
|
6
|
-
self.@authorizer_for: untyped
|
7
|
-
|
8
|
-
@context: untyped
|
9
|
-
@options: untyped
|
10
|
-
@credentials: untyped
|
11
|
-
@user_id: untyped
|
12
|
-
@user_token: untyped
|
13
|
-
|
14
|
-
REDIS_PREFIX: "lt-google-api"
|
15
|
-
|
16
|
-
def self.authorizer_for: (untyped callback_path) -> untyped
|
17
|
-
def self.redis: -> untyped
|
18
|
-
|
19
|
-
attr_reader context: untyped
|
20
|
-
|
21
|
-
def initialize: (untyped context, ?::Hash[untyped, untyped] options) -> void
|
22
|
-
def authorization_url: -> untyped
|
23
|
-
def authorizer: -> untyped
|
24
|
-
def credentials: -> untyped
|
25
|
-
def user_id: -> untyped
|
26
|
-
|
27
|
-
private
|
28
|
-
|
29
|
-
def redis: -> untyped
|
30
|
-
def remove_expired_token: -> (nil | untyped)
|
31
|
-
def user_token: -> untyped
|
32
|
-
end
|
33
|
-
end
|
34
|
-
end
|
35
|
-
end
|
36
|
-
end
|
@@ -1,30 +0,0 @@
|
|
1
|
-
module Lt
|
2
|
-
module Google
|
3
|
-
module Api
|
4
|
-
class Drive
|
5
|
-
@service: untyped
|
6
|
-
|
7
|
-
FOLDER_RE: ::Regexp
|
8
|
-
MIME_FILE: "application/vnd.google-apps.document"
|
9
|
-
MIME_FOLDER: "application/vnd.google-apps.folder"
|
10
|
-
|
11
|
-
attr_reader service: untyped
|
12
|
-
|
13
|
-
def self.build: (untyped credentials) -> untyped
|
14
|
-
def self.file_url_for: (untyped file_id) -> ::String
|
15
|
-
def self.folder_id_for: (untyped url) -> untyped
|
16
|
-
|
17
|
-
def initialize: (untyped credentials) -> void
|
18
|
-
def copy: (untyped file_ids, untyped folder_id) -> untyped
|
19
|
-
def copy_files: (untyped folder_id, untyped target_id) -> untyped
|
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
|
22
|
-
def fetch_folders: (untyped name, untyped folder_id) -> untyped
|
23
|
-
|
24
|
-
private
|
25
|
-
|
26
|
-
def list: (untyped folder_id) -> untyped
|
27
|
-
end
|
28
|
-
end
|
29
|
-
end
|
30
|
-
end
|
@@ -1,31 +0,0 @@
|
|
1
|
-
module Google
|
2
|
-
module Auth
|
3
|
-
class ClientId
|
4
|
-
def self.from_file: (*untyped?) -> untyped
|
5
|
-
def initialize: (*untyped?) -> untyped
|
6
|
-
end
|
7
|
-
|
8
|
-
class TokenStore
|
9
|
-
end
|
10
|
-
|
11
|
-
class UserAuthorizer
|
12
|
-
def initialize: (*untyped?) -> untyped
|
13
|
-
end
|
14
|
-
|
15
|
-
class WebUserAuthorizer
|
16
|
-
def initialize: (*untyped?) -> untyped
|
17
|
-
end
|
18
|
-
|
19
|
-
module Stores
|
20
|
-
class FileTokenStore
|
21
|
-
def initialize: (*untyped?) -> untyped
|
22
|
-
end
|
23
|
-
|
24
|
-
class RedisTokenStore < TokenStore
|
25
|
-
DEFAULT_KEY_PREFIX: untyped
|
26
|
-
|
27
|
-
def initialize: (*untyped?) -> untyped
|
28
|
-
end
|
29
|
-
end
|
30
|
-
end
|
31
|
-
end
|