vj-sdk 0.7.4 → 0.7.5

Sign up to get free protection for your applications and to get access to all the features.
@@ -1,5 +1,5 @@
1
1
  ---
2
- :build:
3
2
  :major: 0
4
3
  :minor: 7
5
- :patch: 4
4
+ :patch: 5
5
+ :build:
@@ -22,6 +22,7 @@ require 'videojuicer/oauth/request_proxy'
22
22
  require 'videojuicer/oauth/proxy_factory'
23
23
  # Resource handling
24
24
  require 'videojuicer/resource/embeddable'
25
+ require 'videojuicer/resource/taggable'
25
26
  require 'videojuicer/resource/types'
26
27
  require 'videojuicer/resource/relationships/belongs_to'
27
28
  require 'videojuicer/resource/relationships/has'
@@ -1,6 +1,7 @@
1
1
  module Videojuicer
2
2
  class Campaign
3
3
  include Videojuicer::Resource
4
+ include Videojuicer::Resource::Taggable
4
5
  include Videojuicer::Exceptions
5
6
 
6
7
  property :name, String
@@ -2,6 +2,7 @@ module Videojuicer
2
2
  class Presentation
3
3
  include Videojuicer::Resource
4
4
  include Videojuicer::Resource::Embeddable
5
+ include Videojuicer::Resource::Taggable
5
6
  include Videojuicer::Exceptions
6
7
 
7
8
  property :title, String
@@ -0,0 +1,13 @@
1
+ module Videojuicer
2
+ module Resource
3
+ module Taggable
4
+ def tags
5
+ tag_list.to_s.split("\0")
6
+ end
7
+
8
+ def tags=(tags)
9
+ self.tag_list = tags.join("\0")
10
+ end
11
+ end
12
+ end
13
+ end
@@ -19,7 +19,7 @@ describe Videojuicer::Campaign do
19
19
  end
20
20
 
21
21
  it_should_behave_like "a RESTFUL resource model"
22
+ it_should_behave_like "a taggable"
22
23
  end
23
24
 
24
-
25
25
  end
@@ -20,6 +20,7 @@ require File.join(File.dirname(__FILE__), "..", "shared", "resource_spec")
20
20
  require File.join(File.dirname(__FILE__), "..", "shared", "embeddable_spec")
21
21
  require File.join(File.dirname(__FILE__), "..", "shared", "dependent_spec")
22
22
  require File.join(File.dirname(__FILE__), "..", "shared", "asset_spec")
23
+ require File.join(File.dirname(__FILE__), "..", "shared", "taggable_spec")
23
24
 
24
25
  # Load the fixture helper
25
26
  require File.join(File.dirname(__FILE__), "spec_fixtures")
@@ -19,6 +19,7 @@ describe Videojuicer::Presentation do
19
19
 
20
20
  it_should_behave_like "a RESTFUL resource model"
21
21
  it_should_behave_like "an embeddable"
22
+ it_should_behave_like "a taggable"
22
23
  end
23
24
 
24
25
  describe "fetching asset ids" do
@@ -0,0 +1,25 @@
1
+ shared_examples_for "a taggable" do
2
+
3
+ before(:each) do
4
+ @object = @klass.new
5
+ @tags = %w(a b,c d"f)
6
+ end
7
+
8
+ describe "tags" do
9
+ it "should be an empty array by default" do
10
+ @object.tags.should == []
11
+ end
12
+
13
+ it "should split incoming tag lists on nulls" do
14
+ @object.tag_list = @tags.join("\0")
15
+ @object.tags.should == @tags
16
+ end
17
+
18
+ it "should support assignment, serializing into a null-separated tag list" do
19
+ @object.tags = @tags
20
+ @object.tag_list.should == @tags.join("\0")
21
+ @object.tags.should == @tags
22
+ end
23
+ end
24
+
25
+ end
metadata CHANGED
@@ -1,13 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: vj-sdk
3
3
  version: !ruby/object:Gem::Version
4
- hash: 11
5
- prerelease: false
4
+ hash: 9
5
+ prerelease:
6
6
  segments:
7
7
  - 0
8
8
  - 7
9
- - 4
10
- version: 0.7.4
9
+ - 5
10
+ version: 0.7.5
11
11
  platform: ruby
12
12
  authors:
13
13
  - danski
@@ -20,12 +20,150 @@ autorequire:
20
20
  bindir: bin
21
21
  cert_chain: []
22
22
 
23
- date: 2011-01-20 00:00:00 +00:00
23
+ date: 2011-03-29 00:00:00 +01:00
24
24
  default_executable:
25
25
  dependencies:
26
26
  - !ruby/object:Gem::Dependency
27
- prerelease: false
28
27
  version_requirements: &id001 !ruby/object:Gem::Requirement
28
+ none: false
29
+ requirements:
30
+ - - "="
31
+ - !ruby/object:Gem::Version
32
+ hash: 961915996
33
+ segments:
34
+ - 1
35
+ - 1
36
+ - 0
37
+ - pre
38
+ version: 1.1.0.pre
39
+ requirement: *id001
40
+ prerelease: false
41
+ type: :runtime
42
+ name: merb-core
43
+ - !ruby/object:Gem::Dependency
44
+ version_requirements: &id002 !ruby/object:Gem::Requirement
45
+ none: false
46
+ requirements:
47
+ - - ">="
48
+ - !ruby/object:Gem::Version
49
+ hash: 7
50
+ segments:
51
+ - 1
52
+ - 4
53
+ - 0
54
+ version: 1.4.0
55
+ requirement: *id002
56
+ prerelease: false
57
+ type: :runtime
58
+ name: jeweler
59
+ - !ruby/object:Gem::Dependency
60
+ version_requirements: &id003 !ruby/object:Gem::Requirement
61
+ none: false
62
+ requirements:
63
+ - - ">="
64
+ - !ruby/object:Gem::Version
65
+ hash: 49
66
+ segments:
67
+ - 0
68
+ - 8
69
+ - 7
70
+ version: 0.8.7
71
+ requirement: *id003
72
+ prerelease: false
73
+ type: :runtime
74
+ name: rake
75
+ - !ruby/object:Gem::Dependency
76
+ version_requirements: &id004 !ruby/object:Gem::Requirement
77
+ none: false
78
+ requirements:
79
+ - - "="
80
+ - !ruby/object:Gem::Version
81
+ hash: 27
82
+ segments:
83
+ - 1
84
+ - 3
85
+ - 0
86
+ version: 1.3.0
87
+ requirement: *id004
88
+ prerelease: false
89
+ type: :runtime
90
+ name: rspec
91
+ - !ruby/object:Gem::Dependency
92
+ version_requirements: &id005 !ruby/object:Gem::Requirement
93
+ none: false
94
+ requirements:
95
+ - - ">="
96
+ - !ruby/object:Gem::Version
97
+ hash: 3
98
+ segments:
99
+ - 0
100
+ version: "0"
101
+ requirement: *id005
102
+ prerelease: false
103
+ type: :runtime
104
+ name: mash
105
+ - !ruby/object:Gem::Dependency
106
+ version_requirements: &id006 !ruby/object:Gem::Requirement
107
+ none: false
108
+ requirements:
109
+ - - ">="
110
+ - !ruby/object:Gem::Version
111
+ hash: 3
112
+ segments:
113
+ - 0
114
+ version: "0"
115
+ requirement: *id006
116
+ prerelease: false
117
+ type: :runtime
118
+ name: randexp
119
+ - !ruby/object:Gem::Dependency
120
+ version_requirements: &id007 !ruby/object:Gem::Requirement
121
+ none: false
122
+ requirements:
123
+ - - ">="
124
+ - !ruby/object:Gem::Version
125
+ hash: 3
126
+ segments:
127
+ - 0
128
+ version: "0"
129
+ requirement: *id007
130
+ prerelease: false
131
+ type: :runtime
132
+ name: ruby-hmac
133
+ - !ruby/object:Gem::Dependency
134
+ version_requirements: &id008 !ruby/object:Gem::Requirement
135
+ none: false
136
+ requirements:
137
+ - - "="
138
+ - !ruby/object:Gem::Version
139
+ hash: 15
140
+ segments:
141
+ - 2
142
+ - 0
143
+ - 0
144
+ version: 2.0.0
145
+ requirement: *id008
146
+ prerelease: false
147
+ type: :runtime
148
+ name: liquid
149
+ - !ruby/object:Gem::Dependency
150
+ version_requirements: &id009 !ruby/object:Gem::Requirement
151
+ none: false
152
+ requirements:
153
+ - - "="
154
+ - !ruby/object:Gem::Version
155
+ hash: 11
156
+ segments:
157
+ - 1
158
+ - 4
159
+ - 6
160
+ version: 1.4.6
161
+ requirement: *id009
162
+ prerelease: false
163
+ type: :runtime
164
+ name: json
165
+ - !ruby/object:Gem::Dependency
166
+ version_requirements: &id010 !ruby/object:Gem::Requirement
29
167
  none: false
30
168
  requirements:
31
169
  - - ">="
@@ -35,12 +173,12 @@ dependencies:
35
173
  - 1
36
174
  - 0
37
175
  version: "1.0"
38
- name: json
39
- requirement: *id001
176
+ requirement: *id010
177
+ prerelease: false
40
178
  type: :runtime
179
+ name: json
41
180
  - !ruby/object:Gem::Dependency
42
- prerelease: false
43
- version_requirements: &id002 !ruby/object:Gem::Requirement
181
+ version_requirements: &id011 !ruby/object:Gem::Requirement
44
182
  none: false
45
183
  requirements:
46
184
  - - ">="
@@ -51,12 +189,12 @@ dependencies:
51
189
  - 3
52
190
  - 2
53
191
  version: 0.3.2
54
- name: ruby-hmac
55
- requirement: *id002
192
+ requirement: *id011
193
+ prerelease: false
56
194
  type: :runtime
195
+ name: ruby-hmac
57
196
  - !ruby/object:Gem::Dependency
58
- prerelease: false
59
- version_requirements: &id003 !ruby/object:Gem::Requirement
197
+ version_requirements: &id012 !ruby/object:Gem::Requirement
60
198
  none: false
61
199
  requirements:
62
200
  - - ">="
@@ -67,12 +205,12 @@ dependencies:
67
205
  - 0
68
206
  - 3
69
207
  version: 0.0.3
70
- name: mash
71
- requirement: *id003
208
+ requirement: *id012
209
+ prerelease: false
72
210
  type: :runtime
211
+ name: mash
73
212
  - !ruby/object:Gem::Dependency
74
- prerelease: false
75
- version_requirements: &id004 !ruby/object:Gem::Requirement
213
+ version_requirements: &id013 !ruby/object:Gem::Requirement
76
214
  none: false
77
215
  requirements:
78
216
  - - "="
@@ -83,9 +221,10 @@ dependencies:
83
221
  - 0
84
222
  - 0
85
223
  version: 2.0.0
86
- name: liquid
87
- requirement: *id004
224
+ requirement: *id013
225
+ prerelease: false
88
226
  type: :runtime
227
+ name: liquid
89
228
  description:
90
229
  email: dan@videojuicer.com
91
230
  executables: []
@@ -96,7 +235,6 @@ extra_rdoc_files:
96
235
  - LICENSE
97
236
  - README.markdown
98
237
  files:
99
- - .gitignore
100
238
  - Gemfile
101
239
  - LICENSE
102
240
  - README.markdown
@@ -135,6 +273,7 @@ files:
135
273
  - lib/videojuicer/resource/property_registry.rb
136
274
  - lib/videojuicer/resource/relationships/belongs_to.rb
137
275
  - lib/videojuicer/resource/relationships/has.rb
276
+ - lib/videojuicer/resource/taggable.rb
138
277
  - lib/videojuicer/resource/types.rb
139
278
  - lib/videojuicer/seed.rb
140
279
  - lib/videojuicer/session.rb
@@ -180,6 +319,7 @@ files:
180
319
  - spec/shared/embeddable_spec.rb
181
320
  - spec/shared/model_spec.rb
182
321
  - spec/shared/resource_spec.rb
322
+ - spec/shared/taggable_spec.rb
183
323
  - spec/spec.opts
184
324
  - spec/user_spec.rb
185
325
  - spec/videojuicer_spec.rb
@@ -189,8 +329,8 @@ homepage: http://github.com/videojuicer/vj-sdk
189
329
  licenses: []
190
330
 
191
331
  post_install_message:
192
- rdoc_options:
193
- - --charset=UTF-8
332
+ rdoc_options: []
333
+
194
334
  require_paths:
195
335
  - lib
196
336
  required_ruby_version: !ruby/object:Gem::Requirement
@@ -214,7 +354,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
214
354
  requirements: []
215
355
 
216
356
  rubyforge_project:
217
- rubygems_version: 1.3.7
357
+ rubygems_version: 1.5.2
218
358
  signing_key:
219
359
  specification_version: 3
220
360
  summary: Videojuicer core-sdk
@@ -250,5 +390,6 @@ test_files:
250
390
  - spec/shared/embeddable_spec.rb
251
391
  - spec/shared/model_spec.rb
252
392
  - spec/shared/resource_spec.rb
393
+ - spec/shared/taggable_spec.rb
253
394
  - spec/user_spec.rb
254
395
  - spec/videojuicer_spec.rb
data/.gitignore DELETED
@@ -1,6 +0,0 @@
1
- log/*
2
- core-fixtures.yml
3
- pkg/*
4
- .DS_Store
5
- *.tmproj
6
- .bundle