lib/octokit/client/pages.rb in octokit-5.1.0 vs lib/octokit/client/pages.rb in octokit-5.2.0

- old
+ new

@@ -22,12 +22,11 @@ # @return [Sawyer::Resource] Pages build information # @see https://developer.github.com/v3/repos/pages/#list-a-specific-pages-build # @example # Octokit.pages_build("github/developer.github.com", 5472601) def pages_build(repo, id, options = {}) - opts = ensure_api_media_type(:pages, options) - get "#{Repository.path repo}/pages/builds/#{id}", opts + get "#{Repository.path repo}/pages/builds/#{id}", options end # List Pages builds for a repository # # @param repo [Integer, String, Repository, Hash] A GitHub repository @@ -53,11 +52,10 @@ # # @param repo [Integer, String, Repository, Hash] A GitHub repository # @return [Sawyer::Resource] Request result # @see https://developer.github.com/v3/repos/pages/#request-a-page-build def request_page_build(repo, options = {}) - opts = ensure_api_media_type(:pages, options) - post "#{Repository.path repo}/pages/builds", opts + post "#{Repository.path repo}/pages/builds", options end end end end