lt-lcms 0.6.1 → 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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 530ab52b721b8dddbd8ef8f5481bc32b34094f8cffd45b4fb42fea7a846efc52
4
- data.tar.gz: 7b2c1e6c09a3973022b56d9688aeb67fd6d3d8165d64428684e442d34c163686
3
+ metadata.gz: bd7e38020b4b2efbdf8b077f5bc067299a7ae6b2554c4aa43437bb9ea6f1ec8a
4
+ data.tar.gz: e9b70a15f2e0a1d7c7301be61c32acfabfe3149ef379f55d98760add140bc158
5
5
  SHA512:
6
- metadata.gz: 7eec77c5a06061576548bd15aa6ca03ebec62a723c7035fac0d01e51026ef9c3efa9ec42acf72b2e43038901781ada6a4852bbdeb452a564e448a3f2d2b9bdcb
7
- data.tar.gz: 56cd3e7bc068162f013e8a2af3c351b119b945eaa3e9fee3adce83851179890f52e4ea67cd4fbe50a0a97b97ad766de7bc7c193e20d130aa3eb0d6d325ec58db
6
+ metadata.gz: 2432d159af04b6d35a7e3ceb430eea6ccc1c3a2e284d3326301db5df4afd275e8be637af7efc727bc7c723e24fee1f14854d2a3026a533c12edf1089911d5841
7
+ data.tar.gz: b6d1993292df38cde978abc3d9dc721c793f46a0d7a53e6897686474bcf33a59f4ff7f2b2c399529ed8bfc09c919a7d14f16175a9448c4143558242cefcdc41e
data/.overcommit.yml CHANGED
@@ -30,6 +30,11 @@ PreCommit:
30
30
  TrailingWhitespace:
31
31
  enabled: true
32
32
 
33
+ TypeCheck:
34
+ enabled: true
35
+ description: RBS check
36
+ command: [ 'steep', 'check' ]
37
+
33
38
  PostCheckout:
34
39
  ALL:
35
40
  quiet: true # Change all post-checkout hooks to only display output on failure
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,7 +4,17 @@ 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.6.1...HEAD)
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
8
18
 
9
19
  ## [0.6.1](https://github.com/learningtapestry/lt-lcms/compare/v0.6.1...v0.6.0) - 2025-06-21
10
20
 
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,30 +1,52 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- lt-lcms (0.6.1)
5
- google-apis-core (~> 0.16.0)
4
+ lt-lcms (0.6.2)
5
+ google-apis-core (~> 0.18)
6
6
  httparty (~> 0.22)
7
- lt-google-api (~> 0.3.2)
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 (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
21
+ i18n (>= 1.6, < 2)
22
+ logger (>= 1.4.2)
23
+ minitest (>= 5.1)
24
+ securerandom (>= 0.3)
25
+ tzinfo (~> 2.0, >= 2.0.5)
26
+ uri (>= 0.13.1)
14
27
  addressable (2.8.7)
15
28
  public_suffix (>= 2.0.2, < 7.0)
16
29
  ast (2.4.3)
17
30
  base64 (0.3.0)
31
+ benchmark (0.4.1)
32
+ bigdecimal (3.2.0)
18
33
  childprocess (5.1.0)
19
34
  logger (~> 1.5)
20
- csv (3.3.5)
35
+ concurrent-ruby (1.3.5)
36
+ connection_pool (2.5.3)
37
+ csv (3.3.4)
21
38
  declarative (0.0.20)
22
- faraday (2.8.1)
23
- base64
24
- faraday-net_http (>= 2.0, < 3.1)
25
- ruby2_keywords (>= 0.0.4)
26
- faraday-net_http (3.0.2)
27
- google-apis-core (0.16.0)
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)
28
50
  addressable (~> 2.5, >= 2.5.1)
29
51
  googleauth (~> 1.9)
30
52
  httpclient (>= 2.8.3, < 3.a)
@@ -32,13 +54,16 @@ GEM
32
54
  mutex_m
33
55
  representable (~> 3.0)
34
56
  retriable (>= 2.0, < 4.a)
35
- google-apis-drive_v3 (0.63.0)
57
+ google-apis-drive_v3 (0.66.0)
36
58
  google-apis-core (>= 0.15.0, < 2.a)
37
- google-cloud-env (2.1.1)
59
+ google-cloud-env (2.3.1)
60
+ base64 (~> 0.2)
38
61
  faraday (>= 1.0, < 3.a)
39
- googleauth (1.11.2)
62
+ google-logging-utils (0.2.0)
63
+ googleauth (1.14.0)
40
64
  faraday (>= 1.0, < 3.a)
41
- google-cloud-env (~> 2.1)
65
+ google-cloud-env (~> 2.2)
66
+ google-logging-utils (~> 0.1)
42
67
  jwt (>= 1.4, < 3.0)
43
68
  multi_json (~> 1.11)
44
69
  os (>= 0.9, < 2.0)
@@ -49,21 +74,32 @@ GEM
49
74
  multi_xml (>= 0.5.2)
50
75
  httpclient (2.9.0)
51
76
  mutex_m
77
+ i18n (1.14.7)
78
+ concurrent-ruby (~> 1.0)
52
79
  iniparse (1.5.0)
53
80
  json (2.12.2)
54
81
  jwt (2.10.1)
55
82
  base64
56
83
  language_server-protocol (3.17.0.5)
57
84
  lint_roller (1.1.0)
85
+ listen (3.9.0)
86
+ rb-fsevent (~> 0.10, >= 0.10.3)
87
+ rb-inotify (~> 0.9, >= 0.9.10)
58
88
  logger (1.7.0)
59
- lt-google-api (0.3.2)
60
- google-apis-drive_v3 (~> 0.63.0)
61
- googleauth (~> 1.11.2)
89
+ lt-google-api (0.4.0)
90
+ google-apis-drive_v3 (~> 0.66)
91
+ googleauth (~> 1.14)
62
92
  mini_mime (1.1.5)
93
+ minitest (5.25.5)
63
94
  multi_json (1.15.0)
64
- multi_xml (0.6.0)
95
+ multi_xml (0.7.2)
96
+ bigdecimal (~> 3.1)
65
97
  mutex_m (0.3.0)
66
- nokogiri (1.15.7-aarch64-linux)
98
+ net-http (0.6.0)
99
+ uri
100
+ nokogiri (1.18.8-aarch64-linux-gnu)
101
+ racc (~> 1.4)
102
+ nokogiri (1.18.8-x86_64-linux-gnu)
67
103
  racc (~> 1.4)
68
104
  os (1.1.4)
69
105
  overcommit (0.67.1)
@@ -75,10 +111,15 @@ GEM
75
111
  ast (~> 2.4.1)
76
112
  racc
77
113
  prism (1.4.0)
78
- public_suffix (5.1.1)
114
+ public_suffix (6.0.2)
79
115
  racc (1.8.1)
80
116
  rainbow (3.1.1)
81
117
  rake (13.3.0)
118
+ rb-fsevent (0.11.2)
119
+ rb-inotify (0.11.1)
120
+ ffi (~> 1.0)
121
+ rbs (3.9.4)
122
+ logger
82
123
  regexp_parser (2.10.0)
83
124
  representable (3.2.0)
84
125
  declarative (< 0.1.0)
@@ -86,7 +127,7 @@ GEM
86
127
  uber (< 0.2.0)
87
128
  retriable (3.1.2)
88
129
  rexml (3.4.1)
89
- rubocop (1.77.0)
130
+ rubocop (1.75.8)
90
131
  json (~> 2.3)
91
132
  language_server-protocol (~> 3.17.0.2)
92
133
  lint_roller (~> 1.1.0)
@@ -94,28 +135,48 @@ GEM
94
135
  parser (>= 3.3.0.2)
95
136
  rainbow (>= 2.2.2, < 4.0)
96
137
  regexp_parser (>= 2.9.3, < 3.0)
97
- rubocop-ast (>= 1.45.1, < 2.0)
138
+ rubocop-ast (>= 1.44.0, < 2.0)
98
139
  ruby-progressbar (~> 1.7)
99
140
  unicode-display_width (>= 2.4.0, < 4.0)
100
- rubocop-ast (1.45.1)
141
+ rubocop-ast (1.44.1)
101
142
  parser (>= 3.3.7.2)
102
143
  prism (~> 1.4)
103
144
  ruby-progressbar (1.13.0)
104
- ruby2_keywords (0.0.5)
105
145
  rubyzip (2.4.1)
106
- signet (0.19.0)
146
+ securerandom (0.4.1)
147
+ signet (0.20.0)
107
148
  addressable (~> 2.8)
108
149
  faraday (>= 0.17.5, < 3.a)
109
150
  jwt (>= 1.5, < 3.0)
110
151
  multi_json (~> 1.10)
152
+ steep (1.5.3)
153
+ activesupport (>= 5.1)
154
+ concurrent-ruby (>= 1.1.10)
155
+ csv (>= 3.0.9)
156
+ fileutils (>= 1.1.0)
157
+ json (>= 2.1.0)
158
+ language_server-protocol (>= 3.15, < 4.0)
159
+ listen (~> 3.0)
160
+ logger (>= 1.3.0)
161
+ parser (>= 3.1)
162
+ rainbow (>= 2.2.2, < 4.0)
163
+ rbs (>= 3.1.0)
164
+ securerandom (>= 0.1)
165
+ strscan (>= 1.0.0)
166
+ terminal-table (>= 2, < 4)
167
+ strscan (3.1.5)
168
+ terminal-table (3.0.2)
169
+ unicode-display_width (>= 1.1.1, < 3)
111
170
  trailblazer-option (0.1.2)
171
+ tzinfo (2.0.6)
172
+ concurrent-ruby (~> 1.0)
112
173
  uber (0.1.0)
113
- unicode-display_width (3.1.4)
114
- unicode-emoji (~> 4.0, >= 4.0.4)
115
- unicode-emoji (4.0.4)
174
+ unicode-display_width (2.6.0)
175
+ uri (1.0.3)
116
176
 
117
177
  PLATFORMS
118
178
  aarch64-linux
179
+ x86_64-linux
119
180
 
120
181
  DEPENDENCIES
121
182
  bundler (~> 2.4)
@@ -123,6 +184,7 @@ DEPENDENCIES
123
184
  overcommit (~> 0.60)
124
185
  rake (~> 13.0)
125
186
  rubocop (~> 1.54)
187
+ steep (~> 1.5.3)
126
188
 
127
189
  BUNDLED WITH
128
190
  2.4.22
data/README.md CHANGED
@@ -1,7 +1,5 @@
1
1
  # Lt::Lcms
2
2
 
3
- [![Codeship Status for learningtapestry/lt-lcms](https://app.codeship.com/projects/b151f4e0-26f8-0137-ffc2-3e508df156a9/status?branch=master)](https://app.codeship.com/projects/330485)
4
-
5
3
  ## Installation
6
4
 
7
5
  Add this line to your application's Gemfile:
@@ -35,7 +33,27 @@ To install this gem onto your local machine, run `bundle exec rake install`. To
35
33
  ### Docker
36
34
 
37
35
  ```shell
38
- docker buildx build --platform linux/arm64/v8,linux/amd64 -t learningtapestry/lt-lcms:legacy --push .
36
+ docker buildx build --platform linux/arm64/v8,linux/amd64 -t learningtapestry/lt-lcms --push .
37
+ ```
38
+
39
+ ### Type checking
40
+
41
+ Install existing collections:
42
+
43
+ ```shell
44
+ rbs collection install
45
+ ```
46
+
47
+ Validate installation
48
+
49
+ ```shell
50
+ rbs validate
51
+ ```
52
+
53
+ Check types
54
+
55
+ ```shell
56
+ steep check
39
57
  ```
40
58
 
41
59
  ## Contributing
data/docker-compose.yml CHANGED
@@ -2,7 +2,7 @@ version: '3.8'
2
2
 
3
3
  services:
4
4
  app:
5
- image: learningtapestry/lt-lcms:legacy
5
+ image: learningtapestry/lt-lcms
6
6
  command: bash -c "bundle install && tail -f /dev/null"
7
7
  volumes:
8
8
  - .:/app
@@ -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.freeze
11
- GOOGLE_URL_RE = %r{https://www\.google\.com/url\?q=([^&]*)&?.*}i.freeze
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: 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: content_type,
22
+ content_type:,
23
23
  supports_all_drives: true
24
24
  )
25
25
  file.id
@@ -2,6 +2,6 @@
2
2
 
3
3
  module Lt
4
4
  module Lcms
5
- VERSION = '0.6.1'
5
+ VERSION = '0.7.0'
6
6
  end
7
7
  end
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.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.
@@ -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.16.0'
37
+ spec.add_dependency 'google-apis-core', '~> 0.18'
38
38
  spec.add_dependency 'httparty', '~> 0.22'
39
- spec.add_dependency 'lt-google-api', '~> 0.3.2'
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
 
@@ -44,4 +44,5 @@ Gem::Specification.new do |spec| # rubocop:disable Metrics/BlockLength
44
44
  spec.add_development_dependency 'overcommit', '~> 0.60'
45
45
  spec.add_development_dependency 'rake', '~> 13.0'
46
46
  spec.add_development_dependency 'rubocop', '~> 1.54'
47
+ spec.add_development_dependency 'steep', '~> 1.5.3'
47
48
  end
@@ -0,0 +1,220 @@
1
+ ---
2
+ path: ".gem_rbs_collection"
3
+ gems:
4
+ - name: addressable
5
+ version: '2.8'
6
+ source:
7
+ type: git
8
+ name: ruby/gem_rbs_collection
9
+ revision: 218cf130d31f63e110e350efc3fa265311b0f238
10
+ remote: https://github.com/ruby/gem_rbs_collection.git
11
+ repo_dir: gems
12
+ - name: ast
13
+ version: '2.4'
14
+ source:
15
+ type: git
16
+ name: ruby/gem_rbs_collection
17
+ revision: 218cf130d31f63e110e350efc3fa265311b0f238
18
+ remote: https://github.com/ruby/gem_rbs_collection.git
19
+ repo_dir: gems
20
+ - name: base64
21
+ version: '0'
22
+ source:
23
+ type: stdlib
24
+ - name: bigdecimal
25
+ version: '0'
26
+ source:
27
+ type: stdlib
28
+ - name: csv
29
+ version: '0'
30
+ source:
31
+ type: stdlib
32
+ - name: faraday
33
+ version: '2.7'
34
+ source:
35
+ type: git
36
+ name: ruby/gem_rbs_collection
37
+ revision: 218cf130d31f63e110e350efc3fa265311b0f238
38
+ remote: https://github.com/ruby/gem_rbs_collection.git
39
+ repo_dir: gems
40
+ - name: fileutils
41
+ version: '0'
42
+ source:
43
+ type: stdlib
44
+ - name: forwardable
45
+ version: '0'
46
+ source:
47
+ type: stdlib
48
+ - name: google-apis-core
49
+ version: '0.15'
50
+ source:
51
+ type: git
52
+ name: ruby/gem_rbs_collection
53
+ revision: 218cf130d31f63e110e350efc3fa265311b0f238
54
+ remote: https://github.com/ruby/gem_rbs_collection.git
55
+ repo_dir: gems
56
+ - name: googleauth
57
+ version: '1.11'
58
+ source:
59
+ type: git
60
+ name: ruby/gem_rbs_collection
61
+ revision: 218cf130d31f63e110e350efc3fa265311b0f238
62
+ remote: https://github.com/ruby/gem_rbs_collection.git
63
+ repo_dir: gems
64
+ - name: httparty
65
+ version: '0.18'
66
+ source:
67
+ type: git
68
+ name: ruby/gem_rbs_collection
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
78
+ remote: https://github.com/ruby/gem_rbs_collection.git
79
+ repo_dir: gems
80
+ - name: json
81
+ version: '0'
82
+ source:
83
+ type: stdlib
84
+ - name: jwt
85
+ version: '2.5'
86
+ source:
87
+ type: git
88
+ name: ruby/gem_rbs_collection
89
+ revision: 218cf130d31f63e110e350efc3fa265311b0f238
90
+ remote: https://github.com/ruby/gem_rbs_collection.git
91
+ repo_dir: gems
92
+ - name: logger
93
+ version: '0'
94
+ source:
95
+ type: stdlib
96
+ - name: lt-google-api
97
+ version: 0.3.1
98
+ source:
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
108
+ - name: monitor
109
+ version: '0'
110
+ source:
111
+ type: stdlib
112
+ - name: mutex_m
113
+ version: '0'
114
+ source:
115
+ type: stdlib
116
+ - name: net-http
117
+ version: '0'
118
+ source:
119
+ type: stdlib
120
+ - name: net-protocol
121
+ version: '0'
122
+ source:
123
+ type: stdlib
124
+ - name: nokogiri
125
+ version: '1.11'
126
+ source:
127
+ type: git
128
+ name: ruby/gem_rbs_collection
129
+ revision: 218cf130d31f63e110e350efc3fa265311b0f238
130
+ remote: https://github.com/ruby/gem_rbs_collection.git
131
+ repo_dir: gems
132
+ - name: parallel
133
+ version: '1.20'
134
+ source:
135
+ type: git
136
+ name: ruby/gem_rbs_collection
137
+ revision: 218cf130d31f63e110e350efc3fa265311b0f238
138
+ remote: https://github.com/ruby/gem_rbs_collection.git
139
+ repo_dir: gems
140
+ - name: parser
141
+ version: '3.2'
142
+ source:
143
+ type: git
144
+ name: ruby/gem_rbs_collection
145
+ revision: 218cf130d31f63e110e350efc3fa265311b0f238
146
+ remote: https://github.com/ruby/gem_rbs_collection.git
147
+ repo_dir: gems
148
+ - name: prism
149
+ version: 1.4.0
150
+ source:
151
+ type: rubygems
152
+ - name: rainbow
153
+ version: '3.0'
154
+ source:
155
+ type: git
156
+ name: ruby/gem_rbs_collection
157
+ revision: 218cf130d31f63e110e350efc3fa265311b0f238
158
+ remote: https://github.com/ruby/gem_rbs_collection.git
159
+ repo_dir: gems
160
+ - name: rake
161
+ version: '13.0'
162
+ source:
163
+ type: git
164
+ name: ruby/gem_rbs_collection
165
+ revision: 218cf130d31f63e110e350efc3fa265311b0f238
166
+ remote: https://github.com/ruby/gem_rbs_collection.git
167
+ repo_dir: gems
168
+ - name: regexp_parser
169
+ version: '2.8'
170
+ source:
171
+ type: git
172
+ name: ruby/gem_rbs_collection
173
+ revision: 218cf130d31f63e110e350efc3fa265311b0f238
174
+ remote: https://github.com/ruby/gem_rbs_collection.git
175
+ repo_dir: gems
176
+ - name: rubocop
177
+ version: '1.57'
178
+ source:
179
+ type: git
180
+ name: ruby/gem_rbs_collection
181
+ revision: 218cf130d31f63e110e350efc3fa265311b0f238
182
+ remote: https://github.com/ruby/gem_rbs_collection.git
183
+ repo_dir: gems
184
+ - name: rubocop-ast
185
+ version: '1.30'
186
+ source:
187
+ type: git
188
+ name: ruby/gem_rbs_collection
189
+ revision: 218cf130d31f63e110e350efc3fa265311b0f238
190
+ remote: https://github.com/ruby/gem_rbs_collection.git
191
+ repo_dir: gems
192
+ - name: rubyzip
193
+ version: '2.3'
194
+ source:
195
+ type: git
196
+ name: ruby/gem_rbs_collection
197
+ revision: 218cf130d31f63e110e350efc3fa265311b0f238
198
+ remote: https://github.com/ruby/gem_rbs_collection.git
199
+ repo_dir: gems
200
+ - name: signet
201
+ version: '0.19'
202
+ source:
203
+ type: git
204
+ name: ruby/gem_rbs_collection
205
+ revision: 218cf130d31f63e110e350efc3fa265311b0f238
206
+ remote: https://github.com/ruby/gem_rbs_collection.git
207
+ repo_dir: gems
208
+ - name: stringio
209
+ version: '0'
210
+ source:
211
+ type: stdlib
212
+ - name: timeout
213
+ version: '0'
214
+ source:
215
+ type: stdlib
216
+ - name: uri
217
+ version: '0'
218
+ source:
219
+ type: stdlib
220
+ gemfile_lock_path: Gemfile.lock
data/vendor/rbs/.keep ADDED
File without changes
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: lt-lcms
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.6.1
4
+ version: 0.7.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Alexander Kuznetsov
@@ -16,14 +16,14 @@ dependencies:
16
16
  requirements:
17
17
  - - "~>"
18
18
  - !ruby/object:Gem::Version
19
- version: 0.16.0
19
+ version: '0.18'
20
20
  type: :runtime
21
21
  prerelease: false
22
22
  version_requirements: !ruby/object:Gem::Requirement
23
23
  requirements:
24
24
  - - "~>"
25
25
  - !ruby/object:Gem::Version
26
- version: 0.16.0
26
+ version: '0.18'
27
27
  - !ruby/object:Gem::Dependency
28
28
  name: httparty
29
29
  requirement: !ruby/object:Gem::Requirement
@@ -44,14 +44,14 @@ dependencies:
44
44
  requirements:
45
45
  - - "~>"
46
46
  - !ruby/object:Gem::Version
47
- version: 0.3.2
47
+ version: 0.4.0
48
48
  type: :runtime
49
49
  prerelease: false
50
50
  version_requirements: !ruby/object:Gem::Requirement
51
51
  requirements:
52
52
  - - "~>"
53
53
  - !ruby/object:Gem::Version
54
- version: 0.3.2
54
+ version: 0.4.0
55
55
  - !ruby/object:Gem::Dependency
56
56
  name: nokogiri
57
57
  requirement: !ruby/object:Gem::Requirement
@@ -142,6 +142,20 @@ dependencies:
142
142
  - - "~>"
143
143
  - !ruby/object:Gem::Version
144
144
  version: '1.54'
145
+ - !ruby/object:Gem::Dependency
146
+ name: steep
147
+ requirement: !ruby/object:Gem::Requirement
148
+ requirements:
149
+ - - "~>"
150
+ - !ruby/object:Gem::Version
151
+ version: 1.5.3
152
+ type: :development
153
+ prerelease: false
154
+ version_requirements: !ruby/object:Gem::Requirement
155
+ requirements:
156
+ - - "~>"
157
+ - !ruby/object:Gem::Version
158
+ version: 1.5.3
145
159
  description: ''
146
160
  email:
147
161
  - alexander@learningtapeestry.com
@@ -181,6 +195,7 @@ files:
181
195
  - lib/lt/lcms/lesson/uploader/gdoc.rb
182
196
  - lib/lt/lcms/version.rb
183
197
  - lt-lcms.gemspec
198
+ - rbs_collection.lock.yaml
184
199
  - rbs_collection.yaml
185
200
  - sig/lt/lcms.rbs
186
201
  - sig/lt/lcms/lesson/downloader.rbs
@@ -193,15 +208,7 @@ files:
193
208
  - sig/lt/lcms/version.rbs
194
209
  - sig/polifill/google-api-client.rbs
195
210
  - sig/polifill/httparty.rbs
196
- - vendor/rbs/lt-google-api/lib/lt/google/api.rbs
197
- - vendor/rbs/lt-google-api/lib/lt/google/api/auth/cli.rbs
198
- - vendor/rbs/lt-google-api/lib/lt/google/api/auth/credentials.rbs
199
- - vendor/rbs/lt-google-api/lib/lt/google/api/auth/service.rbs
200
- - vendor/rbs/lt-google-api/lib/lt/google/api/drive.rbs
201
- - vendor/rbs/lt-google-api/lib/lt/google/api/version.rbs
202
- - vendor/rbs/lt-google-api/polifill/google-api-clients.rbs
203
- - vendor/rbs/lt-google-api/polifill/googleauth.rbs
204
- - vendor/rbs/lt-google-api/polifill/rails.rbs
211
+ - vendor/rbs/.keep
205
212
  homepage: https://github.com/learningtapestry/lt-lcms
206
213
  licenses:
207
214
  - Apache-2.0
@@ -216,14 +223,14 @@ required_ruby_version: !ruby/object:Gem::Requirement
216
223
  requirements:
217
224
  - - ">="
218
225
  - !ruby/object:Gem::Version
219
- version: '2.7'
226
+ version: '3.2'
220
227
  required_rubygems_version: !ruby/object:Gem::Requirement
221
228
  requirements:
222
229
  - - ">="
223
230
  - !ruby/object:Gem::Version
224
231
  version: '0'
225
232
  requirements: []
226
- rubygems_version: 3.1.6
233
+ rubygems_version: 3.4.6
227
234
  signing_key:
228
235
  specification_version: 4
229
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,7 +0,0 @@
1
- module Lt
2
- module Google
3
- module Api
4
- VERSION: "0.2.4"
5
- end
6
- end
7
- end
@@ -1,6 +0,0 @@
1
- module Lt
2
- module Google
3
- module Api
4
- end
5
- end
6
- end
@@ -1,15 +0,0 @@
1
- module Google
2
- module Apis
3
- # RateLimitError: untyped
4
-
5
- module DriveV3
6
- class DriveService
7
- def initialize: (*untyped?) -> untyped
8
- end
9
-
10
- class File
11
- def initialize: (*untyped?) -> untyped
12
- end
13
- end
14
- end
15
- 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
@@ -1,5 +0,0 @@
1
- module Rails
2
- def self.application: -> untyped
3
- def self.logger: -> untyped
4
- def self.root: -> untyped
5
- end