uploader 0.1.13 → 0.1.14
Sign up to get free protection for your applications and to get access to all the features.
- data/VERSION +1 -1
- data/lib/uploader.rb +2 -22
- data/pkg/uploader-0.1.13.gem +0 -0
- data/rails/init.rb +20 -0
- data/rdoc/created.rid +1 -1
- data/test/rails_root/app/views/layouts/application.html.erb +1 -1
- data/test/rails_root/config/environment.rb +0 -1
- data/test/rails_root/config/initializers/uploader.rb +11 -0
- data/uploader.gemspec +7 -2
- metadata +5 -2
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
0.1.
|
1
|
+
0.1.14
|
data/lib/uploader.rb
CHANGED
@@ -1,24 +1,4 @@
|
|
1
|
+
require 'active_record/acts/uploader_upload'
|
1
2
|
require 'uploader/exceptions'
|
2
3
|
require 'uploader/mime_type_groups'
|
3
|
-
require 'uploader/middleware/flash_session_cookie_middleware'
|
4
|
-
|
5
|
-
begin
|
6
|
-
require 'thoughtbot-paperclip'
|
7
|
-
rescue LoadError
|
8
|
-
begin
|
9
|
-
gem 'thoughtbot-paperclip'
|
10
|
-
rescue Gem::LoadError
|
11
|
-
puts "Please install the thoughtbot-paperclip gem"
|
12
|
-
end
|
13
|
-
end
|
14
|
-
|
15
|
-
|
16
|
-
begin
|
17
|
-
require 'mime/types'
|
18
|
-
rescue LoadError
|
19
|
-
begin
|
20
|
-
gem 'mime-types'
|
21
|
-
rescue Gem::LoadError
|
22
|
-
puts "Please install the mime-types gem"
|
23
|
-
end
|
24
|
-
end
|
4
|
+
require 'uploader/middleware/flash_session_cookie_middleware'
|
Binary file
|
data/rails/init.rb
CHANGED
@@ -1,3 +1,23 @@
|
|
1
|
+
begin
|
2
|
+
require 'thoughtbot-paperclip'
|
3
|
+
rescue LoadError
|
4
|
+
begin
|
5
|
+
gem 'thoughtbot-paperclip'
|
6
|
+
rescue Gem::LoadError
|
7
|
+
puts "Please install the thoughtbot-paperclip gem"
|
8
|
+
end
|
9
|
+
end
|
10
|
+
|
11
|
+
begin
|
12
|
+
require 'mime/types'
|
13
|
+
rescue LoadError
|
14
|
+
begin
|
15
|
+
gem 'mime-types'
|
16
|
+
rescue Gem::LoadError
|
17
|
+
puts "Please install the mime-types gem"
|
18
|
+
end
|
19
|
+
end
|
20
|
+
|
1
21
|
require 'uploader'
|
2
22
|
require 'uploader/initialize_routes'
|
3
23
|
|
data/rdoc/created.rid
CHANGED
@@ -1 +1 @@
|
|
1
|
-
Tue, 02 Jun 2009 14:
|
1
|
+
Tue, 02 Jun 2009 14:35:39 -0600
|
@@ -18,6 +18,5 @@ end
|
|
18
18
|
Rails::Initializer.run do |config|
|
19
19
|
config.load_paths += Dir.glob(File.join(RAILS_ROOT, 'vendor', 'gems', '*', 'lib'))
|
20
20
|
config.time_zone = 'UTC'
|
21
|
-
config.gem 'uploader'
|
22
21
|
config.gem 'thoughtbot-paperclip', :version => '~> 2.2.2', :lib => 'paperclip', :source => 'http://gems.github.com'
|
23
22
|
end
|
@@ -0,0 +1,11 @@
|
|
1
|
+
# This simulates loading the uploader gem, but without relying on vendor/gems
|
2
|
+
|
3
|
+
path = File.join(File.dirname(__FILE__), *%w(.. .. .. ..))
|
4
|
+
lib_path = File.join(path, "lib")
|
5
|
+
app_path = File.join(path, "app")
|
6
|
+
|
7
|
+
require File.join(app_path, 'helpers', 'uploader_helper')
|
8
|
+
|
9
|
+
$LOAD_PATH.unshift(lib_path)
|
10
|
+
$LOAD_PATH.unshift(app_path)
|
11
|
+
load File.join(path, 'rails', 'init.rb')
|
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.14"
|
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-04}
|
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 = [
|
@@ -64,6 +64,7 @@ Gem::Specification.new do |s|
|
|
64
64
|
"locales/zh-CN.yml",
|
65
65
|
"locales/zh-TW.yml",
|
66
66
|
"locales/zh.yml",
|
67
|
+
"pkg/uploader-0.1.13.gem",
|
67
68
|
"public/images/SWFUploadButton.png",
|
68
69
|
"public/images/file_icons/excel.gif",
|
69
70
|
"public/images/file_icons/file.gif",
|
@@ -174,13 +175,16 @@ Gem::Specification.new do |s|
|
|
174
175
|
"test/rails_root/config/initializers/requires.rb",
|
175
176
|
"test/rails_root/config/initializers/s3_credentials.rb",
|
176
177
|
"test/rails_root/config/initializers/session_store.rb",
|
178
|
+
"test/rails_root/config/initializers/uploader.rb",
|
177
179
|
"test/rails_root/config/routes.rb",
|
178
180
|
"test/rails_root/db/.keep",
|
179
181
|
"test/rails_root/db/development.sqlite3",
|
182
|
+
"test/rails_root/db/development.sqlite3",
|
180
183
|
"test/rails_root/db/migrate/20090517040220_create_uploads.rb",
|
181
184
|
"test/rails_root/db/migrate/20090602041838_create_users.rb",
|
182
185
|
"test/rails_root/db/schema.rb",
|
183
186
|
"test/rails_root/db/test.sqlite3",
|
187
|
+
"test/rails_root/db/test.sqlite3",
|
184
188
|
"test/rails_root/features/step_definitions/webrat_steps.rb",
|
185
189
|
"test/rails_root/features/support/env.rb",
|
186
190
|
"test/rails_root/public/.htaccess",
|
@@ -252,6 +256,7 @@ Gem::Specification.new do |s|
|
|
252
256
|
"test/rails_root/config/initializers/requires.rb",
|
253
257
|
"test/rails_root/config/initializers/s3_credentials.rb",
|
254
258
|
"test/rails_root/config/initializers/session_store.rb",
|
259
|
+
"test/rails_root/config/initializers/uploader.rb",
|
255
260
|
"test/rails_root/config/routes.rb",
|
256
261
|
"test/rails_root/db/migrate/20090517040220_create_uploads.rb",
|
257
262
|
"test/rails_root/db/migrate/20090602041838_create_users.rb",
|
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.14
|
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-04 00:00:00 -06:00
|
14
14
|
default_executable:
|
15
15
|
dependencies:
|
16
16
|
- !ruby/object:Gem::Dependency
|
@@ -93,6 +93,7 @@ files:
|
|
93
93
|
- locales/zh-CN.yml
|
94
94
|
- locales/zh-TW.yml
|
95
95
|
- locales/zh.yml
|
96
|
+
- pkg/uploader-0.1.13.gem
|
96
97
|
- public/images/SWFUploadButton.png
|
97
98
|
- public/images/file_icons/excel.gif
|
98
99
|
- public/images/file_icons/file.gif
|
@@ -203,6 +204,7 @@ files:
|
|
203
204
|
- test/rails_root/config/initializers/requires.rb
|
204
205
|
- test/rails_root/config/initializers/s3_credentials.rb
|
205
206
|
- test/rails_root/config/initializers/session_store.rb
|
207
|
+
- test/rails_root/config/initializers/uploader.rb
|
206
208
|
- test/rails_root/config/routes.rb
|
207
209
|
- test/rails_root/db/.keep
|
208
210
|
- test/rails_root/db/development.sqlite3
|
@@ -299,6 +301,7 @@ test_files:
|
|
299
301
|
- test/rails_root/config/initializers/requires.rb
|
300
302
|
- test/rails_root/config/initializers/s3_credentials.rb
|
301
303
|
- test/rails_root/config/initializers/session_store.rb
|
304
|
+
- test/rails_root/config/initializers/uploader.rb
|
302
305
|
- test/rails_root/config/routes.rb
|
303
306
|
- test/rails_root/db/migrate/20090517040220_create_uploads.rb
|
304
307
|
- test/rails_root/db/migrate/20090602041838_create_users.rb
|