actv 1.3.9 → 1.3.10

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: 574f192d113e5554c774a66fbd23b7db4b3c5743
4
- data.tar.gz: f2baf37eaf431bce2ddd08a3998baa38e6e4db0f
3
+ metadata.gz: 20c50e310c4df374ee2858a1f743702ed6bd4193
4
+ data.tar.gz: 892e673139790c64f8d606b2aaa506d9fd597793
5
5
  SHA512:
6
- metadata.gz: 9b5654c5cf79b41afcf5d1ff755feaec72ae33e9c68508d57c270ee9632af91c3d6a23daeba2fc83808d0e575cf88291d1795121ab6561ab0bfa23b80efd18a0
7
- data.tar.gz: 231bb9d7f931c74baa5abe1b696bf0efd42351ee9db49976a63080f7c0d6acba72dadf099a53cd73ebccef529ba13efb7c5e626c25acbc46bab9ced45572d05f
6
+ metadata.gz: 5ee6bd214e3fd2636211100664e2e0ee78fd9f2d960c7bf1767645c1405e6f98ba74f7c095a7ae13fcb37fbe44776b5f3ec3fb0a688316d09a8df67dc0deb50b
7
+ data.tar.gz: 6b06d11cc2c4e0edbf7a86da47cada7bd718f4e83ef3020ceaca4f2af5b534665bd4af1b942eec27383cf95f636842b1d4f2329531055a0ac9fcd9c7046f3962
data/lib/actv/client.rb CHANGED
@@ -155,7 +155,7 @@ module ACTV
155
155
  def article id, params={}
156
156
  request_string = "/v2/assets/#{id}"
157
157
  is_preview, params = params_include_preview? params
158
- request_string = '/preview' if is_preview
158
+ request_string += '/preview' if is_preview
159
159
 
160
160
  response = get "#{request_string}.json", params
161
161
 
data/lib/actv/version.rb CHANGED
@@ -1,3 +1,3 @@
1
1
  module ACTV
2
- VERSION = "1.3.9"
2
+ VERSION = "1.3.10"
3
3
  end
@@ -165,7 +165,7 @@ describe ACTV::Client do
165
165
  oauth_token_secret: "OS"}
166
166
  end
167
167
 
168
- context 'find event' do
168
+ context 'find article' do
169
169
  before do
170
170
  stub_request(:get, "http://api.amp.active.com/v2/assets/asset_id.json").
171
171
  to_return(body: fixture("valid_article.json"), headers: { content_type: "application/json; charset=utf-8" })
@@ -176,14 +176,14 @@ describe ACTV::Client do
176
176
  end
177
177
  end
178
178
 
179
- context 'preview event' do
179
+ context 'preview article' do
180
180
  context 'when preview is true' do
181
181
  before do
182
- stub_request(:get, "http://api.amp.active.com/preview.json").
182
+ stub_request(:get, "http://api.amp.active.com/v2/assets/asset_id/preview.json").
183
183
  to_return(body: fixture("valid_article.json"), headers: { content_type: "application/json; charset=utf-8" })
184
184
  end
185
185
 
186
- it 'returns an event' do
186
+ it 'returns an article' do
187
187
  expect(client.article 'asset_id', preview: 'true').to be_an ACTV::Article
188
188
  end
189
189
  end
@@ -194,7 +194,7 @@ describe ACTV::Client do
194
194
  to_return(body: fixture("valid_article.json"), headers: { content_type: "application/json; charset=utf-8" })
195
195
  end
196
196
 
197
- it 'returns an event' do
197
+ it 'returns an article' do
198
198
  expect(client.article 'asset_id', preview: 'false').to be_an ACTV::Article
199
199
  end
200
200
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: actv
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.3.9
4
+ version: 1.3.10
5
5
  platform: ruby
6
6
  authors:
7
7
  - Nathaniel Barnes