actv 2.2.0 → 2.2.1
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 +4 -0
- data/lib/actv/version.rb +1 -1
- data/spec/actv/asset_spec.rb +14 -0
- 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: 7fda52b577df22f34cc020da93f83549968826c6
|
|
4
|
+
data.tar.gz: e7f50a749f142bd96bb70e263b77c01606ae6939
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 8b121f4dc6ceb544615f19f2f65cbe5b3f67dedd90fac17576c8fa7c6da03d856677f7f36f0ae5bb9ee60f4d9e2f94272ad5e833e49690abca772b0460f8d53b
|
|
7
|
+
data.tar.gz: 3e81413e85cd6dbd44e5c2a8b75433a1e65c8c047b63bbf76e7c3cf1a9ea2bc9a1306371ef8f3903f8d54bded866ef76c7b387499a5f0c09571ce17331c4f54c
|
data/lib/actv/asset.rb
CHANGED
data/lib/actv/version.rb
CHANGED
data/spec/actv/asset_spec.rb
CHANGED
|
@@ -2,6 +2,20 @@ require 'spec_helper'
|
|
|
2
2
|
|
|
3
3
|
describe ACTV::Asset do
|
|
4
4
|
|
|
5
|
+
describe '#organization' do
|
|
6
|
+
subject(:asset) { ACTV::Asset.new assetGuid: 'assetguid' }
|
|
7
|
+
|
|
8
|
+
context "when there is an organization field" do
|
|
9
|
+
before do
|
|
10
|
+
allow(asset).to receive(:organization).and_return({org: "test"})
|
|
11
|
+
end
|
|
12
|
+
its(:organization) { should eq({org: "test"}) }
|
|
13
|
+
end
|
|
14
|
+
context "where there is no organization field" do
|
|
15
|
+
its(:organization) { should eq({}) }
|
|
16
|
+
end
|
|
17
|
+
end
|
|
18
|
+
|
|
5
19
|
describe '#endurance_id' do
|
|
6
20
|
let(:endurance_id) { 'enduranceid' }
|
|
7
21
|
subject(:asset) { ACTV::Asset.new assetGuid: 'assetguid' }
|
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.2.
|
|
4
|
+
version: 2.2.1
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Nathaniel Barnes
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: bin
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date: 2015-
|
|
11
|
+
date: 2015-10-02 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: faraday
|