mirror of
https://github.com/sinatra/sinatra
synced 2023-03-27 23:18:01 -04:00
Merge pull request #1448 from yob/remove-activesupport
Drop activesupport dependency from sinatra-contrib
This commit is contained in:
commit
e0aa37dce6
2 changed files with 2 additions and 4 deletions
|
@ -1,6 +1,5 @@
|
||||||
require 'sinatra/base'
|
require 'sinatra/base'
|
||||||
require 'sinatra/engine_tracking'
|
require 'sinatra/engine_tracking'
|
||||||
require 'active_support/core_ext/object/try.rb'
|
|
||||||
|
|
||||||
module Sinatra
|
module Sinatra
|
||||||
#
|
#
|
||||||
|
@ -106,12 +105,12 @@ module Sinatra
|
||||||
dummy = DUMMIES.fetch(current_engine)
|
dummy = DUMMIES.fetch(current_engine)
|
||||||
options = { :layout => false, :locals => {:args => args, :block => block }}
|
options = { :layout => false, :locals => {:args => args, :block => block }}
|
||||||
|
|
||||||
buffer.try :clear
|
buffer.clear unless buffer.nil?
|
||||||
result = render(current_engine, dummy, options, &block)
|
result = render(current_engine, dummy, options, &block)
|
||||||
end
|
end
|
||||||
result.strip.empty? && @capture ? @capture : result
|
result.strip.empty? && @capture ? @capture : result
|
||||||
ensure
|
ensure
|
||||||
buffer.try :replace, old_buffer
|
buffer.replace(old_buffer) unless buffer.nil?
|
||||||
end
|
end
|
||||||
|
|
||||||
def capture_later(&block)
|
def capture_later(&block)
|
||||||
|
|
|
@ -39,7 +39,6 @@ EOF
|
||||||
s.add_dependency "sinatra", version
|
s.add_dependency "sinatra", version
|
||||||
s.add_dependency "mustermann", "~> 1.0"
|
s.add_dependency "mustermann", "~> 1.0"
|
||||||
s.add_dependency "backports", ">= 2.8.2"
|
s.add_dependency "backports", ">= 2.8.2"
|
||||||
s.add_dependency "activesupport", ">= 4.0.0"
|
|
||||||
s.add_dependency "tilt", ">= 1.3", "< 3"
|
s.add_dependency "tilt", ">= 1.3", "< 3"
|
||||||
s.add_dependency "rack-protection", version
|
s.add_dependency "rack-protection", version
|
||||||
s.add_dependency "multi_json"
|
s.add_dependency "multi_json"
|
||||||
|
|
Loading…
Reference in a new issue