Skip to content

Commit 2a0632d

Browse files
authored
Merge pull request #806 from jdufresne/typos
Fix some typos
2 parents 8da8dc5 + 8fab5f1 commit 2a0632d

File tree

6 files changed

+6
-6
lines changed

6 files changed

+6
-6
lines changed

lib/thor/actions.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -175,7 +175,7 @@ def inside(dir = "", config = {}, &block)
175175
shell.padding += 1 if verbose
176176
@destination_stack.push File.expand_path(dir, destination_root)
177177

178-
# If the directory doesnt exist and we're not pretending
178+
# If the directory doesn't exist and we're not pretending
179179
if !File.exist?(destination_root) && !pretend
180180
require "fileutils"
181181
FileUtils.mkdir_p(destination_root)

lib/thor/actions/file_manipulation.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -252,7 +252,7 @@ def inject_into_module(path, module_name, *args, &block)
252252
# flag<Regexp|String>:: the regexp or string to be replaced
253253
# replacement<String>:: the replacement, can be also given as a block
254254
# config<Hash>:: give :verbose => false to not log the status, and
255-
# :force => true, to force the replacement regardles of runner behavior.
255+
# :force => true, to force the replacement regardless of runner behavior.
256256
#
257257
# ==== Example
258258
#

lib/thor/base.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -618,7 +618,7 @@ def find_and_refresh_command(name) #:nodoc:
618618
end
619619
alias_method :find_and_refresh_task, :find_and_refresh_command
620620

621-
# Everytime someone inherits from a Thor class, register the klass
621+
# Every time someone inherits from a Thor class, register the klass
622622
# and file into baseclass.
623623
def inherited(klass)
624624
super(klass)

spec/actions_spec.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -86,7 +86,7 @@ def file
8686
expect(runner.relative_to_original_destination_root("/test/file")).to eq("/test/file")
8787
end
8888

89-
it "doesn't remove the root path from the absolute path if it is not at the begining" do
89+
it "doesn't remove the root path from the absolute path if it is not at the beginning" do
9090
runner.destination_root = "/app"
9191
expect(runner.relative_to_original_destination_root("/something/app/project")).to eq("/something/app/project")
9292
end

spec/shell/html_spec.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ def shell
3030
end
3131

3232
describe "#set_color" do
33-
it "escapes HTML content when unsing the default colors" do
33+
it "escapes HTML content when using the default colors" do
3434
expect(shell.set_color("<htmlcontent>", :blue)).to eq "<span style=\"color: blue;\">&lt;htmlcontent&gt;</span>"
3535
end
3636

spec/thor_spec.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -395,7 +395,7 @@ def self.exit_on_failure?
395395
expect(capture(:stdout) { MyScript.start(%w(help)) }).not_to match(/this is hidden/m)
396396
end
397397

398-
it "but the command is still invokable, does not show the command in help" do
398+
it "but the command is still invocable, does not show the command in help" do
399399
expect(MyScript.start(%w(hidden yesyes))).to eq(%w(yesyes))
400400
end
401401
end

0 commit comments

Comments
 (0)