Commit Graph

69 Commits

Author SHA1 Message Date
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
b93ce53a7f restore cookie max_age 2013-02-26 23:55:49 +01:00
Sven Fuchs
47765ba8c0 try disabling rack/cache 2013-02-26 23:11:40 +01:00
Sven Fuchs
9bda77e757 try removing Secure from the cookie 2013-02-26 23:07:09 +01:00
Sven Fuchs
b314670530 debug output 2013-02-26 23:00:17 +01:00
Sven Fuchs
c5aaa8806a uppercase Path 2013-02-26 22:55:00 +01:00
Sven Fuchs
5c18bd3406 try using path for the cookie 2013-02-26 20:09:47 +01:00
Sven Fuchs
d686b741bf try using the staging domain 2013-02-26 19:12:37 +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
9cf20d774d Don't shadow options method in set_config 2013-02-22 22:54:09 +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
Konstantin Haase
55bdaf780f don't minfiy on staging 2012-12-16 17:35:21 +01:00
Sven Fuchs
ee50cbd1e7 disable MobileRedirect, which does not seem to work, we are now using Rack::MobileRedirect 2012-12-14 15:52:58 +01:00
Konstantin Haase
bb53bceb46 fix constant name 2012-12-12 23:39:03 +01:00
Konstantin Haase
726190634b add protection 2012-12-12 23:33:43 +01:00
Konstantin Haase
6f8a5860af remove printf debugging 2012-12-06 17:13:08 +01:00
Konstantin Haase
eed223d19d throw params in case or mismatch 2012-12-06 15:49:36 +01:00
Konstantin Haase
f6c983978f only allow sessionStorage and localStorage 2012-12-06 14:44:00 +01:00
Konstantin Haase
4a443aee41 allow setting the storage 2012-12-05 14:36:57 +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
7d055f085b explicitely redirect cc.xml 2012-11-08 13:33:41 +01:00
Konstantin Haase
f8ab48178e also redirect "Accept: */*" to the api 2012-11-08 13:26:59 +01:00
Konstantin Haase
0ac265a4a7 allow setting token manually 2012-10-24 19:36:17 +02:00
Piotr Sarnacki
ce307264c4 Use ENV.FORCE_JQUERY when building for production 2012-10-23 03:47:12 +02: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
Piotr Sarnacki
718b3ad88f Fix spec.html serving 2012-10-19 01:52:48 +02:00
Sven Fuchs
52bdbf5468 Merge branch 'master' of github.com:travis-ci/travis-web
Conflicts:
	public/scripts/app.js
	public/scripts/min/app.js
	public/styles/app.css
	public/version
	script/server
2012-10-18 03:55:17 +02:00
Sven Fuchs
90fb2c3b78 add broadcasts 2012-10-18 03:53:19 +02:00
Konstantin Haase
d4404b201c switch to puma, make app reload in development mode 2012-10-17 16:19:42 +02:00
Konstantin Haase
5c8035b7a8 add back rack-cache 2012-10-16 19:15:16 +02:00
Konstantin Haase
651dbd366d add back guard for @svenfuchs 2012-10-16 19:06:08 +02:00
Konstantin Haase
1f9e19ac0e send empty Vary header 2012-10-16 18:54:32 +02:00
Konstantin Haase
4fd46ad944 header must be fixnum 2012-10-16 18:49:57 +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
Piotr Sarnacki
9976b47c93 WIP 2012-10-15 19:35:10 +02:00
Sven Fuchs
b2d0acbcf7 rename handlebars helper to travis_handlebars 2012-10-13 01:51:08 +02:00
Sven Fuchs
d2cbde2cfa use the rake-pipeline project directly. cuts asset build time by 50% 2012-10-12 02:41:15 +02:00
Sven Fuchs
ba685b1593 set cache headers, can't get rack/cache to behave though 2012-10-11 20:05:33 +02:00
Sven Fuchs
86ab67feb2 try using rack cache for in memory caching 2012-10-11 18:46:33 +02:00
Sven Fuchs
b35763baa3 using the production pusher key with RUN_API causes tons of 404 errors 2012-10-11 17:23:32 +02:00
Sven Fuchs
ecdf0b9c3a fix negation 2012-10-10 20:43:53 +02:00
Sven Fuchs
24d98eb66a ok, it's DEFAULT_ENDPOINT 2012-10-10 14:16:47 +02:00
Sven Fuchs
3052db733b parse pusher key into the index.html like the api endpoint 2012-10-10 13:21:52 +02:00