Skip to content

Commit

Permalink
Downloads are now deprecated
Browse files Browse the repository at this point in the history
  • Loading branch information
koraktor committed Dec 12, 2012
1 parent 8f41b33 commit 9ee1c74
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions lib/octokit/client/downloads.rb
Expand Up @@ -6,6 +6,7 @@ module Downloads
#
# @param repo [String, Repository, Hash] A Github Repository
# @return [Array] A list of available downloads
# @deprecated As of December 11th, 2012: https://github.com/blog/1302-goodbye-uploads
# @see http://developer.github.com/v3/repos/downloads/#list-downloads-for-a-repository
# @example List all downloads for Github/Hubot
# Octokit.downloads("github/hubot")
Expand All @@ -19,6 +20,7 @@ def downloads(repo, options={})
# @param repo [String, Repository, Hash] A GitHub repository
# @param id [Integer] ID of the download
# @return [Download] A single download from the repository
# @deprecated As of December 11th, 2012: https://github.com/blog/1302-goodbye-uploads
# @see http://developer.github.com/v3/repos/downloads/#get-a-single-download
# @example Get the "Robawt" download from Github/Hubot
# Octokit.download("github/hubot")
Expand All @@ -33,6 +35,7 @@ def download(repo, id, options={})
# @option options [String] :description The download description
# @option options [String] :content_type The content type. Defaults to 'text/plain'
# @return [Download] A single download from the repository
# @deprecated As of December 11th, 2012: https://github.com/blog/1302-goodbye-uploads
# @see http://developer.github.com/v3/repos/downloads/#create-a-new-download-part-1-create-the-resource
# @example Create the "Robawt" download on Github/Hubot
# Octokit.create_download("github/hubot", 'Robawt')
Expand Down Expand Up @@ -67,6 +70,7 @@ def create_download(repo, name, options={})
#
# @param repo [String, Repository, Hash] A GitHub repository
# @param id [Integer] ID of the download
# @deprecated As of December 11th, 2012: https://github.com/blog/1302-goodbye-uploads
# @see http://developer.github.com/v3/repos/downloads/#delete-a-single-download
# @return [Boolean] Status
# @example Get the "Robawt" download from Github/Hubot
Expand Down

0 comments on commit 9ee1c74

Please sign in to comment.