lt-lcms 0.4.1 → 0.4.2

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: 4ee5ceb78c88d8edd335cdcfa87c86d1ff18d55a137a4135d55c8dd735666c7c
4
- data.tar.gz: 3c3f299638cf297e03893b4ba8f83de1d5c1c0930ed0903f3dd808b87dfa12d5
3
+ metadata.gz: e6fa6eec6aaec43e52b7e25667f4cd8e15364c6615e2931bf6aa63f748b3498f
4
+ data.tar.gz: c5d0f60a81a653e5109595d60b47a9081b44610a08982c36c65c837ee04d1810
5
5
  SHA512:
6
- metadata.gz: 7accbcb946a8cd4a6a4ff80c9978c420d42a6e06d862369226a489839e858739516407041beae29fca4314380012bb102cb5aa7a0f508e3af1d58352249e8299
7
- data.tar.gz: bc2cbb61996319098999abf33a6c44a1b33a1ca75017e00ddca0f5228cc3f01df72dccf2634bb35c2d67c98ee03dbd388c5152f44883c2bc043a1158974a327a
6
+ metadata.gz: 1fbc2e4759093153b8e789396b84c3ead44ad8f5db465f094a80ff6c77411e65eb57134c674e7aac83aa0414a890e80454ce3b2090aa0451ef98b6e106634403
7
+ data.tar.gz: b3ae6810500e62178bae6b281a62e683421ac9838c0868e0f8395bddfd8ace992e31eac77f15bf263b5655263b620bae5827689a7ef0a0945eed92f998e36b0f
@@ -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,6 +4,14 @@ 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.2...HEAD)
8
+
9
+ ## [0.4.2](https://github.com/learningtapestry/lt-lcms/compare/v0.4.1...v0.4.2) - 2021-06-21
10
+
11
+ ### Fixed
12
+
13
+ - Remove intermediate `encode('ASCII-8BIT')` call for downloaded file content
14
+
7
15
  ## [0.4.1](https://github.com/learningtapestry/lt-lcms/compare/v0.4.0...v0.4.1) - 2020-10-19
8
16
 
9
17
  ### Added
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- lt-lcms (0.4.0)
4
+ lt-lcms (0.4.2)
5
5
  google-api-client (~> 0.38)
6
6
  httparty (~> 0.18)
7
7
  lt-google-api (~> 0.2, >= 0.2.1)
@@ -11,25 +11,54 @@ PATH
11
11
  GEM
12
12
  remote: https://rubygems.org/
13
13
  specs:
14
+ activesupport (6.1.3.2)
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)
14
20
  addressable (2.7.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.1.0)
26
+ faraday (1.4.2)
27
+ faraday-em_http (~> 1.0)
28
+ faraday-em_synchrony (~> 1.0)
29
+ faraday-excon (~> 1.1)
30
+ faraday-net_http (~> 1.0)
31
+ faraday-net_http_persistent (~> 1.1)
21
32
  multipart-post (>= 1.2, < 3)
22
- ruby2_keywords
23
- google-api-client (0.46.1)
33
+ ruby2_keywords (>= 0.0.4)
34
+ faraday-em_http (1.0.0)
35
+ faraday-em_synchrony (1.0.0)
36
+ faraday-excon (1.1.0)
37
+ faraday-net_http (1.0.1)
38
+ faraday-net_http_persistent (1.1.0)
39
+ gems (1.2.0)
40
+ google-api-client (0.53.0)
41
+ google-apis-core (~> 0.1)
42
+ google-apis-generator (~> 0.1)
43
+ google-apis-core (0.3.0)
24
44
  addressable (~> 2.5, >= 2.5.1)
25
- googleauth (~> 0.9)
45
+ googleauth (~> 0.14)
26
46
  httpclient (>= 2.8.1, < 3.0)
27
47
  mini_mime (~> 1.0)
28
48
  representable (~> 3.0)
29
49
  retriable (>= 2.0, < 4.0)
30
50
  rexml
31
- signet (~> 0.12)
32
- googleauth (0.14.0)
51
+ signet (~> 0.14)
52
+ webrick
53
+ google-apis-discovery_v1 (0.4.0)
54
+ google-apis-core (~> 0.1)
55
+ google-apis-generator (0.3.0)
56
+ activesupport (>= 5.0)
57
+ gems (~> 1.2)
58
+ google-apis-core (~> 0.1)
59
+ google-apis-discovery_v1 (~> 0.0)
60
+ thor (>= 0.20, < 2.a)
61
+ googleauth (0.16.2)
33
62
  faraday (>= 0.17.3, < 2.0)
34
63
  jwt (>= 1.4, < 3.0)
35
64
  memoist (~> 0.16)
@@ -40,39 +69,45 @@ GEM
40
69
  mime-types (~> 3.0)
41
70
  multi_xml (>= 0.5.2)
42
71
  httpclient (2.8.3)
72
+ i18n (1.8.10)
73
+ concurrent-ruby (~> 1.0)
43
74
  iniparse (1.5.0)
44
- jwt (2.2.2)
45
- lt-google-api (0.2.1)
46
- google-api-client
47
- googleauth
75
+ jwt (2.2.3)
76
+ lt-google-api (0.2.2)
77
+ google-api-client (~> 0.46)
78
+ googleauth (~> 0.14)
48
79
  memoist (0.16.2)
49
80
  mime-types (3.3.1)
50
81
  mime-types-data (~> 3.2015)
51
- mime-types-data (3.2020.0512)
52
- mini_mime (1.0.2)
53
- mini_portile2 (2.4.0)
82
+ mime-types-data (3.2021.0225)
83
+ mini_mime (1.1.0)
84
+ mini_portile2 (2.5.3)
85
+ minitest (5.14.4)
54
86
  multi_json (1.15.0)
55
87
  multi_xml (0.6.0)
56
88
  multipart-post (2.1.1)
57
- nokogiri (1.10.10)
58
- mini_portile2 (~> 2.4.0)
89
+ nokogiri (1.11.7)
90
+ mini_portile2 (~> 2.5.0)
91
+ racc (~> 1.4)
59
92
  os (1.1.1)
60
- overcommit (0.57.0)
93
+ overcommit (0.58.0)
61
94
  childprocess (>= 0.6.3, < 5)
62
95
  iniparse (~> 1.4)
63
- parallel (1.19.2)
64
- parser (2.7.2.0)
96
+ rexml (~> 3.2)
97
+ parallel (1.20.1)
98
+ parser (3.0.1.1)
65
99
  ast (~> 2.4.1)
66
100
  public_suffix (4.0.6)
101
+ racc (1.5.2)
67
102
  rainbow (3.0.0)
68
- rake (13.0.1)
69
- regexp_parser (1.8.2)
70
- representable (3.0.4)
103
+ rake (13.0.3)
104
+ regexp_parser (2.1.1)
105
+ representable (3.1.1)
71
106
  declarative (< 0.1.0)
72
- declarative-option (< 0.2.0)
107
+ trailblazer-option (>= 0.1.1, < 0.2.0)
73
108
  uber (< 0.2.0)
74
109
  retriable (3.1.2)
75
- rexml (3.2.4)
110
+ rexml (3.2.5)
76
111
  rubocop (0.93.1)
77
112
  parallel (~> 1.10)
78
113
  parser (>= 2.7.1.5)
@@ -82,18 +117,24 @@ GEM
82
117
  rubocop-ast (>= 0.6.0)
83
118
  ruby-progressbar (~> 1.7)
84
119
  unicode-display_width (>= 1.4.0, < 2.0)
85
- rubocop-ast (0.8.0)
86
- parser (>= 2.7.1.5)
87
- ruby-progressbar (1.10.1)
88
- ruby2_keywords (0.0.2)
120
+ rubocop-ast (1.7.0)
121
+ parser (>= 3.0.1.1)
122
+ ruby-progressbar (1.11.0)
123
+ ruby2_keywords (0.0.4)
89
124
  rubyzip (2.3.0)
90
- signet (0.14.0)
125
+ signet (0.15.0)
91
126
  addressable (~> 2.3)
92
127
  faraday (>= 0.17.3, < 2.0)
93
128
  jwt (>= 1.5, < 3.0)
94
129
  multi_json (~> 1.10)
130
+ thor (1.1.0)
131
+ trailblazer-option (0.1.1)
132
+ tzinfo (2.0.4)
133
+ concurrent-ruby (~> 1.0)
95
134
  uber (0.1.0)
96
135
  unicode-display_width (1.7.0)
136
+ webrick (1.7.0)
137
+ zeitwerk (2.4.2)
97
138
 
98
139
  PLATFORMS
99
140
  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.1'
5
+ VERSION = '0.4.2'
6
6
  end
7
7
  end
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.1
4
+ version: 0.4.2
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-19 00:00:00.000000000 Z
11
+ date: 2021-06-21 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: google-api-client