actv 2.10.7 → 2.10.8

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
  SHA1:
3
- metadata.gz: 46c74f6db535f9acd7b8067779fc5490645dfd23
4
- data.tar.gz: 169106242b943df64bf062a4437a11693ac7c39a
3
+ metadata.gz: 7acbd655cd14360a8932f74782e02103d2596651
4
+ data.tar.gz: 2b3241e9bd589420a8a98b1dd3792daec9870b3e
5
5
  SHA512:
6
- metadata.gz: bc167074eab4b8e6f11a15a93fcb0c73daa9fc53f1bc8ef94aac708ff3ee3b9709042277fe9e6a9242b34afe4c85845f54a396b25161e1f767d3257a1232c109
7
- data.tar.gz: 59fd3a0c4a998ab50814d48599a8589de5af9b2cb0d61525a3834d61c3c6b87b9a8aef7e1142e5c84547eb4230de2666355e638d3193c8a30ae8269649202d94
6
+ metadata.gz: 41eb3df07b5bfc49d9f44739540fcce86be0193e19f33d670fb522cd0578dda5f033c59e72efbf26afe0594330a568c48b93d53e5a0b8ea6d23f4da7351805f2
7
+ data.tar.gz: e6a49ee23b3b692beab977910a6ac9d2087b84d1cfb58f48710e2b9a16a83a7a2ad823a9222f9fb65f5f2bbf2b7cf46ba58f41ad3d0fac0268d40e1ebbc7d58c
@@ -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 img[:imageUrlAdr]
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
@@ -1,3 +1,3 @@
1
1
  module ACTV
2
- VERSION = "2.10.7"
2
+ VERSION = "2.10.8"
3
3
  end
@@ -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
@@ -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.7
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-25 00:00:00.000000000 Z
11
+ date: 2017-09-28 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: faraday