actv 2.10.7 → 2.10.8
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/actv/asset.rb +1 -2
- data/lib/actv/version.rb +1 -1
- data/spec/actv/asset_spec.rb +14 -0
- data/spec/actv/video_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: 7acbd655cd14360a8932f74782e02103d2596651
|
4
|
+
data.tar.gz: 2b3241e9bd589420a8a98b1dd3792daec9870b3e
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 41eb3df07b5bfc49d9f44739540fcce86be0193e19f33d670fb522cd0578dda5f033c59e72efbf26afe0594330a568c48b93d53e5a0b8ea6d23f4da7351805f2
|
7
|
+
data.tar.gz: e6a49ee23b3b692beab977910a6ac9d2087b84d1cfb58f48710e2b9a16a83a7a2ad823a9222f9fb65f5f2bbf2b7cf46ba58f41ad3d0fac0268d40e1ebbc7d58c
|
data/lib/actv/asset.rb
CHANGED
@@ -134,8 +134,7 @@ module ACTV
|
|
134
134
|
|
135
135
|
def images
|
136
136
|
@images ||= Array(@attrs[:assetImages]).map do |img|
|
137
|
-
img[:imageUrlAdr] = replace_http_to_https
|
138
|
-
img[:linkUrl] = replace_http_to_https img[:linkUrl]
|
137
|
+
img[:imageUrlAdr] = replace_http_to_https(img[:imageUrlAdr]) unless 'MediaGalleryButton' == img[:imageName]
|
139
138
|
ACTV::AssetImage.new(img)
|
140
139
|
end
|
141
140
|
end
|
data/lib/actv/version.rb
CHANGED
data/spec/actv/asset_spec.rb
CHANGED
@@ -168,6 +168,20 @@ describe ACTV::Asset do
|
|
168
168
|
images.should be_a Array
|
169
169
|
images.should eq []
|
170
170
|
end
|
171
|
+
|
172
|
+
context 'when imageType is not MediaGalleryButton' do
|
173
|
+
let(:images) { ACTV::Asset.new(assetGuid: 1, assetName: "Asset #1", assetImages: [{imageUrlAdr: "http://www.active.com/img1.jpg", imageName: 'image2'}]).images }
|
174
|
+
it 'returns imageUrlAdr start with https' do
|
175
|
+
expect(images.first.imageUrlAdr).to eq 'https://www.active.com/img1.jpg'
|
176
|
+
end
|
177
|
+
end
|
178
|
+
|
179
|
+
context 'when imageType is MediaGalleryButton' do
|
180
|
+
let(:images) { ACTV::Asset.new(assetGuid: 1, assetName: "Asset #1", assetImages: [{imageUrlAdr: "http://www.active.com/img1.jpg", imageName: 'MediaGalleryButton'}]).images }
|
181
|
+
it 'returns imageUrlAdr start with http' do
|
182
|
+
expect(images.first.imageUrlAdr).to eq 'http://www.active.com/img1.jpg'
|
183
|
+
end
|
184
|
+
end
|
171
185
|
end
|
172
186
|
|
173
187
|
describe "#tags" do
|
data/spec/actv/video_spec.rb
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
require 'spec_helper'
|
2
2
|
|
3
3
|
describe ACTV::Video do
|
4
|
-
let(:asset_images) { [{:imageUrlAdr => "http://rodale.images.worldnow.com/images/12508455_vtf.jpg", :imageName => "videoImage"}] }
|
4
|
+
let(:asset_images) { [{:imageUrlAdr => "http://rodale.images.worldnow.com/images/12508455_vtf.jpg", :imageName => "videoImage", :imageType => 'IMAGE'}] }
|
5
5
|
let(:urlAdr) { "http://rodale.videodownload.worldnow.com/RODALE_0906201614333627818AA.mp4" }
|
6
6
|
let(:asset_tags) { [{:tag => {:tagId => "1794337", :tagName => "video/mp4", :tagDescription => "type"}},
|
7
7
|
{:tag => {:tagId => "1794525", :tagName => "640", :tagDescription => "width"}},
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: actv
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 2.10.
|
4
|
+
version: 2.10.8
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Nathaniel Barnes
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2017-09-
|
11
|
+
date: 2017-09-28 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: faraday
|