Compare commits

...

6 Commits

Author SHA1 Message Date
Renée Hendricksen
d28e33a682 typo fix 2016-08-23 03:53:02 -04:00
Renée Hendricksen
a102fe2980 this went onto the wrong branch 2016-08-23 03:51:49 -04:00
Renée Hendricksen
c80d945c3f add a test 2016-08-23 02:39:25 -04:00
Renée Hendricksen
4068e880a6 try returning the default 2016-08-22 23:44:50 -04:00
Renée Hendricksen
0ed4558e3a so many staging requests for images, need to cut the noise 2016-08-22 23:42:47 -04:00
Renée Hendricksen
65dad2530d some debug output I can grep for on staging 2016-08-22 23:31:32 -04:00
4 changed files with 5 additions and 0 deletions

View File

@ -12,6 +12,7 @@ class Travis::Api::App
TOKEN = /[^#{SEPARATORS}]+/
attr_reader :type, :subtype, :quality, :version, :params
def initialize(accept_string)
puts "DEBUG: Accept String: #{accept_string.inspect}" unless accept_string == "image/png" || accept_string == "*/*"
@type, @subtype, @quality, @version, @params = parse(accept_string)
end

View File

@ -57,6 +57,8 @@ class Travis::Api::App
end
def version
puts "DEBUG: options: #{options.inspect}"
puts "DEBUG: options-accept-version: #{options[:accept].version}"
options[:accept].version || Travis::Api::App::Helpers::Accept::DEFAULT_VERSION
end

View File

@ -17,6 +17,7 @@ module Travis
end
def data
puts 'DEBUG: travis/api/serialize/v1/http/build.rb:20'
{
'id' => build.id,
'repository_id' => build.repository_id,

View File

@ -18,6 +18,7 @@ module Travis
end
def data
puts "DEBUG: I'm in v2 line 21 travis/api/serialize/v2/http/build.rb:21"
{
'build' => build_data(build),
'commit' => commit_data(build.commit, build.repository),