uploader 0.1.10 → 0.1.12
Sign up to get free protection for your applications and to get access to all the features.
- data/README.rdoc +2 -1
- data/Rakefile +4 -3
- data/VERSION +1 -1
- data/test/rails_root/.gitignore +8 -0
- data/test/rails_root/.rake_tasks +103 -0
- data/test/rails_root/Capfile +3 -0
- data/test/rails_root/Rakefile +10 -0
- data/test/rails_root/app/controllers/application_controller.rb +4 -0
- data/test/rails_root/app/controllers/uploads_controller.rb +18 -0
- data/test/rails_root/app/models/.keep +0 -0
- data/test/rails_root/app/models/upload.rb +28 -0
- data/test/rails_root/app/models/user.rb +9 -0
- data/test/rails_root/app/views/layouts/application.html.erb +18 -0
- data/test/rails_root/config/amazon_s3.yml +14 -0
- data/test/rails_root/config/boot.rb +109 -0
- data/test/rails_root/config/database.yml +14 -0
- data/test/rails_root/config/environment.rb +23 -0
- data/test/rails_root/config/environments/development.rb +19 -0
- data/test/rails_root/config/environments/production.rb +1 -0
- data/test/rails_root/config/environments/test.rb +33 -0
- data/test/rails_root/config/global_config.yml +18 -0
- data/test/rails_root/config/initializers/inflections.rb +10 -0
- data/test/rails_root/config/initializers/mime_types.rb +5 -0
- data/test/rails_root/config/initializers/requires.rb +13 -0
- data/test/rails_root/config/initializers/s3_credentials.rb +9 -0
- data/test/rails_root/config/initializers/session_store.rb +8 -0
- data/test/rails_root/config/routes.rb +6 -0
- data/test/rails_root/db/.keep +0 -0
- data/test/rails_root/db/migrate/20090517040220_create_uploads.rb +38 -0
- data/test/rails_root/db/migrate/20090602041838_create_users.rb +12 -0
- data/test/rails_root/db/schema.rb +47 -0
- data/test/rails_root/features/step_definitions/webrat_steps.rb +99 -0
- data/test/rails_root/features/support/env.rb +14 -0
- data/test/rails_root/public/.htaccess +40 -0
- data/test/rails_root/public/404.html +30 -0
- data/test/rails_root/public/422.html +30 -0
- data/test/rails_root/public/500.html +30 -0
- data/test/rails_root/public/dispatch.rb +10 -0
- data/test/rails_root/public/favicon.ico +0 -0
- data/test/rails_root/public/images/rails.png +0 -0
- data/test/rails_root/public/javascripts/application.js +2 -0
- data/test/rails_root/public/javascripts/builder.js +136 -0
- data/test/rails_root/public/javascripts/controls.js +963 -0
- data/test/rails_root/public/javascripts/dragdrop.js +972 -0
- data/test/rails_root/public/javascripts/effects.js +1120 -0
- data/test/rails_root/public/javascripts/prototype.js +4225 -0
- data/test/rails_root/public/javascripts/scriptaculous.js +58 -0
- data/test/rails_root/public/javascripts/slider.js +277 -0
- data/test/rails_root/public/javascripts/sound.js +60 -0
- data/test/rails_root/public/robots.txt +1 -0
- data/test/rails_root/public/stylesheets/.keep +0 -0
- data/test/rails_root/script/about +3 -0
- data/test/rails_root/script/breakpointer +3 -0
- data/test/rails_root/script/console +3 -0
- data/test/rails_root/script/create_project.rb +52 -0
- data/test/rails_root/script/cucumber +7 -0
- data/test/rails_root/script/dbconsole +3 -0
- data/test/rails_root/script/destroy +3 -0
- data/test/rails_root/script/generate +3 -0
- data/test/rails_root/script/performance/benchmarker +3 -0
- data/test/rails_root/script/performance/profiler +3 -0
- data/test/rails_root/script/performance/request +3 -0
- data/test/rails_root/script/plugin +3 -0
- data/test/rails_root/script/process/inspector +3 -0
- data/test/rails_root/script/process/reaper +3 -0
- data/test/rails_root/script/process/spawner +3 -0
- data/test/rails_root/script/runner +3 -0
- data/test/rails_root/script/server +3 -0
- data/test/rails_root/test/factories.rb +14 -0
- data/test/rails_root/test/functional/.keep +0 -0
- data/test/rails_root/test/functional/uploads_controller_test.rb +104 -0
- data/test/rails_root/test/integration/.keep +0 -0
- data/test/rails_root/test/mocks/development/.keep +0 -0
- data/test/rails_root/test/mocks/test/.keep +0 -0
- data/test/rails_root/test/test_helper.rb +22 -0
- data/test/rails_root/test/unit/.keep +0 -0
- data/test/{unit → rails_root/test/unit}/upload_test.rb +1 -1
- data/uploader.gemspec +104 -6
- metadata +111 -6
- data/test/test_helper.rb +0 -3
@@ -0,0 +1,22 @@
|
|
1
|
+
$:.reject! { |e| e.include? 'TextMate' }
|
2
|
+
ENV["RAILS_ENV"] = "test"
|
3
|
+
require File.expand_path(File.dirname(__FILE__) + "/../config/environment")
|
4
|
+
|
5
|
+
require 'test_help'
|
6
|
+
gem 'thoughtbot-factory_girl' # from github
|
7
|
+
require 'factory_girl'
|
8
|
+
require 'ruby-debug'
|
9
|
+
require 'mocha'
|
10
|
+
require 'redgreen' rescue LoadError
|
11
|
+
require File.expand_path(File.dirname(__FILE__) + '/factories')
|
12
|
+
class ActiveSupport::TestCase
|
13
|
+
|
14
|
+
VALID_FILE = ActionController::TestUploadedFile.new(File.join(RAILS_ROOT, 'public/images/rails.png'), 'image/png')
|
15
|
+
|
16
|
+
self.use_transactional_fixtures = true
|
17
|
+
self.use_instantiated_fixtures = false
|
18
|
+
|
19
|
+
def ensure_flash(val)
|
20
|
+
assert_contains flash.values, val, ", Flash: #{flash.inspect}"
|
21
|
+
end
|
22
|
+
end
|
File without changes
|
data/uploader.gemspec
CHANGED
@@ -2,11 +2,11 @@
|
|
2
2
|
|
3
3
|
Gem::Specification.new do |s|
|
4
4
|
s.name = %q{uploader}
|
5
|
-
s.version = "0.1.
|
5
|
+
s.version = "0.1.12"
|
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-
|
9
|
+
s.date = %q{2009-06-02}
|
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 = [
|
@@ -151,8 +151,79 @@ Gem::Specification.new do |s|
|
|
151
151
|
"rdoc/index.html",
|
152
152
|
"rdoc/rdoc-style.css",
|
153
153
|
"tasks/rails.rake",
|
154
|
-
"test/
|
155
|
-
"test/
|
154
|
+
"test/rails_root/.gitignore",
|
155
|
+
"test/rails_root/.rake_tasks",
|
156
|
+
"test/rails_root/Capfile",
|
157
|
+
"test/rails_root/Rakefile",
|
158
|
+
"test/rails_root/app/controllers/application_controller.rb",
|
159
|
+
"test/rails_root/app/controllers/uploads_controller.rb",
|
160
|
+
"test/rails_root/app/models/.keep",
|
161
|
+
"test/rails_root/app/models/upload.rb",
|
162
|
+
"test/rails_root/app/models/user.rb",
|
163
|
+
"test/rails_root/app/views/layouts/application.html.erb",
|
164
|
+
"test/rails_root/config/amazon_s3.yml",
|
165
|
+
"test/rails_root/config/boot.rb",
|
166
|
+
"test/rails_root/config/database.yml",
|
167
|
+
"test/rails_root/config/environment.rb",
|
168
|
+
"test/rails_root/config/environments/development.rb",
|
169
|
+
"test/rails_root/config/environments/production.rb",
|
170
|
+
"test/rails_root/config/environments/test.rb",
|
171
|
+
"test/rails_root/config/global_config.yml",
|
172
|
+
"test/rails_root/config/initializers/inflections.rb",
|
173
|
+
"test/rails_root/config/initializers/mime_types.rb",
|
174
|
+
"test/rails_root/config/initializers/requires.rb",
|
175
|
+
"test/rails_root/config/initializers/s3_credentials.rb",
|
176
|
+
"test/rails_root/config/initializers/session_store.rb",
|
177
|
+
"test/rails_root/config/routes.rb",
|
178
|
+
"test/rails_root/db/.keep",
|
179
|
+
"test/rails_root/db/migrate/20090517040220_create_uploads.rb",
|
180
|
+
"test/rails_root/db/migrate/20090602041838_create_users.rb",
|
181
|
+
"test/rails_root/features/step_definitions/webrat_steps.rb",
|
182
|
+
"test/rails_root/features/support/env.rb",
|
183
|
+
"test/rails_root/public/.htaccess",
|
184
|
+
"test/rails_root/public/404.html",
|
185
|
+
"test/rails_root/public/422.html",
|
186
|
+
"test/rails_root/public/500.html",
|
187
|
+
"test/rails_root/public/dispatch.rb",
|
188
|
+
"test/rails_root/public/favicon.ico",
|
189
|
+
"test/rails_root/public/images/rails.png",
|
190
|
+
"test/rails_root/public/javascripts/application.js",
|
191
|
+
"test/rails_root/public/javascripts/builder.js",
|
192
|
+
"test/rails_root/public/javascripts/controls.js",
|
193
|
+
"test/rails_root/public/javascripts/dragdrop.js",
|
194
|
+
"test/rails_root/public/javascripts/effects.js",
|
195
|
+
"test/rails_root/public/javascripts/prototype.js",
|
196
|
+
"test/rails_root/public/javascripts/scriptaculous.js",
|
197
|
+
"test/rails_root/public/javascripts/slider.js",
|
198
|
+
"test/rails_root/public/javascripts/sound.js",
|
199
|
+
"test/rails_root/public/robots.txt",
|
200
|
+
"test/rails_root/public/stylesheets/.keep",
|
201
|
+
"test/rails_root/script/about",
|
202
|
+
"test/rails_root/script/breakpointer",
|
203
|
+
"test/rails_root/script/console",
|
204
|
+
"test/rails_root/script/create_project.rb",
|
205
|
+
"test/rails_root/script/cucumber",
|
206
|
+
"test/rails_root/script/dbconsole",
|
207
|
+
"test/rails_root/script/destroy",
|
208
|
+
"test/rails_root/script/generate",
|
209
|
+
"test/rails_root/script/performance/benchmarker",
|
210
|
+
"test/rails_root/script/performance/profiler",
|
211
|
+
"test/rails_root/script/performance/request",
|
212
|
+
"test/rails_root/script/plugin",
|
213
|
+
"test/rails_root/script/process/inspector",
|
214
|
+
"test/rails_root/script/process/reaper",
|
215
|
+
"test/rails_root/script/process/spawner",
|
216
|
+
"test/rails_root/script/runner",
|
217
|
+
"test/rails_root/script/server",
|
218
|
+
"test/rails_root/test/factories.rb",
|
219
|
+
"test/rails_root/test/functional/.keep",
|
220
|
+
"test/rails_root/test/functional/uploads_controller_test.rb",
|
221
|
+
"test/rails_root/test/integration/.keep",
|
222
|
+
"test/rails_root/test/mocks/development/.keep",
|
223
|
+
"test/rails_root/test/mocks/test/.keep",
|
224
|
+
"test/rails_root/test/test_helper.rb",
|
225
|
+
"test/rails_root/test/unit/.keep",
|
226
|
+
"test/rails_root/test/unit/upload_test.rb",
|
156
227
|
"uninstall.rb",
|
157
228
|
"uploader.gemspec"
|
158
229
|
]
|
@@ -164,8 +235,32 @@ Gem::Specification.new do |s|
|
|
164
235
|
s.rubygems_version = %q{1.3.1}
|
165
236
|
s.summary = %q{SWFUpload + Paperclip wrapped in an engine with love.}
|
166
237
|
s.test_files = [
|
167
|
-
"test/
|
168
|
-
"test/
|
238
|
+
"test/rails_root/app/controllers/application_controller.rb",
|
239
|
+
"test/rails_root/app/controllers/uploads_controller.rb",
|
240
|
+
"test/rails_root/app/models/upload.rb",
|
241
|
+
"test/rails_root/app/models/user.rb",
|
242
|
+
"test/rails_root/config/boot.rb",
|
243
|
+
"test/rails_root/config/environment.rb",
|
244
|
+
"test/rails_root/config/environments/development.rb",
|
245
|
+
"test/rails_root/config/environments/production.rb",
|
246
|
+
"test/rails_root/config/environments/test.rb",
|
247
|
+
"test/rails_root/config/initializers/inflections.rb",
|
248
|
+
"test/rails_root/config/initializers/mime_types.rb",
|
249
|
+
"test/rails_root/config/initializers/requires.rb",
|
250
|
+
"test/rails_root/config/initializers/s3_credentials.rb",
|
251
|
+
"test/rails_root/config/initializers/session_store.rb",
|
252
|
+
"test/rails_root/config/routes.rb",
|
253
|
+
"test/rails_root/db/migrate/20090517040220_create_uploads.rb",
|
254
|
+
"test/rails_root/db/migrate/20090602041838_create_users.rb",
|
255
|
+
"test/rails_root/db/schema.rb",
|
256
|
+
"test/rails_root/features/step_definitions/webrat_steps.rb",
|
257
|
+
"test/rails_root/features/support/env.rb",
|
258
|
+
"test/rails_root/public/dispatch.rb",
|
259
|
+
"test/rails_root/script/create_project.rb",
|
260
|
+
"test/rails_root/test/factories.rb",
|
261
|
+
"test/rails_root/test/functional/uploads_controller_test.rb",
|
262
|
+
"test/rails_root/test/test_helper.rb",
|
263
|
+
"test/rails_root/test/unit/upload_test.rb"
|
169
264
|
]
|
170
265
|
|
171
266
|
if s.respond_to? :specification_version then
|
@@ -174,10 +269,13 @@ Gem::Specification.new do |s|
|
|
174
269
|
|
175
270
|
if Gem::Version.new(Gem::RubyGemsVersion) >= Gem::Version.new('1.2.0') then
|
176
271
|
s.add_runtime_dependency(%q<mime-types>, [">= 0"])
|
272
|
+
s.add_runtime_dependency(%q<rack>, [">= 0"])
|
177
273
|
else
|
178
274
|
s.add_dependency(%q<mime-types>, [">= 0"])
|
275
|
+
s.add_dependency(%q<rack>, [">= 0"])
|
179
276
|
end
|
180
277
|
else
|
181
278
|
s.add_dependency(%q<mime-types>, [">= 0"])
|
279
|
+
s.add_dependency(%q<rack>, [">= 0"])
|
182
280
|
end
|
183
281
|
end
|
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.
|
4
|
+
version: 0.1.12
|
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-
|
13
|
+
date: 2009-06-02 00:00:00 -06:00
|
14
14
|
default_executable:
|
15
15
|
dependencies:
|
16
16
|
- !ruby/object:Gem::Dependency
|
@@ -23,6 +23,16 @@ dependencies:
|
|
23
23
|
- !ruby/object:Gem::Version
|
24
24
|
version: "0"
|
25
25
|
version:
|
26
|
+
- !ruby/object:Gem::Dependency
|
27
|
+
name: rack
|
28
|
+
type: :runtime
|
29
|
+
version_requirement:
|
30
|
+
version_requirements: !ruby/object:Gem::Requirement
|
31
|
+
requirements:
|
32
|
+
- - ">="
|
33
|
+
- !ruby/object:Gem::Version
|
34
|
+
version: "0"
|
35
|
+
version:
|
26
36
|
description: Uploader gem that makes it simple add multiple file uploads to your Rails project using SWFUpload and Paperclip
|
27
37
|
email: justinball@gmail.com
|
28
38
|
executables: []
|
@@ -170,8 +180,79 @@ files:
|
|
170
180
|
- rdoc/index.html
|
171
181
|
- rdoc/rdoc-style.css
|
172
182
|
- tasks/rails.rake
|
173
|
-
- test/
|
174
|
-
- test/
|
183
|
+
- test/rails_root/.gitignore
|
184
|
+
- test/rails_root/.rake_tasks
|
185
|
+
- test/rails_root/Capfile
|
186
|
+
- test/rails_root/Rakefile
|
187
|
+
- test/rails_root/app/controllers/application_controller.rb
|
188
|
+
- test/rails_root/app/controllers/uploads_controller.rb
|
189
|
+
- test/rails_root/app/models/.keep
|
190
|
+
- test/rails_root/app/models/upload.rb
|
191
|
+
- test/rails_root/app/models/user.rb
|
192
|
+
- test/rails_root/app/views/layouts/application.html.erb
|
193
|
+
- test/rails_root/config/amazon_s3.yml
|
194
|
+
- test/rails_root/config/boot.rb
|
195
|
+
- test/rails_root/config/database.yml
|
196
|
+
- test/rails_root/config/environment.rb
|
197
|
+
- test/rails_root/config/environments/development.rb
|
198
|
+
- test/rails_root/config/environments/production.rb
|
199
|
+
- test/rails_root/config/environments/test.rb
|
200
|
+
- test/rails_root/config/global_config.yml
|
201
|
+
- test/rails_root/config/initializers/inflections.rb
|
202
|
+
- test/rails_root/config/initializers/mime_types.rb
|
203
|
+
- test/rails_root/config/initializers/requires.rb
|
204
|
+
- test/rails_root/config/initializers/s3_credentials.rb
|
205
|
+
- test/rails_root/config/initializers/session_store.rb
|
206
|
+
- test/rails_root/config/routes.rb
|
207
|
+
- test/rails_root/db/.keep
|
208
|
+
- test/rails_root/db/migrate/20090517040220_create_uploads.rb
|
209
|
+
- test/rails_root/db/migrate/20090602041838_create_users.rb
|
210
|
+
- test/rails_root/features/step_definitions/webrat_steps.rb
|
211
|
+
- test/rails_root/features/support/env.rb
|
212
|
+
- test/rails_root/public/.htaccess
|
213
|
+
- test/rails_root/public/404.html
|
214
|
+
- test/rails_root/public/422.html
|
215
|
+
- test/rails_root/public/500.html
|
216
|
+
- test/rails_root/public/dispatch.rb
|
217
|
+
- test/rails_root/public/favicon.ico
|
218
|
+
- test/rails_root/public/images/rails.png
|
219
|
+
- test/rails_root/public/javascripts/application.js
|
220
|
+
- test/rails_root/public/javascripts/builder.js
|
221
|
+
- test/rails_root/public/javascripts/controls.js
|
222
|
+
- test/rails_root/public/javascripts/dragdrop.js
|
223
|
+
- test/rails_root/public/javascripts/effects.js
|
224
|
+
- test/rails_root/public/javascripts/prototype.js
|
225
|
+
- test/rails_root/public/javascripts/scriptaculous.js
|
226
|
+
- test/rails_root/public/javascripts/slider.js
|
227
|
+
- test/rails_root/public/javascripts/sound.js
|
228
|
+
- test/rails_root/public/robots.txt
|
229
|
+
- test/rails_root/public/stylesheets/.keep
|
230
|
+
- test/rails_root/script/about
|
231
|
+
- test/rails_root/script/breakpointer
|
232
|
+
- test/rails_root/script/console
|
233
|
+
- test/rails_root/script/create_project.rb
|
234
|
+
- test/rails_root/script/cucumber
|
235
|
+
- test/rails_root/script/dbconsole
|
236
|
+
- test/rails_root/script/destroy
|
237
|
+
- test/rails_root/script/generate
|
238
|
+
- test/rails_root/script/performance/benchmarker
|
239
|
+
- test/rails_root/script/performance/profiler
|
240
|
+
- test/rails_root/script/performance/request
|
241
|
+
- test/rails_root/script/plugin
|
242
|
+
- test/rails_root/script/process/inspector
|
243
|
+
- test/rails_root/script/process/reaper
|
244
|
+
- test/rails_root/script/process/spawner
|
245
|
+
- test/rails_root/script/runner
|
246
|
+
- test/rails_root/script/server
|
247
|
+
- test/rails_root/test/factories.rb
|
248
|
+
- test/rails_root/test/functional/.keep
|
249
|
+
- test/rails_root/test/functional/uploads_controller_test.rb
|
250
|
+
- test/rails_root/test/integration/.keep
|
251
|
+
- test/rails_root/test/mocks/development/.keep
|
252
|
+
- test/rails_root/test/mocks/test/.keep
|
253
|
+
- test/rails_root/test/test_helper.rb
|
254
|
+
- test/rails_root/test/unit/.keep
|
255
|
+
- test/rails_root/test/unit/upload_test.rb
|
175
256
|
- uninstall.rb
|
176
257
|
- uploader.gemspec
|
177
258
|
has_rdoc: true
|
@@ -201,5 +282,29 @@ signing_key:
|
|
201
282
|
specification_version: 2
|
202
283
|
summary: SWFUpload + Paperclip wrapped in an engine with love.
|
203
284
|
test_files:
|
204
|
-
- test/
|
205
|
-
- test/
|
285
|
+
- test/rails_root/app/controllers/application_controller.rb
|
286
|
+
- test/rails_root/app/controllers/uploads_controller.rb
|
287
|
+
- test/rails_root/app/models/upload.rb
|
288
|
+
- test/rails_root/app/models/user.rb
|
289
|
+
- test/rails_root/config/boot.rb
|
290
|
+
- test/rails_root/config/environment.rb
|
291
|
+
- test/rails_root/config/environments/development.rb
|
292
|
+
- test/rails_root/config/environments/production.rb
|
293
|
+
- test/rails_root/config/environments/test.rb
|
294
|
+
- test/rails_root/config/initializers/inflections.rb
|
295
|
+
- test/rails_root/config/initializers/mime_types.rb
|
296
|
+
- test/rails_root/config/initializers/requires.rb
|
297
|
+
- test/rails_root/config/initializers/s3_credentials.rb
|
298
|
+
- test/rails_root/config/initializers/session_store.rb
|
299
|
+
- test/rails_root/config/routes.rb
|
300
|
+
- test/rails_root/db/migrate/20090517040220_create_uploads.rb
|
301
|
+
- test/rails_root/db/migrate/20090602041838_create_users.rb
|
302
|
+
- test/rails_root/db/schema.rb
|
303
|
+
- test/rails_root/features/step_definitions/webrat_steps.rb
|
304
|
+
- test/rails_root/features/support/env.rb
|
305
|
+
- test/rails_root/public/dispatch.rb
|
306
|
+
- test/rails_root/script/create_project.rb
|
307
|
+
- test/rails_root/test/factories.rb
|
308
|
+
- test/rails_root/test/functional/uploads_controller_test.rb
|
309
|
+
- test/rails_root/test/test_helper.rb
|
310
|
+
- test/rails_root/test/unit/upload_test.rb
|
data/test/test_helper.rb
DELETED