Merge branch 'master' into rkh-metrics

Conflicts:
	Gemfile.lock
This commit is contained in:
Mathias Meyer 2013-06-10 08:23:42 +02:00
commit 49015050c1
4 changed files with 32 additions and 27 deletions

View File

@ -1,8 +1,8 @@
GIT
remote: git://github.com/getsentry/raven-ruby.git
revision: 267b33417a3ed43f552911cf353561a641ba9fb2
revision: a07adb1fcbe4b11d938e2af236eb2063d2a22c32
specs:
sentry-raven (0.4.6)
sentry-raven (0.4.8)
faraday (>= 0.7.6)
hashie (>= 1.1.0)
multi_json (~> 1.0)
@ -10,16 +10,16 @@ GIT
GIT
remote: git://github.com/rack/rack-contrib.git
revision: 6f337267eae0bedb4110879f2aea6b1bb2137980
revision: 1026181ca6bbe01e7daad43d15b701296abf95b8
specs:
rack-contrib (1.2.0)
rack (>= 0.9.1)
GIT
remote: git://github.com/rkh/gh.git
revision: ff93c759591a66c9d5250cada5234d2adde95dd3
revision: 6eec1a730700d7e94bb288742ad23822d2d28604
specs:
gh (0.11.1)
gh (0.11.2)
addressable
backports
faraday (~> 0.8)
@ -53,7 +53,7 @@ GIT
GIT
remote: git://github.com/travis-ci/travis-core.git
revision: 7931f7847fda40e788ab61a4b7724a41123128c2
revision: 475973f29cd817bacec61db17a903730f4f07c51
specs:
travis-core (0.0.1)
actionmailer (~> 3.2.12)
@ -82,7 +82,7 @@ GIT
GIT
remote: git://github.com/travis-ci/travis-support.git
revision: 5463f10e58563e79b950da8c6c392d1e80ec3013
revision: c0add49c71ff3c788b4b7e5b63c11d3896d9847d
specs:
travis-support (0.0.1)
@ -97,7 +97,6 @@ PATH
specs:
travis-api (0.0.1)
backports (~> 2.5)
hubble (~> 0.1)
newrelic_rpm (~> 3.6.1.88)
pg (~> 0.13.2)
rack-contrib (~> 1.1)
@ -159,7 +158,7 @@ GEM
dotenv (0.7.0)
erubis (2.7.0)
eventmachine (1.0.3)
facter (1.7.0)
facter (1.7.1)
factory_girl (2.4.2)
activesupport
faraday (0.8.7)
@ -168,16 +167,14 @@ GEM
foreman (0.63.0)
dotenv (>= 0.7)
thor (>= 0.13.6)
hashie (2.0.4)
hashie (2.0.5)
hashr (0.0.22)
hike (1.2.2)
hitimes (1.2.1)
hubble (0.1.2)
yajl-ruby (~> 1.1)
i18n (0.6.1)
journey (1.0.4)
json (1.8.0)
listen (1.0.3)
listen (1.1.3)
rb-fsevent (>= 0.9.3)
rb-inotify (>= 0.9)
rb-kqueue (>= 0.2)
@ -191,7 +188,7 @@ GEM
avl_tree (~> 1.1.2)
hitimes (~> 1.1)
mime-types (1.23)
mocha (0.13.3)
mocha (0.14.0)
metaclass (~> 0.0.1)
multi_json (1.7.3)
multipart-post (1.2.0)
@ -200,7 +197,7 @@ GEM
newrelic_rpm (3.6.1.88)
pg (0.13.2)
polyglot (0.3.3)
pry (0.9.12.1)
pry (0.9.12.2)
coderay (~> 1.0.5)
method_source (~> 0.8)
slop (~> 3.4)
@ -233,7 +230,7 @@ GEM
ffi (>= 0.5.0)
rdoc (3.12.2)
json (~> 1.4)
redcarpet (2.2.2)
redcarpet (2.3.0)
redis (3.0.4)
redis-namespace (1.3.0)
redis (~> 3.0.0)
@ -266,7 +263,7 @@ GEM
rack-test
sinatra (~> 1.3.0)
tilt (~> 1.3)
slop (3.4.4)
slop (3.4.5)
sprockets (2.2.2)
hike (~> 1.2)
multi_json (~> 1.0)
@ -284,7 +281,6 @@ GEM
polyglot (>= 0.3.1)
tzinfo (0.3.37)
uuidtools (2.1.4)
yajl-ruby (1.1.0)
yard (0.8.6.1)
PLATFORMS

View File

@ -272,6 +272,8 @@ class Travis::Api::App
return unless uri = Addressable::URI.parse(target_origin)
if uri.host =~ /\A(.+\.)?travis-ci\.(com|org)\Z/
uri.scheme == 'https'
elsif uri.host =~ /\A(.+\.)?travis-lite\.com\Z/
uri.scheme == 'https'
elsif uri.host == 'localhost' or uri.host == '127.0.0.1'
uri.port > 1023
end

View File

@ -42,7 +42,7 @@ describe 'v1 repos' do
describe 'GET /svenfuchs/minimal.png' do
it '"unknown" when it only has one build that is not finished' do
Build.delete_all
Factory(:build, repository: repo, state: :created, result: nil)
Factory(:build, repository: repo, state: :created)
repo.builds.update_all(state: 'started')
get('/svenfuchs/minimal.png').should deliver_result_image_for('unknown')
end
@ -58,7 +58,7 @@ describe 'v1 repos' do
end
it '"passing" when there is a running build but the previous one has passed' do
Factory(:build, repository: repo, state: :finished, result: nil, previous_result: 0)
Factory(:build, repository: repo, state: :passed, previous_state: :passed)
repo.update_attributes!(last_build_state: 'started')
get('/svenfuchs/minimal.png').should deliver_result_image_for('passing')
end

View File

@ -12,29 +12,32 @@ Gem::Specification.new do |s|
"Sven Fuchs",
"Konstantin Haase",
"Piotr Sarnacki",
"Josh Kalderimis",
"Henrik Hodne",
"Mathias Meyer",
"Josh Kalderimis",
"Andre Arko",
"Erik Michaels-Ober",
"Steve Richert",
"Brian Ford",
"Nick Schonning"
"Nick Schonning",
"James Dennes"
]
s.email = [
"me@svenfuchs.com",
"konstantin.mailinglists@googlemail.com",
"drogus@gmail.com",
"meyer@paperplanes.de",
"me@henrikhodne.com",
"svenfuchs@artweb-design.de",
"josh.kalderimis@gmail.com",
"me@henrikhodne.com",
"meyer@paperplanes.de",
"svenfuchs@artweb-design.de",
"andre@arko.net",
"sferik@gmail.com",
"steve.richert@gmail.com",
"bford@engineyard.com",
"nschonni@gmail.com"
"jdennes@gmail.com",
"nschonni@gmail.com",
"konstantin.haase@gmail.com"
]
s.files = [
@ -48,6 +51,7 @@ Gem::Specification.new do |s|
"config/unicorn.rb",
"docs/00_overview.md",
"docs/01_cross_origin.md",
"lib/tasks/build_update_branch.rake",
"lib/tasks/build_update_pull_request_data.rake",
"lib/travis/api/app.rb",
"lib/travis/api/app/access_token.rb",
@ -111,6 +115,7 @@ Gem::Specification.new do |s|
"lib/travis/api/app/helpers.rb",
"lib/travis/api/app/helpers/accept.rb",
"lib/travis/api/app/helpers/current_user.rb",
"lib/travis/api/app/helpers/db_follower.rb",
"lib/travis/api/app/helpers/flash.rb",
"lib/travis/api/app/helpers/mime_types.rb",
"lib/travis/api/app/helpers/respond_with.rb",
@ -134,7 +139,9 @@ Gem::Specification.new do |s|
"script/console",
"script/server",
"spec/integration/formats_handling_spec.rb",
"spec/integration/responders_spec.rb",
"spec/integration/routes.backup.rb",
"spec/integration/scopes_spec.rb",
"spec/integration/v1/branches_spec.rb",
"spec/integration/v1/builds_spec.rb",
"spec/integration/v1/hooks_spec.rb",
@ -153,6 +160,7 @@ Gem::Specification.new do |s|
"spec/integration/version_spec.rb",
"spec/spec_helper.rb",
"spec/support/matchers.rb",
"spec/unit/access_token_spec.rb",
"spec/unit/app_spec.rb",
"spec/unit/cors_spec.rb",
"spec/unit/default_spec.rb",
@ -186,7 +194,6 @@ Gem::Specification.new do |s|
s.add_dependency 'travis-support'
s.add_dependency 'travis-core'
s.add_dependency 'hubble', '~> 0.1'
s.add_dependency 'backports', '~> 2.5'
s.add_dependency 'pg', '~> 0.13.2'
s.add_dependency 'newrelic_rpm', '~> 3.6.1.88'