Skip to content

Commit 2dfd9da

Browse files
committed
fix some typos
1 parent ca61719 commit 2dfd9da

File tree

8 files changed

+8
-8
lines changed

8 files changed

+8
-8
lines changed

lib/thor/actions.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -227,7 +227,7 @@ def apply(path, config={})
227227
# ==== Parameters
228228
# command<String>:: the command to be executed.
229229
# config<Hash>:: give :verbose => false to not log the status, :capture => true to hide to output. Specify :with
230-
# to append an executable to command executation.
230+
# to append an executable to command execution.
231231
#
232232
# ==== Example
233233
#

lib/thor/runner.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -206,7 +206,7 @@ def self.exit_on_failure?
206206
# in the thor_root instead of loading them all.
207207
#
208208
# By default, it also traverses the current path until find Thor files, as
209-
# described in thorfiles. This look up can be skipped by suppliying
209+
# described in thorfiles. This look up can be skipped by supplying
210210
# skip_lookup true.
211211
#
212212
def initialize_thorfiles(relevant_to=nil, skip_lookup=false)

spec/actions/create_file_spec.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -101,7 +101,7 @@ def silence!
101101
expect(invoke!).to eq(" skip doc/config.rb\n")
102102
end
103103

104-
it "shows conflict status to ther user" do
104+
it "shows conflict status to the user" do
105105
expect(create_file("doc/config.rb")).not_to be_identical
106106
$stdin.should_receive(:gets).and_return('s')
107107
file = File.join(destination_root, 'doc/config.rb')

spec/actions/file_manipulation_spec.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -177,7 +177,7 @@ def file
177177
expect(File.exists?(file)).to be_true
178178
end
179179

180-
it "converts enconded instructions" do
180+
it "converts encoded instructions" do
181181
runner.should_receive(:file_name).and_return("rdoc")
182182
action :template, "doc/%file_name%.rb.tt"
183183
file = File.join(destination_root, "doc/rdoc.rb")

spec/actions/inject_into_file_spec.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -113,7 +113,7 @@ def file
113113
expect(File.read(file)).to eq("another stuff\n__start__\nREADME\n__end__\n")
114114
end
115115

116-
it "substracts when prepending" do
116+
it "subtracts when prepending" do
117117
invoke! "doc/README", "more content\n", :after => /\A/
118118
invoke! "doc/README", "another stuff\n", :after => /\A/
119119
revoke! "doc/README", "more content\n", :after => /\A/

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 "does not fail with files constaining regexp characters" do
89+
it "does not fail with files containing regexp characters" do
9090
runner = MyCounter.new([1], {}, { :destination_root => File.join(destination_root, "fo[o-b]ar") })
9191
expect(runner.relative_to_original_destination_root("bar")).to eq("bar")
9292
end

spec/core_ext/hash_with_indifferent_access_spec.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@
2020
expect(@hash.nothing?).to be_false
2121
end
2222

23-
it "handles magic comparisions" do
23+
it "handles magic comparisons" do
2424
expect(@hash.foo?('bar')).to be_true
2525
expect(@hash.foo?('bee')).to be_false
2626
end

spec/runner_spec.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,7 @@ def when_no_thorfiles_exist
6969
expect(Thor::Runner.start).to eq("default command")
7070
end
7171

72-
it "forwads arguments to the invoked command" do
72+
it "forwards arguments to the invoked command" do
7373
ARGV.replace ["my_script:animal", "horse"]
7474
expect(Thor::Runner.start).to eq(["horse"])
7575
end

0 commit comments

Comments
 (0)