lt-lcms 0.1.1 → 0.2.0

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: 59af00db8e2e7e35cb72345b9194d013caf031764dc8d1d326c53ed38c51f970
4
- data.tar.gz: 9d49f1e203df39afe5ec9768a1ed41d57e78f9aa295acfee50f85734ddf67996
3
+ metadata.gz: 84c07108ce65653d8d1eb64efe0b6b3dcc6387cc5f9e450bed9c2cb67f228c32
4
+ data.tar.gz: 90d198efaf3fd663794e8a79e62666219c4343238752b8b9a4369be8b461ba5b
5
5
  SHA512:
6
- metadata.gz: c2200f66051030cf3876f4ac410db1703ea8df8bdc1047456a6c99845a9859d74607962845f0340a11f9948fd49e194ce612de41ad118fcd63e1c5f674a1624e
7
- data.tar.gz: f9b4c0e6f535bb16cef6fd2d15b37345e027f1275c8b74fc7c693ea4fbb0cafe874436ac0818b87f4e077fed7c7a21550d9a8bd7331240866bbe99be74f99f22
6
+ metadata.gz: f104f868d4ebc1507c8ca18fd05d0f14995da939f8fb3b07e59cba806181888c2efa54f8ed3f3eaa8b95958b34fb5f9945515552ccff3da54a66c3daf59af244
7
+ data.tar.gz: 289c0edb917d19864e56b2064025d949185c81f150b63f12e9b5ad108fd0ac3ee84dbd6e0df68d91cdf8f61def79ab3c8e1ac65a64fb54969d43c2a10eb5c457
data/CHANGELOG.md CHANGED
@@ -1,11 +1,27 @@
1
- # Change log
1
+ # Changelog
2
+ All notable changes to this project will be documented in this file.
2
3
 
3
- ## 0.1.1 (2019-06-10)
4
+ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
5
+ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
4
6
 
5
- ### Bug fixes
7
+ ## [Unreleased](https://github.com/learningtapestry/lt-lcms/compare/v0.2.0...HEAD)
6
8
 
7
- * [#3](https://github.com/learningtapestry/lt-lcms/issues/3): Retrieve Google credentials token correctly ([@paranoicsan][])
9
+ ## [0.2.0](https://github.com/learningtapestry/lt-lcms/compare/v0.1.1...v0.2.0) - 2020-01-13
8
10
 
9
- ## 0.1.0 (2019-03-12)
11
+ ### Added
10
12
 
11
- * Initial release
13
+ - Support for download google slides content [@shlag3n](https://github.com/shlag3n)
14
+
15
+ ### Security
16
+
17
+ - Upgrade `rubyzip` gem to avoid security vulnerabilities [@paranoicsan](https://github.com/paranoicsan)
18
+
19
+ ## [0.1.1](https://github.com/learningtapestry/lt-lcms/compare/v0.1.0...v0.1.1) - 2019-06-10
20
+
21
+ ### Fixed
22
+
23
+ - [#3](https://github.com/learningtapestry/lt-lcms/issues/3): Retrieve Google credentials token correctly [@paranoicsan](https://github.com/paranoicsan)
24
+
25
+ ## [0.1.0] - 2019-03-12
26
+
27
+ - Initial release
@@ -0,0 +1,31 @@
1
+ # frozen_string_literal: true
2
+
3
+ require 'zip'
4
+
5
+ module Lt
6
+ module Lcms
7
+ module Lesson
8
+ module Downloader
9
+ class Gslide < Lt::Lcms::Lesson::Downloader::Base
10
+ MIME_TYPE = 'application/vnd.google-apps.presentation'
11
+ MIME_TYPE_EXPORT = 'application/vnd.openxmlformats-officedocument.presentationml.presentation'
12
+
13
+ def self.gdoc_file_url(id)
14
+ "https://docs.google.com/presentation/d/#{id}"
15
+ end
16
+
17
+ def initialize(credentials, file_url, opts = {})
18
+ super
19
+ @service = opts[:service]
20
+ end
21
+
22
+ def file_id
23
+ return super if @file_url.include?('/')
24
+
25
+ @file_id ||= @file_url
26
+ end
27
+ end
28
+ end
29
+ end
30
+ end
31
+ end
@@ -2,6 +2,6 @@
2
2
 
3
3
  module Lt
4
4
  module Lcms
5
- VERSION = '0.1.1'
5
+ VERSION = '0.2.0'
6
6
  end
7
7
  end
data/lt-lcms.gemspec CHANGED
@@ -34,11 +34,11 @@ Gem::Specification.new do |spec| # rubocop:disable Metrics/BlockLength
34
34
  spec.add_dependency 'google-api-client'
35
35
  spec.add_dependency 'httparty'
36
36
  spec.add_dependency 'lt-google-api', '~> 0.1'
37
- spec.add_dependency 'rubyzip', '~> 1.2.2'
37
+ spec.add_dependency 'rubyzip', '>= 1.3.0'
38
38
 
39
39
  spec.add_development_dependency 'bundler', '~> 1.16'
40
40
  spec.add_development_dependency 'bundler-audit'
41
- spec.add_development_dependency 'overcommit', '~> 0.46'
41
+ spec.add_development_dependency 'overcommit', '~> 0.49.1'
42
42
  spec.add_development_dependency 'rake', '~> 10.0'
43
43
  spec.add_development_dependency 'rubocop', '~> 0.59.2'
44
44
  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.1.1
4
+ version: 0.2.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: 2019-06-10 00:00:00.000000000 Z
11
+ date: 2020-01-13 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: google-api-client
@@ -56,16 +56,16 @@ dependencies:
56
56
  name: rubyzip
57
57
  requirement: !ruby/object:Gem::Requirement
58
58
  requirements:
59
- - - "~>"
59
+ - - ">="
60
60
  - !ruby/object:Gem::Version
61
- version: 1.2.2
61
+ version: 1.3.0
62
62
  type: :runtime
63
63
  prerelease: false
64
64
  version_requirements: !ruby/object:Gem::Requirement
65
65
  requirements:
66
- - - "~>"
66
+ - - ">="
67
67
  - !ruby/object:Gem::Version
68
- version: 1.2.2
68
+ version: 1.3.0
69
69
  - !ruby/object:Gem::Dependency
70
70
  name: bundler
71
71
  requirement: !ruby/object:Gem::Requirement
@@ -100,14 +100,14 @@ dependencies:
100
100
  requirements:
101
101
  - - "~>"
102
102
  - !ruby/object:Gem::Version
103
- version: '0.46'
103
+ version: 0.49.1
104
104
  type: :development
105
105
  prerelease: false
106
106
  version_requirements: !ruby/object:Gem::Requirement
107
107
  requirements:
108
108
  - - "~>"
109
109
  - !ruby/object:Gem::Version
110
- version: '0.46'
110
+ version: 0.49.1
111
111
  - !ruby/object:Gem::Dependency
112
112
  name: rake
113
113
  requirement: !ruby/object:Gem::Requirement
@@ -162,6 +162,7 @@ files:
162
162
  - lib/lt/lcms/lesson/downloader.rb
163
163
  - lib/lt/lcms/lesson/downloader/base.rb
164
164
  - lib/lt/lcms/lesson/downloader/gdoc.rb
165
+ - lib/lt/lcms/lesson/downloader/gslide.rb
165
166
  - lib/lt/lcms/lesson/downloader/gspreadsheet.rb
166
167
  - lib/lt/lcms/lesson/downloader/pdf.rb
167
168
  - lib/lt/lcms/lesson/uploader/gdoc.rb
@@ -187,8 +188,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
187
188
  - !ruby/object:Gem::Version
188
189
  version: '0'
189
190
  requirements: []
190
- rubyforge_project:
191
- rubygems_version: 2.7.9
191
+ rubygems_version: 3.0.6
192
192
  signing_key:
193
193
  specification_version: 4
194
194
  summary: Contains set of classes to work with Google Docs based lesson objects