diff --git a/docs/Templates.md b/docs/Templates.md index d003a54ab..bd82fa878 100644 --- a/docs/Templates.md +++ b/docs/Templates.md @@ -231,7 +231,7 @@ super method would have been defined in `default/module/setup.rb`). The `sections` object is of the {YARD::Templates::Section} class and allows sections to be inserted before or after another section using {Array#place} by it's given name rather than index. This allows the overriding of templates in a way that does not -depend on where the section is located (since it may have been overriden by +depend on where the section is located (since it may have been overridden by another module). You can also use `sections[:name]` to find the first child section named `:name`. diff --git a/lib/yard/gem_index.rb b/lib/yard/gem_index.rb index 1ed704423..c4c882e08 100644 --- a/lib/yard/gem_index.rb +++ b/lib/yard/gem_index.rb @@ -1,6 +1,6 @@ # frozen_string_literal: true -# Backward compatability for gem specification lookup +# Backward compatibility for gem specification lookup # @see Gem::SourceIndex module YARD module GemIndex diff --git a/lib/yard/i18n/pot_generator.rb b/lib/yard/i18n/pot_generator.rb index 627daf437..7a7d93be3 100644 --- a/lib/yard/i18n/pot_generator.rb +++ b/lib/yard/i18n/pot_generator.rb @@ -13,7 +13,7 @@ module I18n # ".pot". PO file is an acronym for "Portable Object". PO file has # many parts of message ID (msgid) that is translation target # message and message string (msgstr) that is translated message - # of message ID. If you want to tranlsate "Hello" in English into + # of message ID. If you want to translate "Hello" in English into # "Bonjour" in French, "Hello" is the msgid ID and "Bonjour" is # msgstr. The extension for PO is ".po". # @@ -116,7 +116,7 @@ def parse_files(files) # when the generater is created is prepended to each path in location. # # Comments of the +Message+ are used to generate the - # translater-comment line that is started with "# ". + # translator-comment line that is started with "# ". # # @return [String] POT format string def generate diff --git a/lib/yard/i18n/text.rb b/lib/yard/i18n/text.rb index 79f37e03d..229245db0 100644 --- a/lib/yard/i18n/text.rb +++ b/lib/yard/i18n/text.rb @@ -17,14 +17,14 @@ def initialize(input, options = {}) # Extracts translation target messages from +@input+. # # @yield [:attribute, name, value, line_no] the block that - # recieves extracted an attribute in header. It may called many + # receives extracted an attribute in header. It may called many # times. # @yieldparam [String] name the name of extracted attribute. # @yieldparam [String] value the value of extracted attribute. # @yieldparam [Integer] line_no the defined line number of extracted # attribute. # @yield [:paragraph, text, start_line_no] the block that - # recieves extracted a paragraph in body. Paragraph is a text + # receives extracted a paragraph in body. Paragraph is a text # block separated by one or more empty lines. Empty line is a # line that contains only zero or more whitespaces. It may # called many times. diff --git a/po/ja.po b/po/ja.po index 0b98a8ded..9e45fd661 100644 --- a/po/ja.po +++ b/po/ja.po @@ -2409,7 +2409,7 @@ msgstr "" "最終的に、@!attributeタグを用い@!methodタグを\n" "置換する事によって属性の様にメソッドのタグが出来る。\n" "読み込み専用,書込み専用,読み書きOK,個々に指定を宣言する為に\n" -"@!attirbute指令は[r], [w], [rw]フラグ用に受け入れる\n" +"@!attribute指令は[r], [w], [rw]フラグ用に受け入れる\n" #: ../docs/GettingStarted.md:241 msgid "" @@ -6265,7 +6265,7 @@ msgid "" "before or after another section using {Array#place} by it's given name " "rather\n" "than index. This allows the overriding of templates in a way that does not\n" -"depend on where the section is located (since it may have been overriden by\n" +"depend on where the section is located (since it may have been overridden by\n" "another module)." msgstr "" "superメソッドが呼び出された後でセクションが変更されたか確認する。\n" @@ -9598,7 +9598,7 @@ msgid "" "Two new tags were added to the list of builtin meta-tags in YARD. " "`@abstract`\n" "marks a class/module/method as abstract while `@private` marks an object\n" -"as \"private\". The latter tag is unsed in situations where an object is " +"as \"private\". The latter tag is used in situations where an object is " "public\n" "due to Ruby's own visibility limitations (constants, classes and modules\n" "can never be private) but not actually part of your public API. You should\n" @@ -18717,7 +18717,7 @@ msgid "" "\".pot\". PO file is an acronym for \"Portable Object\". PO file has\n" "many parts of message ID (msgid) that is translation target\n" "message and message string (msgstr) that is translated message\n" -"of message ID. If you want to tranlsate \"Hello\" in English into\n" +"of message ID. If you want to translate \"Hello\" in English into\n" "\"Bonjour\" in French, \"Hello\" is the msgid ID and \"Bonjour\" is\n" "msgstr. The extension for PO is \".po\"." msgstr "" @@ -18893,7 +18893,7 @@ msgstr "" #: ../lib/yard/i18n/pot_generator.rb:118 msgid "" "Comments of the +Message+ are used to generate the\n" -"translater-comment line that is started with \"# \"." +"translator-comment line that is started with \"# \"." msgstr "" # @return [String] @@ -18962,7 +18962,7 @@ msgstr "" #: ../lib/yard/i18n/text.rb:34 msgid "" "the block that\n" -"recieves extracted a paragraph in body. Paragraph is a text\n" +"receives extracted a paragraph in body. Paragraph is a text\n" "block separated by one or more empty lines. Empty line is a\n" "line that contains only zero or more whitespaces. It may\n" "called many times." @@ -18972,7 +18972,7 @@ msgstr "" #: ../lib/yard/i18n/text.rb:34 msgid "" "the block that\n" -"recieves extracted an attribute in header. It may called many\n" +"receives extracted an attribute in header. It may called many\n" "times." msgstr "" diff --git a/spec/cli/yardoc_spec.rb b/spec/cli/yardoc_spec.rb index a4f1bdade..ca0b79ef5 100644 --- a/spec/cli/yardoc_spec.rb +++ b/spec/cli/yardoc_spec.rb @@ -670,7 +670,7 @@ def tag_hidden(tag) @yardoc.parse_arguments('--tag', 'foo:Title of Foo') end - it "accepts --tag without title (and default to captialized tag name)" do + it "accepts --tag without title (and default to capitalized tag name)" do expect(Tags::Library).to receive(:define_tag).with('Foo', :foo, nil) @yardoc.parse_arguments('--tag', 'foo') end diff --git a/spec/handlers/examples/constant_handler_001.rb.txt b/spec/handlers/examples/constant_handler_001.rb.txt index 196bf1b59..54a66f6f0 100644 --- a/spec/handlers/examples/constant_handler_001.rb.txt +++ b/spec/handlers/examples/constant_handler_001.rb.txt @@ -29,5 +29,5 @@ end # @attr [Number] baz Another attr # @!attribute new_syntax # Attribute defined with the new syntax -# @return [Symbol] something usefull +# @return [Symbol] something useful DocstringStruct = Struct.new(:bar, :baz, :new_syntax) diff --git a/spec/parser/source_parser_spec.rb b/spec/parser/source_parser_spec.rb index 7a6827b1c..865e79e74 100644 --- a/spec/parser/source_parser_spec.rb +++ b/spec/parser/source_parser_spec.rb @@ -325,7 +325,7 @@ def x; end expect(Registry.at('Hello2#x').docstring).to eq "ANOTHER PASS" end - it "takes preceeding comments only if they exist" do + it "takes preceding comments only if they exist" do YARD.parse_string <<-eof # PASS module Hello # FAIL diff --git a/templates/default/fulldoc/html/setup.rb b/templates/default/fulldoc/html/setup.rb index 15e1c5ab8..201ba63c5 100644 --- a/templates/default/fulldoc/html/setup.rb +++ b/templates/default/fulldoc/html/setup.rb @@ -75,7 +75,7 @@ def serialize_file(file, title = nil) # rubocop:disable Lint/UnusedMethodArgumen # # Generates a file to the output with the specified contents. # -# @example saving a custom html file to the documenation root +# @example saving a custom html file to the documentation root # # asset('my_custom.html','Custom File') #