uploader 0.1.16 → 0.1.17

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (33) hide show
  1. data/.gitignore +5 -0
  2. data/VERSION +1 -1
  3. data/app/controllers/uploader/uploads_controller.rb +1 -1
  4. data/uploader.gemspec +4 -31
  5. metadata +3 -30
  6. data/rdoc/classes/ActionController/Routing/RouteSet.html +0 -148
  7. data/rdoc/classes/ActionController/Routing.html +0 -107
  8. data/rdoc/classes/ActionController.html +0 -107
  9. data/rdoc/classes/ActiveRecord/Acts/UploaderUpload/ClassMethods.html +0 -183
  10. data/rdoc/classes/ActiveRecord/Acts/UploaderUpload/InstanceMethods.html +0 -750
  11. data/rdoc/classes/ActiveRecord/Acts/UploaderUpload/SingletonMethods.html +0 -111
  12. data/rdoc/classes/ActiveRecord.html +0 -105
  13. data/rdoc/classes/Uploader/Exceptions/MissingTemplateError.html +0 -111
  14. data/rdoc/classes/Uploader/Exceptions.html +0 -111
  15. data/rdoc/classes/Uploader/FlashSessionCookieMiddleware.html +0 -177
  16. data/rdoc/classes/Uploader/MimeTypeGroups.html +0 -143
  17. data/rdoc/classes/Uploader/Tasks.html +0 -146
  18. data/rdoc/classes/Uploader.html +0 -126
  19. data/rdoc/created.rid +0 -1
  20. data/rdoc/files/README_rdoc.html +0 -515
  21. data/rdoc/files/lib/active_record/acts/uploader_upload_rb.html +0 -101
  22. data/rdoc/files/lib/daemons/amazonaws_rb.html +0 -107
  23. data/rdoc/files/lib/uploader/exceptions_rb.html +0 -101
  24. data/rdoc/files/lib/uploader/initialize_routes_rb.html +0 -101
  25. data/rdoc/files/lib/uploader/middleware/flash_session_cookie_middleware_rb.html +0 -108
  26. data/rdoc/files/lib/uploader/mime_type_groups_rb.html +0 -101
  27. data/rdoc/files/lib/uploader/tasks_rb.html +0 -110
  28. data/rdoc/files/lib/uploader_rb.html +0 -111
  29. data/rdoc/fr_class_index.html +0 -39
  30. data/rdoc/fr_file_index.html +0 -35
  31. data/rdoc/fr_method_index.html +0 -54
  32. data/rdoc/index.html +0 -24
  33. data/rdoc/rdoc-style.css +0 -208
data/.gitignore ADDED
@@ -0,0 +1,5 @@
1
+ *.sw?
2
+ .DS_Store
3
+ coverage
4
+ rdoc
5
+ pkg
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.1.16
1
+ 0.1.17
@@ -104,7 +104,7 @@ class Uploader::UploadsController < ApplicationController
104
104
  raise t('uploader.missing_parent_id_error')
105
105
  return
106
106
  end
107
- @klass = params[:parent_type].to_s.capitalize.constantize
107
+ @klass = params[:parent_type].constantize
108
108
  @parent = @klass.find(params[:parent_id])
109
109
  unless has_permission_to_upload(current_user, @parent)
110
110
  permission_denied
data/uploader.gemspec CHANGED
@@ -2,18 +2,19 @@
2
2
 
3
3
  Gem::Specification.new do |s|
4
4
  s.name = %q{uploader}
5
- s.version = "0.1.16"
5
+ s.version = "0.1.17"
6
6
 
7
7
  s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
8
8
  s.authors = ["Justin Ball", "David South"]
9
- s.date = %q{2009-06-20}
9
+ s.date = %q{2009-07-09}
10
10
  s.description = %q{Uploader gem that makes it simple add multiple file uploads to your Rails project using SWFUpload and Paperclip}
11
11
  s.email = %q{justinball@gmail.com}
12
12
  s.extra_rdoc_files = [
13
13
  "README.rdoc"
14
14
  ]
15
15
  s.files = [
16
- "MIT-LICENSE",
16
+ ".gitignore",
17
+ "MIT-LICENSE",
17
18
  "README.rdoc",
18
19
  "Rakefile",
19
20
  "TODO",
@@ -122,34 +123,6 @@ Gem::Specification.new do |s|
122
123
  "public/stylesheets/swfupload.css",
123
124
  "public/swf/swfupload.swf",
124
125
  "rails/init.rb",
125
- "rdoc/classes/ActionController.html",
126
- "rdoc/classes/ActionController/Routing.html",
127
- "rdoc/classes/ActionController/Routing/RouteSet.html",
128
- "rdoc/classes/ActiveRecord.html",
129
- "rdoc/classes/ActiveRecord/Acts/UploaderUpload/ClassMethods.html",
130
- "rdoc/classes/ActiveRecord/Acts/UploaderUpload/InstanceMethods.html",
131
- "rdoc/classes/ActiveRecord/Acts/UploaderUpload/SingletonMethods.html",
132
- "rdoc/classes/Uploader.html",
133
- "rdoc/classes/Uploader/Exceptions.html",
134
- "rdoc/classes/Uploader/Exceptions/MissingTemplateError.html",
135
- "rdoc/classes/Uploader/FlashSessionCookieMiddleware.html",
136
- "rdoc/classes/Uploader/MimeTypeGroups.html",
137
- "rdoc/classes/Uploader/Tasks.html",
138
- "rdoc/created.rid",
139
- "rdoc/files/README_rdoc.html",
140
- "rdoc/files/lib/active_record/acts/uploader_upload_rb.html",
141
- "rdoc/files/lib/daemons/amazonaws_rb.html",
142
- "rdoc/files/lib/uploader/exceptions_rb.html",
143
- "rdoc/files/lib/uploader/initialize_routes_rb.html",
144
- "rdoc/files/lib/uploader/middleware/flash_session_cookie_middleware_rb.html",
145
- "rdoc/files/lib/uploader/mime_type_groups_rb.html",
146
- "rdoc/files/lib/uploader/tasks_rb.html",
147
- "rdoc/files/lib/uploader_rb.html",
148
- "rdoc/fr_class_index.html",
149
- "rdoc/fr_file_index.html",
150
- "rdoc/fr_method_index.html",
151
- "rdoc/index.html",
152
- "rdoc/rdoc-style.css",
153
126
  "tasks/rails.rake",
154
127
  "test/rails_root/.gitignore",
155
128
  "test/rails_root/.rake_tasks",
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: uploader
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.16
4
+ version: 0.1.17
5
5
  platform: ruby
6
6
  authors:
7
7
  - Justin Ball
@@ -10,7 +10,7 @@ autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
12
 
13
- date: 2009-06-20 00:00:00 -06:00
13
+ date: 2009-07-09 00:00:00 -06:00
14
14
  default_executable:
15
15
  dependencies:
16
16
  - !ruby/object:Gem::Dependency
@@ -42,6 +42,7 @@ extensions: []
42
42
  extra_rdoc_files:
43
43
  - README.rdoc
44
44
  files:
45
+ - .gitignore
45
46
  - MIT-LICENSE
46
47
  - README.rdoc
47
48
  - Rakefile
@@ -151,34 +152,6 @@ files:
151
152
  - public/stylesheets/swfupload.css
152
153
  - public/swf/swfupload.swf
153
154
  - rails/init.rb
154
- - rdoc/classes/ActionController.html
155
- - rdoc/classes/ActionController/Routing.html
156
- - rdoc/classes/ActionController/Routing/RouteSet.html
157
- - rdoc/classes/ActiveRecord.html
158
- - rdoc/classes/ActiveRecord/Acts/UploaderUpload/ClassMethods.html
159
- - rdoc/classes/ActiveRecord/Acts/UploaderUpload/InstanceMethods.html
160
- - rdoc/classes/ActiveRecord/Acts/UploaderUpload/SingletonMethods.html
161
- - rdoc/classes/Uploader.html
162
- - rdoc/classes/Uploader/Exceptions.html
163
- - rdoc/classes/Uploader/Exceptions/MissingTemplateError.html
164
- - rdoc/classes/Uploader/FlashSessionCookieMiddleware.html
165
- - rdoc/classes/Uploader/MimeTypeGroups.html
166
- - rdoc/classes/Uploader/Tasks.html
167
- - rdoc/created.rid
168
- - rdoc/files/README_rdoc.html
169
- - rdoc/files/lib/active_record/acts/uploader_upload_rb.html
170
- - rdoc/files/lib/daemons/amazonaws_rb.html
171
- - rdoc/files/lib/uploader/exceptions_rb.html
172
- - rdoc/files/lib/uploader/initialize_routes_rb.html
173
- - rdoc/files/lib/uploader/middleware/flash_session_cookie_middleware_rb.html
174
- - rdoc/files/lib/uploader/mime_type_groups_rb.html
175
- - rdoc/files/lib/uploader/tasks_rb.html
176
- - rdoc/files/lib/uploader_rb.html
177
- - rdoc/fr_class_index.html
178
- - rdoc/fr_file_index.html
179
- - rdoc/fr_method_index.html
180
- - rdoc/index.html
181
- - rdoc/rdoc-style.css
182
155
  - tasks/rails.rake
183
156
  - test/rails_root/.gitignore
184
157
  - test/rails_root/.rake_tasks
@@ -1,148 +0,0 @@
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: ActionController::Routing::RouteSet</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">ActionController::Routing::RouteSet</td>
54
- </tr>
55
- <tr class="top-aligned-row">
56
- <td><strong>In:</strong></td>
57
- <td>
58
- <a href="../../../files/lib/uploader/initialize_routes_rb.html">
59
- lib/uploader/initialize_routes.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
- Object
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="#M000001">load_routes_with_uploader!</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 Instance methods</h3>
110
-
111
- <div id="method-M000001" class="method-detail">
112
- <a name="M000001"></a>
113
-
114
- <div class="method-heading">
115
- <a href="#M000001" class="method-signature">
116
- <span class="method-name">load_routes_with_uploader!</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('M000001-source');return false;">[Source]</a></p>
123
- <div class="method-source-code" id="M000001-source">
124
- <pre>
125
- <span class="ruby-comment cmt"># File lib/uploader/initialize_routes.rb, line 2</span>
126
- 2: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">load_routes_with_uploader!</span>
127
- 3: <span class="ruby-identifier">uploader_routes</span> = <span class="ruby-constant">File</span>.<span class="ruby-identifier">join</span>(<span class="ruby-constant">File</span>.<span class="ruby-identifier">dirname</span>(<span class="ruby-keyword kw">__FILE__</span>), <span class="ruby-operator">*</span><span class="ruby-node">%w[.. .. config uploader_routes.rb]</span>)
128
- 4: <span class="ruby-identifier">add_configuration_file</span>(<span class="ruby-identifier">uploader_routes</span>) <span class="ruby-keyword kw">unless</span> <span class="ruby-identifier">configuration_files</span>.<span class="ruby-identifier">include?</span> <span class="ruby-identifier">uploader_routes</span>
129
- 5: <span class="ruby-identifier">load_routes_without_uploader!</span>
130
- 6: <span class="ruby-keyword kw">end</span>
131
- </pre>
132
- </div>
133
- </div>
134
- </div>
135
-
136
-
137
- </div>
138
-
139
-
140
- </div>
141
-
142
-
143
- <div id="validator-badges">
144
- <p><small><a href="http://validator.w3.org/check/referer">[Validate]</a></small></p>
145
- </div>
146
-
147
- </body>
148
- </html>
@@ -1,107 +0,0 @@
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: ActionController::Routing</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">ActionController::Routing</td>
54
- </tr>
55
- <tr class="top-aligned-row">
56
- <td><strong>In:</strong></td>
57
- <td>
58
- </td>
59
- </tr>
60
-
61
- </table>
62
- </div>
63
- <!-- banner header -->
64
-
65
- <div id="bodyContent">
66
-
67
-
68
-
69
- <div id="contextContent">
70
-
71
-
72
-
73
- </div>
74
-
75
-
76
- </div>
77
-
78
-
79
- <!-- if includes -->
80
-
81
- <div id="section">
82
-
83
- <div id="class-list">
84
- <h3 class="section-bar">Classes and Modules</h3>
85
-
86
- Class <a href="Routing/RouteSet.html" class="link">ActionController::Routing::RouteSet</a><br />
87
-
88
- </div>
89
-
90
-
91
-
92
-
93
-
94
-
95
-
96
- <!-- if method_list -->
97
-
98
-
99
- </div>
100
-
101
-
102
- <div id="validator-badges">
103
- <p><small><a href="http://validator.w3.org/check/referer">[Validate]</a></small></p>
104
- </div>
105
-
106
- </body>
107
- </html>
@@ -1,107 +0,0 @@
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: ActionController</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">ActionController</td>
54
- </tr>
55
- <tr class="top-aligned-row">
56
- <td><strong>In:</strong></td>
57
- <td>
58
- </td>
59
- </tr>
60
-
61
- </table>
62
- </div>
63
- <!-- banner header -->
64
-
65
- <div id="bodyContent">
66
-
67
-
68
-
69
- <div id="contextContent">
70
-
71
-
72
-
73
- </div>
74
-
75
-
76
- </div>
77
-
78
-
79
- <!-- if includes -->
80
-
81
- <div id="section">
82
-
83
- <div id="class-list">
84
- <h3 class="section-bar">Classes and Modules</h3>
85
-
86
- Module <a href="ActionController/Routing.html" class="link">ActionController::Routing</a><br />
87
-
88
- </div>
89
-
90
-
91
-
92
-
93
-
94
-
95
-
96
- <!-- if method_list -->
97
-
98
-
99
- </div>
100
-
101
-
102
- <div id="validator-badges">
103
- <p><small><a href="http://validator.w3.org/check/referer">[Validate]</a></small></p>
104
- </div>
105
-
106
- </body>
107
- </html>