uploader 0.1.3 → 0.1.7

Sign up to get free protection for your applications and to get access to all the features.
Files changed (87) hide show
  1. data/README.rdoc +81 -33
  2. data/Rakefile +2 -2
  3. data/TODO +2 -1
  4. data/VERSION +1 -1
  5. data/app/controllers/uploader/uploads_controller.rb +13 -9
  6. data/app/views/uploads/_swf_upload.html.erb +1 -1
  7. data/lib/active_record/acts/uploader_upload.rb +12 -13
  8. data/lib/daemons/amazonaws.rb +36 -0
  9. data/lib/uploader/tasks.rb +9 -3
  10. data/public/images/file_icons/excel.gif +0 -0
  11. data/public/images/file_icons/file.gif +0 -0
  12. data/public/images/file_icons/file.png +0 -0
  13. data/public/images/file_icons/file_aac.gif +0 -0
  14. data/public/images/file_icons/file_ai.gif +0 -0
  15. data/public/images/file_icons/file_avi.gif +0 -0
  16. data/public/images/file_icons/file_bin.gif +0 -0
  17. data/public/images/file_icons/file_bmp.gif +0 -0
  18. data/public/images/file_icons/file_cue.gif +0 -0
  19. data/public/images/file_icons/file_divx.gif +0 -0
  20. data/public/images/file_icons/file_doc.gif +0 -0
  21. data/public/images/file_icons/file_eps.gif +0 -0
  22. data/public/images/file_icons/file_flac.gif +0 -0
  23. data/public/images/file_icons/file_flv.gif +0 -0
  24. data/public/images/file_icons/file_gif.gif +0 -0
  25. data/public/images/file_icons/file_html.gif +0 -0
  26. data/public/images/file_icons/file_ical.gif +0 -0
  27. data/public/images/file_icons/file_indd.gif +0 -0
  28. data/public/images/file_icons/file_inx.gif +0 -0
  29. data/public/images/file_icons/file_iso.gif +0 -0
  30. data/public/images/file_icons/file_jpg.gif +0 -0
  31. data/public/images/file_icons/file_mov.gif +0 -0
  32. data/public/images/file_icons/file_mp3.gif +0 -0
  33. data/public/images/file_icons/file_mpg.gif +0 -0
  34. data/public/images/file_icons/file_pdf.gif +0 -0
  35. data/public/images/file_icons/file_php.gif +0 -0
  36. data/public/images/file_icons/file_png.gif +0 -0
  37. data/public/images/file_icons/file_pps.gif +0 -0
  38. data/public/images/file_icons/file_ppt.gif +0 -0
  39. data/public/images/file_icons/file_psd.gif +0 -0
  40. data/public/images/file_icons/file_qxd.gif +0 -0
  41. data/public/images/file_icons/file_qxp.gif +0 -0
  42. data/public/images/file_icons/file_raw.gif +0 -0
  43. data/public/images/file_icons/file_rtf.gif +0 -0
  44. data/public/images/file_icons/file_svg.gif +0 -0
  45. data/public/images/file_icons/file_tif.gif +0 -0
  46. data/public/images/file_icons/file_txt.gif +0 -0
  47. data/public/images/file_icons/file_vcf.gif +0 -0
  48. data/public/images/file_icons/file_wav.gif +0 -0
  49. data/public/images/file_icons/file_wma.gif +0 -0
  50. data/public/images/file_icons/file_xls.gif +0 -0
  51. data/public/images/file_icons/file_xml.gif +0 -0
  52. data/public/images/file_icons/pdf.gif +0 -0
  53. data/public/images/file_icons/pdf.png +0 -0
  54. data/public/images/file_icons/text.gif +0 -0
  55. data/public/images/file_icons/text.png +0 -0
  56. data/rdoc/classes/ActionController/Routing/RouteSet.html +148 -0
  57. data/rdoc/classes/ActionController/Routing.html +107 -0
  58. data/rdoc/classes/ActionController.html +107 -0
  59. data/rdoc/classes/ActiveRecord/Acts/UploaderUpload/ClassMethods.html +188 -0
  60. data/rdoc/classes/ActiveRecord/Acts/UploaderUpload/InstanceMethods.html +750 -0
  61. data/rdoc/classes/ActiveRecord/Acts/UploaderUpload/SingletonMethods.html +111 -0
  62. data/rdoc/classes/ActiveRecord.html +105 -0
  63. data/rdoc/classes/Uploader/Exceptions/MissingTemplateError.html +111 -0
  64. data/rdoc/classes/Uploader/Exceptions.html +111 -0
  65. data/rdoc/classes/Uploader/FlashSessionCookieMiddleware.html +177 -0
  66. data/rdoc/classes/Uploader/MimeTypeGroups.html +143 -0
  67. data/rdoc/classes/Uploader/Tasks.html +146 -0
  68. data/rdoc/classes/Uploader.html +126 -0
  69. data/rdoc/created.rid +1 -0
  70. data/rdoc/files/README_rdoc.html +427 -0
  71. data/rdoc/files/lib/active_record/acts/uploader_upload_rb.html +101 -0
  72. data/rdoc/files/lib/uploader/exceptions_rb.html +101 -0
  73. data/rdoc/files/lib/uploader/initialize_routes_rb.html +101 -0
  74. data/rdoc/files/lib/uploader/middleware/flash_session_cookie_middleware_rb.html +108 -0
  75. data/rdoc/files/lib/uploader/mime_type_groups_rb.html +101 -0
  76. data/rdoc/files/lib/uploader/tasks_rb.html +110 -0
  77. data/rdoc/files/lib/uploader_rb.html +112 -0
  78. data/rdoc/fr_class_index.html +39 -0
  79. data/rdoc/fr_file_index.html +34 -0
  80. data/rdoc/fr_method_index.html +54 -0
  81. data/rdoc/index.html +24 -0
  82. data/rdoc/rdoc-style.css +208 -0
  83. data/uploader.gemspec +72 -20
  84. metadata +72 -5
  85. data/pkg/uploader-0.1.0.gem +0 -0
  86. data/pkg/uploader-0.1.1.gem +0 -0
  87. data/pkg/uploader-0.1.2.gem +0 -0
@@ -0,0 +1,143 @@
1
+ <?xml version="1.0" encoding="iso-8859-1"?>
2
+ <!DOCTYPE html
3
+ PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
4
+ "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
5
+
6
+ <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
7
+ <head>
8
+ <title>Module: Uploader::MimeTypeGroups</title>
9
+ <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
10
+ <meta http-equiv="Content-Script-Type" content="text/javascript" />
11
+ <link rel="stylesheet" href="../.././rdoc-style.css" type="text/css" media="screen" />
12
+ <script type="text/javascript">
13
+ // <![CDATA[
14
+
15
+ function popupCode( url ) {
16
+ window.open(url, "Code", "resizable=yes,scrollbars=yes,toolbar=no,status=no,height=150,width=400")
17
+ }
18
+
19
+ function toggleCode( id ) {
20
+ if ( document.getElementById )
21
+ elem = document.getElementById( id );
22
+ else if ( document.all )
23
+ elem = eval( "document.all." + id );
24
+ else
25
+ return false;
26
+
27
+ elemStyle = elem.style;
28
+
29
+ if ( elemStyle.display != "block" ) {
30
+ elemStyle.display = "block"
31
+ } else {
32
+ elemStyle.display = "none"
33
+ }
34
+
35
+ return true;
36
+ }
37
+
38
+ // Make codeblocks hidden by default
39
+ document.writeln( "<style type=\"text/css\">div.method-source-code { display: none }</style>" )
40
+
41
+ // ]]>
42
+ </script>
43
+
44
+ </head>
45
+ <body>
46
+
47
+
48
+
49
+ <div id="classHeader">
50
+ <table class="header-table">
51
+ <tr class="top-aligned-row">
52
+ <td><strong>Module</strong></td>
53
+ <td class="class-name-in-header">Uploader::MimeTypeGroups</td>
54
+ </tr>
55
+ <tr class="top-aligned-row">
56
+ <td><strong>In:</strong></td>
57
+ <td>
58
+ <a href="../../files/lib/uploader/mime_type_groups_rb.html">
59
+ lib/uploader/mime_type_groups.rb
60
+ </a>
61
+ <br />
62
+ </td>
63
+ </tr>
64
+
65
+ </table>
66
+ </div>
67
+ <!-- banner header -->
68
+
69
+ <div id="bodyContent">
70
+
71
+
72
+
73
+ <div id="contextContent">
74
+
75
+
76
+
77
+ </div>
78
+
79
+
80
+ </div>
81
+
82
+
83
+ <!-- if includes -->
84
+
85
+ <div id="section">
86
+
87
+
88
+ <div id="constants-list">
89
+ <h3 class="section-bar">Constants</h3>
90
+
91
+ <div class="name-list">
92
+ <table summary="Constants">
93
+ <tr class="top-aligned-row context-row">
94
+ <td class="context-item-name">IMAGE_TYPES</td>
95
+ <td>=</td>
96
+ <td class="context-item-value">['image/jpeg', 'image/pjpeg', 'image/gif', 'image/png', 'image/x-png', 'image/jpg']</td>
97
+ </tr>
98
+ <tr class="top-aligned-row context-row">
99
+ <td class="context-item-name">MP3_TYPES</td>
100
+ <td>=</td>
101
+ <td class="context-item-value">['audio/mpeg', 'audio/mpeg3', 'audio/x-mpeg-3', 'video/mpeg', 'video/x-mpeg']</td>
102
+ </tr>
103
+ <tr class="top-aligned-row context-row">
104
+ <td class="context-item-name">EXCEL_TYPES</td>
105
+ <td>=</td>
106
+ <td class="context-item-value">['application/excel', 'application/excel', 'application/x-excel', 'application/x-msexcel', 'application/excel', 'application/vnd.ms-excel', 'application/x-excel', 'application/excel', 'application/vnd.ms-excel', 'application/x-excel', 'application/excel', 'application/x-excel', 'application/excel', 'application/x-excel', 'application/excel', 'application/vnd.ms-excel', 'application/x-excel', 'application/excel', 'application/vnd.ms-excel', 'application/x-excel', 'application/excel', 'application/vnd.ms-excel', 'application/x-excel', 'application/x-msexcel', 'application/excel', 'application/x-excel', 'application/excel', 'application/x-excel', 'application/excel', 'application/vnd.ms-excel', 'application/x-excel', 'application/x-msexcel', 'application/vnd.oasis.opendocument.spreadsheet']</td>
107
+ </tr>
108
+ <tr class="top-aligned-row context-row">
109
+ <td class="context-item-name">PDF_TYPES</td>
110
+ <td>=</td>
111
+ <td class="context-item-value">['application/pdf']</td>
112
+ </tr>
113
+ <tr class="top-aligned-row context-row">
114
+ <td class="context-item-name">WORD_TYPES</td>
115
+ <td>=</td>
116
+ <td class="context-item-value">['application/word', 'application/msword']</td>
117
+ </tr>
118
+ <tr class="top-aligned-row context-row">
119
+ <td class="context-item-name">TEXT_TYPES</td>
120
+ <td>=</td>
121
+ <td class="context-item-value">['text/plain']</td>
122
+ </tr>
123
+ </table>
124
+ </div>
125
+ </div>
126
+
127
+
128
+
129
+
130
+
131
+
132
+ <!-- if method_list -->
133
+
134
+
135
+ </div>
136
+
137
+
138
+ <div id="validator-badges">
139
+ <p><small><a href="http://validator.w3.org/check/referer">[Validate]</a></small></p>
140
+ </div>
141
+
142
+ </body>
143
+ </html>
@@ -0,0 +1,146 @@
1
+ <?xml version="1.0" encoding="iso-8859-1"?>
2
+ <!DOCTYPE html
3
+ PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
4
+ "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
5
+
6
+ <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
7
+ <head>
8
+ <title>Class: Uploader::Tasks</title>
9
+ <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
10
+ <meta http-equiv="Content-Script-Type" content="text/javascript" />
11
+ <link rel="stylesheet" href="../.././rdoc-style.css" type="text/css" media="screen" />
12
+ <script type="text/javascript">
13
+ // <![CDATA[
14
+
15
+ function popupCode( url ) {
16
+ window.open(url, "Code", "resizable=yes,scrollbars=yes,toolbar=no,status=no,height=150,width=400")
17
+ }
18
+
19
+ function toggleCode( id ) {
20
+ if ( document.getElementById )
21
+ elem = document.getElementById( id );
22
+ else if ( document.all )
23
+ elem = eval( "document.all." + id );
24
+ else
25
+ return false;
26
+
27
+ elemStyle = elem.style;
28
+
29
+ if ( elemStyle.display != "block" ) {
30
+ elemStyle.display = "block"
31
+ } else {
32
+ elemStyle.display = "none"
33
+ }
34
+
35
+ return true;
36
+ }
37
+
38
+ // Make codeblocks hidden by default
39
+ document.writeln( "<style type=\"text/css\">div.method-source-code { display: none }</style>" )
40
+
41
+ // ]]>
42
+ </script>
43
+
44
+ </head>
45
+ <body>
46
+
47
+
48
+
49
+ <div id="classHeader">
50
+ <table class="header-table">
51
+ <tr class="top-aligned-row">
52
+ <td><strong>Class</strong></td>
53
+ <td class="class-name-in-header">Uploader::Tasks</td>
54
+ </tr>
55
+ <tr class="top-aligned-row">
56
+ <td><strong>In:</strong></td>
57
+ <td>
58
+ <a href="../../files/lib/uploader/tasks_rb.html">
59
+ lib/uploader/tasks.rb
60
+ </a>
61
+ <br />
62
+ </td>
63
+ </tr>
64
+
65
+ <tr class="top-aligned-row">
66
+ <td><strong>Parent:</strong></td>
67
+ <td>
68
+ ::Rake::TaskLib
69
+ </td>
70
+ </tr>
71
+ </table>
72
+ </div>
73
+ <!-- banner header -->
74
+
75
+ <div id="bodyContent">
76
+
77
+
78
+
79
+ <div id="contextContent">
80
+
81
+
82
+
83
+ </div>
84
+
85
+ <div id="method-list">
86
+ <h3 class="section-bar">Methods</h3>
87
+
88
+ <div class="name-list">
89
+ <a href="#M000002">new</a>&nbsp;&nbsp;
90
+ </div>
91
+ </div>
92
+
93
+ </div>
94
+
95
+
96
+ <!-- if includes -->
97
+
98
+ <div id="section">
99
+
100
+
101
+
102
+
103
+
104
+
105
+
106
+
107
+ <!-- if method_list -->
108
+ <div id="methods">
109
+ <h3 class="section-bar">Public Class methods</h3>
110
+
111
+ <div id="method-M000002" class="method-detail">
112
+ <a name="M000002"></a>
113
+
114
+ <div class="method-heading">
115
+ <a href="#M000002" class="method-signature">
116
+ <span class="method-name">new</span><span class="method-args">()</span>
117
+ </a>
118
+ </div>
119
+
120
+ <div class="method-description">
121
+ <p><a class="source-toggle" href="#"
122
+ onclick="toggleCode('M000002-source');return false;">[Source]</a></p>
123
+ <div class="method-source-code" id="M000002-source">
124
+ <pre>
125
+ <span class="ruby-comment cmt"># File lib/uploader/tasks.rb, line 7</span>
126
+ 7: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">initialize</span>
127
+ 8: <span class="ruby-identifier">define</span>
128
+ 9: <span class="ruby-keyword kw">end</span>
129
+ </pre>
130
+ </div>
131
+ </div>
132
+ </div>
133
+
134
+
135
+ </div>
136
+
137
+
138
+ </div>
139
+
140
+
141
+ <div id="validator-badges">
142
+ <p><small><a href="http://validator.w3.org/check/referer">[Validate]</a></small></p>
143
+ </div>
144
+
145
+ </body>
146
+ </html>
@@ -0,0 +1,126 @@
1
+ <?xml version="1.0" encoding="iso-8859-1"?>
2
+ <!DOCTYPE html
3
+ PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
4
+ "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
5
+
6
+ <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
7
+ <head>
8
+ <title>Module: Uploader</title>
9
+ <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
10
+ <meta http-equiv="Content-Script-Type" content="text/javascript" />
11
+ <link rel="stylesheet" href=".././rdoc-style.css" type="text/css" media="screen" />
12
+ <script type="text/javascript">
13
+ // <![CDATA[
14
+
15
+ function popupCode( url ) {
16
+ window.open(url, "Code", "resizable=yes,scrollbars=yes,toolbar=no,status=no,height=150,width=400")
17
+ }
18
+
19
+ function toggleCode( id ) {
20
+ if ( document.getElementById )
21
+ elem = document.getElementById( id );
22
+ else if ( document.all )
23
+ elem = eval( "document.all." + id );
24
+ else
25
+ return false;
26
+
27
+ elemStyle = elem.style;
28
+
29
+ if ( elemStyle.display != "block" ) {
30
+ elemStyle.display = "block"
31
+ } else {
32
+ elemStyle.display = "none"
33
+ }
34
+
35
+ return true;
36
+ }
37
+
38
+ // Make codeblocks hidden by default
39
+ document.writeln( "<style type=\"text/css\">div.method-source-code { display: none }</style>" )
40
+
41
+ // ]]>
42
+ </script>
43
+
44
+ </head>
45
+ <body>
46
+
47
+
48
+
49
+ <div id="classHeader">
50
+ <table class="header-table">
51
+ <tr class="top-aligned-row">
52
+ <td><strong>Module</strong></td>
53
+ <td class="class-name-in-header">Uploader</td>
54
+ </tr>
55
+ <tr class="top-aligned-row">
56
+ <td><strong>In:</strong></td>
57
+ <td>
58
+ <a href="../files/lib/uploader/exceptions_rb.html">
59
+ lib/uploader/exceptions.rb
60
+ </a>
61
+ <br />
62
+ <a href="../files/lib/uploader/middleware/flash_session_cookie_middleware_rb.html">
63
+ lib/uploader/middleware/flash_session_cookie_middleware.rb
64
+ </a>
65
+ <br />
66
+ <a href="../files/lib/uploader/mime_type_groups_rb.html">
67
+ lib/uploader/mime_type_groups.rb
68
+ </a>
69
+ <br />
70
+ <a href="../files/lib/uploader/tasks_rb.html">
71
+ lib/uploader/tasks.rb
72
+ </a>
73
+ <br />
74
+ </td>
75
+ </tr>
76
+
77
+ </table>
78
+ </div>
79
+ <!-- banner header -->
80
+
81
+ <div id="bodyContent">
82
+
83
+
84
+
85
+ <div id="contextContent">
86
+
87
+
88
+
89
+ </div>
90
+
91
+
92
+ </div>
93
+
94
+
95
+ <!-- if includes -->
96
+
97
+ <div id="section">
98
+
99
+ <div id="class-list">
100
+ <h3 class="section-bar">Classes and Modules</h3>
101
+
102
+ Module <a href="Uploader/Exceptions.html" class="link">Uploader::Exceptions</a><br />
103
+ Module <a href="Uploader/MimeTypeGroups.html" class="link">Uploader::MimeTypeGroups</a><br />
104
+ Class <a href="Uploader/FlashSessionCookieMiddleware.html" class="link">Uploader::FlashSessionCookieMiddleware</a><br />
105
+ Class <a href="Uploader/Tasks.html" class="link">Uploader::Tasks</a><br />
106
+
107
+ </div>
108
+
109
+
110
+
111
+
112
+
113
+
114
+
115
+ <!-- if method_list -->
116
+
117
+
118
+ </div>
119
+
120
+
121
+ <div id="validator-badges">
122
+ <p><small><a href="http://validator.w3.org/check/referer">[Validate]</a></small></p>
123
+ </div>
124
+
125
+ </body>
126
+ </html>
data/rdoc/created.rid ADDED
@@ -0,0 +1 @@
1
+ Fri, 22 May 2009 15:08:19 -0600