tangerine 0.5.6 → 0.5.7
Sign up to get free protection for your applications and to get access to all the features.
- data/VERSION +1 -1
- data/lib/tangerine/backlot/video.rb +4 -1
- data/tangerine.gemspec +2 -2
- metadata +4 -4
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
0.5.
|
1
|
+
0.5.7
|
@@ -41,11 +41,14 @@ class Tangerine::Video < Tangerine::Base
|
|
41
41
|
end
|
42
42
|
|
43
43
|
def self.where(options)
|
44
|
+
# FYI
|
45
|
+
# Adding 'status' => 'live' to the query string does not work!
|
44
46
|
embed_codes = options[:embed_code].join(',')
|
45
|
-
result = Tangerine.query('embedCode' => embed_codes, 'fields' => 'labels,metadata'
|
47
|
+
result = Tangerine.query('embedCode' => embed_codes, 'fields' => 'labels,metadata')
|
46
48
|
items = result.parsed_response['list']['item']
|
47
49
|
items = Tangerine::Base.prepare_items(items)
|
48
50
|
videos = items.collect { |item| Tangerine::Video.new(item) }
|
51
|
+
videos = videos.reject { |video| video.status != 'live' }
|
49
52
|
|
50
53
|
Tangerine::Video.order_videos!(videos, options[:embed_code])
|
51
54
|
end
|
data/tangerine.gemspec
CHANGED
@@ -5,11 +5,11 @@
|
|
5
5
|
|
6
6
|
Gem::Specification.new do |s|
|
7
7
|
s.name = %q{tangerine}
|
8
|
-
s.version = "0.5.
|
8
|
+
s.version = "0.5.7"
|
9
9
|
|
10
10
|
s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
|
11
11
|
s.authors = ["Anthony Navarre", "Craig Williams"]
|
12
|
-
s.date = %q{2011-
|
12
|
+
s.date = %q{2011-04-19}
|
13
13
|
s.description = %q{Ooyala Backlot API Wrapper. Read more about the Ooyala Backlot API at http://www.ooyala.com/support/docs/backlot_api}
|
14
14
|
s.email = %q{anthony.navarre@factorylabs.com}
|
15
15
|
s.extra_rdoc_files = [
|
metadata
CHANGED
@@ -1,13 +1,13 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: tangerine
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
hash:
|
4
|
+
hash: 5
|
5
5
|
prerelease:
|
6
6
|
segments:
|
7
7
|
- 0
|
8
8
|
- 5
|
9
|
-
-
|
10
|
-
version: 0.5.
|
9
|
+
- 7
|
10
|
+
version: 0.5.7
|
11
11
|
platform: ruby
|
12
12
|
authors:
|
13
13
|
- Anthony Navarre
|
@@ -16,7 +16,7 @@ autorequire:
|
|
16
16
|
bindir: bin
|
17
17
|
cert_chain: []
|
18
18
|
|
19
|
-
date: 2011-
|
19
|
+
date: 2011-04-19 00:00:00 -06:00
|
20
20
|
default_executable:
|
21
21
|
dependencies:
|
22
22
|
- !ruby/object:Gem::Dependency
|