active_public_resources 0.0.3 → 0.0.4
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/active_public_resources/drivers/khan_academy.rb +2 -2
- data/lib/active_public_resources/drivers/schooltube.rb +2 -2
- data/lib/active_public_resources/drivers/vimeo.rb +2 -2
- data/lib/active_public_resources/drivers/youtube.rb +2 -2
- data/lib/active_public_resources/version.rb +1 -1
- data/spec/lib/active_public_resources/drivers/khan_academy_spec.rb +1 -1
- data/spec/lib/active_public_resources/drivers/schooltube_spec.rb +1 -1
- data/spec/lib/active_public_resources/drivers/vimeo_spec.rb +1 -1
- data/spec/lib/active_public_resources/drivers/youtube_spec.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: ebec3db80c549823ac1e0ceb550b1900cf35ca48
|
4
|
+
data.tar.gz: 6f7654cb4a0b8e1cfdd5a5afbc490f0cbd6c3dc6
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: a117e8f96d905c447249751d28e04dfbd0cf2d861b9670a451f47f8cd233e8e33a421f1bfeed240df1fbeb8e0461574755e413e5fa9906414d254bce9f356226
|
7
|
+
data.tar.gz: 2696016010232bfe820c2a2fc698901623ad5432aa15eccb0607f2b291f0de8283e6dee2847f57a8fef1681df0b0e7e06206e8573f03f7074252cee2b83eaa48
|
@@ -82,7 +82,7 @@ module ActivePublicResources
|
|
82
82
|
video.description = data['description']
|
83
83
|
video.thumbnail_url = data['image_url']
|
84
84
|
video.url = data['url']
|
85
|
-
video.embed_url = "
|
85
|
+
video.embed_url = "https://www.youtube.com/embed/#{data['youtube_id']}?feature=oembed"
|
86
86
|
video.duration = data['duration'] ? data['duration'].to_i : 0
|
87
87
|
video.num_views = 0
|
88
88
|
video.num_likes = 0
|
@@ -99,7 +99,7 @@ module ActivePublicResources
|
|
99
99
|
:title => video.title
|
100
100
|
)
|
101
101
|
video.return_types << APR::ReturnTypes::Iframe.new(
|
102
|
-
:url => "
|
102
|
+
:url => "https://www.youtube.com/embed/#{data['youtube_id']}?feature=oembed",
|
103
103
|
:text => video.title,
|
104
104
|
:title => video.title,
|
105
105
|
:width => 640,
|
@@ -68,7 +68,7 @@ module ActivePublicResources
|
|
68
68
|
video.description = data['description']
|
69
69
|
video.thumbnail_url = data['thumbnail_url']
|
70
70
|
video.url = data['short_url']
|
71
|
-
video.embed_url = "
|
71
|
+
video.embed_url = "https://www.schooltube.com/embed/#{data['vkey']}"
|
72
72
|
video.duration = data['duration'] ? data['duration'].to_i : 0
|
73
73
|
video.num_views = data['view_count'] ? data['view_count'].to_i : 0
|
74
74
|
video.num_likes = data['thumbs_up'] ? data['thumbs_up'].to_i : 0
|
@@ -85,7 +85,7 @@ module ActivePublicResources
|
|
85
85
|
:title => video.title
|
86
86
|
)
|
87
87
|
video.return_types << APR::ReturnTypes::Iframe.new(
|
88
|
-
:url => "
|
88
|
+
:url => "https://www.schooltube.com/embed/#{data['vkey']}",
|
89
89
|
:text => video.title,
|
90
90
|
:title => video.title,
|
91
91
|
:width => 640,
|
@@ -150,7 +150,7 @@ module ActivePublicResources
|
|
150
150
|
video.description = data['description']
|
151
151
|
video.thumbnail_url = data['thumbnails']['thumbnail'][0]['_content']
|
152
152
|
video.url = data['urls']['url'][0]['_content']
|
153
|
-
video.embed_url = "
|
153
|
+
video.embed_url = "https://player.vimeo.com/video/#{data['id']}"
|
154
154
|
video.duration = data['duration'].to_i
|
155
155
|
video.num_views = data['number_of_plays'].to_i
|
156
156
|
video.num_likes = data['number_of_likes'].to_i
|
@@ -167,7 +167,7 @@ module ActivePublicResources
|
|
167
167
|
:title => video.title
|
168
168
|
)
|
169
169
|
video.return_types << APR::ReturnTypes::Iframe.new(
|
170
|
-
:url => "
|
170
|
+
:url => "https://player.vimeo.com/video/#{data['id']}",
|
171
171
|
:text => video.title,
|
172
172
|
:title => video.title,
|
173
173
|
:width => 640,
|
@@ -82,7 +82,7 @@ module ActivePublicResources
|
|
82
82
|
video.description = data['media$group']['media$description']['$t']
|
83
83
|
video.thumbnail_url = data['media$group']['media$thumbnail'][0]['url']
|
84
84
|
video.url = data['media$group']['media$player']['url']
|
85
|
-
video.embed_url = "
|
85
|
+
video.embed_url = "https://www.youtube.com/embed/#{video_id}?feature=oembed"
|
86
86
|
video.duration = data['media$group']['yt$duration']['seconds'].to_i
|
87
87
|
video.num_views = data['yt$statistics'] ? data['yt$statistics']['viewCount'].to_i : 0
|
88
88
|
video.num_likes = data['yt$rating'] ? data['yt$rating']['numLikes'].to_i : 0
|
@@ -99,7 +99,7 @@ module ActivePublicResources
|
|
99
99
|
:title => video.title
|
100
100
|
)
|
101
101
|
video.return_types << APR::ReturnTypes::Iframe.new(
|
102
|
-
:url => "
|
102
|
+
:url => "https://www.youtube.com/embed/#{video_id}?feature=oembed",
|
103
103
|
:text => video.title,
|
104
104
|
:title => video.title,
|
105
105
|
:width => 640,
|
@@ -79,7 +79,7 @@ describe APR::Drivers::KhanAcademy do
|
|
79
79
|
|
80
80
|
rt_iframe = video.return_types[1]
|
81
81
|
rt_iframe.return_type.should eq('iframe')
|
82
|
-
rt_iframe.url.should eq("
|
82
|
+
rt_iframe.url.should eq("https://www.youtube.com/embed/9KR1bad76qg?feature=oembed")
|
83
83
|
rt_url.title.should eq("Institutions")
|
84
84
|
|
85
85
|
video.width.should eq(640)
|
@@ -39,7 +39,7 @@ describe APR::Drivers::Schooltube do
|
|
39
39
|
|
40
40
|
rt_iframe = item.return_types[1]
|
41
41
|
rt_iframe.return_type.should eq('iframe')
|
42
|
-
rt_iframe.url.should eq("
|
42
|
+
rt_iframe.url.should eq("https://www.schooltube.com/embed/60f374fdba394a70b4ad")
|
43
43
|
rt_url.title.should eq("Fun - Educational School Trips - Call American Tours & Travel")
|
44
44
|
|
45
45
|
item.width.should eq(640)
|
@@ -60,7 +60,7 @@ describe APR::Drivers::Vimeo do
|
|
60
60
|
|
61
61
|
rt_iframe = item.return_types[1]
|
62
62
|
rt_iframe.return_type.should eq('iframe')
|
63
|
-
rt_iframe.url.should eq("
|
63
|
+
rt_iframe.url.should eq("https://player.vimeo.com/video/67741947")
|
64
64
|
rt_url.title.should eq("Kynect 'education'")
|
65
65
|
|
66
66
|
item.width.should eq(640)
|
@@ -41,7 +41,7 @@ describe APR::Drivers::Youtube do
|
|
41
41
|
|
42
42
|
rt_iframe = item.return_types[1]
|
43
43
|
rt_iframe.return_type.should eq('iframe')
|
44
|
-
rt_iframe.url.should eq("
|
44
|
+
rt_iframe.url.should eq("https://www.youtube.com/embed/y_ZmM7zPLyI?feature=oembed")
|
45
45
|
rt_url.title.should eq("Why I Hate School But Love Education||Spoken Word")
|
46
46
|
|
47
47
|
item.width.should eq(640)
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: active_public_resources
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.4
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Eric Berry
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2013-12-
|
11
|
+
date: 2013-12-09 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: active_support
|