Commit Graph

290 Commits

Author SHA1 Message Date
Mathias Meyer
0cd89de38a Merge branch 'master' into rkh-metrics
Conflicts:
	Gemfile.lock
2013-05-09 13:37:28 +02:00
Piotr Sarnacki
d276cd5b32 Return Oauth headers even if none scope was matched
If an endpoint specifies more than one scope and none of the scopes from
access token matches, return oauth headers for the first of the scopes
2013-05-08 14:11:03 +02:00
Piotr Sarnacki
3b299cfec7 Allow to pass required_params to token
required_params will be matched with actual params to check if the token
may be used for authorization. For example if { job_id: 44 } is passed
as a required param, the token will be rejected for GET /jobs/33
2013-05-08 14:11:03 +02:00
Piotr Sarnacki
56d61ed461 Allow to pass extra params for tokens 2013-05-08 14:11:02 +02:00
Piotr Sarnacki
ee64af14d5 Allow to specify more than one scope for an endpoint 2013-05-08 14:11:02 +02:00
Piotr Sarnacki
1340fdb316 Allow to pass additional responders to respond_with 2013-05-08 14:11:02 +02:00
Piotr Sarnacki
01356df26f Implement expiring access tokens 2013-05-08 14:11:02 +02:00
Piotr Sarnacki
2c23c413ef Save branches in lower groups 2013-05-05 02:46:00 +02:00
Piotr Sarnacki
201e7a3176 Add rake task for updating branch value on builds 2013-05-05 02:15:08 +02:00
Piotr Sarnacki
935288e8e9 Don't load octopus if there is no need 2013-05-05 00:27:10 +02:00
James Dennes
c5b73b1ecc s/autorization/authorization/ 2013-05-03 12:16:12 +02:00
Josh Kalderimis
cd7cce54b5 add some output when the db follower is setup 2013-05-03 10:31:53 +02:00
Josh Kalderimis
a949b58d98 merging all the things 2013-05-03 10:12:16 +02:00
Josh Kalderimis
407a08f644 only use the db follower if use_database_follower is set in the config 2013-05-03 09:42:07 +02:00
Josh Kalderimis
23f3edc60c move the db follower usage to a helper 2013-05-03 09:21:48 +02:00
Piotr Sarnacki
f6d781c248 Enable octopus 2013-05-03 00:43:57 +02:00
Josh Kalderimis
10c8d4b95f hit my head against a wall 2013-05-03 00:43:22 +02:00
Josh Kalderimis
4ea1079d39 turn on octopus in staging 2013-05-03 00:43:22 +02:00
Josh Kalderimis
135008f1ea only add the shards info if in prod mode 2013-05-03 00:43:22 +02:00
Josh Kalderimis
e6f1e22ae8 octopus is on in production by default only 2013-05-03 00:43:22 +02:00
Josh Kalderimis
76e55c0125 i don't think this is the best solution 2013-05-03 00:43:20 +02:00
Josh Kalderimis
a0a92b23fa change the require order 2013-05-03 00:42:30 +02:00
Josh Kalderimis
48c8e8c2a5 merging stuff and fun 2013-05-02 20:06:19 +02:00
Piotr Sarnacki
cd9e089631 Enable octopus 2013-05-02 19:48:23 +02:00
Josh Kalderimis
6feed54684 hit my head against a wall 2013-05-02 19:16:52 +02:00
Josh Kalderimis
1a8b60cc98 turn on octopus in staging 2013-05-02 18:50:59 +02:00
Josh Kalderimis
69b8dff382 only add the shards info if in prod mode 2013-05-02 18:44:27 +02:00
Josh Kalderimis
d72f6ca02d octopus is on in production by default only 2013-05-02 18:23:41 +02:00
Josh Kalderimis
f4132786a6 i don't think this is the best solution 2013-05-02 18:05:32 +02:00
Josh Kalderimis
de6cb2c163 change the require order 2013-05-02 17:21:56 +02:00
Josh Kalderimis
ab2714621f i wonder what i am doing wrong with octopus 2013-05-02 17:08:31 +02:00
Josh Kalderimis
afddbb76ba require octopus 2013-05-02 16:45:34 +02:00
Josh Kalderimis
fa6ea0692d use a follower for one of the repos endpoint 2013-05-02 16:38:20 +02:00
Konstantin Haase
6b2a1a0da8 do not use client credentials for /auth/github 2013-04-24 16:47:52 +02:00
Konstantin Haase
d07f289047 whitespace 2013-04-19 15:52:44 +02:00
Piotr Sarnacki
a830d17554 Fix newrelic
I updated newrelic to beta version, which fixed problems with starting
the dispatcher in some of the environments.
2013-04-17 23:44:51 +02:00
Piotr Sarnacki
426859a7a1 Don't require newrelic in base.rb 2013-04-16 20:37:04 +02:00
Piotr Sarnacki
f4cb2caed0 Try to always require newrelic_rpm 2013-04-16 20:24:18 +02:00
Piotr Sarnacki
2a19cd5bfa Revert "disable new relic"
This reverts commit 48cf45c5f6.
2013-04-16 20:01:14 +02:00
Mathias Meyer
cd98231c42 Add Middle ware for tracking metriks. 2013-04-16 19:47:20 +02:00
Henrik Hodne
6d0aad47ec Update example payloads 2013-04-15 14:11:58 -05:00
Henrik Hodne
a18f211f6f Merge pull request #25 from henrikhodne/add-responses-to-documentation
Add responses to documentation
2013-04-15 02:44:31 -07:00
Henrik Hodne
e38b40e00a Update docs style to look more like the main docs site 2013-04-15 02:04:50 -05:00
Piotr Sarnacki
cc70e15825 Fetch all builds in PR rake task, but skip when it's already filled in 2013-03-27 15:48:47 +01:00
Piotr Sarnacki
0ea7cc3ac4 Update only builds that need to be updated in pull_request_data rake task 2013-03-27 15:04:54 +01:00
Piotr Sarnacki
b4e59caebf Add task to migrate pull request data for builds 2013-03-27 12:58:32 +01:00
Henrik Hodne
6f5f7d0073 Add responses to repository endpoints 2013-03-26 20:41:23 -05:00
Henrik Hodne
c1aaeeee32 Add a way to add responses to documentation
You can add a predefined JSON response by entering
"json(:resource_name)" in the docstring. This will then be replaced
with the resource with the same name, found in
lib/travis/api/app/endpoint/documentation/resources.rb.
2013-03-26 20:40:35 -05:00
Piotr Sarnacki
887c835bd4 Use client_domain instead of domain for url in CC.xml 2013-03-25 16:53:20 +01:00
Piotr Sarnacki
15dd13ba02 Merge branch 'pr/46' 2013-03-25 16:40:08 +01:00