lt-lcms 0.4.0 → 0.4.4

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: 0457fdeb3cc39fc8c06e638d92632c67620466d737bb8985dea9f209bb382c67
4
- data.tar.gz: b6d8fcca9427740ba2b5a5a08a057e7d4f547ad40c281ee3ae7f3e0eb9f84c02
3
+ metadata.gz: 7a7d54912da56ecb5c67c7156fae127967689e0027480bebec4a2bc841c3ff75
4
+ data.tar.gz: 5a4389eee37177d731093e3f1310080b5cc361d9e1abd621faf9ffa673c3c564
5
5
  SHA512:
6
- metadata.gz: dfe6be47de5df9ce8c38b19901a6a80662eb6fcf9da1ed725d0abc148e54ea16072e2839058985e8decbe2f4899b99f5360ecc239fd3d2cf219337b9581371ce
7
- data.tar.gz: d5bafdcdc0ea552af35f2a4dc9821defb963386aa62ff89f874ef247c7603490a76fb08af5f7ab5803f7fa49b9feea4a31c604a2132ab089ecf613b60f5f7cae
6
+ metadata.gz: ffccf04d37f1ecfef94f25cf60c732aab899e1d8b160c55e526c1f040582f2de44c136980291476d2e54dea1903a6bb21dad7cefff98e0f4550cf39b96223cfa
7
+ data.tar.gz: 7adb2215b0d9ab9d685d62dd2408a9c4e063490c2ed6e87ac3013c2b09f8667d3f6c2440cc42c941af34772bb792fa4c29c9a9a32c19f9c2c5930feca0d7865a
@@ -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:
@@ -9,33 +9,33 @@ jobs:
9
9
  fail-fast: false
10
10
 
11
11
  steps:
12
- - name: Checkout repository
13
- uses: actions/checkout@v2
14
-
15
- # If running on a self-hosted runner, check it meets the requirements
16
- # listed at https://github.com/ruby/setup-ruby#using-self-hosted-runners
17
- - name: Set up Ruby
18
- uses: ruby/setup-ruby@v1
19
- with:
20
- ruby-version: 2.6
21
-
22
- - name: Intall legacy bundler version
23
- run: gem install bundler -v 1.17.3
24
-
25
- # This step is not necessary if you add the gem to your Gemfile
26
- - name: Install Code Scanning integration
27
- run: bundle _1.17.3_ add code-scanning-rubocop --version 0.4.0 --skip-install
28
-
29
- - name: Install dependencies
30
- run: bundle _1.17.3_ install
31
-
32
- - name: Rubocop run
33
- run: |
34
- bash -c "
35
- bundle exec rubocop --require code_scanning --format CodeScanning::SarifFormatter -o rubocop.sarif
36
- [[ $? -ne 2 ]]
37
- "
38
- - name: Upload Sarif output
39
- uses: github/codeql-action/upload-sarif@v1
40
- with:
41
- sarif_file: rubocop.sarif
12
+ - name: Checkout repository
13
+ uses: actions/checkout@v2
14
+
15
+ # If running on a self-hosted runner, check it meets the requirements
16
+ # listed at https://github.com/ruby/setup-ruby#using-self-hosted-runners
17
+ - name: Set up Ruby
18
+ uses: ruby/setup-ruby@v1
19
+ with:
20
+ ruby-version: 2.6
21
+
22
+ - name: Intall legacy bundler version
23
+ run: gem install bundler -v 1.17.3
24
+
25
+ # This step is not necessary if you add the gem to your Gemfile
26
+ - name: Install Code Scanning integration
27
+ run: bundle _1.17.3_ add code-scanning-rubocop --skip-install
28
+
29
+ - name: Install dependencies
30
+ run: bundle _1.17.3_ install
31
+
32
+ - name: Rubocop run
33
+ run: |
34
+ bash -c "
35
+ bundle exec rubocop --require code_scanning --format CodeScanning::SarifFormatter -o rubocop.sarif
36
+ [[ $? -ne 2 ]]
37
+ "
38
+ - name: Upload Sarif output
39
+ uses: github/codeql-action/upload-sarif@v1
40
+ with:
41
+ sarif_file: rubocop.sarif
data/CHANGELOG.md CHANGED
@@ -4,6 +4,32 @@ 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.4.4...HEAD)
8
+
9
+ ## [0.4.4](https://github.com/learningtapestry/lt-lcms/compare/v0.4.3...v0.4.4) - 2021-07-16
10
+
11
+ ### Added
12
+
13
+ - Bump lt-google-api to 0.2.4 ([#19](https://github.com/learningtapestry/lt-lcms/pull/19))
14
+
15
+ ## [0.4.3](https://github.com/learningtapestry/lt-lcms/compare/v0.4.2...v0.4.3) - 2021-07-02
16
+
17
+ ### Added
18
+
19
+ - Bump lt-google-api to 0.2.3 ([#17](https://github.com/learningtapestry/lt-lcms/pull/17))
20
+
21
+ ## [0.4.2](https://github.com/learningtapestry/lt-lcms/compare/v0.4.1...v0.4.2) - 2021-06-21
22
+
23
+ ### Fixed
24
+
25
+ - Remove intermediate `encode('ASCII-8BIT')` call for downloaded file content
26
+
27
+ ## [0.4.1](https://github.com/learningtapestry/lt-lcms/compare/v0.4.0...v0.4.1) - 2020-10-19
28
+
29
+ ### Added
30
+
31
+ - Bump lt-google-api to 0.2.1 ([#13](https://github.com/learningtapestry/lt-lcms/pull/13))
32
+
7
33
  ## [0.4.0](https://github.com/learningtapestry/lt-lcms/compare/v0.3.1...v0.4.0)
8
34
 
9
35
  ### Added
data/Gemfile.lock CHANGED
@@ -1,34 +1,67 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- lt-lcms (0.3.1)
4
+ lt-lcms (0.4.4)
5
5
  google-api-client (~> 0.38)
6
6
  httparty (~> 0.18)
7
- lt-google-api (~> 0.2)
7
+ lt-google-api (~> 0.2, >= 0.2.4)
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
- addressable (2.7.0)
14
+ activesupport (6.1.4)
15
+ concurrent-ruby (~> 1.0, >= 1.0.2)
16
+ i18n (>= 1.6, < 2)
17
+ minitest (>= 5.1)
18
+ tzinfo (~> 2.0)
19
+ zeitwerk (~> 2.3)
20
+ addressable (2.8.0)
15
21
  public_suffix (>= 2.0.2, < 5.0)
16
- ast (2.4.1)
17
- childprocess (4.0.0)
22
+ ast (2.4.2)
23
+ childprocess (4.1.0)
24
+ concurrent-ruby (1.1.9)
18
25
  declarative (0.0.20)
19
- declarative-option (0.1.0)
20
- faraday (1.0.1)
26
+ faraday (1.5.1)
27
+ faraday-em_http (~> 1.0)
28
+ faraday-em_synchrony (~> 1.0)
29
+ faraday-excon (~> 1.1)
30
+ faraday-httpclient (~> 1.0.1)
31
+ faraday-net_http (~> 1.0)
32
+ faraday-net_http_persistent (~> 1.1)
33
+ faraday-patron (~> 1.0)
21
34
  multipart-post (>= 1.2, < 3)
22
- google-api-client (0.46.1)
35
+ ruby2_keywords (>= 0.0.4)
36
+ faraday-em_http (1.0.0)
37
+ faraday-em_synchrony (1.0.0)
38
+ faraday-excon (1.1.0)
39
+ faraday-httpclient (1.0.1)
40
+ faraday-net_http (1.0.1)
41
+ faraday-net_http_persistent (1.2.0)
42
+ faraday-patron (1.0.0)
43
+ gems (1.2.0)
44
+ google-api-client (0.53.0)
45
+ google-apis-core (~> 0.1)
46
+ google-apis-generator (~> 0.1)
47
+ google-apis-core (0.4.0)
23
48
  addressable (~> 2.5, >= 2.5.1)
24
- googleauth (~> 0.9)
25
- httpclient (>= 2.8.1, < 3.0)
49
+ googleauth (>= 0.16.2, < 2.a)
50
+ httpclient (>= 2.8.1, < 3.a)
26
51
  mini_mime (~> 1.0)
27
52
  representable (~> 3.0)
28
- retriable (>= 2.0, < 4.0)
53
+ retriable (>= 2.0, < 4.a)
29
54
  rexml
30
- signet (~> 0.12)
31
- googleauth (0.14.0)
55
+ webrick
56
+ google-apis-discovery_v1 (0.6.0)
57
+ google-apis-core (>= 0.4, < 2.a)
58
+ google-apis-generator (0.4.0)
59
+ activesupport (>= 5.0)
60
+ gems (~> 1.2)
61
+ google-apis-core (>= 0.4, < 2.a)
62
+ google-apis-discovery_v1 (~> 0.5)
63
+ thor (>= 0.20, < 2.a)
64
+ googleauth (0.16.2)
32
65
  faraday (>= 0.17.3, < 2.0)
33
66
  jwt (>= 1.4, < 3.0)
34
67
  memoist (~> 0.16)
@@ -39,39 +72,43 @@ GEM
39
72
  mime-types (~> 3.0)
40
73
  multi_xml (>= 0.5.2)
41
74
  httpclient (2.8.3)
75
+ i18n (1.8.10)
76
+ concurrent-ruby (~> 1.0)
42
77
  iniparse (1.5.0)
43
- jwt (2.2.2)
44
- lt-google-api (0.2.0)
45
- google-api-client
46
- googleauth
78
+ jwt (2.2.3)
79
+ lt-google-api (0.2.4)
80
+ google-api-client (~> 0.46)
81
+ googleauth (~> 0.14)
47
82
  memoist (0.16.2)
48
83
  mime-types (3.3.1)
49
84
  mime-types-data (~> 3.2015)
50
- mime-types-data (3.2020.0512)
51
- mini_mime (1.0.2)
52
- mini_portile2 (2.4.0)
85
+ mime-types-data (3.2021.0704)
86
+ mini_mime (1.1.0)
87
+ minitest (5.14.4)
53
88
  multi_json (1.15.0)
54
89
  multi_xml (0.6.0)
55
90
  multipart-post (2.1.1)
56
- nokogiri (1.10.10)
57
- mini_portile2 (~> 2.4.0)
91
+ nokogiri (1.11.7-x86_64-darwin)
92
+ racc (~> 1.4)
58
93
  os (1.1.1)
59
- overcommit (0.57.0)
94
+ overcommit (0.58.0)
60
95
  childprocess (>= 0.6.3, < 5)
61
96
  iniparse (~> 1.4)
62
- parallel (1.19.2)
63
- parser (2.7.2.0)
97
+ rexml (~> 3.2)
98
+ parallel (1.20.1)
99
+ parser (3.0.1.1)
64
100
  ast (~> 2.4.1)
65
101
  public_suffix (4.0.6)
102
+ racc (1.5.2)
66
103
  rainbow (3.0.0)
67
- rake (13.0.1)
68
- regexp_parser (1.8.2)
69
- representable (3.0.4)
104
+ rake (13.0.3)
105
+ regexp_parser (2.1.1)
106
+ representable (3.1.1)
70
107
  declarative (< 0.1.0)
71
- declarative-option (< 0.2.0)
108
+ trailblazer-option (>= 0.1.1, < 0.2.0)
72
109
  uber (< 0.2.0)
73
110
  retriable (3.1.2)
74
- rexml (3.2.4)
111
+ rexml (3.2.5)
75
112
  rubocop (0.93.1)
76
113
  parallel (~> 1.10)
77
114
  parser (>= 2.7.1.5)
@@ -81,17 +118,24 @@ GEM
81
118
  rubocop-ast (>= 0.6.0)
82
119
  ruby-progressbar (~> 1.7)
83
120
  unicode-display_width (>= 1.4.0, < 2.0)
84
- rubocop-ast (0.8.0)
85
- parser (>= 2.7.1.5)
86
- ruby-progressbar (1.10.1)
87
- rubyzip (2.3.0)
88
- signet (0.14.0)
121
+ rubocop-ast (1.7.0)
122
+ parser (>= 3.0.1.1)
123
+ ruby-progressbar (1.11.0)
124
+ ruby2_keywords (0.0.5)
125
+ rubyzip (2.3.2)
126
+ signet (0.15.0)
89
127
  addressable (~> 2.3)
90
128
  faraday (>= 0.17.3, < 2.0)
91
129
  jwt (>= 1.5, < 3.0)
92
130
  multi_json (~> 1.10)
131
+ thor (1.1.0)
132
+ trailblazer-option (0.1.1)
133
+ tzinfo (2.0.4)
134
+ concurrent-ruby (~> 1.0)
93
135
  uber (0.1.0)
94
136
  unicode-display_width (1.7.0)
137
+ webrick (1.7.0)
138
+ zeitwerk (2.4.2)
95
139
 
96
140
  PLATFORMS
97
141
  ruby
@@ -26,10 +26,7 @@ module Lt
26
26
 
27
27
  def download(mime_type: self.class::MIME_TYPE_EXPORT)
28
28
  retry_attempt ||= 0
29
- raw_content = service
30
- .export_file(file_id, mime_type)
31
- .encode('ASCII-8BIT')
32
- .force_encoding('UTF-8')
29
+ raw_content = service.export_file(file_id, mime_type)&.force_encoding('UTF-8')
33
30
  @content =
34
31
  if block_given?
35
32
  yield raw_content
@@ -2,6 +2,6 @@
2
2
 
3
3
  module Lt
4
4
  module Lcms
5
- VERSION = '0.4.0'
5
+ VERSION = '0.4.4'
6
6
  end
7
7
  end
data/lt-lcms.gemspec CHANGED
@@ -35,7 +35,7 @@ Gem::Specification.new do |spec| # rubocop:disable Metrics/BlockLength
35
35
 
36
36
  spec.add_dependency 'google-api-client', '~> 0.38'
37
37
  spec.add_dependency 'httparty', '~> 0.18'
38
- spec.add_dependency 'lt-google-api', '~> 0.2'
38
+ spec.add_dependency 'lt-google-api', '~> 0.2', '>= 0.2.4'
39
39
  spec.add_dependency 'nokogiri', '~> 1.10', '>= 1.10.8'
40
40
  spec.add_dependency 'rubyzip', '~> 2'
41
41
 
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.0
4
+ version: 0.4.4
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-10-15 00:00:00.000000000 Z
11
+ date: 2021-07-16 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: google-api-client
@@ -45,6 +45,9 @@ dependencies:
45
45
  - - "~>"
46
46
  - !ruby/object:Gem::Version
47
47
  version: '0.2'
48
+ - - ">="
49
+ - !ruby/object:Gem::Version
50
+ version: 0.2.4
48
51
  type: :runtime
49
52
  prerelease: false
50
53
  version_requirements: !ruby/object:Gem::Requirement
@@ -52,6 +55,9 @@ dependencies:
52
55
  - - "~>"
53
56
  - !ruby/object:Gem::Version
54
57
  version: '0.2'
58
+ - - ">="
59
+ - !ruby/object:Gem::Version
60
+ version: 0.2.4
55
61
  - !ruby/object:Gem::Dependency
56
62
  name: nokogiri
57
63
  requirement: !ruby/object:Gem::Requirement
@@ -196,7 +202,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
196
202
  - !ruby/object:Gem::Version
197
203
  version: '0'
198
204
  requirements: []
199
- rubygems_version: 3.0.6
205
+ rubygems_version: 3.2.21
200
206
  signing_key:
201
207
  specification_version: 4
202
208
  summary: Contains set of classes to work with Google Docs based lesson objects