actv 2.4.0 → 2.5.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/actv/validators/asset_validator.rb +10 -0
- data/lib/actv/validators/event_validator.rb +1 -1
- data/lib/actv/version.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: 4269228c84454953535d04d0d80db8626a4aa9e9
|
4
|
+
data.tar.gz: 7820be864d4ab4ac32e21ae8c2e5b7e4dcc4b911
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 1de425fa54d216951dfa56044e98077f0aa40be68412201f97884dcf4af70e5ba16e7db149ade31e5194c370364fe5df4bfc2a4a5cc98545151756e4713bb584
|
7
|
+
data.tar.gz: 44d6ba3cb4485219c8edd1357040de16f66c6f4a101ff46f4d008650dc73cd3d319e5aaa2e838d975c3a57b98eb911dda7273e388b1d4572edd93d19b717852e
|
@@ -12,6 +12,16 @@ module ACTV
|
|
12
12
|
|
13
13
|
private
|
14
14
|
|
15
|
+
def asset_media_types
|
16
|
+
response[:assetMediaTypes] || []
|
17
|
+
end
|
18
|
+
|
19
|
+
def media_type_is? name
|
20
|
+
asset_media_types.any? do |media_type|
|
21
|
+
media_type[:mediaType][:mediaTypeName].downcase == name.downcase
|
22
|
+
end
|
23
|
+
end
|
24
|
+
|
15
25
|
def asset_categories
|
16
26
|
response[:assetCategories] || []
|
17
27
|
end
|
data/lib/actv/version.rb
CHANGED
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: 2.
|
4
|
+
version: 2.5.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Nathaniel Barnes
|
@@ -412,7 +412,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
412
412
|
version: '0'
|
413
413
|
requirements: []
|
414
414
|
rubyforge_project:
|
415
|
-
rubygems_version: 2.4.
|
415
|
+
rubygems_version: 2.4.8
|
416
416
|
signing_key:
|
417
417
|
specification_version: 4
|
418
418
|
summary: Active API
|