slideshare_api 0.0.9 → 0.0.10
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/lib/slideshare_api/model/slideshow.rb +4 -1
- data/lib/slideshare_api/version.rb +1 -1
- data/spec/fixtures/slideshow.xml +6 -0
- data/spec/model/slideshow_spec.rb +2 -0
- metadata +3 -3
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA1:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 9543df0f09557d177213e9580ee9ae100f58b3d5
|
|
4
|
+
data.tar.gz: deb4ca3d56979d4709488bbdcdb1fd8f8bad2c58
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 311b5d45cae8768b0481ba29b479849616ce988276f68d9bb474eaafd2fe80f9480aef37f33f3c1bde889aed613e7f7f17ba4bbe29f194a423be140e7694c0aa
|
|
7
|
+
data.tar.gz: 1db607faa385755aa0cb4f1041da2e81e68e285bcc313a19510b3a0d79dd63a84c213ab6756733380e19176d1d606cc025e3e71840a245793f7c6fb177d8734a
|
|
@@ -5,7 +5,8 @@ module SlideshareApi
|
|
|
5
5
|
:id, :title, :stripped_title, :description, :status,
|
|
6
6
|
:created_at, :updated_at,
|
|
7
7
|
:username, :user_id,
|
|
8
|
-
:url, :thumbnail_url, :thumbnail_size, :
|
|
8
|
+
:url, :thumbnail_url, :thumbnail_size, :embed,
|
|
9
|
+
:thumbnail_small_url, :thumbnail_medium_url, :thumbnail_large_url,
|
|
9
10
|
:language, :format, :type,
|
|
10
11
|
:is_downloadable, :is_in_contest,
|
|
11
12
|
:ppt_location,
|
|
@@ -42,6 +43,8 @@ module SlideshareApi
|
|
|
42
43
|
@thumbnail_url = text_from_xml('ThumbnailURL')
|
|
43
44
|
@thumbnail_size = text_from_xml('ThumbnailSize')
|
|
44
45
|
@thumbnail_small_url = text_from_xml('ThumbnailSmallURL')
|
|
46
|
+
@thumbnail_medium_url = text_from_xml('ThumbnailXLargeURL')
|
|
47
|
+
@thumbnail_large_url = text_from_xml('ThumbnailXXLargeURL')
|
|
45
48
|
@embed = text_from_xml('Embed')
|
|
46
49
|
@created_at = Time.parse text_from_xml('Created')
|
|
47
50
|
@updated_at = Time.parse text_from_xml('Updated')
|
data/spec/fixtures/slideshow.xml
CHANGED
|
@@ -13,6 +13,12 @@
|
|
|
13
13
|
<ThumbnailSmallURL>
|
|
14
14
|
//cdn.slidesharecdn.com/ss_thumbnails/prerequispourappliquerleleanstartupdanslentreprise-140430023146-phpapp02-140501195007-phpapp01-thumbnail-2.jpg?cb=1398991939
|
|
15
15
|
</ThumbnailSmallURL>
|
|
16
|
+
<ThumbnailXLargeURL>
|
|
17
|
+
//cdn.slidesharecdn.com/ss_thumbnails/prerequispourappliquerleleanstartupdanslentreprise-140430023146-phpapp02-140501195007-phpapp01-thumbnail-3.jpg?cb=1398991939
|
|
18
|
+
</ThumbnailXLargeURL>
|
|
19
|
+
<ThumbnailXXLargeURL>
|
|
20
|
+
//cdn.slidesharecdn.com/ss_thumbnails/prerequispourappliquerleleanstartupdanslentreprise-140430023146-phpapp02-140501195007-phpapp01-thumbnail-4.jpg?cb=1398991939
|
|
21
|
+
</ThumbnailXXLargeURL>
|
|
16
22
|
<Embed>
|
|
17
23
|
<iframe src="https://www.slideshare.net/slideshow/embed_code/34187090" width="427"
|
|
18
24
|
height="356" frameborder="0" marginwidth="0" marginheight="0" scrolling="no"
|
|
@@ -46,6 +46,8 @@ describe SlideshareApi::Model::Slideshow do
|
|
|
46
46
|
it { expect(subject.thumbnail_url).to eq slideshow_xml.search('ThumbnailURL').text }
|
|
47
47
|
it { expect(subject.thumbnail_size).to eq slideshow_xml.search('ThumbnailSize').text }
|
|
48
48
|
it { expect(subject.thumbnail_small_url).to eq slideshow_xml.search('ThumbnailSmallURL').text }
|
|
49
|
+
it { expect(subject.thumbnail_medium_url).to eq slideshow_xml.search('ThumbnailXLargeURL').text }
|
|
50
|
+
it { expect(subject.thumbnail_large_url).to eq slideshow_xml.search('ThumbnailXXLargeURL').text }
|
|
49
51
|
it { expect(subject.embed).to eq slideshow_xml.search('Embed').text }
|
|
50
52
|
it { expect(subject.created_at).to eq Time.parse slideshow_xml.search('Created').text }
|
|
51
53
|
it { expect(subject.updated_at).to eq Time.parse slideshow_xml.search('Updated').text }
|
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: slideshare_api
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.0.
|
|
4
|
+
version: 0.0.10
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Jeremy Venezia
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: bin
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date:
|
|
11
|
+
date: 2018-07-06 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: bundler
|
|
@@ -154,7 +154,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
|
154
154
|
version: '0'
|
|
155
155
|
requirements: []
|
|
156
156
|
rubyforge_project:
|
|
157
|
-
rubygems_version: 2.
|
|
157
|
+
rubygems_version: 2.6.13
|
|
158
158
|
signing_key:
|
|
159
159
|
specification_version: 4
|
|
160
160
|
summary: Ruby wrapper for the Slideshare API.
|