compatibility fixes
This commit is contained in:
@@ -1 +1 @@
|
|||||||
2.1.1
|
2.1.5
|
||||||
2
Gemfile
2
Gemfile
@@ -18,7 +18,7 @@ gem "uglifier"
|
|||||||
gem 'coffee-rails'
|
gem 'coffee-rails'
|
||||||
gem "therubyracer", :platforms => :ruby
|
gem "therubyracer", :platforms => :ruby
|
||||||
gem "pry", :group => [:test, :development]
|
gem "pry", :group => [:test, :development]
|
||||||
gem "pry-debugger", :group => [:test, :development]
|
gem "byebug", :group => [:test, :development]
|
||||||
gem "rails", "~> 4.1.8"
|
gem "rails", "~> 4.1.8"
|
||||||
gem "pg"
|
gem "pg"
|
||||||
gem "kgio"
|
gem "kgio"
|
||||||
|
|||||||
15
Gemfile.lock
15
Gemfile.lock
@@ -50,6 +50,9 @@ GEM
|
|||||||
bcrypt-ruby (3.1.5)
|
bcrypt-ruby (3.1.5)
|
||||||
bcrypt (>= 3.1.3)
|
bcrypt (>= 3.1.3)
|
||||||
builder (3.2.2)
|
builder (3.2.2)
|
||||||
|
byebug (3.2.0)
|
||||||
|
columnize (~> 0.8)
|
||||||
|
debugger-linecache (~> 1.2)
|
||||||
capistrano (2.15.5)
|
capistrano (2.15.5)
|
||||||
highline
|
highline
|
||||||
net-scp (>= 1.0.0)
|
net-scp (>= 1.0.0)
|
||||||
@@ -76,17 +79,12 @@ GEM
|
|||||||
money (~> 6.0)
|
money (~> 6.0)
|
||||||
multi_json (>= 1.3.4)
|
multi_json (>= 1.3.4)
|
||||||
oauth2 (~> 1.0)
|
oauth2 (~> 1.0)
|
||||||
columnize (0.8.9)
|
columnize (0.9.0)
|
||||||
crack (0.4.2)
|
crack (0.4.2)
|
||||||
safe_yaml (~> 1.0.0)
|
safe_yaml (~> 1.0.0)
|
||||||
daemons (1.1.9)
|
daemons (1.1.9)
|
||||||
dalli (2.7.0)
|
dalli (2.7.0)
|
||||||
debugger (1.6.8)
|
|
||||||
columnize (>= 0.3.1)
|
|
||||||
debugger-linecache (~> 1.2.0)
|
|
||||||
debugger-ruby_core_source (~> 1.3.5)
|
|
||||||
debugger-linecache (1.2.0)
|
debugger-linecache (1.2.0)
|
||||||
debugger-ruby_core_source (1.3.5)
|
|
||||||
delayed_job (4.0.1)
|
delayed_job (4.0.1)
|
||||||
activesupport (>= 3.0, < 4.2)
|
activesupport (>= 3.0, < 4.2)
|
||||||
delayed_job_active_record (4.0.1)
|
delayed_job_active_record (4.0.1)
|
||||||
@@ -167,9 +165,6 @@ GEM
|
|||||||
coderay (~> 1.0)
|
coderay (~> 1.0)
|
||||||
method_source (~> 0.8)
|
method_source (~> 0.8)
|
||||||
slop (~> 3.4)
|
slop (~> 3.4)
|
||||||
pry-debugger (0.2.3)
|
|
||||||
debugger (~> 1.3)
|
|
||||||
pry (>= 0.9.10, < 0.11.0)
|
|
||||||
rack (1.5.2)
|
rack (1.5.2)
|
||||||
rack-test (0.6.2)
|
rack-test (0.6.2)
|
||||||
rack (>= 1.0)
|
rack (>= 1.0)
|
||||||
@@ -269,6 +264,7 @@ DEPENDENCIES
|
|||||||
awesome_print
|
awesome_print
|
||||||
aws-s3!
|
aws-s3!
|
||||||
bcrypt-ruby
|
bcrypt-ruby
|
||||||
|
byebug
|
||||||
capistrano
|
capistrano
|
||||||
capistrano-ext
|
capistrano-ext
|
||||||
capistrano-unicorn
|
capistrano-unicorn
|
||||||
@@ -291,7 +287,6 @@ DEPENDENCIES
|
|||||||
pg
|
pg
|
||||||
protected_attributes
|
protected_attributes
|
||||||
pry
|
pry
|
||||||
pry-debugger
|
|
||||||
radix62 (~> 1.0.1)
|
radix62 (~> 1.0.1)
|
||||||
rails (~> 4.1.8)
|
rails (~> 4.1.8)
|
||||||
rmagick
|
rmagick
|
||||||
|
|||||||
@@ -12,9 +12,9 @@ class ApplicationController < ActionController::Base
|
|||||||
# before_filter :secure_cookies_check
|
# before_filter :secure_cookies_check
|
||||||
layout "default"
|
layout "default"
|
||||||
|
|
||||||
|
rescue_from Exception, :with => :rescue_exception
|
||||||
rescue_from User::PrivilegeError, :with => :access_denied
|
rescue_from User::PrivilegeError, :with => :access_denied
|
||||||
rescue_from Danbooru::Paginator::PaginationError, :with => :render_pagination_limit
|
rescue_from Danbooru::Paginator::PaginationError, :with => :render_pagination_limit
|
||||||
rescue_from Exception, :with => :rescue_exception
|
|
||||||
|
|
||||||
protected
|
protected
|
||||||
def api_check
|
def api_check
|
||||||
|
|||||||
@@ -69,7 +69,7 @@ class ForumPostsControllerTest < ActionController::TestCase
|
|||||||
end
|
end
|
||||||
|
|
||||||
forum_post = ForumPost.last
|
forum_post = ForumPost.last
|
||||||
assert_redirected_to(forum_topic_path(@forum_topic, :page => 1))
|
assert_redirected_to(forum_topic_path(@forum_topic))
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user