Commit Graph

459 Commits

Author SHA1 Message Date
Andre Arko
c57e9cbcc6 valid URLs in cc.xml Project webUrl 2013-03-25 16:09:37 +01:00
Andre Arko
6940532994 Ensure proper content type for cc.xml 2013-03-25 16:09:15 +01:00
Piotr Sarnacki
61142c7cf6 Return 404 unless we can find API builder for resource
In order to protect us from rendering a resource simply converted to
json, without processing it with API data class, this commit changes
JSON responder behavior to render 404 if we can't find associated data
class. The only exception to that rule is when resource is already a
Hash, meaning that it was processed before - we sometimes return for
example simple Hash responses like { result: true }.

The Hash exception could allow to accidentally pass resource.as_json to
responder, but in travis-ci/travis-support@124b8b6 I disabled default
as_json method on AR::Base classes, so the risk of such mistake is
lowered.
2013-03-24 19:49:28 +01:00
Konstantin Haase
33463fe042 update core 2013-03-21 16:33:57 +01:00
Konstantin Haase
92be2a3fcd fix test for new autosync 2013-03-20 19:53:38 +01:00
Konstantin Haase
268b02db50 regenerate gemspec 2013-03-20 19:53:29 +01:00
Konstantin Haase
0854912a4e update core and support 2013-03-20 18:04:50 +01:00
Nick Schonning
591bca9093 First cut generic Contributing.md file for Travis
For https://github.com/travis-ci/travis-ci/issues/940
2013-03-18 23:07:55 -03:00
Piotr Sarnacki
2efd1cb9a6 It's .deploy-sha, not .deploy_sha 😡 2013-03-16 16:42:52 +01:00
Piotr Sarnacki
7099331907 Read .deploy-sha file from the proper path 2013-03-16 15:34:59 +01:00
Piotr Sarnacki
ce470af1c3 Bump travis-core 2013-03-16 14:38:40 +01:00
Piotr Sarnacki
705927ff74 Don't error out if xml is requested with something else than repo 2013-03-12 12:08:43 +01:00
Piotr Sarnacki
c0b9a468d6 Forgot to delete one of the tests 2013-03-11 23:58:58 +01:00
Piotr Sarnacki
54a6926aaf Properly handle non existent resources
This commit changes travis-api to always return 404 response if resource
is not available. Previously we were returning image/png with "unknown"
status instead if user used "*/*" Accept header, which was confusing.
2013-03-11 23:52:57 +01:00
Piotr Sarnacki
b6f3ef10aa Resource can be nil in Responders::Image 2013-03-11 20:57:45 +01:00
Piotr Sarnacki
04bb751b02 When serving image, return proper Last-Modified header 2013-03-11 20:54:24 +01:00
Henrik Hodne
63155e65b6 Fix link to travis-web
Fix #55
2013-03-03 18:27:29 -06:00
Erik Michaels-Ober
cf6c605022 Fix kerning/alignment/anti-aliasing of passing image 2013-02-28 14:43:30 -08:00
Erik Michaels-Ober
5372e34b13 Use brighter green color for passing badge
This is the same color used for the best scores on Code Climate and
Coveralls and is more pleasing to the eye than the current
yellowy-green.
2013-02-28 07:44:43 -08:00
Piotr Sarnacki
7384011e54 Use rubygems via https 2013-02-26 21:06:16 +01:00
Piotr Sarnacki
8599ca80a2 Bump travis-core 2013-02-26 21:04:05 +01:00
Piotr Sarnacki
2065b3ded0 Bump travis-core 2013-02-25 17:29:33 +01:00
Piotr Sarnacki
5345ef818e Use version from each of the accept headers, not only first one 2013-02-25 17:28:24 +01:00
Piotr Sarnacki
5f91706e64 Allow to pass version as Accept param 2013-02-25 17:28:24 +01:00
Piotr Sarnacki
36783e6359 Handle chunked=true param in Accept header 2013-02-25 17:28:24 +01:00
Piotr Sarnacki
0e6757080e Bump travis-core 2013-02-25 17:28:24 +01:00
Piotr Sarnacki
65b1e6b988 Respond with 406 if we can't return requested formats 2013-02-25 17:27:56 +01:00
Piotr Sarnacki
212eb6d9d3 Allow passing more than one mime type in Accept 2013-02-25 17:27:56 +01:00
Piotr Sarnacki
1d7be066cb Make it easy to check if Accept::Entry accepts given mime type 2013-02-25 17:27:56 +01:00
Piotr Sarnacki
c9e99cf2cf Allow more than one type in Accept header 2013-02-25 17:27:56 +01:00
Josh Kalderimis
179c5cbc4c also test against jruby 2013-02-24 13:25:16 +11:00
Josh Kalderimis
ecae377a0b a bundle update, mostly for core but lets see how this goes 2013-02-24 13:04:50 +11:00
Erik Michaels-Ober
1870498774 Merge pull request #52 from laserlemon/shields
Update the build status images
2013-02-22 13:45:32 -08:00
Steve Richert
7feee5d193 Add pending and error status images 2013-02-22 08:45:10 -05:00
Steve Richert
2b8d1f9161 Update the build status images
Badges… CONSOLIDATE! The Shields project is standardizing the design of code badges. Gemnasium and Code Climate are already on board.

https://twitter.com/svenfuchs/status/300327379673436160
2013-02-21 20:56:16 -05:00
Piotr Sarnacki
d902f44e9c Bump travis-support 2013-02-17 14:01:04 +01:00
Konstantin Haase
2e6865d55f don't run metrics etc in heroku console 2013-02-14 19:12:26 +01:00
Konstantin Haase
48cf45c5f6 disable new relic 2013-02-13 17:55:11 +01:00
Konstantin Haase
4f05de7214 update core 2013-02-13 17:35:26 +01:00
Piotr Sarnacki
afe7de8e72 Depend on newrelic_rpm in ~> 3.5.5.0 versions 2013-02-13 13:20:06 +01:00
Piotr Sarnacki
a148575fe6 Add newrelic_rpm to Gemfile to hopefully fix bundler error when running tests 2013-02-13 13:07:55 +01:00
Piotr Sarnacki
9f1f1fecda Bump travis-core 2013-02-13 13:07:55 +01:00
Josh Kalderimis
51c6e7d392 Revert "remove hubble, and in the process also update sentry"
revert for now as travis-core uses 'rescue' which uses travis-support which uses hubble

several places where this could be fixed first, but step one is to get all apps using sentry

This reverts commit 0a2d66be93.
2013-02-12 00:08:37 -08:00
Josh Kalderimis
0a2d66be93 remove hubble, and in the process also update sentry 2013-02-11 23:05:54 -08:00
Piotr Sarnacki
d633b84eea Bump travis-core 2013-02-11 20:59:55 +01:00
Sven Fuchs
6daf8f33b0 Merge branch 'master' of github.com:travis-ci/travis-api
Conflicts:
	Gemfile.lock
2013-02-10 22:44:16 +01:00
Sven Fuchs
be52ae9b1d use travis-core/master 2013-02-10 22:43:02 +01:00
Sven Fuchs
7e005aad1b use travis-core/sf-log-models 2013-02-10 21:30:50 +01:00
Piotr Sarnacki
bfdb5f0294 Bump travis-core 2013-02-08 23:58:06 +01:00
Sven Fuchs
0aa2d6566c bump travis-core 2013-02-07 22:35:35 +01:00