concerto_remote_video 0.0.9 → 0.1.0
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
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA1:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 8aab3b8075e04c908c8d1bf42f470500d2e46cb3
|
|
4
|
+
data.tar.gz: 1f57acecf847a89146474c546ddd804d65ff4bf8
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 833b63f0ff0eabd8a230c086b27f2e21e49705268c9d2e4216158ee099bf18192ab6a4cfbdacdcbc66ac36f8661a028ee06054747e5146ab9fda218b05d43f48
|
|
7
|
+
data.tar.gz: 5b48a286e376a729791c6e0779dcd6a5efa77fc5886194cdbd51da33fe109f8e5283d22e61a3b60ffa657bd4332afb18ec83539acc173043fda3000ded5cee49
|
data/app/models/remote_video.rb
CHANGED
|
@@ -72,6 +72,7 @@ class RemoteVideo < Content
|
|
|
72
72
|
self.config['video_id'] = ''
|
|
73
73
|
return
|
|
74
74
|
end
|
|
75
|
+
return if data['data'].nil? || data['data']['items'].nil?
|
|
75
76
|
video_data = data['data']['items'][0]
|
|
76
77
|
self.config['video_id'] = video_data['id']
|
|
77
78
|
self.duration = video_data['duration'].to_i
|
|
@@ -11,7 +11,7 @@
|
|
|
11
11
|
</fieldset>
|
|
12
12
|
|
|
13
13
|
<fieldset>
|
|
14
|
-
<legend><span><%=t('contents.
|
|
14
|
+
<legend><span><%=t('contents.submit_to_feeds')%></span></legend>
|
|
15
15
|
<div class="clearfix">
|
|
16
16
|
<% if @content.new_record? %>
|
|
17
17
|
<%= render :partial => 'contents/form_elements/feeds' %>
|
|
@@ -25,14 +25,14 @@ concerto.frontend.Content.RemoteVideo = function(data) {
|
|
|
25
25
|
* @type {number}
|
|
26
26
|
* @private
|
|
27
27
|
*/
|
|
28
|
-
this.field_height_ = data
|
|
28
|
+
this.field_height_ = parseFloat(data['field']['size']['height']);
|
|
29
29
|
|
|
30
30
|
/**
|
|
31
31
|
* The width of the field the image is being shown in.
|
|
32
32
|
* @type {number}
|
|
33
33
|
* @private
|
|
34
34
|
*/
|
|
35
|
-
this.field_width_ = data
|
|
35
|
+
this.field_width_ = parseFloat(data['field']['size']['width']);
|
|
36
36
|
|
|
37
37
|
/**
|
|
38
38
|
* The iframe being displayed.
|
|
@@ -51,7 +51,7 @@ concerto.frontend.Content.RemoteVideo = function(data) {
|
|
|
51
51
|
* @type {?string}
|
|
52
52
|
* @private
|
|
53
53
|
*/
|
|
54
|
-
this.url_parms_ = (data
|
|
54
|
+
this.url_parms_ = (data['field']['config'] ? data['field']['config']['url_parms'] : null);
|
|
55
55
|
if (goog.isDefAndNotNull(this.url_parms_)) {
|
|
56
56
|
this.url_parms_ = this.url_parms_.trim();
|
|
57
57
|
if (goog.string.startsWith(this.url_parms_, '?'))
|
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: concerto_remote_video
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.0
|
|
4
|
+
version: 0.1.0
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Brian Michalski
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: bin
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date: 2014-
|
|
11
|
+
date: 2014-06-17 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: rails
|
|
@@ -122,7 +122,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
|
122
122
|
version: '0'
|
|
123
123
|
requirements: []
|
|
124
124
|
rubyforge_project:
|
|
125
|
-
rubygems_version: 2.0.
|
|
125
|
+
rubygems_version: 2.0.14
|
|
126
126
|
signing_key:
|
|
127
127
|
specification_version: 4
|
|
128
128
|
summary: Remotely hosted video for Concerto 2
|