upgrade to ruby 2.0.0
This commit is contained in:
@@ -1 +1 @@
|
|||||||
1.9.3-p327
|
2.0.0-p451
|
||||||
5
Gemfile
5
Gemfile
@@ -6,7 +6,6 @@ group :test do
|
|||||||
gem "mocha", :require => "mocha/setup"
|
gem "mocha", :require => "mocha/setup"
|
||||||
gem "ffaker"
|
gem "ffaker"
|
||||||
gem "simplecov", :require => false
|
gem "simplecov", :require => false
|
||||||
gem "pry"
|
|
||||||
gem "vcr"
|
gem "vcr"
|
||||||
gem "webmock"
|
gem "webmock"
|
||||||
gem "timecop"
|
gem "timecop"
|
||||||
@@ -49,6 +48,8 @@ end
|
|||||||
|
|
||||||
group :development do
|
group :development do
|
||||||
gem 'ruby-prof'
|
gem 'ruby-prof'
|
||||||
gem 'pry'
|
|
||||||
end
|
end
|
||||||
|
|
||||||
|
group :development, :test do
|
||||||
|
gem 'pry'
|
||||||
|
end
|
||||||
@@ -204,13 +204,13 @@ class Upload < ActiveRecord::Base
|
|||||||
|
|
||||||
def file_header_to_content_type(source_path)
|
def file_header_to_content_type(source_path)
|
||||||
case File.read(source_path, 10)
|
case File.read(source_path, 10)
|
||||||
when /^\xff\xd8/
|
when /^\xff\xd8/n
|
||||||
"image/jpeg"
|
"image/jpeg"
|
||||||
|
|
||||||
when /^GIF87a/, /^GIF89a/
|
when /^GIF87a/, /^GIF89a/
|
||||||
"image/gif"
|
"image/gif"
|
||||||
|
|
||||||
when /^\x89PNG\r\n\x1a\n/
|
when /^\x89PNG\r\n\x1a\n/n
|
||||||
"image/png"
|
"image/png"
|
||||||
|
|
||||||
when /^CWS/, /^FWS/, /^ZWS/
|
when /^CWS/, /^FWS/, /^ZWS/
|
||||||
|
|||||||
@@ -24,4 +24,6 @@ module Danbooru
|
|||||||
config.action_mailer.perform_deliveries = true
|
config.action_mailer.perform_deliveries = true
|
||||||
config.log_tags = [lambda {|req| "PID:#{Process.pid}"}]
|
config.log_tags = [lambda {|req| "PID:#{Process.pid}"}]
|
||||||
end
|
end
|
||||||
|
|
||||||
|
I18n.enforce_available_locales = false
|
||||||
end
|
end
|
||||||
|
|||||||
Reference in New Issue
Block a user