Skip to content

Commit

Permalink
Improve comments by adding space [ci skip]
Browse files Browse the repository at this point in the history
  • Loading branch information
JuanitoFatas committed Dec 22, 2015
1 parent 1942dc1 commit 6711f47
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion lib/octokit/client/authorizations.rb
Expand Up @@ -54,7 +54,7 @@ def authorization(number, options = {})
# @see https://developer.github.com/v3/oauth_authorizations/#get-or-create-an-authorization-for-a-specific-app
# @example Create a new authorization for user ctshryock's project Zoidberg
# client = Octokit::Client.new(:login => 'ctshryock', :password => 'secret')
# client.create_authorization({:scopes => ["public_repo","gist"], :note => "Why not Zoidberg?", :note_url=> "https://en.wikipedia.org/wiki/Zoidberg"})
# client.create_authorization({:scopes => ["public_repo", "gist"], :note => "Why not Zoidberg?", :note_url=> "https://en.wikipedia.org/wiki/Zoidberg"})
# @example Create a new OR return an existing authorization to be used by a specific client for user ctshryock's project Zoidberg
# client = Octokit::Client.new(:login => 'ctshryock', :password => 'secret')
# client.create_authorization({:idempotent => true, :client_id => 'xxxx', :client_secret => 'yyyy', :scopes => ["user"]})
Expand Down
4 changes: 2 additions & 2 deletions lib/octokit/client/refs.rb
Expand Up @@ -44,7 +44,7 @@ def ref(repo, ref, options = {})
# @return [Array<Sawyer::Resource>] The list of references, already containing the new one
# @see https://developer.github.com/v3/git/refs/#create-a-reference
# @example Create refs/heads/master for octocat/Hello-World with sha 827efc6d56897b048c772eb4087f854f46256132
# Octokit.create_ref("octocat/Hello-World","heads/master", "827efc6d56897b048c772eb4087f854f46256132")
# Octokit.create_ref("octocat/Hello-World", "heads/master", "827efc6d56897b048c772eb4087f854f46256132")
def create_ref(repo, ref, sha, options = {})
ref = "refs/#{ref}" unless ref =~ %r{refs/}
parameters = {
Expand All @@ -64,7 +64,7 @@ def create_ref(repo, ref, sha, options = {})
# @return [Array<Sawyer::Resource>] The list of references updated
# @see https://developer.github.com/v3/git/refs/#update-a-reference
# @example Force update heads/sc/featureA for octocat/Hello-World with sha aa218f56b14c9653891f9e74264a383fa43fefbd
# Octokit.update_ref("octocat/Hello-World","heads/sc/featureA", "aa218f56b14c9653891f9e74264a383fa43fefbd")
# Octokit.update_ref("octocat/Hello-World", "heads/sc/featureA", "aa218f56b14c9653891f9e74264a383fa43fefbd")
def update_ref(repo, ref, sha, force = true, options = {})
parameters = {
:sha => sha,
Expand Down

0 comments on commit 6711f47

Please sign in to comment.