diff --git a/spec/unit/endpoint/authorization_spec.rb b/spec/unit/endpoint/authorization_spec.rb index 2f84ad19..7f1727f9 100644 --- a/spec/unit/endpoint/authorization_spec.rb +++ b/spec/unit/endpoint/authorization_spec.rb @@ -26,10 +26,10 @@ describe Travis::Api::App::Endpoint::Authorization do describe 'POST /auth/github' do before do data = { 'id' => user.github_id, 'name' => user.name, 'login' => user.login, 'gravatar_id' => user.gravatar_id } - GH.stubs(:with).with(token: 'private repos').returns stub(:[] => user.login, :headers => {'x-oauth-scopes' => 'repo'}, :to_hash => data) - GH.stubs(:with).with(token: 'public repos').returns stub(:[] => user.login, :headers => {'x-oauth-scopes' => 'public_repo'}, :to_hash => data) - GH.stubs(:with).with(token: 'no repos').returns stub(:[] => user.login, :headers => {'x-oauth-scopes' => 'user'}, :to_hash => data) - GH.stubs(:with).with(token: 'invalid token').raises(Faraday::Error::ClientError, 'CLIENT ERROR!') + GH.stubs(:with).with(token: 'private repos', client_id: nil).returns stub(:[] => user.login, :headers => {'x-oauth-scopes' => 'repo'}, :to_hash => data) + GH.stubs(:with).with(token: 'public repos', client_id: nil).returns stub(:[] => user.login, :headers => {'x-oauth-scopes' => 'public_repo'}, :to_hash => data) + GH.stubs(:with).with(token: 'no repos', client_id: nil).returns stub(:[] => user.login, :headers => {'x-oauth-scopes' => 'user'}, :to_hash => data) + GH.stubs(:with).with(token: 'invalid token', client_id: nil).raises(Faraday::Error::ClientError, 'CLIENT ERROR!') end def get_token(github_token) diff --git a/travis-api.gemspec b/travis-api.gemspec index 7256bc1d..9d883c1f 100644 --- a/travis-api.gemspec +++ b/travis-api.gemspec @@ -12,12 +12,13 @@ Gem::Specification.new do |s| "Sven Fuchs", "Konstantin Haase", "Piotr Sarnacki", + "Henrik Hodne", "Mathias Meyer", "Josh Kalderimis", - "Henrik Hodne", + "Andre Arko", "Erik Michaels-Ober", - "Brian Ford", "Steve Richert", + "Brian Ford", "Nick Schonning" ] @@ -26,9 +27,10 @@ Gem::Specification.new do |s| "konstantin.mailinglists@googlemail.com", "drogus@gmail.com", "meyer@paperplanes.de", + "me@henrikhodne.com", "svenfuchs@artweb-design.de", "josh.kalderimis@gmail.com", - "me@henrikhodne.com", + "andre@arko.net", "sferik@gmail.com", "steve.richert@gmail.com", "bford@engineyard.com", @@ -46,6 +48,7 @@ Gem::Specification.new do |s| "config/unicorn.rb", "docs/00_overview.md", "docs/01_cross_origin.md", + "lib/tasks/build_update_pull_request_data.rake", "lib/travis/api/app.rb", "lib/travis/api/app/access_token.rb", "lib/travis/api/app/base.rb", @@ -63,6 +66,7 @@ Gem::Specification.new do |s| "lib/travis/api/app/endpoint/documentation/css/bootstrap.css", "lib/travis/api/app/endpoint/documentation/css/bootstrap.min.css", "lib/travis/api/app/endpoint/documentation/css/prettify.css", + "lib/travis/api/app/endpoint/documentation/css/style.css", "lib/travis/api/app/endpoint/documentation/img/glyphicons-halflings-white.png", "lib/travis/api/app/endpoint/documentation/img/glyphicons-halflings.png", "lib/travis/api/app/endpoint/documentation/img/grid-18px-masked.png", @@ -88,6 +92,7 @@ Gem::Specification.new do |s| "lib/travis/api/app/endpoint/documentation/js/lang-xq.js", "lib/travis/api/app/endpoint/documentation/js/lang-yaml.js", "lib/travis/api/app/endpoint/documentation/js/prettify.js", + "lib/travis/api/app/endpoint/documentation/resources.rb", "lib/travis/api/app/endpoint/endpoints.rb", "lib/travis/api/app/endpoint/events.rb", "lib/travis/api/app/endpoint/home.rb", @@ -120,6 +125,7 @@ Gem::Specification.new do |s| "lib/travis/api/app/responders/plain.rb", "lib/travis/api/app/responders/service.rb", "lib/travis/api/app/responders/xml.rb", + "public/favicon.ico", "public/images/result/error.png", "public/images/result/failing.png", "public/images/result/passing.png", @@ -172,6 +178,7 @@ Gem::Specification.new do |s| "spec/unit/middleware/logging_spec.rb", "spec/unit/middleware/scope_check_spec.rb", "spec/unit/middleware_spec.rb", + "spec/unit/responders/json_spec.rb", "spec/unit/responders/service_spec.rb", "travis-api.gemspec" ]