upgrade rack mini profiler

fixes for ruby 1.9.3
This commit is contained in:
Sam 2013-07-30 17:36:34 +10:00
parent 9749001b54
commit df3a4c05cd
5 changed files with 8 additions and 6 deletions

View File

@ -192,7 +192,7 @@ gem 'lru_redux'
# IMPORTANT: mini profiler monkey patches, so it better be required last
# If you want to amend mini profiler to do the monkey patches in the railstie
# we are open to it. by deferring require to the initializer we can configure disourse installs without it
gem 'rack-mini-profiler', '0.1.27', require: false # require: false #, git: 'git://github.com/SamSaffron/MiniProfiler'
gem 'rack-mini-profiler', '0.1.28', require: false # require: false #, git: 'git://github.com/SamSaffron/MiniProfiler'
# used for caching, optional
# redis-rack-cache is missing a sane expiry policy, it hogs redis

View File

@ -305,7 +305,7 @@ GEM
rack (>= 0.4)
rack-cors (0.2.7)
rack
rack-mini-profiler (0.1.27)
rack-mini-profiler (0.1.28)
rack (>= 1.1.3)
rack-openid (1.3.1)
rack (>= 1.1.0)
@ -519,7 +519,7 @@ DEPENDENCIES
qunit-rails
rack-cache
rack-cors
rack-mini-profiler (= 0.1.27)
rack-mini-profiler (= 0.1.28)
rails (= 3.2.12)
rails_multisite!
rake

View File

@ -1,3 +1,5 @@
require_dependency 'trust_level'
class AdminUserIndexQuery
def initialize(params = {}, klass = User, trust_levels = TrustLevel.levels)
@params = params
@ -53,4 +55,4 @@ class AdminUserIndexQuery
def find_users
find_users_query.take(100)
end
end
end

View File

@ -87,7 +87,7 @@ module Email
end
def discourse_email_parser
lines = @body.lines
lines = @body.lines.to_a
range_end = 0
email_year =

View File

@ -111,4 +111,4 @@ describe AdminUserIndexQuery do
end
end
end
end