1
0
Fork 0
mirror of https://github.com/sinatra/sinatra synced 2023-03-27 23:18:01 -04:00

depend on Tilt 1.3

This commit is contained in:
Konstantin Haase 2011-04-14 14:28:59 +02:00
parent c7601fcfcd
commit 9b94ee6550
2 changed files with 2 additions and 2 deletions

View file

@ -521,7 +521,7 @@ module Sinatra
def find_template(views, name, engine)
yield ::File.join(views, "#{name}.#{@preferred_extension}")
Tilt.mappings.each do |ext, engines|
next unless ext != @preferred_extension and Array(engines).include? engine
next unless ext != @preferred_extension and engines.include? engine
yield ::File.join(views, "#{name}.#{ext}")
end
end

View file

@ -123,7 +123,7 @@ Gem::Specification.new do |s|
s.extra_rdoc_files = %w[README.rdoc README.de.rdoc README.jp.rdoc README.fr.rdoc README.es.rdoc README.hu.rdoc README.zh.rdoc LICENSE]
s.add_dependency 'rack', '~> 1.2'
s.add_dependency 'tilt', '~> 1.2', '>= 1.2.2'
s.add_dependency 'tilt', '~> 1.3'
s.add_development_dependency 'shotgun', '~> 0.6'
s.homepage = "http://sinatra.rubyforge.org"