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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: eb543c20c467def2a700962992915afcc00671ca
4
- data.tar.gz: a89b79de6924b3c7eec04a9f27fa8d7320dffc50
3
+ metadata.gz: 7fda52b577df22f34cc020da93f83549968826c6
4
+ data.tar.gz: e7f50a749f142bd96bb70e263b77c01606ae6939
5
5
  SHA512:
6
- metadata.gz: 6bbb2425e15b8d4d86c2e8d419167b1c772cc80f6fada11375df44214194da978e557e4db52895c5a9ea7822cfbd8cc96dbaf999b9733af060f158ba322d0eb6
7
- data.tar.gz: b01a74be14c4f506b4533b39dc8ae4a17b2c5bef9a08b499e2b52ace3c3cd87e4b32e776bb436ce282525025deafac4b92b027e932380df22c7a1cfaeda096d5
6
+ metadata.gz: 8b121f4dc6ceb544615f19f2f65cbe5b3f67dedd90fac17576c8fa7c6da03d856677f7f36f0ae5bb9ee60f4d9e2f94272ad5e833e49690abca772b0460f8d53b
7
+ data.tar.gz: 3e81413e85cd6dbd44e5c2a8b75433a1e65c8c047b63bbf76e7c3cf1a9ea2bc9a1306371ef8f3903f8d54bded866ef76c7b387499a5f0c09571ce17331c4f54c
@@ -379,6 +379,10 @@ module ACTV
379
379
  end
380
380
  end
381
381
 
382
+ def organization
383
+ @attrs[:organization] || {}
384
+ end
385
+
382
386
  private
383
387
 
384
388
  def child_assets_filtered_by_category category
@@ -1,3 +1,3 @@
1
1
  module ACTV
2
- VERSION = "2.2.0"
2
+ VERSION = "2.2.1"
3
3
  end
@@ -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.0
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-08-03 00:00:00.000000000 Z
11
+ date: 2015-10-02 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: faraday