chili_videos 0.1.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (66) hide show
  1. data.tar.gz.sig +1 -0
  2. data/.autotest +5 -0
  3. data/Gemfile +13 -0
  4. data/Gemfile.lock +33 -0
  5. data/History.txt +4 -0
  6. data/LICENSE +20 -0
  7. data/Manifest.txt +63 -0
  8. data/README.md +169 -0
  9. data/Rakefile +45 -0
  10. data/app/controllers/videos_controller.rb +72 -0
  11. data/app/helpers/videos_helper.rb +34 -0
  12. data/app/models/assembly.rb +62 -0
  13. data/app/models/assembly_observer.rb +6 -0
  14. data/app/models/assembly_processor.rb +16 -0
  15. data/app/models/video.rb +24 -0
  16. data/app/views/settings/_settings.html.erb +13 -0
  17. data/app/views/videos/edit.html.erb +32 -0
  18. data/app/views/videos/index.html.erb +37 -0
  19. data/app/views/videos/new.html.erb +41 -0
  20. data/app/views/videos/plugin_not_configured.html.erb +6 -0
  21. data/app/views/videos/show.html.erb +40 -0
  22. data/app/views/videos/upload_complete.html.erb +7 -0
  23. data/assets/player.swf +0 -0
  24. data/assets/readme.html +84 -0
  25. data/assets/stylesheets/forms.css +7 -0
  26. data/assets/stylesheets/videos.css +76 -0
  27. data/assets/swfobject.js +8 -0
  28. data/assets/yt.swf +0 -0
  29. data/autotest/discover.rb +4 -0
  30. data/bin/delayed_job +23 -0
  31. data/config/locales/en.yml +15 -0
  32. data/config/routes.rb +3 -0
  33. data/db/migrate/20110301025054_create_videos.rb +15 -0
  34. data/db/migrate/20110309060901_create_assemblies.rb +14 -0
  35. data/db/migrate/20110314022354_create_delayed_jobs.rb +21 -0
  36. data/db/migrate/20110402043115_create_slugs.rb +18 -0
  37. data/db/migrate/20110402053931_add_slug_cache_to_videos.rb +11 -0
  38. data/init.rb +63 -0
  39. data/lang/en.yml +16 -0
  40. data/lib/chili_videos.rb +18 -0
  41. data/lib/chili_videos/config.rb +40 -0
  42. data/lib/chili_videos/error.rb +5 -0
  43. data/lib/tasks/chili_videos_tasks.rb +112 -0
  44. data/lib/tasks/contributor_tasks.rb +64 -0
  45. data/lib/tasks/delayed_job.rake +6 -0
  46. data/lib/tasks/friendly_id.rake +19 -0
  47. data/lib/video_project_patch.rb +10 -0
  48. data/lib/video_user_patch.rb +10 -0
  49. data/lib/video_version_patch.rb +9 -0
  50. data/rails/delayed_job +25 -0
  51. data/rails/init.rb +1 -0
  52. data/test/fixtures/incomplete_assembly.json +9 -0
  53. data/test/fixtures/single_video_processed_assembly.json +9 -0
  54. data/test/fixtures/standard_transloadit_response.json +6 -0
  55. data/test/functional/videos_controller_test.rb +232 -0
  56. data/test/integration/project_video_list_test.rb +104 -0
  57. data/test/integration/project_video_uploading_test.rb +56 -0
  58. data/test/integration/viewing_project_video_test.rb +74 -0
  59. data/test/test_helper.rb +77 -0
  60. data/test/unit/assembly_processor_test.rb +57 -0
  61. data/test/unit/assembly_test.rb +95 -0
  62. data/test/unit/chili_video_plugin/config_test.rb +49 -0
  63. data/test/unit/chili_video_plugin_test.rb +30 -0
  64. data/test/unit/video_test.rb +26 -0
  65. metadata +279 -0
  66. metadata.gz.sig +0 -0
metadata ADDED
@@ -0,0 +1,279 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: chili_videos
3
+ version: !ruby/object:Gem::Version
4
+ hash: 27
5
+ prerelease: false
6
+ segments:
7
+ - 0
8
+ - 1
9
+ - 0
10
+ version: 0.1.0
11
+ platform: ruby
12
+ authors:
13
+ - Tom Kersten
14
+ autorequire:
15
+ bindir: bin
16
+ cert_chain:
17
+ - |
18
+ -----BEGIN CERTIFICATE-----
19
+ MIIDMDCCAhigAwIBAgIBADANBgkqhkiG9w0BAQUFADA+MQwwCgYDVQQDDAN0b20x
20
+ GTAXBgoJkiaJk/IsZAEZFgl3aGl0ZXNwdXIxEzARBgoJkiaJk/IsZAEZFgNjb20w
21
+ HhcNMTEwNDIyMDQzOTA5WhcNMTIwNDIxMDQzOTA5WjA+MQwwCgYDVQQDDAN0b20x
22
+ GTAXBgoJkiaJk/IsZAEZFgl3aGl0ZXNwdXIxEzARBgoJkiaJk/IsZAEZFgNjb20w
23
+ ggEiMA0GCSqGSIb3DQEBAQUAA4IBDwAwggEKAoIBAQDpxozDQgVN/oZljGlI9opm
24
+ CrhNVA/lsNiXZBUmjfQC5XRPYHzmluon2Zz4050ljODKX+b/tkz/WVZ6x7a+Lop2
25
+ yCLLWLcHNgB10j3j3k6bM0l3cfCdCvzevE7Zgpw3o/bzazST5x0pNzurasS1ouQk
26
+ x/2o9E6qqJRuB51khuZKnh+Ma52/I1KQaMJ4bW6NOgquFCEIum8MJJBJWEdGm4It
27
+ vhS/daRe/ADkYlgWl1Y1k7LxuH+1VCx7zMFMe1E0CMJzhGf7zuMS0w+dqwbL5m3N
28
+ MLE8vgxwTEOsOwGz4wD6zMUdBY6FGYwRk8LGjvlokn0pZ1jyWHWSg2bUv/1GC2i9
29
+ AgMBAAGjOTA3MAkGA1UdEwQCMAAwCwYDVR0PBAQDAgSwMB0GA1UdDgQWBBTN61Az
30
+ ykDYheRHtzsjwE7fiLhYmzANBgkqhkiG9w0BAQUFAAOCAQEALwoInWubJXJYVH2N
31
+ XnCMT4YlxNsQoYdDSxEagNOmZjK2eKtju0V9GjZAnyYB2q2LLilvbMyVtg/6AN0I
32
+ XhCjyYZRRCADyvFGV4aBVv7yjKFQrIyXy8JT1iXxHC1N2o1DJlZUltCYNozJBhsO
33
+ VNbnSqe8YYcezsuQ2/w9iavWXCf91QPwnrfHPZTrFPOveskJctm8HinF41fKwG5B
34
+ iUHy8qVWGBCpDFYz6Kz+JtigaICcm2D4/WGLsDVOmgJ+g4xoOiCe9ZEkda8K+l/F
35
+ yXWqInRlFIlTuwFTxj26jauBoskBPoz5bfkZFjaVRhyUnRnGka66lvcDOGfkRZWQ
36
+ NVADJA==
37
+ -----END CERTIFICATE-----
38
+
39
+ date: 2011-04-21 00:00:00 -05:00
40
+ default_executable:
41
+ dependencies:
42
+ - !ruby/object:Gem::Dependency
43
+ name: httparty
44
+ prerelease: false
45
+ requirement: &id001 !ruby/object:Gem::Requirement
46
+ none: false
47
+ requirements:
48
+ - - "="
49
+ - !ruby/object:Gem::Version
50
+ hash: 11
51
+ segments:
52
+ - 0
53
+ - 7
54
+ - 4
55
+ version: 0.7.4
56
+ type: :runtime
57
+ version_requirements: *id001
58
+ - !ruby/object:Gem::Dependency
59
+ name: daemon-spawn
60
+ prerelease: false
61
+ requirement: &id002 !ruby/object:Gem::Requirement
62
+ none: false
63
+ requirements:
64
+ - - "="
65
+ - !ruby/object:Gem::Version
66
+ hash: 11
67
+ segments:
68
+ - 0
69
+ - 4
70
+ - 2
71
+ version: 0.4.2
72
+ type: :runtime
73
+ version_requirements: *id002
74
+ - !ruby/object:Gem::Dependency
75
+ name: delayed_job
76
+ prerelease: false
77
+ requirement: &id003 !ruby/object:Gem::Requirement
78
+ none: false
79
+ requirements:
80
+ - - "="
81
+ - !ruby/object:Gem::Version
82
+ hash: 7
83
+ segments:
84
+ - 2
85
+ - 0
86
+ - 4
87
+ version: 2.0.4
88
+ type: :runtime
89
+ version_requirements: *id003
90
+ - !ruby/object:Gem::Dependency
91
+ name: friendly_id
92
+ prerelease: false
93
+ requirement: &id004 !ruby/object:Gem::Requirement
94
+ none: false
95
+ requirements:
96
+ - - "="
97
+ - !ruby/object:Gem::Version
98
+ hash: 105
99
+ segments:
100
+ - 3
101
+ - 2
102
+ - 1
103
+ - 1
104
+ version: 3.2.1.1
105
+ type: :runtime
106
+ version_requirements: *id004
107
+ - !ruby/object:Gem::Dependency
108
+ name: hashie
109
+ prerelease: false
110
+ requirement: &id005 !ruby/object:Gem::Requirement
111
+ none: false
112
+ requirements:
113
+ - - "="
114
+ - !ruby/object:Gem::Version
115
+ hash: 23
116
+ segments:
117
+ - 1
118
+ - 0
119
+ - 0
120
+ version: 1.0.0
121
+ type: :runtime
122
+ version_requirements: *id005
123
+ - !ruby/object:Gem::Dependency
124
+ name: fakeweb
125
+ prerelease: false
126
+ requirement: &id006 !ruby/object:Gem::Requirement
127
+ none: false
128
+ requirements:
129
+ - - "="
130
+ - !ruby/object:Gem::Version
131
+ hash: 27
132
+ segments:
133
+ - 1
134
+ - 3
135
+ - 0
136
+ version: 1.3.0
137
+ type: :development
138
+ version_requirements: *id006
139
+ - !ruby/object:Gem::Dependency
140
+ name: hoe
141
+ prerelease: false
142
+ requirement: &id007 !ruby/object:Gem::Requirement
143
+ none: false
144
+ requirements:
145
+ - - ">="
146
+ - !ruby/object:Gem::Version
147
+ hash: 47
148
+ segments:
149
+ - 2
150
+ - 8
151
+ - 0
152
+ version: 2.8.0
153
+ type: :development
154
+ version_requirements: *id007
155
+ description: |-
156
+ ChiliProject/Redmine plugin which integrates with [Transload.it](http://transload.it)
157
+ to offer a private "YouTube-like" setup to your project site.
158
+
159
+ Notable items to consider before installing:
160
+
161
+ 1. This plugin is distributed as a gem, but does
162
+ ship with migrations and asset files (stylesheets, etc). Therefore,
163
+ the installation procedure is not the standard process.
164
+ 1. The processing of "Assemblies" from the Transload.it service is
165
+ handled in the background (via `delayed_job`), so there is an
166
+ additional daemon process which you will have to monitor and/or
167
+ manage with your installation.
168
+ email:
169
+ - tom@whitespur.com
170
+ executables:
171
+ - delayed_job
172
+ extensions: []
173
+
174
+ extra_rdoc_files:
175
+ - History.txt
176
+ - Manifest.txt
177
+ - README.md
178
+ - LICENSE
179
+ files:
180
+ - .autotest
181
+ - Gemfile
182
+ - Gemfile.lock
183
+ - History.txt
184
+ - LICENSE
185
+ - Manifest.txt
186
+ - README.md
187
+ - Rakefile
188
+ - app/controllers/videos_controller.rb
189
+ - app/helpers/videos_helper.rb
190
+ - app/models/assembly.rb
191
+ - app/models/assembly_observer.rb
192
+ - app/models/assembly_processor.rb
193
+ - app/models/video.rb
194
+ - app/views/settings/_settings.html.erb
195
+ - app/views/videos/edit.html.erb
196
+ - app/views/videos/index.html.erb
197
+ - app/views/videos/new.html.erb
198
+ - app/views/videos/plugin_not_configured.html.erb
199
+ - app/views/videos/show.html.erb
200
+ - app/views/videos/upload_complete.html.erb
201
+ - assets/player.swf
202
+ - assets/readme.html
203
+ - assets/stylesheets/forms.css
204
+ - assets/stylesheets/videos.css
205
+ - assets/swfobject.js
206
+ - assets/yt.swf
207
+ - autotest/discover.rb
208
+ - bin/delayed_job
209
+ - config/locales/en.yml
210
+ - config/routes.rb
211
+ - db/migrate/20110301025054_create_videos.rb
212
+ - db/migrate/20110309060901_create_assemblies.rb
213
+ - db/migrate/20110314022354_create_delayed_jobs.rb
214
+ - db/migrate/20110402043115_create_slugs.rb
215
+ - db/migrate/20110402053931_add_slug_cache_to_videos.rb
216
+ - init.rb
217
+ - lang/en.yml
218
+ - lib/chili_videos.rb
219
+ - lib/chili_videos/config.rb
220
+ - lib/chili_videos/error.rb
221
+ - lib/tasks/chili_videos_tasks.rb
222
+ - lib/tasks/contributor_tasks.rb
223
+ - lib/tasks/delayed_job.rake
224
+ - lib/tasks/friendly_id.rake
225
+ - lib/video_project_patch.rb
226
+ - lib/video_user_patch.rb
227
+ - lib/video_version_patch.rb
228
+ - rails/delayed_job
229
+ - rails/init.rb
230
+ - test/fixtures/incomplete_assembly.json
231
+ - test/fixtures/single_video_processed_assembly.json
232
+ - test/fixtures/standard_transloadit_response.json
233
+ - test/functional/videos_controller_test.rb
234
+ - test/integration/project_video_list_test.rb
235
+ - test/integration/project_video_uploading_test.rb
236
+ - test/integration/viewing_project_video_test.rb
237
+ - test/test_helper.rb
238
+ - test/unit/assembly_processor_test.rb
239
+ - test/unit/assembly_test.rb
240
+ - test/unit/chili_video_plugin/config_test.rb
241
+ - test/unit/chili_video_plugin_test.rb
242
+ - test/unit/video_test.rb
243
+ has_rdoc: true
244
+ homepage: http://github.com/tomkersten/chili_videos
245
+ licenses: []
246
+
247
+ post_install_message:
248
+ rdoc_options:
249
+ - --main
250
+ - README.md
251
+ require_paths:
252
+ - lib
253
+ required_ruby_version: !ruby/object:Gem::Requirement
254
+ none: false
255
+ requirements:
256
+ - - ">="
257
+ - !ruby/object:Gem::Version
258
+ hash: 3
259
+ segments:
260
+ - 0
261
+ version: "0"
262
+ required_rubygems_version: !ruby/object:Gem::Requirement
263
+ none: false
264
+ requirements:
265
+ - - ">="
266
+ - !ruby/object:Gem::Version
267
+ hash: 3
268
+ segments:
269
+ - 0
270
+ version: "0"
271
+ requirements: []
272
+
273
+ rubyforge_project: chili_videos
274
+ rubygems_version: 1.3.7
275
+ signing_key:
276
+ specification_version: 3
277
+ summary: ChiliProject (/Redmine) plugin which adds self-hosted videos transcoded using the Transload.it service. The plugin a 'Video' tab to a project site which contains any associated videos.
278
+ test_files:
279
+ - test/test_helper.rb
Binary file