Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Fixed typos in documentation.

  • Loading branch information...
commit 4c4742163651dec6a7d6230c01dc50b9140ea7b0 1 parent f8bef7c
@postmodern postmodern authored
View
6 lib/thor/base.rb
@@ -247,7 +247,7 @@ def class_option(name, options={})
# Removes a previous defined argument. If :undefine is given, undefine
# accessors as well.
#
- # ==== Paremeters
+ # ==== Parameters
# names<Array>:: Arguments to be removed
#
# ==== Examples
@@ -266,7 +266,7 @@ def remove_argument(*names)
# Removes a previous defined class option.
#
- # ==== Paremeters
+ # ==== Parameters
# names<Array>:: Class options to be removed
#
# ==== Examples
@@ -413,7 +413,7 @@ def start(given_args=ARGV, config={})
# Allows to use private methods from parent in child classes as tasks.
#
- # ==== Paremeters
+ # ==== Parameters
# names<Array>:: Method names to be used as tasks
#
# ==== Examples
View
2  lib/thor/error.rb
@@ -1,6 +1,6 @@
class Thor
# Thor::Error is raised when it's caused by wrong usage of thor classes. Those
- # errors have their backtrace supressed and are nicely shown to the user.
+ # errors have their backtrace suppressed and are nicely shown to the user.
#
# Errors that are caused by the developer, like declaring a method which
# overwrites a thor keyword, it SHOULD NOT raise a Thor::Error. This way, we
View
2  lib/thor/group.rb
@@ -104,7 +104,7 @@ def _invoke_#{name.to_s.gsub(/\W/, '_')}
#
# ==== Custom invocations
#
- # You can also supply a block to customize how the option is giong to be
+ # You can also supply a block to customize how the option is going to be
# invoked. The block receives two parameters, an instance of the current
# class and the klass to be invoked.
#
View
2  lib/thor/invocation.rb
@@ -85,7 +85,7 @@ def initialize(args=[], options={}, config={}, &block) #:nodoc:
# that it's going to use.
#
# If you want Rspec::RR to be initialized with its own set of options, you
- # have to do that explicitely:
+ # have to do that explicitly:
#
# invoke "rspec:rr", [], :style => :foo
#
View
4 lib/thor/runner.rb
@@ -202,7 +202,7 @@ def self.exit_on_failure?
true
end
- # Load the thorfiles. If relevant_to is supplied, looks for specific files
+ # Load the Thorfiles. If relevant_to is supplied, looks for specific files
# in the thor_root instead of loading them all.
#
# By default, it also traverses the current path until find Thor files, as
@@ -256,7 +256,7 @@ def thorfiles(relevant_to=nil, skip_lookup=false)
end
end
- # Load thorfiles relevant to the given method. If you provide "foo:bar" it
+ # Load Thorfiles relevant to the given method. If you provide "foo:bar" it
# will load all thor files in the thor.yaml that has "foo" e "foo:bar"
# namespaces registered.
#
View
4 lib/thor/shell/basic.rb
@@ -37,7 +37,7 @@ def padding=(value)
# If asked to limit the correct responses, you can pass in an
# array of acceptable answers. If one of those is not supplied,
# they will be shown a message stating that one of those answers
- # must be given and reasked the question.
+ # must be given and re-asked the question.
#
# ==== Example
# ask("What is your name?")
@@ -171,7 +171,7 @@ def print_wrapped(message, options={})
end
# Deals with file collision and returns true if the file should be
- # overwriten and false otherwise. If a block is given, it uses the block
+ # overwritten and false otherwise. If a block is given, it uses the block
# response as the content for the diff.
#
# ==== Parameters
View
2  lib/thor/util.rb
@@ -184,7 +184,7 @@ def self.user_home
end
end
- # Returns the root where thor files are located, dependending on the OS.
+ # Returns the root where thor files are located, depending on the OS.
#
def self.thor_root
File.join(user_home, ".thor").gsub(/\\/, '/')
Please sign in to comment.
Something went wrong with that request. Please try again.