allow put to /artifacts/:id

This commit is contained in:
Sven Fuchs 2013-01-24 23:56:48 +01:00
parent 598a586ed4
commit 4ea95494de
3 changed files with 11 additions and 6 deletions

View File

@ -38,5 +38,5 @@ end
group :development, :test do group :development, :test do
gem 'rake', '~> 0.9.2' gem 'rake', '~> 0.9.2'
gem 'micro_migrations', git: 'http://gist.github.com/4269321.git' gem 'micro_migrations', git: 'https://gist.github.com/4269321.git'
end end

View File

@ -45,7 +45,8 @@ GIT
GIT GIT
remote: git://github.com/travis-ci/travis-core.git remote: git://github.com/travis-ci/travis-core.git
revision: 4637ea48abe8fb0976d8e0bbf997ea2578a3ca62 revision: c5f4fb9c33d78cd984e041ba6b280191c8b5349c
branch: sf-archive-logs
specs: specs:
travis-core (0.0.1) travis-core (0.0.1)
actionmailer (~> 3.2.11) actionmailer (~> 3.2.11)
@ -59,7 +60,7 @@ GIT
postmark-rails (~> 0.4.1) postmark-rails (~> 0.4.1)
pusher (~> 0.11.0) pusher (~> 0.11.0)
railties (~> 3.2.11) railties (~> 3.2.11)
rake (~> 0.9.2.2) rake
redis (~> 3.0) redis (~> 3.0)
rollout (~> 1.1.0) rollout (~> 1.1.0)
simple_states (~> 0.1.1) simple_states (~> 0.1.1)
@ -80,7 +81,7 @@ GIT
travis-support (0.0.1) travis-support (0.0.1)
GIT GIT
remote: http://gist.github.com/4269321.git remote: https://gist.github.com/4269321.git
revision: 8e2d21b924a69dd48191df6a18e51769f5a88614 revision: 8e2d21b924a69dd48191df6a18e51769f5a88614
specs: specs:
micro_migrations (0.0.1) micro_migrations (0.0.1)
@ -185,7 +186,7 @@ GEM
multipart-post (1.1.5) multipart-post (1.1.5)
net-http-persistent (2.8) net-http-persistent (2.8)
net-http-pipeline (1.0.1) net-http-pipeline (1.0.1)
newrelic_rpm (3.5.5.38) newrelic_rpm (3.5.6.46)
pg (0.13.2) pg (0.13.2)
polyglot (0.3.3) polyglot (0.3.3)
postmark (0.9.18) postmark (0.9.18)
@ -220,7 +221,7 @@ GEM
rake (>= 0.8.7) rake (>= 0.8.7)
rdoc (~> 3.4) rdoc (~> 3.4)
thor (>= 0.14.6, < 2.0) thor (>= 0.14.6, < 2.0)
rake (0.9.2.2) rake (0.9.6)
rdoc (3.12) rdoc (3.12)
json (~> 1.4) json (~> 1.4)
redcarpet (2.2.2) redcarpet (2.2.2)

View File

@ -9,6 +9,10 @@ class Travis::Api::App
get '/:id' do |id| get '/:id' do |id|
respond_with service(:find_artifact, params) respond_with service(:find_artifact, params)
end end
put '/:id' do |id|
respond_with service(:update_artifact, params)
end
end end
end end
end end