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