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.
- data/VERSION.yml +2 -2
- data/lib/videojuicer.rb +1 -0
- data/lib/videojuicer/campaign.rb +1 -0
- data/lib/videojuicer/presentation.rb +1 -0
- data/lib/videojuicer/resource/taggable.rb +13 -0
- data/spec/campaign_spec.rb +1 -1
- data/spec/helpers/spec_helper.rb +1 -0
- data/spec/presentation_spec.rb +1 -0
- data/spec/shared/taggable_spec.rb +25 -0
- metadata +165 -24
- data/.gitignore +0 -6
data/VERSION.yml
CHANGED
data/lib/videojuicer.rb
CHANGED
@@ -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'
|
data/lib/videojuicer/campaign.rb
CHANGED
data/spec/campaign_spec.rb
CHANGED
data/spec/helpers/spec_helper.rb
CHANGED
@@ -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")
|
data/spec/presentation_spec.rb
CHANGED
@@ -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:
|
5
|
-
prerelease:
|
4
|
+
hash: 9
|
5
|
+
prerelease:
|
6
6
|
segments:
|
7
7
|
- 0
|
8
8
|
- 7
|
9
|
-
-
|
10
|
-
version: 0.7.
|
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-
|
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
|
-
|
39
|
-
|
176
|
+
requirement: *id010
|
177
|
+
prerelease: false
|
40
178
|
type: :runtime
|
179
|
+
name: json
|
41
180
|
- !ruby/object:Gem::Dependency
|
42
|
-
|
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
|
-
|
55
|
-
|
192
|
+
requirement: *id011
|
193
|
+
prerelease: false
|
56
194
|
type: :runtime
|
195
|
+
name: ruby-hmac
|
57
196
|
- !ruby/object:Gem::Dependency
|
58
|
-
|
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
|
-
|
71
|
-
|
208
|
+
requirement: *id012
|
209
|
+
prerelease: false
|
72
210
|
type: :runtime
|
211
|
+
name: mash
|
73
212
|
- !ruby/object:Gem::Dependency
|
74
|
-
|
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
|
-
|
87
|
-
|
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
|
-
|
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.
|
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
|