From c83937676789ff4a2eaff668b7e30181dc036735 Mon Sep 17 00:00:00 2001 From: Lizz Hale Date: Fri, 11 Aug 2017 16:50:01 -0700 Subject: [PATCH] Remove org_membership preview --- lib/octokit/client/organizations.rb | 5 ----- lib/octokit/client/repositories.rb | 1 - lib/octokit/preview.rb | 1 - .../lists_pending_organization_invitations.json | 2 +- ...ists_outside_collaborators_for_an_organization.json | 2 +- .../lists_pending_team_invitations.json | 2 +- ...he_permission_level_a_user_has_on_a_repository.json | 2 +- spec/octokit/client/organizations_spec.rb | 10 +++++----- spec/octokit/client/repositories_spec.rb | 2 +- 9 files changed, 10 insertions(+), 17 deletions(-) diff --git a/lib/octokit/client/organizations.rb b/lib/octokit/client/organizations.rb index 10b6f34d1..8ef1cde13 100644 --- a/lib/octokit/client/organizations.rb +++ b/lib/octokit/client/organizations.rb @@ -220,7 +220,6 @@ def organization_public_member?(org, user, options = {}) # @example # @client.organization_invitations('github') def organization_invitations(org, options = {}) - options = ensure_api_media_type(:org_memberships, options) get "#{Organization.path org}/invitations", options end alias :org_invitations :organization_invitations @@ -236,7 +235,6 @@ def organization_invitations(org, options = {}) # @example # @client.outside_collaborators('github') def outside_collaborators(org, options={}) - options = ensure_api_media_type(:org_memberships, options) get "#{Organization.path org}/outside_collaborators", options end @@ -252,7 +250,6 @@ def outside_collaborators(org, options={}) # @example # @client.remove_outside_collaborator('github', 'lizzhale') def remove_outside_collaborator(org, user, options={}) - options = ensure_api_media_type(:org_memberships, options) boolean_from_response :delete, "#{Organization.path org}/outside_collaborators/#{user}", options end @@ -268,7 +265,6 @@ def remove_outside_collaborator(org, user, options={}) # @example # @client.convert_to_outside_collaborator('github', 'lizzhale') def convert_to_outside_collaborator(org, user, options={}) - options = ensure_api_media_type(:org_memberships, options) boolean_from_response :put, "#{Organization.path org}/outside_collaborators/#{user}", options end @@ -444,7 +440,6 @@ def team_member?(team_id, user, options = {}) # @example # @client.team_invitations('github') def team_invitations(team_id, options = {}) - options = ensure_api_media_type(:org_memberships, options) get "teams/#{team_id}/invitations", options end diff --git a/lib/octokit/client/repositories.rb b/lib/octokit/client/repositories.rb index 5964f69e4..24c7a11d9 100644 --- a/lib/octokit/client/repositories.rb +++ b/lib/octokit/client/repositories.rb @@ -358,7 +358,6 @@ def collaborator?(repo, collaborator, options={}) # @example # @client.permission_level('octokit/octokit.rb', 'lizzhale') def permission_level(repo, collaborator, options={}) - options = ensure_api_media_type(:org_memberships, options) get "#{Repository.path repo}/collaborators/#{collaborator}/permission", options end diff --git a/lib/octokit/preview.rb b/lib/octokit/preview.rb index 0c021f09c..3268931f2 100644 --- a/lib/octokit/preview.rb +++ b/lib/octokit/preview.rb @@ -14,7 +14,6 @@ module Preview :pages => 'application/vnd.github.mister-fantastic-preview+json'.freeze, :projects => 'application/vnd.github.inertia-preview+json'.freeze, :traffic => 'application/vnd.github.spiderman-preview'.freeze, - :org_membership => 'application/vnd.github.korra-preview'.freeze, :reviews => 'application/vnd.github.black-cat-preview'.freeze, :integrations => 'application/vnd.github.machine-man-preview+json'.freeze, :topics => 'application/vnd.github.mercy-preview+json'.freeze diff --git a/spec/cassettes/Octokit_Client_Organizations/_organization_invitations/lists_pending_organization_invitations.json b/spec/cassettes/Octokit_Client_Organizations/_organization_invitations/lists_pending_organization_invitations.json index 5dd4d9d97..37800b071 100644 --- a/spec/cassettes/Octokit_Client_Organizations/_organization_invitations/lists_pending_organization_invitations.json +++ b/spec/cassettes/Octokit_Client_Organizations/_organization_invitations/lists_pending_organization_invitations.json @@ -1 +1 @@ -{"http_interactions":[{"request":{"method":"get","uri":"https://api.github.com/orgs//invitations","body":{"encoding":"US-ASCII","base64_string":""},"headers":{"Accept":["application/vnd.github.korra-preview+json"],"User-Agent":["Octokit Ruby Gem 4.6.0"],"Content-Type":["application/json"],"Authorization":["token <>"],"Accept-Encoding":["gzip;q=1.0,deflate;q=0.6,identity;q=0.3"]}},"response":{"status":{"code":200,"message":"OK"},"headers":{"Server":["GitHub.com"],"Date":["Fri, 18 Nov 2016 03:57:21 GMT"],"Content-Type":["application/json; charset=utf-8"],"Content-Length":["2"],"Status":["200 OK"],"X-Ratelimit-Limit":["5000"],"X-Ratelimit-Remaining":["3785"],"X-Ratelimit-Reset":["1479443057"],"Cache-Control":["private, max-age=60, s-maxage=60"],"Vary":["Accept, Authorization, Cookie, X-GitHub-OTP","Accept-Encoding"],"Etag":["\"74981bad1a2cd19e46517a1fba85716c\""],"X-Oauth-Scopes":["admin:gpg_key, admin:org, admin:org_hook, admin:public_key, admin:repo_hook, delete_repo, gist, notifications, repo, user"],"X-Accepted-Oauth-Scopes":["admin:org, repo"],"X-Github-Media-Type":["github.korra-preview; format=json"],"Access-Control-Expose-Headers":["ETag, Link, X-GitHub-OTP, X-RateLimit-Limit, X-RateLimit-Remaining, X-RateLimit-Reset, X-OAuth-Scopes, X-Accepted-OAuth-Scopes, X-Poll-Interval"],"Access-Control-Allow-Origin":["*"],"Content-Security-Policy":["default-src 'none'"],"Strict-Transport-Security":["max-age=31536000; includeSubdomains; preload"],"X-Content-Type-Options":["nosniff"],"X-Frame-Options":["deny"],"X-Xss-Protection":["1; mode=block"],"X-Served-By":["2c18a09f3ac5e4dd1e004af7c5a94769"],"X-Github-Request-Id":["32B88C12:14AE7:BB5088B:582E7C20"]},"body":{"encoding":"UTF-8","base64_string":"W10=\n"},"http_version":null},"recorded_at":"Fri, 18 Nov 2016 03:57:21 GMT"}],"recorded_with":"VCR 2.9.3"} \ No newline at end of file +{"http_interactions":[{"request":{"method":"get","uri":"https://api.github.com/orgs//invitations","body":{"encoding":"US-ASCII","base64_string":""},"headers":{"Accept":["application/vnd.github.v3+json"],"User-Agent":["Octokit Ruby Gem 4.7.0"],"Content-Type":["application/json"],"Authorization":["token <>"],"Accept-Encoding":["gzip;q=1.0,deflate;q=0.6,identity;q=0.3"]}},"response":{"status":{"code":200,"message":"OK"},"headers":{"Date":["Fri, 11 Aug 2017 23:44:41 GMT"],"Content-Type":["application/json; charset=utf-8"],"Content-Length":["2"],"Server":["GitHub.com"],"Status":["200 OK"],"X-Ratelimit-Limit":["5000"],"X-Ratelimit-Remaining":["4988"],"X-Ratelimit-Reset":["1502498667"],"Cache-Control":["private, max-age=60, s-maxage=60"],"Vary":["Accept, Authorization, Cookie, X-GitHub-OTP","Accept-Encoding"],"Etag":["\"6d197ddcc11f30e7bd1b511ef21839\""],"X-Oauth-Scopes":["admin:gpg_key, admin:org, admin:org_hook, admin:public_key, admin:repo_hook, delete_repo, gist, notifications, repo, user"],"X-Accepted-Oauth-Scopes":["admin:org, repo"],"X-Github-Media-Type":["github.v3; format=json"],"Access-Control-Expose-Headers":["ETag, Link, X-GitHub-OTP, X-RateLimit-Limit, X-RateLimit-Remaining, X-RateLimit-Reset, X-OAuth-Scopes, X-Accepted-OAuth-Scopes, X-Poll-Interval"],"Access-Control-Allow-Origin":["*"],"Content-Security-Policy":["default-src 'none'"],"Strict-Transport-Security":["max-age=31536000; includeSubdomains; preload"],"X-Content-Type-Options":["nosniff"],"X-Frame-Options":["deny"],"X-Xss-Protection":["1; mode=block"],"X-Runtime-Rack":["0.027617"],"X-Github-Request-Id":["DF0D:101F6:1C7A1E:28887B:598E4168"]},"body":{"encoding":"UTF-8","base64_string":"W10=\n"},"http_version":null},"recorded_at":"Fri, 11 Aug 2017 23:44:41 GMT"}],"recorded_with":"VCR 2.9.3"} \ No newline at end of file diff --git a/spec/cassettes/Octokit_Client_Organizations/_outside_collaborators/lists_outside_collaborators_for_an_organization.json b/spec/cassettes/Octokit_Client_Organizations/_outside_collaborators/lists_outside_collaborators_for_an_organization.json index 7a9abae64..876b1c68e 100644 --- a/spec/cassettes/Octokit_Client_Organizations/_outside_collaborators/lists_outside_collaborators_for_an_organization.json +++ b/spec/cassettes/Octokit_Client_Organizations/_outside_collaborators/lists_outside_collaborators_for_an_organization.json @@ -1 +1 @@ -{"http_interactions":[{"request":{"method":"get","uri":"https://api.github.com/orgs//outside_collaborators","body":{"encoding":"US-ASCII","base64_string":""},"headers":{"Accept":["application/vnd.github.korra-preview+json"],"User-Agent":["Octokit Ruby Gem 4.6.0"],"Content-Type":["application/json"],"Authorization":["token <>"],"Accept-Encoding":["gzip;q=1.0,deflate;q=0.6,identity;q=0.3"]}},"response":{"status":{"code":200,"message":"OK"},"headers":{"Server":["GitHub.com"],"Date":["Fri, 18 Nov 2016 03:57:22 GMT"],"Content-Type":["application/json; charset=utf-8"],"Content-Length":["2"],"Status":["200 OK"],"X-Ratelimit-Limit":["5000"],"X-Ratelimit-Remaining":["3784"],"X-Ratelimit-Reset":["1479443057"],"Cache-Control":["private, max-age=60, s-maxage=60"],"Vary":["Accept, Authorization, Cookie, X-GitHub-OTP","Accept-Encoding"],"Etag":["\"74981bad1a2cd19e46517a1fba85716c\""],"X-Oauth-Scopes":["admin:gpg_key, admin:org, admin:org_hook, admin:public_key, admin:repo_hook, delete_repo, gist, notifications, repo, user"],"X-Accepted-Oauth-Scopes":["admin:org, read:org, repo, write:org"],"X-Github-Media-Type":["github.korra-preview; format=json"],"Access-Control-Expose-Headers":["ETag, Link, X-GitHub-OTP, X-RateLimit-Limit, X-RateLimit-Remaining, X-RateLimit-Reset, X-OAuth-Scopes, X-Accepted-OAuth-Scopes, X-Poll-Interval"],"Access-Control-Allow-Origin":["*"],"Content-Security-Policy":["default-src 'none'"],"Strict-Transport-Security":["max-age=31536000; includeSubdomains; preload"],"X-Content-Type-Options":["nosniff"],"X-Frame-Options":["deny"],"X-Xss-Protection":["1; mode=block"],"X-Served-By":["7f48e2f7761567e923121f17538d7a6d"],"X-Github-Request-Id":["32B88C12:14AE5:B454A61:582E7C22"]},"body":{"encoding":"UTF-8","base64_string":"W10=\n"},"http_version":null},"recorded_at":"Fri, 18 Nov 2016 03:57:22 GMT"}],"recorded_with":"VCR 2.9.3"} \ No newline at end of file +{"http_interactions":[{"request":{"method":"get","uri":"https://api.github.com/orgs//outside_collaborators","body":{"encoding":"US-ASCII","base64_string":""},"headers":{"Accept":["application/vnd.github.v3+json"],"User-Agent":["Octokit Ruby Gem 4.7.0"],"Content-Type":["application/json"],"Authorization":["token <>"],"Accept-Encoding":["gzip;q=1.0,deflate;q=0.6,identity;q=0.3"]}},"response":{"status":{"code":200,"message":"OK"},"headers":{"Date":["Fri, 11 Aug 2017 23:44:41 GMT"],"Content-Type":["application/json; charset=utf-8"],"Content-Length":["2"],"Server":["GitHub.com"],"Status":["200 OK"],"X-Ratelimit-Limit":["5000"],"X-Ratelimit-Remaining":["4987"],"X-Ratelimit-Reset":["1502498667"],"Cache-Control":["private, max-age=60, s-maxage=60"],"Vary":["Accept, Authorization, Cookie, X-GitHub-OTP","Accept-Encoding"],"Etag":["\"6d197ddcc11f30e7bd1b511ef21839\""],"X-Oauth-Scopes":["admin:gpg_key, admin:org, admin:org_hook, admin:public_key, admin:repo_hook, delete_repo, gist, notifications, repo, user"],"X-Accepted-Oauth-Scopes":["admin:org, read:org, repo, write:org"],"X-Github-Media-Type":["github.v3; format=json"],"Access-Control-Expose-Headers":["ETag, Link, X-GitHub-OTP, X-RateLimit-Limit, X-RateLimit-Remaining, X-RateLimit-Reset, X-OAuth-Scopes, X-Accepted-OAuth-Scopes, X-Poll-Interval"],"Access-Control-Allow-Origin":["*"],"Content-Security-Policy":["default-src 'none'"],"Strict-Transport-Security":["max-age=31536000; includeSubdomains; preload"],"X-Content-Type-Options":["nosniff"],"X-Frame-Options":["deny"],"X-Xss-Protection":["1; mode=block"],"X-Runtime-Rack":["0.0277"],"X-Github-Request-Id":["DF0E:101FA:46C35E:606650:598E4169"]},"body":{"encoding":"UTF-8","base64_string":"W10=\n"},"http_version":null},"recorded_at":"Fri, 11 Aug 2017 23:44:41 GMT"}],"recorded_with":"VCR 2.9.3"} \ No newline at end of file diff --git a/spec/cassettes/Octokit_Client_Organizations/with_team/_team_invitations/lists_pending_team_invitations.json b/spec/cassettes/Octokit_Client_Organizations/with_team/_team_invitations/lists_pending_team_invitations.json index eecf49fe3..6ff19c183 100644 --- a/spec/cassettes/Octokit_Client_Organizations/with_team/_team_invitations/lists_pending_team_invitations.json +++ b/spec/cassettes/Octokit_Client_Organizations/with_team/_team_invitations/lists_pending_team_invitations.json @@ -1 +1 @@ -{"http_interactions":[{"request":{"method":"post","uri":"https://api.github.com/orgs//teams","body":{"encoding":"UTF-8","base64_string":"eyJuYW1lIjoiVGVzdCBUZWFtIDE0Nzk0NDE0MzYifQ==\n"},"headers":{"Accept":["application/vnd.github.v3+json"],"User-Agent":["Octokit Ruby Gem 4.6.0"],"Content-Type":["application/json"],"Authorization":["token <>"],"Accept-Encoding":["gzip;q=1.0,deflate;q=0.6,identity;q=0.3"]}},"response":{"status":{"code":201,"message":"Created"},"headers":{"Server":["GitHub.com"],"Date":["Fri, 18 Nov 2016 03:57:17 GMT"],"Content-Type":["application/json; charset=utf-8"],"Content-Length":["1101"],"Status":["201 Created"],"X-Ratelimit-Limit":["5000"],"X-Ratelimit-Remaining":["3788"],"X-Ratelimit-Reset":["1479443057"],"Cache-Control":["private, max-age=60, s-maxage=60"],"Vary":["Accept, Authorization, Cookie, X-GitHub-OTP","Accept-Encoding"],"Etag":["\"f97162330b62476fd43359411401426c\""],"X-Oauth-Scopes":["admin:gpg_key, admin:org, admin:org_hook, admin:public_key, admin:repo_hook, delete_repo, gist, notifications, repo, user"],"X-Accepted-Oauth-Scopes":["admin:org, repo"],"Location":["https://api.github.com/teams/"],"X-Github-Media-Type":["github.v3; format=json"],"Access-Control-Expose-Headers":["ETag, Link, X-GitHub-OTP, X-RateLimit-Limit, X-RateLimit-Remaining, X-RateLimit-Reset, X-OAuth-Scopes, X-Accepted-OAuth-Scopes, X-Poll-Interval"],"Access-Control-Allow-Origin":["*"],"Content-Security-Policy":["default-src 'none'"],"Strict-Transport-Security":["max-age=31536000; includeSubdomains; preload"],"X-Content-Type-Options":["nosniff"],"X-Frame-Options":["deny"],"X-Xss-Protection":["1; mode=block"],"X-Served-By":["d256f86292c6dde5d09d15d926ec67a3"],"X-Github-Request-Id":["32B88C12:14AE5:B454791:582E7C1D"]},"body":{"enco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zc3Vlc191cmwiOiJodHRwczovL2FwaS5naXRodWIuY29t\nL29yZ3MvPEdJVEhVQl9URVNUX09SR0FOSVpBVElPTj4vaXNzdWVzIiwibWVt\nYmVyc191cmwiOiJodHRwczovL2FwaS5naXRodWIuY29tL29yZ3MvPEdJVEhV\nQl9URVNUX09SR0FOSVpBVElPTj4vbWVtYmVyc3svbWVtYmVyfSIsInB1Ymxp\nY19tZW1iZXJzX3VybCI6Imh0dHBzOi8vYXBpLmdpdGh1Yi5jb20vb3Jncy88\nR0lUSFVCX1RFU1RfT1JHQU5JWkFUSU9OPi9wdWJsaWNfbWVtYmVyc3svbWVt\nYmVyfSIsImF2YXRhcl91cmwiOiJodHRwczovL2F2YXRhcnMuZ2l0aHVidXNl\ncmNvbnRlbnQuY29tL3UvMjM1NDYyNjA/dj0zIiwiZGVzY3JpcHRpb24iOm51\nbGwsInB1YmxpY19yZXBvcyI6MCwicHVibGljX2dpc3RzIjowLCJmb2xsb3dl\ncnMiOjAsImZvbGxvd2luZyI6MCwiaHRtbF91cmwiOiJodHRwczovL2dpdGh1\nYi5jb20vPEdJVEhVQl9URVNUX09SR0FOSVpBVElPTj4iLCJjcmVhdGVkX2F0\nIjoiMjAxNi0xMS0xOFQwMzo1NDo1OFoiLCJ1cGRhdGVkX2F0IjoiMjAxNi0x\nMS0xOFQwMzo1NDo1OFoiLCJ0eXBlIjoiT3JnYW5pemF0aW9uIn19\n"},"http_version":null},"recorded_at":"Fri, 18 Nov 2016 03:57:17 GMT"},{"request":{"method":"get","uri":"https://api.github.com/teams//invitations","body":{"encoding":"US-ASCII","base64_string":""},"headers":{"Accept":["application/vnd.github.korra-preview+json"],"User-Agent":["Octokit Ruby Gem 4.6.0"],"Content-Type":["application/json"],"Authorization":["token <>"],"Accept-Encoding":["gzip;q=1.0,deflate;q=0.6,identity;q=0.3"]}},"response":{"status":{"code":200,"message":"OK"},"headers":{"Server":["GitHub.com"],"Date":["Fri, 18 Nov 2016 03:57:17 GMT"],"Content-Type":["application/json; charset=utf-8"],"Content-Length":["2"],"Status":["200 OK"],"X-Ratelimit-Limit":["5000"],"X-Ratelimit-Remaining":["3787"],"X-Ratelimit-Reset":["1479443057"],"Cache-Control":["private, max-age=60, s-maxage=60"],"Vary":["Accept, Authorization, Cookie, X-GitHub-OTP","Accept-Encoding"],"Etag":["\"74981bad1a2cd19e46517a1fba85716c\""],"X-Oauth-Scopes":["admin:gpg_key, admin:org, admin:org_hook, admin:public_key, admin:repo_hook, delete_repo, gist, notifications, repo, user"],"X-Accepted-Oauth-Scopes":["admin:org, repo"],"X-Github-Media-Type":["github.korra-preview; format=json"],"Access-Control-Expose-Headers":["ETag, Link, X-GitHub-OTP, X-RateLimit-Limit, X-RateLimit-Remaining, X-RateLimit-Reset, X-OAuth-Scopes, X-Accepted-OAuth-Scopes, X-Poll-Interval"],"Access-Control-Allow-Origin":["*"],"Content-Security-Policy":["default-src 'none'"],"Strict-Transport-Security":["max-age=31536000; includeSubdomains; preload"],"X-Content-Type-Options":["nosniff"],"X-Frame-Options":["deny"],"X-Xss-Protection":["1; mode=block"],"X-Served-By":["a241e1a8264a6ace03db946c85b92db3"],"X-Github-Request-Id":["32B88C12:14AE7:BB5071E:582E7C1D"]},"body":{"encoding":"UTF-8","base64_string":"W10=\n"},"http_version":null},"recorded_at":"Fri, 18 Nov 2016 03:57:18 GMT"},{"request":{"method":"delete","uri":"https://api.github.com/teams/","body":{"encoding":"UTF-8","base64_string":"e30=\n"},"headers":{"Accept":["application/vnd.github.v3+json"],"User-Agent":["Octokit Ruby Gem 4.6.0"],"Content-Type":["application/json"],"Authorization":["token <>"],"Accept-Encoding":["gzip;q=1.0,deflate;q=0.6,identity;q=0.3"]}},"response":{"status":{"code":204,"message":"No Content"},"headers":{"Server":["GitHub.com"],"Date":["Fri, 18 Nov 2016 03:57:18 GMT"],"Status":["204 No Content"],"X-Ratelimit-Limit":["5000"],"X-Ratelimit-Remaining":["3786"],"X-Ratelimit-Reset":["1479443057"],"X-Oauth-Scopes":["admin:gpg_key, admin:org, admin:org_hook, admin:public_key, admin:repo_hook, delete_repo, gist, notifications, repo, user"],"X-Accepted-Oauth-Scopes":["admin:org, repo"],"X-Github-Media-Type":["github.v3; format=json"],"Access-Control-Expose-Headers":["ETag, Link, X-GitHub-OTP, X-RateLimit-Limit, X-RateLimit-Remaining, X-RateLimit-Reset, X-OAuth-Scopes, X-Accepted-OAuth-Scopes, X-Poll-Interval"],"Access-Control-Allow-Origin":["*"],"Content-Security-Policy":["default-src 'none'"],"Strict-Transport-Security":["max-age=31536000; includeSubdomains; preload"],"X-Content-Type-Options":["nosniff"],"X-Frame-Options":["deny"],"X-Xss-Protection":["1; mode=block"],"Vary":["Accept-Encoding"],"X-Served-By":["76d9828c7e4f1d910f7ba069e90ce976"],"X-Github-Request-Id":["32B88C12:14AE5:B454800:582E7C1E"]},"body":{"encoding":"UTF-8","base64_string":""},"http_version":null},"recorded_at":"Fri, 18 Nov 2016 03:57:18 GMT"}],"recorded_with":"VCR 2.9.3"} \ No newline at end of file +{"http_interactions":[{"request":{"method":"post","uri":"https://api.github.com/orgs//teams","body":{"encoding":"UTF-8","base64_string":"eyJuYW1lIjoiVGVzdCBUZWFtIDE1MDI0OTUwNzgifQ==\n"},"headers":{"Accept":["application/vnd.github.v3+json"],"User-Agent":["Octokit Ruby Gem 4.7.0"],"Content-Type":["application/json"],"Authorization":["token <>"],"Accept-Encoding":["gzip;q=1.0,deflate;q=0.6,identity;q=0.3"]}},"response":{"status":{"code":201,"message":"Created"},"headers":{"Date":["Fri, 11 Aug 2017 23:44:38 GMT"],"Content-Type":["application/json; charset=utf-8"],"Content-Length":["1238"],"Server":["GitHub.com"],"Status":["201 Created"],"X-Ratelimit-Limit":["5000"],"X-Ratelimit-Remaining":["4991"],"X-Ratelimit-Reset":["1502498667"],"Cache-Control":["private, max-age=60, s-maxage=60"],"Vary":["Accept, Authorization, Cookie, X-GitHub-OTP","Accept-Encoding"],"Etag":["\"28b177955bea979ae761994e4694a4e6\""],"X-Oauth-Scopes":["admin:gpg_key, admin:org, admin:org_hook, admin:public_key, admin:repo_hook, delete_repo, gist, notifications, repo, user"],"X-Accepted-Oauth-Scopes":["admin:org, repo"],"Location":["https://api.github.com/teams/"],"X-Github-Media-Type":["github.v3; format=json"],"Access-Control-Expose-Headers":["ETag, Link, X-GitHub-OTP, X-RateLimit-Limit, X-RateLimit-Remaining, X-RateLimit-Reset, X-OAuth-Scopes, X-Accepted-OAuth-Scopes, X-Poll-Interval"],"Access-Control-Allow-Origin":["*"],"Content-Security-Policy":["default-src 'none'"],"Strict-Transport-Security":["max-age=31536000; includeSubdomains; preload"],"X-Content-Type-Options":["nosniff"],"X-Frame-Options":["deny"],"X-Xss-Protection":["1; mode=block"],"X-Runtime-Rack":["0.060992"],"X-Github-Request-Id":["DF0A:101F9:12C30:1A59352:598E4166"]},"body":{"encoding":"UTF-8","base64_string":"eyJuYW1lIjoiVGVzdCBUZWFtIDE1MDI0OTUwNzgiLCJpZCI6PEdJVEhVQl9U\nRVNUX09SR19URUFNX0lEPiwic2x1ZyI6InRlc3QtdGVhbS0xNTAyNDk1MDc4\nIiwiZGVzY3JpcHRpb24iOm51bGwsInByaXZhY3kiOiJzZWNyZXQiLCJ1cmwi\nOiJodHRwczovL2FwaS5naXRodWIuY29tL3RlYW1zLzxHSVRIVUJfVEVTVF9P\nUkdfVEVBTV9JRD4iLCJtZW1iZXJzX3VybCI6Imh0dHBzOi8vYXBpLmdpdGh1\nYi5jb20vdGVhbXMvPEdJVEhVQl9URVNUX09SR19URUFNX0lEPi9tZW1iZXJz\ney9tZW1iZXJ9IiwicmVwb3NpdG9yaWVzX3VybCI6Imh0dHBzOi8vYXBpLmdp\ndGh1Yi5jb20vdGVhbXMvPEdJVEhVQl9URVNUX09SR19URUFNX0lEPi9yZXBv\ncyIsInBlcm1pc3Npb24iOiJwdWxsIiwiY3JlYXRlZF9hdCI6IjIwMTctMDgt\nMTFUMjM6NDQ6MzhaIiwidXBkYXRlZF9hdC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Ijp0cnVlLCJoYXNfcmVwb3NpdG9yeV9wcm9qZWN0cyI6\ndHJ1ZSwicHVibGljX3JlcG9zIjoxLCJwdWJsaWNfZ2lzdHMiOjAsImZvbGxv\nd2VycyI6MCwiZm9sbG93aW5nIjowLCJodG1sX3VybCI6Imh0dHBzOi8vZ2l0\naHViLmNvbS88R0lUSFVCX1RFU1RfT1JHQU5JWkFUSU9OPiIsImNyZWF0ZWRf\nYXQiOiIyMDE2LTExLTE4VDAzOjU0OjU4WiIsInVwZGF0ZWRfYXQiOiIyMDE2\nLTExLTE4VDAzOjU0OjU4WiIsInR5cGUiOiJPcmdhbml6YXRpb24ifX0=\n"},"http_version":null},"recorded_at":"Fri, 11 Aug 2017 23:44:38 GMT"},{"request":{"method":"get","uri":"https://api.github.com/teams//invitations","body":{"encoding":"US-ASCII","base64_string":""},"headers":{"Accept":["application/vnd.github.v3+json"],"User-Agent":["Octokit Ruby Gem 4.7.0"],"Content-Type":["application/json"],"Authorization":["token <>"],"Accept-Encoding":["gzip;q=1.0,deflate;q=0.6,identity;q=0.3"]}},"response":{"status":{"code":200,"message":"OK"},"headers":{"Date":["Fri, 11 Aug 2017 23:44:38 GMT"],"Content-Type":["application/json; charset=utf-8"],"Content-Length":["2"],"Server":["GitHub.com"],"Status":["200 OK"],"X-Ratelimit-Limit":["5000"],"X-Ratelimit-Remaining":["4990"],"X-Ratelimit-Reset":["1502498667"],"Cache-Control":["private, max-age=60, s-maxage=60"],"Vary":["Accept, Authorization, Cookie, X-GitHub-OTP","Accept-Encoding"],"Etag":["\"6d197ddcc11f30e7bd1b511ef21839\""],"X-Oauth-Scopes":["admin:gpg_key, admin:org, admin:org_hook, admin:public_key, admin:repo_hook, delete_repo, gist, notifications, repo, user"],"X-Accepted-Oauth-Scopes":["admin:org, repo"],"X-Github-Media-Type":["github.v3; format=json"],"Access-Control-Expose-Headers":["ETag, Link, X-GitHub-OTP, X-RateLimit-Limit, X-RateLimit-Remaining, X-RateLimit-Reset, X-OAuth-Scopes, X-Accepted-OAuth-Scopes, X-Poll-Interval"],"Access-Control-Allow-Origin":["*"],"Content-Security-Policy":["default-src 'none'"],"Strict-Transport-Security":["max-age=31536000; includeSubdomains; preload"],"X-Content-Type-Options":["nosniff"],"X-Frame-Options":["deny"],"X-Xss-Protection":["1; mode=block"],"X-Runtime-Rack":["0.027188"],"X-Github-Request-Id":["DF0B:101F5:9FD2D:E323E:598E4166"]},"body":{"encoding":"UTF-8","base64_string":"W10=\n"},"http_version":null},"recorded_at":"Fri, 11 Aug 2017 23:44:38 GMT"},{"request":{"method":"delete","uri":"https://api.github.com/teams/","body":{"encoding":"UTF-8","base64_string":"e30=\n"},"headers":{"Accept":["application/vnd.github.v3+json"],"User-Agent":["Octokit Ruby Gem 4.7.0"],"Content-Type":["application/json"],"Authorization":["token <>"],"Accept-Encoding":["gzip;q=1.0,deflate;q=0.6,identity;q=0.3"]}},"response":{"status":{"code":204,"message":"No Content"},"headers":{"Date":["Fri, 11 Aug 2017 23:44:39 GMT"],"Content-Type":["application/octet-stream"],"Server":["GitHub.com"],"Status":["204 No Content"],"X-Ratelimit-Limit":["5000"],"X-Ratelimit-Remaining":["4989"],"X-Ratelimit-Reset":["1502498667"],"X-Oauth-Scopes":["admin:gpg_key, admin:org, admin:org_hook, admin:public_key, admin:repo_hook, delete_repo, gist, notifications, repo, user"],"X-Accepted-Oauth-Scopes":["admin:org, repo"],"X-Github-Media-Type":["github.v3; format=json"],"Access-Control-Expose-Headers":["ETag, Link, X-GitHub-OTP, X-RateLimit-Limit, X-RateLimit-Remaining, X-RateLimit-Reset, X-OAuth-Scopes, X-Accepted-OAuth-Scopes, X-Poll-Interval"],"Access-Control-Allow-Origin":["*"],"Content-Security-Policy":["default-src 'none'"],"Strict-Transport-Security":["max-age=31536000; includeSubdomains; preload"],"X-Content-Type-Options":["nosniff"],"X-Frame-Options":["deny"],"X-Xss-Protection":["1; mode=block"],"X-Runtime-Rack":["0.040986"],"Vary":["Accept-Encoding"],"X-Github-Request-Id":["DF0C:101F8:B28905:FC494C:598E4166"]},"body":{"encoding":"UTF-8","base64_string":""},"http_version":null},"recorded_at":"Fri, 11 Aug 2017 23:44:40 GMT"}],"recorded_with":"VCR 2.9.3"} \ No newline at end of file diff --git a/spec/cassettes/Octokit_Client_Repositories/with_repository/_permission_level/returns_the_permission_level_a_user_has_on_a_repository.json b/spec/cassettes/Octokit_Client_Repositories/with_repository/_permission_level/returns_the_permission_level_a_user_has_on_a_repository.json index 63ae7b2fd..693f9e014 100644 --- a/spec/cassettes/Octokit_Client_Repositories/with_repository/_permission_level/returns_the_permission_level_a_user_has_on_a_repository.json +++ b/spec/cassettes/Octokit_Client_Repositories/with_repository/_permission_level/returns_the_permission_level_a_user_has_on_a_repository.json @@ -1 +1 @@ -{"http_interactions":[{"request":{"method":"post","uri":"https://api.github.com/user/repos","body":{"encoding":"UTF-8","base64_string":"eyJhdXRvX2luaXQiOnRydWUsIm5hbWUiOiJhbi1yZXBvIn0=\n"},"headers":{"Accept":["application/vnd.github.v3+json"],"User-Agent":["Octokit Ruby Gem 4.6.0"],"Content-Type":["application/json"],"Authorization":["token <>"],"Accept-Encoding":["gzip;q=1.0,deflate;q=0.6,identity;q=0.3"]}},"response":{"status":{"code":201,"message":"Created"},"headers":{"Server":["GitHub.com"],"Date":["Sat, 19 Nov 2016 01:16:21 GMT"],"Content-Type":["application/json; charset=utf-8"],"Content-Length":["4490"],"Status":["201 Created"],"X-Ratelimit-Limit":["5000"],"X-Ratelimit-Remaining":["4533"],"X-Ratelimit-Reset":["1479519258"],"Cache-Control":["private, max-age=60, s-maxage=60"],"Vary":["Accept, Authorization, Cookie, X-GitHub-OTP","Accept-Encoding"],"Etag":["\"49eb1dc636a878c287603922c938abd1\""],"X-Oauth-Scopes":["admin:gpg_key, admin:org, admin:org_hook, admin:public_key, admin:repo_hook, delete_repo, gist, notifications, repo, user"],"X-Accepted-Oauth-Scopes":["public_repo, repo"],"Location":["https://api.github.com/repos//an-repo"],"X-Github-Media-Type":["github.v3; format=json"],"Access-Control-Expose-Headers":["ETag, Link, X-GitHub-OTP, X-RateLimit-Limit, X-RateLimit-Remaining, X-RateLimit-Reset, X-OAuth-Scopes, X-Accepted-OAuth-Scopes, X-Poll-Interval"],"Access-Control-Allow-Origin":["*"],"Content-Security-Policy":["default-src 'none'"],"Strict-Transport-Security":["max-age=31536000; includeSubdomains; preload"],"X-Content-Type-Options":["nosniff"],"X-Frame-Options":["deny"],"X-Xss-Protection":["1; mode=block"],"X-Served-By":["e724c57ebb9961c772a91e2dd7421c8d"],"X-Github-Request-Id":["32B88C12:14AE7:C757D03:582FA7E4"]},"body":{"encoding":"UTF-8","base64_string":"eyJpZCI6NzQxNzg5NjIsIm5hbWUiOiJhbi1yZXBvIiwiZnVsbF9uYW1lIjoi\nPEdJVEhVQl9MT0dJTj4vYW4tcmVwbyIsIm93bmVyIjp7ImxvZ2luIjoiPEdJ\nVEhVQl9MT0dJTj4iLCJpZCI6MTg2MzE5NTksImF2YXRhcl91cmwiOiJodHRw\nczovL2F2YXRhcnMuZ2l0aHVidXNlcmNvbnRlbnQuY29tL3UvMTg2MzE5NTk/\ndj0zIiwiZ3JhdmF0YXJfaWQiOiIiLCJ1cmwiOiJodHRwczovL2FwaS5naXRo\ndWIuY29tL3VzZXJzLzxHSVRIVUJfTE9HSU4+IiwiaHRtbF91cmwiOiJodHRw\nczovL2dpdGh1Yi5jb20vPEdJVEhVQl9MT0dJTj4iLCJmb2xsb3dlcnNfdXJs\nIjoiaHR0cHM6Ly9hcGkuZ2l0aHViLmNvbS91c2Vycy88R0lUSFVCX0xPR0lO\nPi9mb2xsb3dlcnMiLCJmb2xsb3dpbmdfdXJsIjoiaHR0cHM6Ly9hcGkuZ2l0\naHViLmNvbS91c2Vycy88R0lUSFVCX0xPR0lOPi9mb2xsb3dpbmd7L290aGVy\nX3VzZXJ9IiwiZ2lzdHNfdXJsIjoiaHR0cHM6Ly9hcGkuZ2l0aHViLmNvbS91\nc2Vycy88R0lUSF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iiwic3NoX3VybCI6ImdpdEBn\naXRodWIuY29tOjxHSVRIVUJfTE9HSU4+L2FuLXJlcG8uZ2l0IiwiY2xvbmVf\ndXJsIjoiaHR0cHM6Ly9naXRodWIuY29tLzxHSVRIVUJfTE9HSU4+L2FuLXJl\ncG8uZ2l0Iiwic3ZuX3VybCI6Imh0dHBzOi8vZ2l0aHViLmNvbS88R0lUSFVC\nX0xPR0lOPi9hbi1yZXBvIiwiaG9tZXBhZ2UiOm51bGwsInNpemUiOjAsInN0\nYXJnYXplcnNfY291bnQiOjAsIndhdGNoZXJzX2NvdW50IjowLCJsYW5ndWFn\nZSI6bnVsbCwiaGFzX2lzc3VlcyI6dHJ1ZSwiaGFzX2Rvd25sb2FkcyI6dHJ1\nZSwiaGFzX3dpa2kiOnRydWUsImhhc19wYWdlcyI6ZmFsc2UsImZvcmtzX2Nv\ndW50IjowLCJtaXJyb3JfdXJsIjpudWxsLCJvcGVuX2lzc3Vlc19jb3VudCI6\nMCwiZm9ya3MiOjAsIm9wZW5faXNzdWVzIjowLCJ3YXRjaGVycyI6MCwiZGVm\nYXVsdF9icmFuY2giOiJtYXN0ZXIiLCJwZXJtaXNzaW9ucyI6eyJhZG1pbiI6\ndHJ1ZSwicHVzaCI6dHJ1ZSwicHVsbCI6dHJ1ZX0sIm5ldHdvcmtfY291bnQi\nOjAsInN1YnNjcmliZXJzX2NvdW50IjoxfQ==\n"},"http_version":null},"recorded_at":"Sat, 19 Nov 2016 01:16:21 GMT"},{"request":{"method":"get","uri":"https://api.github.com/repos//an-repo/collaborators/lizzhale/permission","body":{"encoding":"US-ASCII","base64_string":""},"headers":{"Accept":["application/vnd.github.korra-preview+json"],"User-Agent":["Octokit Ruby Gem 4.6.0"],"Content-Type":["application/json"],"Authorization":["token <>"],"Accept-Encoding":["gzip;q=1.0,deflate;q=0.6,identity;q=0.3"]}},"response":{"status":{"code":200,"message":"OK"},"headers":{"Server":["GitHub.com"],"Date":["Sat, 19 Nov 2016 01:16:21 GMT"],"Content-Type":["application/json; charset=utf-8"],"Transfer-Encoding":["chunked"],"Status":["200 OK"],"X-Ratelimit-Limit":["5000"],"X-Ratelimit-Remaining":["4532"],"X-Ratelimit-Reset":["1479519258"],"Cache-Control":["private, max-age=60, s-maxage=60"],"Vary":["Accept, Authorization, Cookie, X-GitHub-OTP","Accept-Encoding"],"Etag":["W/\"9eec53f904a6fbf087ac9ef7c8f4a71b\""],"X-Oauth-Scopes":["admin:gpg_key, admin:org, admin:org_hook, admin:public_key, admin:repo_hook, delete_repo, gist, notifications, repo, user"],"X-Accepted-Oauth-Scopes":[""],"X-Github-Media-Type":["github.korra-preview; format=json"],"Access-Control-Expose-Headers":["ETag, Link, X-GitHub-OTP, X-RateLimit-Limit, X-RateLimit-Remaining, X-RateLimit-Reset, X-OAuth-Scopes, X-Accepted-OAuth-Scopes, X-Poll-Interval"],"Access-Control-Allow-Origin":["*"],"Content-Security-Policy":["default-src 'none'"],"Strict-Transport-Security":["max-age=31536000; includeSubdomains; preload"],"X-Content-Type-Options":["nosniff"],"X-Frame-Options":["deny"],"X-Xss-Protection":["1; mode=block"],"X-Served-By":["ef96c2e493b28ffea49b891b085ed2dd"],"X-Github-Request-Id":["32B88C12:14AE7:C757D4F:582FA7E5"]},"body":{"encoding":"ASCII-8BIT","base64_string":"eyJwZXJtaXNzaW9uIjoicmVhZCIsInVzZXIiOnsibG9naW4iOiJMaXp6SGFs\nZSIsImlkIjo2NTk4MTg1LCJhdmF0YXJfdXJsIjoiaHR0cHM6Ly9hdmF0YXJz\nLmdpdGh1YnVzZXJjb250ZW50LmNvbS91LzY1OTgxODU/dj0zIiwiZ3JhdmF0\nYXJfaWQiOiIiLCJ1cmwiOiJodHRwczovL2FwaS5naXRodWIuY29tL3VzZXJz\nL0xpenpIYWxlIiwiaHRtbF91cmwiOiJodHRwczovL2dpdGh1Yi5jb20vTGl6\nekhhbGUiLCJmb2xsb3dlcnNfdXJsIjoiaHR0cHM6Ly9hcGkuZ2l0aHViLmNv\nbS91c2Vycy9MaXp6SGFsZS9mb2xsb3dlcnMiLCJmb2xsb3dpbmdfdXJsIjoi\naHR0cHM6Ly9hcGkuZ2l0aHViLmNvbS91c2Vycy9MaXp6SGFsZS9mb2xsb3dp\nbmd7L290aGVyX3VzZXJ9IiwiZ2lzdHNfdXJsIjoiaHR0cHM6Ly9hcGkuZ2l0\naHViLmNvbS91c2Vycy9MaXp6SGFsZS9naXN0c3svZ2lzdF9pZH0iLCJzdGFy\ncmVkX3VybCI6Imh0dHBzOi8vYXBpLmdpdGh1Yi5jb20vdXNlcnMvTGl6ekhh\nbGUvc3RhcnJlZHsvb3duZXJ9ey9yZXBvfSIsInN1YnNjcmlwdGlvbnNfdXJs\nIjoiaHR0cHM6Ly9hcGkuZ2l0aHViLmNvbS91c2Vycy9MaXp6SGFsZS9zdWJz\nY3JpcHRpb25zIiwib3JnYW5pemF0aW9uc191cmwiOiJodHRwczovL2FwaS5n\naXRodWIuY29tL3VzZXJzL0xpenpIYWxlL29yZ3MiLCJyZXBvc191cmwiOiJo\ndHRwczovL2FwaS5naXRodWIuY29tL3VzZXJzL0xpenpIYWxlL3JlcG9zIiwi\nZXZlbnRzX3VybCI6Imh0dHBzOi8vYXBpLmdpdGh1Yi5jb20vdXNlcnMvTGl6\nekhhbGUvZXZlbnRzey9wcml2YWN5fSIsInJlY2VpdmVkX2V2ZW50c191cmwi\nOiJodHRwczovL2FwaS5naXRodWIuY29tL3VzZXJzL0xpenpIYWxlL3JlY2Vp\ndmVkX2V2ZW50cyIsInR5cGUiOiJVc2VyIiwic2l0ZV9hZG1pbiI6dHJ1ZX19\n"},"http_version":null},"recorded_at":"Sat, 19 Nov 2016 01:16:21 GMT"},{"request":{"method":"delete","uri":"https://api.github.com/repos//an-repo","body":{"encoding":"UTF-8","base64_string":"e30=\n"},"headers":{"Accept":["application/vnd.github.v3+json"],"User-Agent":["Octokit Ruby Gem 4.6.0"],"Content-Type":["application/json"],"Authorization":["token <>"],"Accept-Encoding":["gzip;q=1.0,deflate;q=0.6,identity;q=0.3"]}},"response":{"status":{"code":204,"message":"No Content"},"headers":{"Server":["GitHub.com"],"Date":["Sat, 19 Nov 2016 01:16:21 GMT"],"Status":["204 No Content"],"X-Ratelimit-Limit":["5000"],"X-Ratelimit-Remaining":["4531"],"X-Ratelimit-Reset":["1479519258"],"X-Oauth-Scopes":["admin:gpg_key, admin:org, admin:org_hook, admin:public_key, admin:repo_hook, delete_repo, gist, notifications, repo, user"],"X-Accepted-Oauth-Scopes":["delete_repo"],"X-Github-Media-Type":["github.v3; format=json"],"Access-Control-Expose-Headers":["ETag, Link, X-GitHub-OTP, X-RateLimit-Limit, X-RateLimit-Remaining, X-RateLimit-Reset, X-OAuth-Scopes, X-Accepted-OAuth-Scopes, X-Poll-Interval"],"Access-Control-Allow-Origin":["*"],"Content-Security-Policy":["default-src 'none'"],"Strict-Transport-Security":["max-age=31536000; includeSubdomains; preload"],"X-Content-Type-Options":["nosniff"],"X-Frame-Options":["deny"],"X-Xss-Protection":["1; mode=block"],"Vary":["Accept-Encoding"],"X-Served-By":["2c18a09f3ac5e4dd1e004af7c5a94769"],"X-Github-Request-Id":["32B88C12:14AE7:C757D87:582FA7E5"]},"body":{"encoding":"UTF-8","base64_string":""},"http_version":null},"recorded_at":"Sat, 19 Nov 2016 01:16:21 GMT"}],"recorded_with":"VCR 2.9.3"} \ No newline at end of file +{"http_interactions":[{"request":{"method":"post","uri":"https://api.github.com/user/repos","body":{"encoding":"UTF-8","base64_string":"eyJhdXRvX2luaXQiOnRydWUsIm5hbWUiOiI8R0lUSFVCX1RFU1RfUkVQT1NJ\nVE9SWT4ifQ==\n"},"headers":{"Accept":["application/vnd.github.v3+json"],"User-Agent":["Octokit Ruby Gem 4.7.0"],"Content-Type":["application/json"],"Authorization":["token <>"],"Accept-Encoding":["gzip;q=1.0,deflate;q=0.6,identity;q=0.3"]}},"response":{"status":{"code":201,"message":"Created"},"headers":{"Date":["Fri, 11 Aug 2017 23:44:27 GMT"],"Content-Type":["application/json; charset=utf-8"],"Content-Length":["4590"],"Server":["GitHub.com"],"Status":["201 Created"],"X-Ratelimit-Limit":["5000"],"X-Ratelimit-Remaining":["4999"],"X-Ratelimit-Reset":["1502498667"],"Cache-Control":["private, max-age=60, s-maxage=60"],"Vary":["Accept, Authorization, Cookie, X-GitHub-OTP","Accept-Encoding"],"Etag":["\"952fa63d5be5d79d553eaa34ff27a796\""],"X-Oauth-Scopes":["admin:gpg_key, admin:org, admin:org_hook, admin:public_key, admin:repo_hook, delete_repo, gist, notifications, repo, user"],"X-Accepted-Oauth-Scopes":["public_repo, repo"],"Location":["https://api.github.com/repos//"],"X-Github-Media-Type":["github.v3; format=json"],"Access-Control-Expose-Headers":["ETag, Link, X-GitHub-OTP, X-RateLimit-Limit, X-RateLimit-Remaining, X-RateLimit-Reset, X-OAuth-Scopes, X-Accepted-OAuth-Scopes, X-Poll-Interval"],"Access-Control-Allow-Origin":["*"],"Content-Security-Policy":["default-src 'none'"],"Strict-Transport-Security":["max-age=31536000; includeSubdomains; preload"],"X-Content-Type-Options":["nosniff"],"X-Frame-Options":["deny"],"X-Xss-Protection":["1; mode=block"],"X-Runtime-Rack":["1.062631"],"X-Github-Request-Id":["DEFE:101F9:12C292E:1A58876:598E4159"]},"body":{"encoding":"UTF-8","base64_string":"eyJpZCI6MTAwMDc3MjY3LCJuYW1lIjoiPEdJVEhVQl9URVNUX1JFUE9TSVRP\nUlk+IiwiZnVsbF9uYW1lIjoiPEdJVEhVQl9MT0dJTj4vPEdJVEhVQl9URVNU\nX1JFUE9TSVRPUlk+Iiwib3duZXIiOnsibG9naW4iOiI8R0lUSFVCX0xPR0lO\nPiIsImlkIjoxODYzMTk1OSwiYXZhdGFyX3VybCI6Imh0dHBzOi8vYXZhdGFy\nczMuZ2l0aHVidXNlcmNvbnRlbnQuY29tL3UvMTg2MzE5NTk/dj00IiwiZ3Jh\ndmF0YXJfaWQiOiIiLCJ1cmwiOiJodHRwczovL2FwaS5naXRodWIuY29tL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wiYWxsb3dfc3F1\nYXNoX21lcmdlIjp0cnVlLCJhbGxvd19tZXJnZV9jb21taXQiOnRydWUsImFs\nbG93X3JlYmFzZV9tZXJnZSI6dHJ1ZSwibmV0d29ya19jb3VudCI6MCwic3Vi\nc2NyaWJlcnNfY291bnQiOjF9\n"},"http_version":null},"recorded_at":"Fri, 11 Aug 2017 23:44:27 GMT"},{"request":{"method":"get","uri":"https://api.github.com/repos///collaborators/lizzhale/permission","body":{"encoding":"US-ASCII","base64_string":""},"headers":{"Accept":["application/vnd.github.v3+json"],"User-Agent":["Octokit Ruby Gem 4.7.0"],"Content-Type":["application/json"],"Authorization":["token <>"],"Accept-Encoding":["gzip;q=1.0,deflate;q=0.6,identity;q=0.3"]}},"response":{"status":{"code":200,"message":"OK"},"headers":{"Date":["Fri, 11 Aug 2017 23:44:30 GMT"],"Content-Type":["application/json; charset=utf-8"],"Transfer-Encoding":["chunked"],"Server":["GitHub.com"],"Status":["200 OK"],"X-Ratelimit-Limit":["5000"],"X-Ratelimit-Remaining":["4995"],"X-Ratelimit-Reset":["1502498667"],"Cache-Control":["private, max-age=60, s-maxage=60"],"Vary":["Accept, Authorization, Cookie, X-GitHub-OTP","Accept-Encoding"],"Etag":["W/\"e1a1c17ceb8d51d8e522fed486eae07c\""],"X-Oauth-Scopes":["admin:gpg_key, admin:org, admin:org_hook, admin:public_key, admin:repo_hook, delete_repo, gist, notifications, repo, user"],"X-Accepted-Oauth-Scopes":[""],"X-Github-Media-Type":["github.v3; format=json"],"Access-Control-Expose-Headers":["ETag, Link, X-GitHub-OTP, X-RateLimit-Limit, X-RateLimit-Remaining, X-RateLimit-Reset, X-OAuth-Scopes, X-Accepted-OAuth-Scopes, X-Poll-Interval"],"Access-Control-Allow-Origin":["*"],"Content-Security-Policy":["default-src 'none'"],"Strict-Transport-Security":["max-age=31536000; includeSubdomains; preload"],"X-Content-Type-Options":["nosniff"],"X-Frame-Options":["deny"],"X-Xss-Protection":["1; mode=block"],"X-Runtime-R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yIs\nImV2ZW50c191cmwiOiJodHRwczovL2FwaS5naXRodWIuY29tL3VzZXJzL0xp\nenpIYWxlL2V2ZW50c3svcHJpdmFjeX0iLCJyZWNlaXZlZF9ldmVudHNfdXJs\nIjoiaHR0cHM6Ly9hcGkuZ2l0aHViLmNvbS91c2Vycy9MaXp6SGFsZS9yZWNl\naXZlZF9ldmVudHMiLCJ0eXBlIjoiVXNlciIsInNpdGVfYWRtaW4iOnRydWV9\nfQ==\n"},"http_version":null},"recorded_at":"Fri, 11 Aug 2017 23:44:30 GMT"},{"request":{"method":"delete","uri":"https://api.github.com/repos//","body":{"encoding":"UTF-8","base64_string":"e30=\n"},"headers":{"Accept":["application/vnd.github.v3+json"],"User-Agent":["Octokit Ruby Gem 4.7.0"],"Content-Type":["application/json"],"Authorization":["token <>"],"Accept-Encoding":["gzip;q=1.0,deflate;q=0.6,identity;q=0.3"]}},"response":{"status":{"code":204,"message":"No Content"},"headers":{"Date":["Fri, 11 Aug 2017 23:44:31 GMT"],"Content-Type":["application/octet-stream"],"Server":["GitHub.com"],"Status":["204 No Content"],"X-Ratelimit-Limit":["5000"],"X-Ratelimit-Remaining":["4992"],"X-Ratelimit-Reset":["1502498667"],"X-Oauth-Scopes":["admin:gpg_key, admin:org, admin:org_hook, admin:public_key, admin:repo_hook, delete_repo, gist, notifications, repo, user"],"X-Accepted-Oauth-Scopes":["delete_repo"],"X-Github-Media-Type":["github.v3; format=json"],"Access-Control-Expose-Headers":["ETag, Link, X-GitHub-OTP, X-RateLimit-Limit, X-RateLimit-Remaining, X-RateLimit-Reset, X-OAuth-Scopes, X-Accepted-OAuth-Scopes, X-Poll-Interval"],"Access-Control-Allow-Origin":["*"],"Content-Security-Policy":["default-src 'none'"],"Strict-Transport-Security":["max-age=31536000; includeSubdomains; preload"],"X-Content-Type-Options":["nosniff"],"X-Frame-Options":["deny"],"X-Xss-Protection":["1; mode=block"],"X-Runtime-Rack":["0.057666"],"Vary":["Accept-Encoding"],"X-Github-Request-Id":["DF07:101F8:B2861C:FC44AB:598E415E"]},"body":{"encoding":"UTF-8","base64_string":""},"http_version":null},"recorded_at":"Fri, 11 Aug 2017 23:44:31 GMT"}],"recorded_with":"VCR 2.9.3"} \ No newline at end of file diff --git a/spec/octokit/client/organizations_spec.rb b/spec/octokit/client/organizations_spec.rb index cc41af008..bcb922a99 100644 --- a/spec/octokit/client/organizations_spec.rb +++ b/spec/octokit/client/organizations_spec.rb @@ -86,14 +86,14 @@ describe ".organization_invitations", :vcr do it "lists pending organization invitations" do - @client.organization_invitations(test_github_org, :accept => 'application/vnd.github.korra-preview+json') + @client.organization_invitations(test_github_org) assert_requested :get, github_url("/orgs/#{test_github_org}/invitations") end end # .organization_invitations describe ".outside_collaborators", :vcr do it "lists outside collaborators for an organization" do - @client.outside_collaborators(test_github_org, :accept => 'application/vnd.github.korra-preview+json') + @client.outside_collaborators(test_github_org) assert_requested :get, github_url("/orgs/#{test_github_org}/outside_collaborators") end end # .outside_collaborators @@ -101,7 +101,7 @@ describe ".remove_outside_collaborator", :vcr do it "removes the outside collaborator from an organization" do stub_delete github_url("/orgs/#{test_github_org}/outside_collaborators/lizzhale") - @client.remove_outside_collaborator(test_github_org, 'lizzhale', :accept => 'application/vnd.github.korra-preview+json') + @client.remove_outside_collaborator(test_github_org, 'lizzhale') assert_requested :delete, github_url("/orgs/#{test_github_org}/outside_collaborators/lizzhale") end end # .remove_outside_collaborator @@ -109,7 +109,7 @@ describe ".convert_to_outside_collaborator", :vcr do it "converts an organization member to an outside collaborator" do stub_put github_url("orgs/#{test_github_org}/outside_collaborators/lizzhale") - @client.convert_to_outside_collaborator(test_github_org, 'lizzhale', :accept => 'application/vnd.github.korra-preview+json') + @client.convert_to_outside_collaborator(test_github_org, 'lizzhale') assert_requested :put, github_url("orgs/#{test_github_org}/outside_collaborators/lizzhale") end end # .convert_to_outside_collaborator @@ -185,7 +185,7 @@ describe ".team_invitations", :vcr do it "lists pending team invitations" do - @client.team_invitations(@team.id, :accept => 'application/vnd.github.korra-preview+json') + @client.team_invitations(@team.id) assert_requested :get, github_url("/teams/#{@team.id}/invitations") end end # .team_invitations diff --git a/spec/octokit/client/repositories_spec.rb b/spec/octokit/client/repositories_spec.rb index 69d3776d9..ecd4be116 100644 --- a/spec/octokit/client/repositories_spec.rb +++ b/spec/octokit/client/repositories_spec.rb @@ -354,7 +354,7 @@ describe ".permission_level", :vcr do it "returns the permission level a user has on a repository" do - @client.permission_level(@repo.full_name, "lizzhale", :accept => 'application/vnd.github.korra-preview+json') + @client.permission_level(@repo.full_name, "lizzhale") assert_requested :get, github_url("/repos/#{@repo.full_name}/collaborators/lizzhale/permission") end end # .permission_level