tangerine 0.4.0 → 0.5.0
Sign up to get free protection for your applications and to get access to all the features.
- data/Gemfile +1 -0
- data/Gemfile.lock +2 -0
- data/Rakefile +1 -1
- data/VERSION +1 -1
- data/lib/tangerine.rb +2 -0
- data/lib/tangerine/backlot.rb +3 -12
- data/lib/tangerine/backlot/base.rb +8 -3
- data/lib/tangerine/backlot/channel.rb +7 -1
- data/lib/tangerine/backlot/channel_set.rb +0 -5
- data/lib/tangerine/backlot/player.rb +12 -0
- data/lib/tangerine/backlot/video.rb +60 -1
- data/spec/spec_helper.rb +1 -0
- data/spec/support/tangerine_girl.rb +21 -48
- data/spec/support/vcr_cassettes/{Tangerine_Backlot_API_get_channel_sets_list_.yml → channel_sets/show.yml} +0 -0
- data/spec/support/vcr_cassettes/channels/list.yml +59 -0
- data/spec/support/vcr_cassettes/query/channel_sets.yml +47 -0
- data/spec/support/vcr_cassettes/query/embed_code.yml +79 -0
- data/spec/tangerine/backlot_spec.rb +1 -1
- data/spec/tangerine/base_spec.rb +49 -1
- data/spec/tangerine/channel_set_spec.rb +20 -10
- data/spec/tangerine/channel_spec.rb +47 -0
- data/spec/tangerine/player_spec.rb +23 -0
- data/spec/tangerine/video_spec.rb +55 -0
- data/tangerine.gemspec +16 -7
- metadata +70 -47
- data/spec/support/vcr_cassettes/Tangerine_Query_new_contentType_MultiChannel_.yml +0 -107
- data/spec/support/vcr_cassettes/Tangerine_Video_all.yml +0 -7019
@@ -18,7 +18,7 @@ describe Tangerine::Backlot do
|
|
18
18
|
let(:request) { '/some-request-path' }
|
19
19
|
|
20
20
|
it 'returns the HTTP response' do
|
21
|
-
Tangerine::Backlot::HTTP.should_receive(:get).
|
21
|
+
Tangerine::Backlot::HTTP.should_receive(:get).and_return(response)
|
22
22
|
subject.get(request).should == response
|
23
23
|
end
|
24
24
|
|
data/spec/tangerine/base_spec.rb
CHANGED
@@ -2,6 +2,54 @@ require File.expand_path(File.dirname(__FILE__) + '/../spec_helper')
|
|
2
2
|
|
3
3
|
describe Tangerine::Base do
|
4
4
|
|
5
|
-
context
|
5
|
+
context 'class methods' do
|
6
|
+
subject { Tangerine::Base }
|
7
|
+
|
8
|
+
describe '.find' do
|
9
|
+
before do
|
10
|
+
items = []
|
11
|
+
5.times { items << mock_item }
|
12
|
+
@target_item = {'embedCode' => embed_code}
|
13
|
+
items << @target_item
|
14
|
+
|
15
|
+
klass = Class.new(Tangerine::Base) do
|
16
|
+
attr_accessor :embed_code
|
17
|
+
finder do
|
18
|
+
items
|
19
|
+
end
|
20
|
+
end
|
21
|
+
TestBaseClass = klass
|
22
|
+
end
|
23
|
+
|
24
|
+
let(:embed_code) { 'target_embed_code' }
|
25
|
+
let(:mock_item) { {'embedCode' => Factory.next(:embed_code)} }
|
26
|
+
|
27
|
+
it 'returns the object associated with the given embed code' do
|
28
|
+
result = TestBaseClass.find(embed_code)
|
29
|
+
result.class.should == TestBaseClass
|
30
|
+
result.embed_code.should == embed_code
|
31
|
+
end
|
32
|
+
end
|
33
|
+
|
34
|
+
describe '.prepare_items' do
|
35
|
+
|
36
|
+
context 'when given an array' do
|
37
|
+
let(:items) { %w(lorem ipsum dolor) }
|
38
|
+
|
39
|
+
it 'makes no changes, and just returns the items' do
|
40
|
+
subject.prepare_items(items).should == items
|
41
|
+
end
|
42
|
+
end
|
43
|
+
|
44
|
+
context 'when given a hash' do
|
45
|
+
let(:items) { {:lorem => 'ipsum'} }
|
46
|
+
|
47
|
+
it 'wraps the given hash in an array' do
|
48
|
+
subject.prepare_items(items).should == [items]
|
49
|
+
end
|
50
|
+
end
|
51
|
+
|
52
|
+
end
|
53
|
+
end
|
6
54
|
|
7
55
|
end
|
@@ -6,21 +6,31 @@ describe Tangerine::ChannelSet do
|
|
6
6
|
let(:embed_code) { 'My Awesome Embed Code' }
|
7
7
|
let(:title) { 'My Awesome Title' }
|
8
8
|
let(:mock_channel_set) { double(:embed_code => embed_code, :title => title) }
|
9
|
-
let(:vcr_erb) { {:
|
10
|
-
let(:channel_set)
|
11
|
-
|
9
|
+
let(:vcr_erb) { {:channel_sets => channel_sets} }
|
10
|
+
let(:channel_set) { Factory.build(:channel_set, :embed_code => embed_code, :title => title) }
|
11
|
+
let(:channel_sets) do
|
12
|
+
channel_sets = []
|
13
|
+
5.times { channel_sets << Factory.build(:channel_set) }
|
14
|
+
channel_sets << channel_set
|
15
|
+
channel_sets
|
12
16
|
end
|
13
17
|
|
14
|
-
context 'retreiving
|
18
|
+
context 'retreiving channelsets' do
|
15
19
|
|
16
|
-
|
20
|
+
before do
|
21
|
+
pause_vcr "query/channel_sets", vcr_erb
|
22
|
+
end
|
23
|
+
after { play_vcr }
|
17
24
|
|
18
|
-
|
19
|
-
|
20
|
-
|
25
|
+
describe '.all' do
|
26
|
+
it 'returns an array of ChannelSet objects' do
|
27
|
+
Tangerine::ChannelSet.all.map(&:embed_code).should == channel_sets.map(&:embed_code)
|
21
28
|
end
|
29
|
+
end
|
22
30
|
|
23
|
-
|
31
|
+
describe '.find' do
|
32
|
+
|
33
|
+
subject { Tangerine::ChannelSet.find(embed_code) }
|
24
34
|
# it { should be_functionally_equivalent_to(channel_set) }
|
25
35
|
its(:embed_code) { should == embed_code }
|
26
36
|
its(:title) { should == title }
|
@@ -37,7 +47,7 @@ describe Tangerine::ChannelSet do
|
|
37
47
|
|
38
48
|
before do
|
39
49
|
Tangerine::ChannelSet.stub(:find).with(embed_code).and_return(channel_set)
|
40
|
-
pause_vcr "
|
50
|
+
pause_vcr "channel_sets/show", vcr_erb
|
41
51
|
end
|
42
52
|
after { play_vcr }
|
43
53
|
subject { Tangerine::ChannelSet.find(embed_code) }
|
@@ -0,0 +1,47 @@
|
|
1
|
+
require File.expand_path(File.dirname(__FILE__) + '/../spec_helper')
|
2
|
+
|
3
|
+
describe Tangerine::Channel do
|
4
|
+
authenticate!
|
5
|
+
|
6
|
+
context 'retrieving videos associated with a channel' do
|
7
|
+
|
8
|
+
describe '#videos' do
|
9
|
+
let(:channel_set) do
|
10
|
+
Factory.build(:channel_set)
|
11
|
+
end
|
12
|
+
|
13
|
+
let(:channel) do
|
14
|
+
Factory.build(:channel, :embed_code => '9haTdiMjoVHPey7H15JCroS9tJ25Xzw2')
|
15
|
+
end
|
16
|
+
|
17
|
+
let(:videos) do
|
18
|
+
[
|
19
|
+
Factory.build(:video, :embed_code => embed_codes.first, :title => title),
|
20
|
+
Factory.build(:video, :embed_code => embed_codes[1])
|
21
|
+
]
|
22
|
+
end
|
23
|
+
|
24
|
+
let(:embed_codes) { ['I3MHB2MTqP5zvA8dYvzbvGlPJdg7DxRK','Z3Y3l3MTqHOLU6LMeTNbP2O91Oq5ADxm'] }
|
25
|
+
let(:title) { 'Awesomest Skiiing video' }
|
26
|
+
let(:vcr_erb) { {:title => title} }
|
27
|
+
|
28
|
+
before do
|
29
|
+
Tangerine::Video.stub(:where).with(:embed_code => embed_codes).and_return(videos)
|
30
|
+
channel_set.stub(:channels).and_return([channel])
|
31
|
+
pause_vcr "channels/list", vcr_erb
|
32
|
+
end
|
33
|
+
after { play_vcr }
|
34
|
+
subject { channel }
|
35
|
+
|
36
|
+
it 'returns a list of videos belonging to the channel' do
|
37
|
+
subject.videos.first.title.should == title
|
38
|
+
end
|
39
|
+
end
|
40
|
+
end
|
41
|
+
|
42
|
+
end
|
43
|
+
|
44
|
+
# channel_set = Tangerine::ChannelSet.find(blah)
|
45
|
+
# first_channel = channel_set.channels.first
|
46
|
+
# videos = first_channel.videos
|
47
|
+
|
@@ -0,0 +1,23 @@
|
|
1
|
+
require File.expand_path(File.dirname(__FILE__) + '/../spec_helper')
|
2
|
+
|
3
|
+
describe Tangerine::Player do
|
4
|
+
authenticate!
|
5
|
+
|
6
|
+
context 'delivering js path for a video' do
|
7
|
+
|
8
|
+
describe '#render' do
|
9
|
+
|
10
|
+
context 'when given only an embed code, width & height' do
|
11
|
+
|
12
|
+
let(:embed_code) { 'test-embed-code' }
|
13
|
+
let(:width) { '1000000000' }
|
14
|
+
let(:height) { '1' }
|
15
|
+
subject { Tangerine::Player.new(:embed_code => embed_code, :width => width, :height => height) }
|
16
|
+
its(:render) { should == "http://player.ooyala.com/player.js?width=#{width}&height=#{height}&embedCode=#{embed_code}" }
|
17
|
+
|
18
|
+
end
|
19
|
+
end
|
20
|
+
|
21
|
+
end
|
22
|
+
|
23
|
+
end
|
@@ -5,6 +5,16 @@ describe Tangerine::Video do
|
|
5
5
|
|
6
6
|
context 'class methods' do
|
7
7
|
subject { Tangerine::Video }
|
8
|
+
let(:embed_codes) { ['I3MHB2MTqP5zvA8dYvzbvGlPJdg7DxRK','Z3Y3l3MTqHOLU6LMeTNbP2O91Oq5ADxm'] }
|
9
|
+
|
10
|
+
let(:title1) { 'snowboarding' }
|
11
|
+
let(:title2) { 'batmitten' }
|
12
|
+
let(:vcr_erb) { {:title1 => title1, :title2 => title2} }
|
13
|
+
before do
|
14
|
+
pause_vcr "query/embed_code", vcr_erb
|
15
|
+
end
|
16
|
+
after { play_vcr }
|
17
|
+
|
8
18
|
|
9
19
|
describe '.all' do
|
10
20
|
|
@@ -18,6 +28,51 @@ describe Tangerine::Video do
|
|
18
28
|
end
|
19
29
|
|
20
30
|
end
|
31
|
+
|
32
|
+
describe '.where' do
|
33
|
+
|
34
|
+
subject { Tangerine::Video }
|
35
|
+
|
36
|
+
it 'returns the appropriate videos' do
|
37
|
+
videos = subject.where(:embed_code => embed_codes)
|
38
|
+
videos.length.should == 2
|
39
|
+
videos.first.title.should == title1
|
40
|
+
videos[1].title.should == title2
|
41
|
+
end
|
42
|
+
end
|
43
|
+
|
44
|
+
describe '.new' do
|
45
|
+
|
46
|
+
let(:options) do
|
47
|
+
{"flightStartTime"=>"1291860167",
|
48
|
+
"size"=>"146499024",
|
49
|
+
"title"=>"snowboarding",
|
50
|
+
"updatedAt"=>"1294868672",
|
51
|
+
"thumbnail"=>"http://cdn.videos.thenorthface.com/I3MHB2MTqP5zvA8dYvzbvGlPJdg7DxRK/M_-lZjo5g2zgfr_H5hMDoxOjA0O88asB",
|
52
|
+
"metadata"=> {
|
53
|
+
"metadataItem"=>[{"name"=>"subtitle", "value"=>"Athlete"},
|
54
|
+
{"name"=>"bigmeta", "value"=>"BigMeta!"}]},
|
55
|
+
"height"=>"720",
|
56
|
+
"embedCode"=>"I3MHB2MTqP5zvA8dYvzbvGlPJdg7DxRK",
|
57
|
+
"description"=>"TNF New Team Bio",
|
58
|
+
"length"=>"218968",
|
59
|
+
"status"=>"live",
|
60
|
+
"labels"=>{"label"=>"/YouTube"},
|
61
|
+
"stat"=>nil,
|
62
|
+
"uploadedAt"=>"1291860167",
|
63
|
+
"width"=>"1280"}
|
64
|
+
end
|
65
|
+
|
66
|
+
subject { Tangerine::Video.new(options) }
|
67
|
+
it 'sets metadata on Video' do
|
68
|
+
subject.metadata.should == {:subtitle => 'Athlete', :bigmeta => 'BigMeta!'}
|
69
|
+
end
|
70
|
+
|
71
|
+
it 'sets labels on Video' do
|
72
|
+
subject.labels.should == ['/YouTube']
|
73
|
+
end
|
74
|
+
|
75
|
+
end
|
21
76
|
end
|
22
77
|
|
23
78
|
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.
|
8
|
+
s.version = "0.5.0"
|
9
9
|
|
10
10
|
s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
|
11
|
-
s.authors = ["Anthony Navarre"]
|
12
|
-
s.date = %q{2011-03-
|
11
|
+
s.authors = ["Anthony Navarre", "Craig Williams"]
|
12
|
+
s.date = %q{2011-03-15}
|
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 = [
|
@@ -33,25 +33,29 @@ Gem::Specification.new do |s|
|
|
33
33
|
"lib/tangerine/backlot/base.rb",
|
34
34
|
"lib/tangerine/backlot/channel.rb",
|
35
35
|
"lib/tangerine/backlot/channel_set.rb",
|
36
|
+
"lib/tangerine/backlot/player.rb",
|
36
37
|
"lib/tangerine/backlot/video.rb",
|
37
38
|
"spec/spec_helper.rb",
|
38
39
|
"spec/support/authentication.rb",
|
39
40
|
"spec/support/functionally_equivalent.rb",
|
40
41
|
"spec/support/tangerine_girl.rb",
|
41
|
-
"spec/support/vcr_cassettes/
|
42
|
-
"spec/support/vcr_cassettes/
|
43
|
-
"spec/support/vcr_cassettes/
|
42
|
+
"spec/support/vcr_cassettes/channel_sets/show.yml",
|
43
|
+
"spec/support/vcr_cassettes/channels/list.yml",
|
44
|
+
"spec/support/vcr_cassettes/query/channel_sets.yml",
|
45
|
+
"spec/support/vcr_cassettes/query/embed_code.yml",
|
44
46
|
"spec/support/vcr_support.rb",
|
45
47
|
"spec/tangerine/backlot_spec.rb",
|
46
48
|
"spec/tangerine/base_spec.rb",
|
47
49
|
"spec/tangerine/channel_set_spec.rb",
|
50
|
+
"spec/tangerine/channel_spec.rb",
|
51
|
+
"spec/tangerine/player_spec.rb",
|
48
52
|
"spec/tangerine/video_spec.rb",
|
49
53
|
"tangerine.gemspec"
|
50
54
|
]
|
51
55
|
s.homepage = %q{http://github.com/factorylabs/tangerine}
|
52
56
|
s.licenses = ["MIT"]
|
53
57
|
s.require_paths = ["lib"]
|
54
|
-
s.rubygems_version = %q{1.
|
58
|
+
s.rubygems_version = %q{1.5.0}
|
55
59
|
s.summary = %q{Ooyala Backlot API Wrapper}
|
56
60
|
s.test_files = [
|
57
61
|
"spec/spec_helper.rb",
|
@@ -62,6 +66,8 @@ Gem::Specification.new do |s|
|
|
62
66
|
"spec/tangerine/backlot_spec.rb",
|
63
67
|
"spec/tangerine/base_spec.rb",
|
64
68
|
"spec/tangerine/channel_set_spec.rb",
|
69
|
+
"spec/tangerine/channel_spec.rb",
|
70
|
+
"spec/tangerine/player_spec.rb",
|
65
71
|
"spec/tangerine/video_spec.rb"
|
66
72
|
]
|
67
73
|
|
@@ -80,6 +86,7 @@ Gem::Specification.new do |s|
|
|
80
86
|
s.add_development_dependency(%q<vcr>, ["= 1.7.0"])
|
81
87
|
s.add_development_dependency(%q<fakeweb>, ["= 1.3.0"])
|
82
88
|
s.add_development_dependency(%q<timecop>, ["= 0.3.5"])
|
89
|
+
s.add_development_dependency(%q<factory_girl>, ["= 1.3.3"])
|
83
90
|
s.add_development_dependency(%q<ruby-debug>, ["= 0.10.4"])
|
84
91
|
s.add_runtime_dependency(%q<httparty>, [">= 0"])
|
85
92
|
else
|
@@ -94,6 +101,7 @@ Gem::Specification.new do |s|
|
|
94
101
|
s.add_dependency(%q<vcr>, ["= 1.7.0"])
|
95
102
|
s.add_dependency(%q<fakeweb>, ["= 1.3.0"])
|
96
103
|
s.add_dependency(%q<timecop>, ["= 0.3.5"])
|
104
|
+
s.add_dependency(%q<factory_girl>, ["= 1.3.3"])
|
97
105
|
s.add_dependency(%q<ruby-debug>, ["= 0.10.4"])
|
98
106
|
s.add_dependency(%q<httparty>, [">= 0"])
|
99
107
|
end
|
@@ -109,6 +117,7 @@ Gem::Specification.new do |s|
|
|
109
117
|
s.add_dependency(%q<vcr>, ["= 1.7.0"])
|
110
118
|
s.add_dependency(%q<fakeweb>, ["= 1.3.0"])
|
111
119
|
s.add_dependency(%q<timecop>, ["= 0.3.5"])
|
120
|
+
s.add_dependency(%q<factory_girl>, ["= 1.3.3"])
|
112
121
|
s.add_dependency(%q<ruby-debug>, ["= 0.10.4"])
|
113
122
|
s.add_dependency(%q<httparty>, [">= 0"])
|
114
123
|
end
|
metadata
CHANGED
@@ -1,25 +1,27 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: tangerine
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
hash:
|
4
|
+
hash: 11
|
5
5
|
prerelease:
|
6
6
|
segments:
|
7
7
|
- 0
|
8
|
-
-
|
8
|
+
- 5
|
9
9
|
- 0
|
10
|
-
version: 0.
|
10
|
+
version: 0.5.0
|
11
11
|
platform: ruby
|
12
12
|
authors:
|
13
13
|
- Anthony Navarre
|
14
|
+
- Craig Williams
|
14
15
|
autorequire:
|
15
16
|
bindir: bin
|
16
17
|
cert_chain: []
|
17
18
|
|
18
|
-
date: 2011-03-
|
19
|
+
date: 2011-03-15 00:00:00 -06:00
|
19
20
|
default_executable:
|
20
21
|
dependencies:
|
21
22
|
- !ruby/object:Gem::Dependency
|
22
|
-
|
23
|
+
name: httparty
|
24
|
+
version_requirements: &id001 !ruby/object:Gem::Requirement
|
23
25
|
none: false
|
24
26
|
requirements:
|
25
27
|
- - "="
|
@@ -30,12 +32,12 @@ dependencies:
|
|
30
32
|
- 7
|
31
33
|
- 4
|
32
34
|
version: 0.7.4
|
33
|
-
version_requirements: *id001
|
34
|
-
name: httparty
|
35
35
|
prerelease: false
|
36
36
|
type: :runtime
|
37
|
+
requirement: *id001
|
37
38
|
- !ruby/object:Gem::Dependency
|
38
|
-
|
39
|
+
name: activesupport
|
40
|
+
version_requirements: &id002 !ruby/object:Gem::Requirement
|
39
41
|
none: false
|
40
42
|
requirements:
|
41
43
|
- - "="
|
@@ -46,12 +48,12 @@ dependencies:
|
|
46
48
|
- 0
|
47
49
|
- 5
|
48
50
|
version: 3.0.5
|
49
|
-
version_requirements: *id002
|
50
|
-
name: activesupport
|
51
51
|
prerelease: false
|
52
52
|
type: :runtime
|
53
|
+
requirement: *id002
|
53
54
|
- !ruby/object:Gem::Dependency
|
54
|
-
|
55
|
+
name: i18n
|
56
|
+
version_requirements: &id003 !ruby/object:Gem::Requirement
|
55
57
|
none: false
|
56
58
|
requirements:
|
57
59
|
- - "="
|
@@ -62,12 +64,12 @@ dependencies:
|
|
62
64
|
- 5
|
63
65
|
- 0
|
64
66
|
version: 0.5.0
|
65
|
-
version_requirements: *id003
|
66
|
-
name: i18n
|
67
67
|
prerelease: false
|
68
68
|
type: :runtime
|
69
|
+
requirement: *id003
|
69
70
|
- !ruby/object:Gem::Dependency
|
70
|
-
|
71
|
+
name: rspec
|
72
|
+
version_requirements: &id004 !ruby/object:Gem::Requirement
|
71
73
|
none: false
|
72
74
|
requirements:
|
73
75
|
- - ~>
|
@@ -78,12 +80,12 @@ dependencies:
|
|
78
80
|
- 3
|
79
81
|
- 0
|
80
82
|
version: 2.3.0
|
81
|
-
version_requirements: *id004
|
82
|
-
name: rspec
|
83
83
|
prerelease: false
|
84
84
|
type: :development
|
85
|
+
requirement: *id004
|
85
86
|
- !ruby/object:Gem::Dependency
|
86
|
-
|
87
|
+
name: yard
|
88
|
+
version_requirements: &id005 !ruby/object:Gem::Requirement
|
87
89
|
none: false
|
88
90
|
requirements:
|
89
91
|
- - ~>
|
@@ -94,12 +96,12 @@ dependencies:
|
|
94
96
|
- 6
|
95
97
|
- 0
|
96
98
|
version: 0.6.0
|
97
|
-
version_requirements: *id005
|
98
|
-
name: yard
|
99
99
|
prerelease: false
|
100
100
|
type: :development
|
101
|
+
requirement: *id005
|
101
102
|
- !ruby/object:Gem::Dependency
|
102
|
-
|
103
|
+
name: bundler
|
104
|
+
version_requirements: &id006 !ruby/object:Gem::Requirement
|
103
105
|
none: false
|
104
106
|
requirements:
|
105
107
|
- - ~>
|
@@ -110,12 +112,12 @@ dependencies:
|
|
110
112
|
- 0
|
111
113
|
- 0
|
112
114
|
version: 1.0.0
|
113
|
-
version_requirements: *id006
|
114
|
-
name: bundler
|
115
115
|
prerelease: false
|
116
116
|
type: :development
|
117
|
+
requirement: *id006
|
117
118
|
- !ruby/object:Gem::Dependency
|
118
|
-
|
119
|
+
name: jeweler
|
120
|
+
version_requirements: &id007 !ruby/object:Gem::Requirement
|
119
121
|
none: false
|
120
122
|
requirements:
|
121
123
|
- - ~>
|
@@ -126,12 +128,12 @@ dependencies:
|
|
126
128
|
- 5
|
127
129
|
- 2
|
128
130
|
version: 1.5.2
|
129
|
-
version_requirements: *id007
|
130
|
-
name: jeweler
|
131
131
|
prerelease: false
|
132
132
|
type: :development
|
133
|
+
requirement: *id007
|
133
134
|
- !ruby/object:Gem::Dependency
|
134
|
-
|
135
|
+
name: rcov
|
136
|
+
version_requirements: &id008 !ruby/object:Gem::Requirement
|
135
137
|
none: false
|
136
138
|
requirements:
|
137
139
|
- - ">="
|
@@ -140,12 +142,12 @@ dependencies:
|
|
140
142
|
segments:
|
141
143
|
- 0
|
142
144
|
version: "0"
|
143
|
-
version_requirements: *id008
|
144
|
-
name: rcov
|
145
145
|
prerelease: false
|
146
146
|
type: :development
|
147
|
+
requirement: *id008
|
147
148
|
- !ruby/object:Gem::Dependency
|
148
|
-
|
149
|
+
name: vcr
|
150
|
+
version_requirements: &id009 !ruby/object:Gem::Requirement
|
149
151
|
none: false
|
150
152
|
requirements:
|
151
153
|
- - "="
|
@@ -156,12 +158,12 @@ dependencies:
|
|
156
158
|
- 7
|
157
159
|
- 0
|
158
160
|
version: 1.7.0
|
159
|
-
version_requirements: *id009
|
160
|
-
name: vcr
|
161
161
|
prerelease: false
|
162
162
|
type: :development
|
163
|
+
requirement: *id009
|
163
164
|
- !ruby/object:Gem::Dependency
|
164
|
-
|
165
|
+
name: fakeweb
|
166
|
+
version_requirements: &id010 !ruby/object:Gem::Requirement
|
165
167
|
none: false
|
166
168
|
requirements:
|
167
169
|
- - "="
|
@@ -172,12 +174,12 @@ dependencies:
|
|
172
174
|
- 3
|
173
175
|
- 0
|
174
176
|
version: 1.3.0
|
175
|
-
version_requirements: *id010
|
176
|
-
name: fakeweb
|
177
177
|
prerelease: false
|
178
178
|
type: :development
|
179
|
+
requirement: *id010
|
179
180
|
- !ruby/object:Gem::Dependency
|
180
|
-
|
181
|
+
name: timecop
|
182
|
+
version_requirements: &id011 !ruby/object:Gem::Requirement
|
181
183
|
none: false
|
182
184
|
requirements:
|
183
185
|
- - "="
|
@@ -188,12 +190,28 @@ dependencies:
|
|
188
190
|
- 3
|
189
191
|
- 5
|
190
192
|
version: 0.3.5
|
191
|
-
version_requirements: *id011
|
192
|
-
name: timecop
|
193
193
|
prerelease: false
|
194
194
|
type: :development
|
195
|
+
requirement: *id011
|
196
|
+
- !ruby/object:Gem::Dependency
|
197
|
+
name: factory_girl
|
198
|
+
version_requirements: &id012 !ruby/object:Gem::Requirement
|
199
|
+
none: false
|
200
|
+
requirements:
|
201
|
+
- - "="
|
202
|
+
- !ruby/object:Gem::Version
|
203
|
+
hash: 29
|
204
|
+
segments:
|
205
|
+
- 1
|
206
|
+
- 3
|
207
|
+
- 3
|
208
|
+
version: 1.3.3
|
209
|
+
prerelease: false
|
210
|
+
type: :development
|
211
|
+
requirement: *id012
|
195
212
|
- !ruby/object:Gem::Dependency
|
196
|
-
|
213
|
+
name: ruby-debug
|
214
|
+
version_requirements: &id013 !ruby/object:Gem::Requirement
|
197
215
|
none: false
|
198
216
|
requirements:
|
199
217
|
- - "="
|
@@ -204,12 +222,12 @@ dependencies:
|
|
204
222
|
- 10
|
205
223
|
- 4
|
206
224
|
version: 0.10.4
|
207
|
-
version_requirements: *id012
|
208
|
-
name: ruby-debug
|
209
225
|
prerelease: false
|
210
226
|
type: :development
|
227
|
+
requirement: *id013
|
211
228
|
- !ruby/object:Gem::Dependency
|
212
|
-
|
229
|
+
name: httparty
|
230
|
+
version_requirements: &id014 !ruby/object:Gem::Requirement
|
213
231
|
none: false
|
214
232
|
requirements:
|
215
233
|
- - ">="
|
@@ -218,10 +236,9 @@ dependencies:
|
|
218
236
|
segments:
|
219
237
|
- 0
|
220
238
|
version: "0"
|
221
|
-
version_requirements: *id013
|
222
|
-
name: httparty
|
223
239
|
prerelease: false
|
224
240
|
type: :runtime
|
241
|
+
requirement: *id014
|
225
242
|
description: Ooyala Backlot API Wrapper. Read more about the Ooyala Backlot API at http://www.ooyala.com/support/docs/backlot_api
|
226
243
|
email: anthony.navarre@factorylabs.com
|
227
244
|
executables: []
|
@@ -248,18 +265,22 @@ files:
|
|
248
265
|
- lib/tangerine/backlot/base.rb
|
249
266
|
- lib/tangerine/backlot/channel.rb
|
250
267
|
- lib/tangerine/backlot/channel_set.rb
|
268
|
+
- lib/tangerine/backlot/player.rb
|
251
269
|
- lib/tangerine/backlot/video.rb
|
252
270
|
- spec/spec_helper.rb
|
253
271
|
- spec/support/authentication.rb
|
254
272
|
- spec/support/functionally_equivalent.rb
|
255
273
|
- spec/support/tangerine_girl.rb
|
256
|
-
- spec/support/vcr_cassettes/
|
257
|
-
- spec/support/vcr_cassettes/
|
258
|
-
- spec/support/vcr_cassettes/
|
274
|
+
- spec/support/vcr_cassettes/channel_sets/show.yml
|
275
|
+
- spec/support/vcr_cassettes/channels/list.yml
|
276
|
+
- spec/support/vcr_cassettes/query/channel_sets.yml
|
277
|
+
- spec/support/vcr_cassettes/query/embed_code.yml
|
259
278
|
- spec/support/vcr_support.rb
|
260
279
|
- spec/tangerine/backlot_spec.rb
|
261
280
|
- spec/tangerine/base_spec.rb
|
262
281
|
- spec/tangerine/channel_set_spec.rb
|
282
|
+
- spec/tangerine/channel_spec.rb
|
283
|
+
- spec/tangerine/player_spec.rb
|
263
284
|
- spec/tangerine/video_spec.rb
|
264
285
|
- tangerine.gemspec
|
265
286
|
has_rdoc: true
|
@@ -292,7 +313,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
292
313
|
requirements: []
|
293
314
|
|
294
315
|
rubyforge_project:
|
295
|
-
rubygems_version: 1.
|
316
|
+
rubygems_version: 1.5.0
|
296
317
|
signing_key:
|
297
318
|
specification_version: 3
|
298
319
|
summary: Ooyala Backlot API Wrapper
|
@@ -305,4 +326,6 @@ test_files:
|
|
305
326
|
- spec/tangerine/backlot_spec.rb
|
306
327
|
- spec/tangerine/base_spec.rb
|
307
328
|
- spec/tangerine/channel_set_spec.rb
|
329
|
+
- spec/tangerine/channel_spec.rb
|
330
|
+
- spec/tangerine/player_spec.rb
|
308
331
|
- spec/tangerine/video_spec.rb
|