tangerine 0.5.7 → 0.6.0

Sign up to get free protection for your applications and to get access to all the features.
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.5.7
1
+ 0.6.0
data/lib/tangerine.rb CHANGED
@@ -1,5 +1,6 @@
1
1
  require 'json'
2
2
  require 'active_support/inflector'
3
+ require 'active_support/hash_with_indifferent_access'
3
4
  require 'tangerine/backlot'
4
5
  require 'tangerine/backlot/base'
5
6
  require 'tangerine/backlot/channel'
@@ -95,7 +95,8 @@ class Tangerine::Video < Tangerine::Base
95
95
  meta_data = @options['metadata']['metadataItem']
96
96
  items = Tangerine::Base.prepare_items(meta_data)
97
97
  items.each do |meta_item|
98
- self.metadata[meta_item['name'].to_sym] = meta_item['value']
98
+ meta_key = meta_item['name'].downcase.gsub(' ', '_').to_sym
99
+ self.metadata[meta_key] = meta_item['value']
99
100
  end
100
101
  end
101
102
  end
@@ -18,13 +18,11 @@ describe Tangerine::Video do
18
18
 
19
19
  describe '.all' do
20
20
 
21
- let(:mock_response) { mock }
22
21
  let(:params) { {'contentType' => 'Video'} }
23
- subject { Tangerine::Video.all }
24
- before { Tangerine.should_receive(:query).with(params).and_return(mock_response) }
25
22
 
26
23
  it 'returns the response of the query' do
27
- subject.should == mock_response
24
+ Tangerine.should_receive(:query).with(params).and_return( stub.as_null_object )
25
+ Tangerine::Video.all
28
26
  end
29
27
 
30
28
  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.7"
8
+ s.version = "0.6.0"
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-04-19}
12
+ s.date = %q{2011-04-29}
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 = [
@@ -55,7 +55,7 @@ Gem::Specification.new do |s|
55
55
  s.homepage = %q{http://github.com/factorylabs/tangerine}
56
56
  s.licenses = ["MIT"]
57
57
  s.require_paths = ["lib"]
58
- s.rubygems_version = %q{1.5.0}
58
+ s.rubygems_version = %q{1.4.2}
59
59
  s.summary = %q{Ooyala Backlot API Wrapper}
60
60
  s.test_files = [
61
61
  "spec/spec_helper.rb",
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: 5
4
+ hash: 7
5
5
  prerelease:
6
6
  segments:
7
7
  - 0
8
- - 5
9
- - 7
10
- version: 0.5.7
8
+ - 6
9
+ - 0
10
+ version: 0.6.0
11
11
  platform: ruby
12
12
  authors:
13
13
  - Anthony Navarre
@@ -16,11 +16,11 @@ autorequire:
16
16
  bindir: bin
17
17
  cert_chain: []
18
18
 
19
- date: 2011-04-19 00:00:00 -06:00
19
+ date: 2011-04-29 00:00:00 -06:00
20
20
  default_executable:
21
21
  dependencies:
22
22
  - !ruby/object:Gem::Dependency
23
- name: httparty
23
+ type: :runtime
24
24
  version_requirements: &id001 !ruby/object:Gem::Requirement
25
25
  none: false
26
26
  requirements:
@@ -32,11 +32,11 @@ dependencies:
32
32
  - 7
33
33
  - 4
34
34
  version: 0.7.4
35
- prerelease: false
36
- type: :runtime
37
35
  requirement: *id001
36
+ prerelease: false
37
+ name: httparty
38
38
  - !ruby/object:Gem::Dependency
39
- name: activesupport
39
+ type: :runtime
40
40
  version_requirements: &id002 !ruby/object:Gem::Requirement
41
41
  none: false
42
42
  requirements:
@@ -48,11 +48,11 @@ dependencies:
48
48
  - 0
49
49
  - 5
50
50
  version: 3.0.5
51
- prerelease: false
52
- type: :runtime
53
51
  requirement: *id002
52
+ prerelease: false
53
+ name: activesupport
54
54
  - !ruby/object:Gem::Dependency
55
- name: json
55
+ type: :runtime
56
56
  version_requirements: &id003 !ruby/object:Gem::Requirement
57
57
  none: false
58
58
  requirements:
@@ -64,11 +64,11 @@ dependencies:
64
64
  - 4
65
65
  - 6
66
66
  version: 1.4.6
67
- prerelease: false
68
- type: :runtime
69
67
  requirement: *id003
68
+ prerelease: false
69
+ name: json
70
70
  - !ruby/object:Gem::Dependency
71
- name: i18n
71
+ type: :runtime
72
72
  version_requirements: &id004 !ruby/object:Gem::Requirement
73
73
  none: false
74
74
  requirements:
@@ -80,11 +80,11 @@ dependencies:
80
80
  - 5
81
81
  - 0
82
82
  version: 0.5.0
83
- prerelease: false
84
- type: :runtime
85
83
  requirement: *id004
84
+ prerelease: false
85
+ name: i18n
86
86
  - !ruby/object:Gem::Dependency
87
- name: rspec
87
+ type: :development
88
88
  version_requirements: &id005 !ruby/object:Gem::Requirement
89
89
  none: false
90
90
  requirements:
@@ -96,11 +96,11 @@ dependencies:
96
96
  - 3
97
97
  - 0
98
98
  version: 2.3.0
99
- prerelease: false
100
- type: :development
101
99
  requirement: *id005
100
+ prerelease: false
101
+ name: rspec
102
102
  - !ruby/object:Gem::Dependency
103
- name: yard
103
+ type: :development
104
104
  version_requirements: &id006 !ruby/object:Gem::Requirement
105
105
  none: false
106
106
  requirements:
@@ -112,11 +112,11 @@ dependencies:
112
112
  - 6
113
113
  - 0
114
114
  version: 0.6.0
115
- prerelease: false
116
- type: :development
117
115
  requirement: *id006
116
+ prerelease: false
117
+ name: yard
118
118
  - !ruby/object:Gem::Dependency
119
- name: bundler
119
+ type: :development
120
120
  version_requirements: &id007 !ruby/object:Gem::Requirement
121
121
  none: false
122
122
  requirements:
@@ -128,11 +128,11 @@ dependencies:
128
128
  - 0
129
129
  - 0
130
130
  version: 1.0.0
131
- prerelease: false
132
- type: :development
133
131
  requirement: *id007
132
+ prerelease: false
133
+ name: bundler
134
134
  - !ruby/object:Gem::Dependency
135
- name: jeweler
135
+ type: :development
136
136
  version_requirements: &id008 !ruby/object:Gem::Requirement
137
137
  none: false
138
138
  requirements:
@@ -144,11 +144,11 @@ dependencies:
144
144
  - 5
145
145
  - 2
146
146
  version: 1.5.2
147
- prerelease: false
148
- type: :development
149
147
  requirement: *id008
148
+ prerelease: false
149
+ name: jeweler
150
150
  - !ruby/object:Gem::Dependency
151
- name: rcov
151
+ type: :development
152
152
  version_requirements: &id009 !ruby/object:Gem::Requirement
153
153
  none: false
154
154
  requirements:
@@ -158,11 +158,11 @@ dependencies:
158
158
  segments:
159
159
  - 0
160
160
  version: "0"
161
- prerelease: false
162
- type: :development
163
161
  requirement: *id009
162
+ prerelease: false
163
+ name: rcov
164
164
  - !ruby/object:Gem::Dependency
165
- name: vcr
165
+ type: :development
166
166
  version_requirements: &id010 !ruby/object:Gem::Requirement
167
167
  none: false
168
168
  requirements:
@@ -174,11 +174,11 @@ dependencies:
174
174
  - 7
175
175
  - 0
176
176
  version: 1.7.0
177
- prerelease: false
178
- type: :development
179
177
  requirement: *id010
178
+ prerelease: false
179
+ name: vcr
180
180
  - !ruby/object:Gem::Dependency
181
- name: fakeweb
181
+ type: :development
182
182
  version_requirements: &id011 !ruby/object:Gem::Requirement
183
183
  none: false
184
184
  requirements:
@@ -190,11 +190,11 @@ dependencies:
190
190
  - 3
191
191
  - 0
192
192
  version: 1.3.0
193
- prerelease: false
194
- type: :development
195
193
  requirement: *id011
194
+ prerelease: false
195
+ name: fakeweb
196
196
  - !ruby/object:Gem::Dependency
197
- name: timecop
197
+ type: :development
198
198
  version_requirements: &id012 !ruby/object:Gem::Requirement
199
199
  none: false
200
200
  requirements:
@@ -206,11 +206,11 @@ dependencies:
206
206
  - 3
207
207
  - 5
208
208
  version: 0.3.5
209
- prerelease: false
210
- type: :development
211
209
  requirement: *id012
210
+ prerelease: false
211
+ name: timecop
212
212
  - !ruby/object:Gem::Dependency
213
- name: factory_girl
213
+ type: :development
214
214
  version_requirements: &id013 !ruby/object:Gem::Requirement
215
215
  none: false
216
216
  requirements:
@@ -222,11 +222,11 @@ dependencies:
222
222
  - 3
223
223
  - 3
224
224
  version: 1.3.3
225
- prerelease: false
226
- type: :development
227
225
  requirement: *id013
226
+ prerelease: false
227
+ name: factory_girl
228
228
  - !ruby/object:Gem::Dependency
229
- name: ruby-debug
229
+ type: :development
230
230
  version_requirements: &id014 !ruby/object:Gem::Requirement
231
231
  none: false
232
232
  requirements:
@@ -238,11 +238,11 @@ dependencies:
238
238
  - 10
239
239
  - 4
240
240
  version: 0.10.4
241
- prerelease: false
242
- type: :development
243
241
  requirement: *id014
242
+ prerelease: false
243
+ name: ruby-debug
244
244
  - !ruby/object:Gem::Dependency
245
- name: httparty
245
+ type: :runtime
246
246
  version_requirements: &id015 !ruby/object:Gem::Requirement
247
247
  none: false
248
248
  requirements:
@@ -252,11 +252,11 @@ dependencies:
252
252
  segments:
253
253
  - 0
254
254
  version: "0"
255
- prerelease: false
256
- type: :runtime
257
255
  requirement: *id015
256
+ prerelease: false
257
+ name: httparty
258
258
  - !ruby/object:Gem::Dependency
259
- name: activesupport
259
+ type: :runtime
260
260
  version_requirements: &id016 !ruby/object:Gem::Requirement
261
261
  none: false
262
262
  requirements:
@@ -266,11 +266,11 @@ dependencies:
266
266
  segments:
267
267
  - 0
268
268
  version: "0"
269
- prerelease: false
270
- type: :runtime
271
269
  requirement: *id016
270
+ prerelease: false
271
+ name: activesupport
272
272
  - !ruby/object:Gem::Dependency
273
- name: json
273
+ type: :runtime
274
274
  version_requirements: &id017 !ruby/object:Gem::Requirement
275
275
  none: false
276
276
  requirements:
@@ -282,9 +282,9 @@ dependencies:
282
282
  - 4
283
283
  - 6
284
284
  version: 1.4.6
285
- prerelease: false
286
- type: :runtime
287
285
  requirement: *id017
286
+ prerelease: false
287
+ name: json
288
288
  description: Ooyala Backlot API Wrapper. Read more about the Ooyala Backlot API at http://www.ooyala.com/support/docs/backlot_api
289
289
  email: anthony.navarre@factorylabs.com
290
290
  executables: []
@@ -359,7 +359,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
359
359
  requirements: []
360
360
 
361
361
  rubyforge_project:
362
- rubygems_version: 1.5.0
362
+ rubygems_version: 1.4.2
363
363
  signing_key:
364
364
  specification_version: 3
365
365
  summary: Ooyala Backlot API Wrapper