glebtv-rails-uploader 0.3.0 → 0.4.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (44) hide show
  1. checksums.yaml +4 -4
  2. data/README.md +46 -6
  3. data/app/assets/javascripts/uploader/application.js +0 -0
  4. data/app/assets/stylesheets/uploader/default.css +0 -0
  5. data/app/controllers/uploader/attachments_controller.rb +0 -0
  6. data/app/views/uploader/default/_container.html.erb +0 -0
  7. data/app/views/uploader/default/_download.html.erb +0 -0
  8. data/app/views/uploader/default/_sortable.html.erb +24 -0
  9. data/config/locales/en.yml +1 -0
  10. data/config/routes.rb +0 -0
  11. data/lib/file_size_validator.rb +2 -0
  12. data/lib/uploader.rb +8 -3
  13. data/lib/uploader/asset.rb +5 -1
  14. data/lib/uploader/fileuploads.rb +7 -13
  15. data/lib/uploader/helpers/field_tag.rb +0 -0
  16. data/lib/uploader/hooks/formtastic.rb +0 -0
  17. data/lib/uploader/hooks/simple_form.rb +0 -0
  18. data/lib/uploader/version.rb +1 -1
  19. data/spec/dummy/app/models/article.rb +7 -3
  20. data/spec/dummy/app/models/asset.rb +19 -26
  21. data/spec/dummy/app/models/picture.rb +4 -4
  22. data/spec/dummy/config/application.rb +7 -5
  23. data/spec/dummy/config/environments/development.rb +5 -1
  24. data/spec/dummy/config/environments/production.rb +4 -0
  25. data/spec/dummy/config/environments/test.rb +6 -2
  26. data/spec/dummy/config/mongoid.yml +12 -0
  27. data/spec/dummy/log/test.log +134 -0
  28. data/spec/dummy/public/uploads/picture/data/5260e2af61732e16d5010000/rails.png +0 -0
  29. data/spec/dummy/public/uploads/picture/data/5260e2af61732e16d5010000/thumb_rails.png +0 -0
  30. data/spec/dummy/public/uploads/picture/data/5260e2af61732e16d5060000/rails.png +0 -0
  31. data/spec/dummy/public/uploads/picture/data/5260e2af61732e16d5060000/thumb_rails.png +0 -0
  32. data/spec/dummy/public/uploads/picture/data/5260e2e261732e1735010000/rails.png +0 -0
  33. data/spec/dummy/public/uploads/picture/data/5260e2e261732e1735010000/thumb_rails.png +0 -0
  34. data/spec/dummy/public/uploads/picture/data/5260e2e261732e1735060000/rails.png +0 -0
  35. data/spec/dummy/public/uploads/picture/data/5260e2e261732e1735060000/thumb_rails.png +0 -0
  36. data/spec/factories/assets.rb +0 -1
  37. data/spec/fileuploads_spec.rb +2 -2
  38. data/spec/mongoid.yml +17 -0
  39. data/spec/mongoid_spec.rb +42 -0
  40. data/spec/requests/attachments_controller_spec.rb +1 -1
  41. data/spec/spec_helper.rb +4 -1
  42. data/vendor/assets/javascripts/uploader/jquery.fileupload-fp.js +223 -0
  43. data/vendor/assets/javascripts/uploader/jquery.ui.widget.js +530 -0
  44. metadata +42 -23
metadata CHANGED
@@ -1,31 +1,37 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: glebtv-rails-uploader
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.3.0
4
+ version: 0.4.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - GlebTv
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2013-10-07 00:00:00.000000000 Z
11
+ date: 2013-10-18 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
- name: sqlite3
14
+ name: mongoid
15
15
  requirement: !ruby/object:Gem::Requirement
16
16
  requirements:
17
17
  - - '>='
18
18
  - !ruby/object:Gem::Version
19
- version: '0'
20
- type: :development
19
+ version: '4.0'
20
+ - - <
21
+ - !ruby/object:Gem::Version
22
+ version: '5.0'
23
+ type: :runtime
21
24
  prerelease: false
22
25
  version_requirements: !ruby/object:Gem::Requirement
23
26
  requirements:
24
27
  - - '>='
25
28
  - !ruby/object:Gem::Version
26
- version: '0'
29
+ version: '4.0'
30
+ - - <
31
+ - !ruby/object:Gem::Version
32
+ version: '5.0'
27
33
  - !ruby/object:Gem::Dependency
28
- name: carrierwave
34
+ name: glebtv-carrierwave-mongoid
29
35
  requirement: !ruby/object:Gem::Requirement
30
36
  requirements:
31
37
  - - '>='
@@ -42,14 +48,14 @@ dependencies:
42
48
  name: rails
43
49
  requirement: !ruby/object:Gem::Requirement
44
50
  requirements:
45
- - - '='
51
+ - - '>='
46
52
  - !ruby/object:Gem::Version
47
53
  version: 3.2.13
48
54
  type: :development
49
55
  prerelease: false
50
56
  version_requirements: !ruby/object:Gem::Requirement
51
57
  requirements:
52
- - - '='
58
+ - - '>='
53
59
  - !ruby/object:Gem::Version
54
60
  version: 3.2.13
55
61
  - !ruby/object:Gem::Dependency
@@ -122,20 +128,6 @@ dependencies:
122
128
  - - '>='
123
129
  - !ruby/object:Gem::Version
124
130
  version: '0'
125
- - !ruby/object:Gem::Dependency
126
- name: fuubar
127
- requirement: !ruby/object:Gem::Requirement
128
- requirements:
129
- - - '>='
130
- - !ruby/object:Gem::Version
131
- version: '0'
132
- type: :development
133
- prerelease: false
134
- version_requirements: !ruby/object:Gem::Requirement
135
- requirements:
136
- - - '>='
137
- - !ruby/object:Gem::Version
138
- version: '0'
139
131
  description: Rails HTML5 FileUpload helpers
140
132
  email: glebtv@gmail.com
141
133
  executables: []
@@ -169,6 +161,7 @@ files:
169
161
  - app/assets/stylesheets/uploader/jquery.fileupload-ui.css
170
162
  - app/views/rails_admin/main/_form_rails_uploader.haml
171
163
  - app/views/uploader/default/_container.html.erb
164
+ - app/views/uploader/default/_sortable.html.erb
172
165
  - app/views/uploader/default/_download.html.erb
173
166
  - app/views/uploader/default/_upload.html.erb
174
167
  - lib/file_size_validator.rb
@@ -189,6 +182,8 @@ files:
189
182
  - config/locales/en.yml
190
183
  - config/locales/ru.yml
191
184
  - config/routes.rb
185
+ - vendor/assets/javascripts/uploader/jquery.ui.widget.js
186
+ - vendor/assets/javascripts/uploader/jquery.fileupload-fp.js
192
187
  - MIT-LICENSE
193
188
  - Rakefile
194
189
  - README.md
@@ -197,6 +192,14 @@ files:
197
192
  - spec/dummy/db/migrate/20120508093416_create_assets.rb
198
193
  - spec/dummy/public/422.html
199
194
  - spec/dummy/public/404.html
195
+ - spec/dummy/public/uploads/picture/data/5260e2af61732e16d5010000/rails.png
196
+ - spec/dummy/public/uploads/picture/data/5260e2af61732e16d5010000/thumb_rails.png
197
+ - spec/dummy/public/uploads/picture/data/5260e2af61732e16d5060000/rails.png
198
+ - spec/dummy/public/uploads/picture/data/5260e2af61732e16d5060000/thumb_rails.png
199
+ - spec/dummy/public/uploads/picture/data/5260e2e261732e1735010000/rails.png
200
+ - spec/dummy/public/uploads/picture/data/5260e2e261732e1735010000/thumb_rails.png
201
+ - spec/dummy/public/uploads/picture/data/5260e2e261732e1735060000/rails.png
202
+ - spec/dummy/public/uploads/picture/data/5260e2e261732e1735060000/thumb_rails.png
200
203
  - spec/dummy/public/favicon.ico
201
204
  - spec/dummy/public/500.html
202
205
  - spec/dummy/README.rdoc
@@ -214,7 +217,9 @@ files:
214
217
  - spec/dummy/config/environments/development.rb
215
218
  - spec/dummy/config/environments/production.rb
216
219
  - spec/dummy/config/environments/test.rb
220
+ - spec/dummy/config/mongoid.yml
217
221
  - spec/dummy/config/routes.rb
222
+ - spec/dummy/log/test.log
218
223
  - spec/dummy/script/rails
219
224
  - spec/dummy/app/helpers/application_helper.rb
220
225
  - spec/dummy/app/controllers/application_controller.rb
@@ -229,10 +234,12 @@ files:
229
234
  - spec/requests/attachments_controller_spec.rb
230
235
  - spec/uploader_spec.rb
231
236
  - spec/fileuploads_spec.rb
237
+ - spec/mongoid.yml
232
238
  - spec/spec_helper.rb
233
239
  - spec/factories/assets.rb
234
240
  - spec/factories/files/rails.png
235
241
  - spec/factories/articles.rb
242
+ - spec/mongoid_spec.rb
236
243
  homepage: https://github.com/glebtv/rails-uploader
237
244
  licenses: []
238
245
  metadata: {}
@@ -262,6 +269,14 @@ test_files:
262
269
  - spec/dummy/db/migrate/20120508093416_create_assets.rb
263
270
  - spec/dummy/public/422.html
264
271
  - spec/dummy/public/404.html
272
+ - spec/dummy/public/uploads/picture/data/5260e2af61732e16d5010000/rails.png
273
+ - spec/dummy/public/uploads/picture/data/5260e2af61732e16d5010000/thumb_rails.png
274
+ - spec/dummy/public/uploads/picture/data/5260e2af61732e16d5060000/rails.png
275
+ - spec/dummy/public/uploads/picture/data/5260e2af61732e16d5060000/thumb_rails.png
276
+ - spec/dummy/public/uploads/picture/data/5260e2e261732e1735010000/rails.png
277
+ - spec/dummy/public/uploads/picture/data/5260e2e261732e1735010000/thumb_rails.png
278
+ - spec/dummy/public/uploads/picture/data/5260e2e261732e1735060000/rails.png
279
+ - spec/dummy/public/uploads/picture/data/5260e2e261732e1735060000/thumb_rails.png
265
280
  - spec/dummy/public/favicon.ico
266
281
  - spec/dummy/public/500.html
267
282
  - spec/dummy/README.rdoc
@@ -279,7 +294,9 @@ test_files:
279
294
  - spec/dummy/config/environments/development.rb
280
295
  - spec/dummy/config/environments/production.rb
281
296
  - spec/dummy/config/environments/test.rb
297
+ - spec/dummy/config/mongoid.yml
282
298
  - spec/dummy/config/routes.rb
299
+ - spec/dummy/log/test.log
283
300
  - spec/dummy/script/rails
284
301
  - spec/dummy/app/helpers/application_helper.rb
285
302
  - spec/dummy/app/controllers/application_controller.rb
@@ -294,7 +311,9 @@ test_files:
294
311
  - spec/requests/attachments_controller_spec.rb
295
312
  - spec/uploader_spec.rb
296
313
  - spec/fileuploads_spec.rb
314
+ - spec/mongoid.yml
297
315
  - spec/spec_helper.rb
298
316
  - spec/factories/assets.rb
299
317
  - spec/factories/files/rails.png
300
318
  - spec/factories/articles.rb
319
+ - spec/mongoid_spec.rb