diff --git a/lib/octokit/client/authorizations.rb b/lib/octokit/client/authorizations.rb index 71dc3666f..a8c835d81 100644 --- a/lib/octokit/client/authorizations.rb +++ b/lib/octokit/client/authorizations.rb @@ -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"]}) diff --git a/lib/octokit/client/refs.rb b/lib/octokit/client/refs.rb index 8e41bfe84..c464eed9b 100644 --- a/lib/octokit/client/refs.rb +++ b/lib/octokit/client/refs.rb @@ -44,7 +44,7 @@ def ref(repo, ref, options = {}) # @return [Array] 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 = { @@ -64,7 +64,7 @@ def create_ref(repo, ref, sha, options = {}) # @return [Array] 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,