stuff
This commit is contained in:
parent
5c3b6e3976
commit
55e08ac480
3
.gitignore
vendored
3
.gitignore
vendored
|
@ -1,7 +1,7 @@
|
||||||
.bundle
|
.bundle
|
||||||
db/*.sqlite3
|
db/*.sqlite3
|
||||||
log/*.log
|
log/*.log
|
||||||
tmp/**/*
|
tmp
|
||||||
.DS_Store
|
.DS_Store
|
||||||
doc/api
|
doc/api
|
||||||
doc/app
|
doc/app
|
||||||
|
@ -13,3 +13,4 @@ Capfile
|
||||||
photos
|
photos
|
||||||
public/thumbs
|
public/thumbs
|
||||||
public/uploads
|
public/uploads
|
||||||
|
vendor/cache
|
13
Gemfile
13
Gemfile
|
@ -5,6 +5,17 @@ gem 'rails', '3.0.0'
|
||||||
gem "authlogic"
|
gem "authlogic"
|
||||||
gem 'mime-types', :require => 'mime/types'
|
gem 'mime-types', :require => 'mime/types'
|
||||||
gem "carrierwave", :git => 'git://github.com/jnicklas/carrierwave.git'
|
gem "carrierwave", :git => 'git://github.com/jnicklas/carrierwave.git'
|
||||||
|
# MySQL:
|
||||||
gem "mysql2"
|
gem "mysql2"
|
||||||
|
# PostgreSQL:
|
||||||
#gem 'pg'
|
#gem 'pg'
|
||||||
gem "rmagick", :require => 'RMagick'
|
|
||||||
|
# ImageMagick:
|
||||||
|
#gem "rmagick", :require => 'RMagick'
|
||||||
|
|
||||||
|
# FreeImage:
|
||||||
|
#gem "image_science", :git => 'git://github.com/perezd/image_science.git'
|
||||||
|
#gem "RubyInline"
|
||||||
|
|
||||||
|
# MiniMagick
|
||||||
|
gem "mini_magick"
|
|
@ -48,6 +48,8 @@ GEM
|
||||||
mime-types
|
mime-types
|
||||||
treetop (>= 1.4.5)
|
treetop (>= 1.4.5)
|
||||||
mime-types (1.16)
|
mime-types (1.16)
|
||||||
|
mini_magick (2.1)
|
||||||
|
subexec (~> 0.0.4)
|
||||||
pg (0.9.0)
|
pg (0.9.0)
|
||||||
polyglot (0.3.1)
|
polyglot (0.3.1)
|
||||||
rack (1.2.1)
|
rack (1.2.1)
|
||||||
|
@ -69,7 +71,7 @@ GEM
|
||||||
rake (>= 0.8.4)
|
rake (>= 0.8.4)
|
||||||
thor (~> 0.14.0)
|
thor (~> 0.14.0)
|
||||||
rake (0.8.7)
|
rake (0.8.7)
|
||||||
rmagick (2.13.1)
|
subexec (0.0.4)
|
||||||
thor (0.14.1)
|
thor (0.14.1)
|
||||||
treetop (1.4.8)
|
treetop (1.4.8)
|
||||||
polyglot (>= 0.3.1)
|
polyglot (>= 0.3.1)
|
||||||
|
@ -82,6 +84,6 @@ DEPENDENCIES
|
||||||
authlogic
|
authlogic
|
||||||
carrierwave!
|
carrierwave!
|
||||||
mime-types
|
mime-types
|
||||||
|
mini_magick
|
||||||
pg
|
pg
|
||||||
rails (= 3.0.0)
|
rails (= 3.0.0)
|
||||||
rmagick
|
|
||||||
|
|
|
@ -3,9 +3,9 @@
|
||||||
class FileUploader < CarrierWave::Uploader::Base
|
class FileUploader < CarrierWave::Uploader::Base
|
||||||
|
|
||||||
# Include RMagick or ImageScience support
|
# Include RMagick or ImageScience support
|
||||||
include CarrierWave::RMagick
|
# include CarrierWave::RMagick
|
||||||
# include CarrierWave::ImageScience
|
# include CarrierWave::ImageScience
|
||||||
|
include CarrierWave::MiniMagick
|
||||||
# Choose what kind of storage to use for this uploader
|
# Choose what kind of storage to use for this uploader
|
||||||
#storage :file
|
#storage :file
|
||||||
if ENV['S3_KEY']
|
if ENV['S3_KEY']
|
||||||
|
|
Loading…
Reference in a new issue