lib/octokit/client/stats.rb in octokit-2.0.0.rc4 vs lib/octokit/client/stats.rb in octokit-2.0.0
- old
+ new
@@ -10,11 +10,11 @@
#
# @param repo [String, Hash, Repository] A GitHub repository
# @return [Array<Sawyer::Resource>] Array of contributor stats
# @see http://developer.github.com/v3/repos/statistics/#get-contributors-list-with-additions-deletions-and-commit-counts
# @example Get contributor stats for octokit
- # @client.contributors_stats('pengwynn/octokit')
+ # @client.contributors_stats('octokit/octokit.rb')
def contributors_stats(repo, options = {})
get_stats(repo, "contributors", options)
end
alias :contributor_stats :contributors_stats
@@ -23,11 +23,11 @@
# @param repo [String, Hash, Repository] A GitHub repository
# @return [Array<Sawyer::Resource>] The last year of commit activity grouped by
# week. The days array is a group of commits per day, starting on Sunday.
# @see http://developer.github.com/v3/repos/statistics/#get-the-last-year-of-commit-activity-data
# @example Get commit activity for octokit
- # @client.commit_activity_stats('pengwynn/octokit')
+ # @client.commit_activity_stats('octokit/octokit.rb')
def commit_activity_stats(repo, options = {})
get_stats(repo, "commit_activity", options)
end
# Get the number of additions and deletions per week
@@ -35,11 +35,11 @@
# @param repo [String, Hash, Repository] A GitHub repository
# @return [Array<Sawyer::Resource>] Weekly aggregate of the number of additions
# and deletions pushed to a repository.
# @see http://developer.github.com/v3/repos/statistics/#get-the-number-of-additions-and-deletions-per-week
# @example Get code frequency stats for octokit
- # @client.code_frequency_stats('pengwynn/octokit')
+ # @client.code_frequency_stats('octokit/octokit.rb')
def code_frequency_stats(repo, options = {})
get_stats(repo, "code_frequency", options)
end
# Get the weekly commit count for the repo owner and everyone else
@@ -49,10 +49,10 @@
# counts in all. all is everyone combined, including the owner in the last
# 52 weeks. If you’d like to get the commit counts for non-owners, you can
# subtract all from owner.
# @see http://developer.github.com/v3/repos/statistics/#get-the-weekly-commit-count-for-the-repo-owner-and-everyone-else
# @example Get weekly commit counts for octokit
- # @client.participation_stats("pengwynn/octokit")
+ # @client.participation_stats("octokit/octokit.rb")
def participation_stats(repo, options = {})
get_stats(repo, "participation", options)
end
# Get the number of commits per hour in each day