Commit Graph

22 Commits

Author SHA1 Message Date
Henrik Hodne
24a3714d62 fix(api-redirect): update regex used for determining when to redirect
With the old redirect, repositories with "png" in the name got
redirected as well as images.
2014-03-12 13:07:57 -05:00
Piotr Sarnacki
226b938214 Drop redirect logic for API other than images and/or cc.xml 2013-09-13 13:06:38 +02:00
Piotr Sarnacki
4bdd1834c4 Fix passing alt=default param 2013-03-05 21:08:14 +01:00
Sven Fuchs
1e6067f54c cookies are split by ; 2013-02-27 01:35:53 +01:00
Sven Fuchs
941d1391bb move AltVersions to its own file, try setting domain and secure on the cookie 2013-02-26 19:05:49 +01:00
Sven Fuchs
bc4092ad4d simplify app creation and rename "custom_branch" to "alt" 2013-02-25 17:42:03 +01:00
Piotr Sarnacki
aa43803811 Allow to set "custom_branch" for assets
When custom-branch param is set, travis-web will serve assets from S3
from given branch (the compiled assets are uploaded to S3 on each
build). Cookie will also be set to serve assets from this branch until
disabled.

Custom branch may be disabled by passing disable-custom-branch=true
param.
2013-02-21 22:12:33 +01:00
Sven Fuchs
1b9d2c31ad disable tests for MobileRedirect since it is now unused 2012-12-14 16:16:24 +01:00
Piotr Sarnacki
973bd38f66 Use Rack::Request#user_agent 2012-11-13 02:32:00 +01:00
Piotr Sarnacki
7ad4ed1109 Redirect to old version of travis for mobile clients
We're planning support for a new mobile client, but for the time being
we will just redirect to the old app.
2012-11-12 19:37:57 +01:00
Piotr Sarnacki
de38b3d297 Redirect /:owner/:name/builds.json to a proper api endpoint 2012-11-10 15:47:33 +01:00
Konstantin Haase
6ea3f70723 fix test 2012-11-08 13:55:50 +01:00
Konstantin Haase
f8ab48178e also redirect "Accept: */*" to the api 2012-11-08 13:26:59 +01:00
Konstantin Haase
01b5a118d0 spec and fix app 2012-10-22 21:23:34 +02:00
Konstantin Haase
d6986a7806 allow only GET and HEAD request 2012-10-22 21:22:47 +02:00
Konstantin Haase
4cd506ea59 redirect potential API calls to API, fixes #32 2012-10-22 21:21:19 +02:00
Konstantin Haase
ab866b4fe2 no longer run api 2012-10-16 18:42:37 +02:00
Piotr Sarnacki
4153c990be Fix specs 2012-10-15 23:20:33 +02:00
Sven Fuchs
6e4413d5a2 finally rename repository to repo 2012-10-06 20:08:46 +02:00
Sven Fuchs
b34e35fbb8 improvements to the asset pipeline thanks to @twinturbo 2012-10-05 21:58:20 +02:00
Sven Fuchs
419ace7c51 rework asset compilation 2012-10-01 12:36:06 +02:00
Sven Fuchs
73fe04185d split up config.ru 2012-09-30 17:30:57 +02:00