social_stream-documents 0.1.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (84) hide show
  1. data/.gitignore +9 -0
  2. data/Gemfile +3 -0
  3. data/MIT-LICENSE +20 -0
  4. data/README.rdoc +6 -0
  5. data/Rakefile +29 -0
  6. data/app/assets/images/btn/document.png +0 -0
  7. data/app/assets/images/formats/default.png +0 -0
  8. data/app/assets/images/formats/mp3.png +0 -0
  9. data/app/assets/images/formats/msexcel.png +0 -0
  10. data/app/assets/images/formats/msword.png +0 -0
  11. data/app/assets/images/formats/pdf.png +0 -0
  12. data/app/assets/images/formats/plain.png +0 -0
  13. data/app/assets/images/formats/rar.png +0 -0
  14. data/app/assets/images/formats/vnd.ms-powerpoint.png +0 -0
  15. data/app/assets/images/formats/zip.png +0 -0
  16. data/app/assets/javascripts/documents.js +42 -0
  17. data/app/assets/stylesheets/documents.css +96 -0
  18. data/app/controllers/audios_controller.rb +19 -0
  19. data/app/controllers/documents_controller.rb +42 -0
  20. data/app/controllers/pictures_controller.rb +18 -0
  21. data/app/controllers/videos_controller.rb +22 -0
  22. data/app/helpers/documents_helper.rb +28 -0
  23. data/app/models/audio.rb +3 -0
  24. data/app/models/document.rb +35 -0
  25. data/app/models/picture.rb +6 -0
  26. data/app/models/video.rb +15 -0
  27. data/app/views/audios/_audio.html.erb +23 -0
  28. data/app/views/audios/_index.html.erb +22 -0
  29. data/app/views/audios/index.html.erb +20 -0
  30. data/app/views/documents/_document.html.erb +19 -0
  31. data/app/views/documents/_index.html.erb +22 -0
  32. data/app/views/documents/_new.html.erb +5 -0
  33. data/app/views/documents/index.html.erb +20 -0
  34. data/app/views/pictures/_index.html.erb +22 -0
  35. data/app/views/pictures/_picture.html.erb +19 -0
  36. data/app/views/pictures/index.html.erb +20 -0
  37. data/app/views/toolbar/_home_menu_options.html.erb +33 -0
  38. data/app/views/toolbar/_uploads_menu.html.erb +21 -0
  39. data/app/views/videos/_index.html.erb +22 -0
  40. data/app/views/videos/_video.html.erb +23 -0
  41. data/app/views/videos/index.html.erb +20 -0
  42. data/app/worker/videoencoder.rb +7 -0
  43. data/config/locales/en.yml +22 -0
  44. data/config/routes.rb +9 -0
  45. data/db/migrate/20110615143707_create_social_stream_documents.rb +24 -0
  46. data/lib/generators/social_stream/documents/install_generator.rb +11 -0
  47. data/lib/social_stream/documents/engine.rb +18 -0
  48. data/lib/social_stream-documents.rb +10 -0
  49. data/social_stream-documents.gemspec +24 -0
  50. data/spec/dummy/Rakefile +7 -0
  51. data/spec/dummy/app/controllers/application_controller.rb +3 -0
  52. data/spec/dummy/app/helpers/application_helper.rb +2 -0
  53. data/spec/dummy/app/views/layouts/application.html.erb +14 -0
  54. data/spec/dummy/config/application.rb +45 -0
  55. data/spec/dummy/config/boot.rb +10 -0
  56. data/spec/dummy/config/database.yml +22 -0
  57. data/spec/dummy/config/environment.rb +5 -0
  58. data/spec/dummy/config/environments/development.rb +26 -0
  59. data/spec/dummy/config/environments/production.rb +49 -0
  60. data/spec/dummy/config/environments/test.rb +35 -0
  61. data/spec/dummy/config/initializers/backtrace_silencers.rb +7 -0
  62. data/spec/dummy/config/initializers/inflections.rb +10 -0
  63. data/spec/dummy/config/initializers/mime_types.rb +5 -0
  64. data/spec/dummy/config/initializers/secret_token.rb +7 -0
  65. data/spec/dummy/config/initializers/session_store.rb +8 -0
  66. data/spec/dummy/config/locales/en.yml +5 -0
  67. data/spec/dummy/config/routes.rb +58 -0
  68. data/spec/dummy/config.ru +4 -0
  69. data/spec/dummy/public/404.html +26 -0
  70. data/spec/dummy/public/422.html +26 -0
  71. data/spec/dummy/public/500.html +26 -0
  72. data/spec/dummy/public/favicon.ico +0 -0
  73. data/spec/dummy/public/javascripts/application.js +2 -0
  74. data/spec/dummy/public/javascripts/controls.js +965 -0
  75. data/spec/dummy/public/javascripts/dragdrop.js +974 -0
  76. data/spec/dummy/public/javascripts/effects.js +1123 -0
  77. data/spec/dummy/public/javascripts/prototype.js +6001 -0
  78. data/spec/dummy/public/javascripts/rails.js +191 -0
  79. data/spec/dummy/public/stylesheets/.gitkeep +0 -0
  80. data/spec/dummy/script/rails +6 -0
  81. data/spec/integration/navigation_spec.rb +9 -0
  82. data/spec/socialstream_documents_spec.rb +7 -0
  83. data/spec/spec_helper.rb +33 -0
  84. metadata +296 -0
@@ -0,0 +1,26 @@
1
+ <!DOCTYPE html>
2
+ <html>
3
+ <head>
4
+ <title>The change you wanted was rejected (422)</title>
5
+ <style type="text/css">
6
+ body { background-color: #fff; color: #666; text-align: center; font-family: arial, sans-serif; }
7
+ div.dialog {
8
+ width: 25em;
9
+ padding: 0 4em;
10
+ margin: 4em auto 0 auto;
11
+ border: 1px solid #ccc;
12
+ border-right-color: #999;
13
+ border-bottom-color: #999;
14
+ }
15
+ h1 { font-size: 100%; color: #f00; line-height: 1.5em; }
16
+ </style>
17
+ </head>
18
+
19
+ <body>
20
+ <!-- This file lives in public/422.html -->
21
+ <div class="dialog">
22
+ <h1>The change you wanted was rejected.</h1>
23
+ <p>Maybe you tried to change something you didn't have access to.</p>
24
+ </div>
25
+ </body>
26
+ </html>
@@ -0,0 +1,26 @@
1
+ <!DOCTYPE html>
2
+ <html>
3
+ <head>
4
+ <title>We're sorry, but something went wrong (500)</title>
5
+ <style type="text/css">
6
+ body { background-color: #fff; color: #666; text-align: center; font-family: arial, sans-serif; }
7
+ div.dialog {
8
+ width: 25em;
9
+ padding: 0 4em;
10
+ margin: 4em auto 0 auto;
11
+ border: 1px solid #ccc;
12
+ border-right-color: #999;
13
+ border-bottom-color: #999;
14
+ }
15
+ h1 { font-size: 100%; color: #f00; line-height: 1.5em; }
16
+ </style>
17
+ </head>
18
+
19
+ <body>
20
+ <!-- This file lives in public/500.html -->
21
+ <div class="dialog">
22
+ <h1>We're sorry, but something went wrong.</h1>
23
+ <p>We've been notified about this issue and we'll take a look at it shortly.</p>
24
+ </div>
25
+ </body>
26
+ </html>
File without changes
@@ -0,0 +1,2 @@
1
+ // Place your application-specific JavaScript functions and classes here
2
+ // This file is automatically included by javascript_include_tag :defaults