Skip to content

Commit

Permalink
Merge pull request #346 from ltx-dev/spelling-fixes
Browse files Browse the repository at this point in the history
Fixed minor spelling mistakes
  • Loading branch information
piotrmurach committed Mar 2, 2019
2 parents d3dc6a5 + 85fbb28 commit 8702452
Show file tree
Hide file tree
Showing 15 changed files with 25 additions and 25 deletions.
2 changes: 1 addition & 1 deletion lib/github_api/api/arguments.rb
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@

module Github
class API
# A class responsible for handilng request arguments
# A class responsible for handling request arguments
class Arguments
include Normalizer
include ParameterFilter
Expand Down
2 changes: 1 addition & 1 deletion lib/github_api/api/config.rb
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ def self.property_names
property_set.properties.map(&:name)
end

# Fetach all the properties and their values
# Fetch all the properties and their values
#
# @return [Hash[Symbol]]
#
Expand Down
2 changes: 1 addition & 1 deletion lib/github_api/client/activity/starring.rb
Original file line number Diff line number Diff line change
Expand Up @@ -118,7 +118,7 @@ def star(*args)
# github.activity.starring.unstar 'user-name', 'repo-name'
#
# @example
# github.activit.starring.unstar user: 'user-name', repo: 'repo-name'
# github.activity.starring.unstar user: 'user-name', repo: 'repo-name'
#
# @api public
def unstar(*args)
Expand Down
2 changes: 1 addition & 1 deletion lib/github_api/client/activity/watching.rb
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ class Client::Activity::Watching < API
# @example
# github = Github.new
# github.activity.watching.list user: 'user-name', repo: 'repo-name'
# github.activity.watching.list user: 'user-naem', repo: 'repo-name' { |watcher| ... }
# github.activity.watching.list user: 'user-name', repo: 'repo-name' { |watcher| ... }
#
# @api public
def list(*args)
Expand Down
4 changes: 2 additions & 2 deletions lib/github_api/client/gists.rb
Original file line number Diff line number Diff line change
Expand Up @@ -143,7 +143,7 @@ def create(*args)
# Optional string
# @option [Hash] :files
# Optional hash - Files that make up this gist.
# The key of which should be a optional string filename and
# The key of which should be a optional string filename and
# the value another optional hash with parameters:
# @option [String] :content
# Updated string - Update file contents.
Expand Down Expand Up @@ -213,7 +213,7 @@ def star(*args)
#
# @see https://developer.github.com/v3/gists/#unstar-a-gist
#
# @xample
# @example
# github = Github.new
# github.gists.unstar 'gist-id'
#
Expand Down
2 changes: 1 addition & 1 deletion lib/github_api/client/gists/comments.rb
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,7 @@ def edit(*args)
#
# @see https://developer.github.com/v3/gists/comments/#delete-a-comment
#
# @xample
# @example
# github = Github.new
# github.gists.comments.delete 'gist-id', 'comment-id'
#
Expand Down
2 changes: 1 addition & 1 deletion lib/github_api/client/markdown.rb
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
module Github
class Client::Markdown < API

# Render an arbritrary Markdown document
# Render an arbitrary Markdown document
#
# = Parameters
# <tt>:text</tt> - Required string - The Markdown text to render
Expand Down
6 changes: 3 additions & 3 deletions lib/github_api/client/orgs/teams.rb
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@ def get(*args)
# * pull - team members can pull, but not push or
# administor this repositories.
# * push - team members can pull and push,
# but not administor this repositores.
# but not administer this repositores.
# * admin - team members can pull, push and
# administor these repositories.
# Default: pull
Expand Down Expand Up @@ -125,9 +125,9 @@ def create(*args)
# * pull - team members can pull, but not push or
# administor this repositories.
# * push - team members can pull and push,
# but not administor this repositores.
# but not administer this repositores.
# * admin - team members can pull, push and
# administor these repositories.
# administer these repositories.
# Default: pull
#
# @example
Expand Down
2 changes: 1 addition & 1 deletion lib/github_api/client/repos.rb
Original file line number Diff line number Diff line change
Expand Up @@ -183,7 +183,7 @@ def get_by_id(*args)
end
alias :find_by_id :get_by_id

# Create a new repository for the autheticated user.
# Create a new repository for the authenticated user.
#
# @param [Hash] params
# @option params [String] :name
Expand Down
2 changes: 1 addition & 1 deletion lib/github_api/client/repos/branches/protections.rb
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ def get(*args)
# Required.
# @input params [String] :required_pull_request_reviews
# Required.
# Look to the branch protection API t see how to use these
# Look to the branch protection API to see how to use these
# https://developer.github.com/v3/repos/branches/#update-branch-protection
#
# @example
Expand Down
6 changes: 3 additions & 3 deletions lib/github_api/client/repos/contents.rb
Original file line number Diff line number Diff line change
Expand Up @@ -66,12 +66,12 @@ def get(*args)
#
# @param [Hash] params
# @option params [String] :path
# Requried string. The content path
# Required string. The content path
# @option params [String]
# @option params [String] :message
# Requried string. The commit message.
# Required string. The commit message.
# @option params [String] :content
# Requried string. The new file content, which will be Base64 encoded
# Required string. The new file content, which will be Base64 encoded
# @option params [String] :branch
# The branch name. If not provided, uses the repository’s
# default branch (usually master)
Expand Down
2 changes: 1 addition & 1 deletion lib/github_api/client/repos/deployments.rb
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ class Client::Repos::Deployments < API

# List deployments on a repository
#
# @xample
# @example
# github = Github.new
# github.repos.deployments.list 'user-name', 'repo-name'
# github.repos.deployments.list 'user-name', 'repo-name' { |deployment| ... }
Expand Down
2 changes: 1 addition & 1 deletion lib/github_api/error/service_error.rb
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ def self.error_mapping

MIN_BODY_LENGTH = 2

# Crate a ServiceError
# Create a ServiceError
#
# @param [Hash[Symbol]] response
#
Expand Down
12 changes: 6 additions & 6 deletions lib/github_api/pagination.rb
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ def links
@links = Github::PageLinks.new(env[:response_headers])
end

# Retrive number of total pages base on current :per_page parameter
# Retrieve number of total pages base on current :per_page parameter
def count_pages
page_iterator.count.to_i
end
Expand Down Expand Up @@ -43,7 +43,7 @@ def each_page
end
end

# Retrives the result of the first page. Returns <tt>nil</tt> if there is
# Retrieves the result of the first page. Returns <tt>nil</tt> if there is
# no first page - either because you are already on the first page
# or there are no pages at all in the result.
def first_page
Expand All @@ -52,15 +52,15 @@ def first_page
first_request
end

# Retrives the result of the next page. Returns <tt>nil</tt> if there is
# Retrieves the result of the next page. Returns <tt>nil</tt> if there is
# no next page or no pages at all.
def next_page
next_request = page_iterator.next
self.instance_eval { @env = next_request.env } if next_request
next_request
end

# Retrives the result of the previous page. Returns <tt>nil</tt> if there is
# Retrieves the result of the previous page. Returns <tt>nil</tt> if there is
# no previous page or no pages at all.
def prev_page
prev_request = page_iterator.prev
Expand All @@ -69,7 +69,7 @@ def prev_page
end
alias :previous_page :prev_page

# Retrives the result of the last page. Returns <tt>nil</tt> if there is
# Retrieves the result of the last page. Returns <tt>nil</tt> if there is
# no last page - either because you are already on the last page,
# there is only one page or there are no pages at all in the result.
def last_page
Expand All @@ -78,7 +78,7 @@ def last_page
last_request
end

# Retrives a specific result for a page given page number.
# Retrieves a specific result for a page given page number.
# The <tt>page_number</tt> parameter is not validate, hitting a page
# that does not exist will return Github API error. Consequently, if
# there is only one page, this method returns nil
Expand Down
2 changes: 1 addition & 1 deletion lib/github_api/validations/presence.rb
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ module Validations
# A mixin to help validate presence of non-empty values
module Presence

# Ensure that esential arguments are present before request is made.
# Ensure that essential arguments are present before request is made.
#
# == Parameters
# Hash/Array of arguments to be checked against nil and empty string
Expand Down

0 comments on commit 8702452

Please sign in to comment.