parent
6681d160c1
commit
01ec5e152a
|
@ -44,7 +44,6 @@ module Travis::Api::App::Responders
|
||||||
super && resource.is_a?(ActiveRecord::Relation) && resource.first.is_a?(Build)
|
super && resource.is_a?(ActiveRecord::Relation) && resource.first.is_a?(Build)
|
||||||
end
|
end
|
||||||
|
|
||||||
instrument_method
|
|
||||||
def apply
|
def apply
|
||||||
super
|
super
|
||||||
|
|
||||||
|
|
|
@ -4,7 +4,6 @@ module Travis::Api::App::Responders
|
||||||
'svg'
|
'svg'
|
||||||
end
|
end
|
||||||
|
|
||||||
instrument_method
|
|
||||||
def apply
|
def apply
|
||||||
set_headers
|
set_headers
|
||||||
send_file(filename, type: :svg, last_modified: last_modified)
|
send_file(filename, type: :svg, last_modified: last_modified)
|
||||||
|
|
|
@ -1,6 +1,5 @@
|
||||||
module Travis::Api::App::Responders
|
module Travis::Api::App::Responders
|
||||||
class Base
|
class Base
|
||||||
include Skylight::Helpers
|
|
||||||
attr_reader :endpoint, :resource, :options
|
attr_reader :endpoint, :resource, :options
|
||||||
|
|
||||||
def initialize(endpoint, resource, options = {})
|
def initialize(endpoint, resource, options = {})
|
||||||
|
|
|
@ -10,7 +10,6 @@ module Travis::Api::App::Responders
|
||||||
headers['Content-Disposition'] = %(inline; filename="#{File.basename(filename)}")
|
headers['Content-Disposition'] = %(inline; filename="#{File.basename(filename)}")
|
||||||
end
|
end
|
||||||
|
|
||||||
instrument_method
|
|
||||||
def apply
|
def apply
|
||||||
set_headers
|
set_headers
|
||||||
send_file(filename, type: :png, last_modified: last_modified)
|
send_file(filename, type: :png, last_modified: last_modified)
|
||||||
|
|
|
@ -7,7 +7,6 @@ class Travis::Api::App
|
||||||
super && !resource.is_a?(String) && !resource.nil? && accepts_log?
|
super && !resource.is_a?(String) && !resource.nil? && accepts_log?
|
||||||
end
|
end
|
||||||
|
|
||||||
instrument_method
|
|
||||||
def apply
|
def apply
|
||||||
super
|
super
|
||||||
|
|
||||||
|
|
|
@ -13,7 +13,6 @@ module Travis::Api::App::Responders
|
||||||
super && (resource.is_a?(Log) || resource.is_a?(String))
|
super && (resource.is_a?(Log) || resource.is_a?(String))
|
||||||
end
|
end
|
||||||
|
|
||||||
instrument_method
|
|
||||||
def apply
|
def apply
|
||||||
super
|
super
|
||||||
|
|
||||||
|
|
|
@ -10,7 +10,6 @@ module Travis::Api
|
||||||
resource.respond_to?(:run)
|
resource.respond_to?(:run)
|
||||||
end
|
end
|
||||||
|
|
||||||
instrument_method
|
|
||||||
def apply
|
def apply
|
||||||
cache_control
|
cache_control
|
||||||
result = normalize(resource.run)
|
result = normalize(resource.run)
|
||||||
|
|
|
@ -37,7 +37,6 @@ module Travis::Api::App::Responders
|
||||||
super && @resource.first.is_a?(Repository)
|
super && @resource.first.is_a?(Repository)
|
||||||
end
|
end
|
||||||
|
|
||||||
instrument_method
|
|
||||||
def apply
|
def apply
|
||||||
super
|
super
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user