diff --git a/CHANGELOG.md b/CHANGELOG.md index 91d7e880..d084ed96 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -70,7 +70,7 @@ ### New features -* [#49](https://github.com/dduugg/yard-sorbet/issues/49) Apply `@abstract` tags to `abstact!`/`interface!` modules +* [#49](https://github.com/dduugg/yard-sorbet/issues/49) Apply `@abstract` tags to `abstract!`/`interface!` modules * [#43](https://github.com/dduugg/yard-sorbet/issues/43) Add `T::Enum` support ### Bug fixes diff --git a/lib/yard-sorbet/handlers/abstract_dsl_handler.rb b/lib/yard-sorbet/handlers/abstract_dsl_handler.rb index 4028a38b..3f935aea 100644 --- a/lib/yard-sorbet/handlers/abstract_dsl_handler.rb +++ b/lib/yard-sorbet/handlers/abstract_dsl_handler.rb @@ -3,7 +3,7 @@ module YARDSorbet module Handlers - # Apllies an `@abstract` tag to `abstract!`/`interface!` modules (if not alerady present). + # Applies an `@abstract` tag to `abstract!`/`interface!` modules (if not alerady present). class AbstractDSLHandler < YARD::Handlers::Ruby::Base extend T::Sig diff --git a/lib/yard-sorbet/node_utils.rb b/lib/yard-sorbet/node_utils.rb index 89ddf304..5a595b73 100644 --- a/lib/yard-sorbet/node_utils.rb +++ b/lib/yard-sorbet/node_utils.rb @@ -23,7 +23,7 @@ def self.bfs_traverse(node, &_blk) until queue.empty? n = queue.deq(true) yield n - enque_children(queue, n) + enqueue_children(queue, n) end end @@ -34,7 +34,7 @@ def self.delete_node(node) # Enqueue the eligible children of a node in the BFS queue sig { params(queue: Queue, node: YARD::Parser::Ruby::AstNode).void } - def self.enque_children(queue, node) + def self.enqueue_children(queue, node) last_child = node.children.last node.children.each do |child| next if child == last_child && diff --git a/sorbet/tapioca/require.rb b/sorbet/tapioca/require.rb index 3a6e86a5..122133e5 100644 --- a/sorbet/tapioca/require.rb +++ b/sorbet/tapioca/require.rb @@ -1,6 +1,6 @@ # typed: strong # frozen_string_literal: true -# Add your extra requires here (`bin/tapioca require` can be used to boostrap this list) +# Add your extra requires here (`bin/tapioca require` can be used to bootstrap this list) require 'rspec/core/rake_task' require 'rubocop/rake_task' diff --git a/spec/data/struct_handler.txt b/spec/data/struct_handler.txt index e628ade4..75e60f61 100644 --- a/spec/data/struct_handler.txt +++ b/spec/data/struct_handler.txt @@ -18,7 +18,7 @@ end class SpecializedPersonStruct < T::Struct const :special, String - # This is a special intializer + # This is a special initializer # @param special a very special param # @return an initialized struct def initialize(special:) diff --git a/spec/yard_sorbet/handlers/include_handler_spec.rb b/spec/yard_sorbet/handlers/include_handler_spec.rb index da28b98c..dc012f52 100644 --- a/spec/yard_sorbet/handlers/include_handler_spec.rb +++ b/spec/yard_sorbet/handlers/include_handler_spec.rb @@ -17,7 +17,7 @@ expect(node.class_mixins.map(&:to_s)).to include('M::ClassMethods') end - it 'attches class method namespace to explicit receiver' do + it 'attaches class method namespace to explicit receiver' do node = YARD::Registry.at('Receiver') expect(node.class_mixins.map(&:to_s)).to include('M::ClassMethods') end diff --git a/spec/yard_sorbet/handlers/sig_handler_spec.rb b/spec/yard_sorbet/handlers/sig_handler_spec.rb index 7c6744ff..12506528 100644 --- a/spec/yard_sorbet/handlers/sig_handler_spec.rb +++ b/spec/yard_sorbet/handlers/sig_handler_spec.rb @@ -127,7 +127,7 @@ end describe 'nested classes' do - it 'keep docstrings for outer class methods preceding inner classe' do + it 'keep docstrings for outer class methods preceding inner classes' do expect(YARD::Registry.at('Outer#outer').docstring).to eq('outer method') end diff --git a/spec/yard_sorbet/handlers/struct_class_handler_spec.rb b/spec/yard_sorbet/handlers/struct_class_handler_spec.rb index 30ca7201..efafdc96 100644 --- a/spec/yard_sorbet/handlers/struct_class_handler_spec.rb +++ b/spec/yard_sorbet/handlers/struct_class_handler_spec.rb @@ -29,7 +29,7 @@ it 'uses the docstring from an explicit initializer' do node = YARD::Registry.at('SpecializedPersonStruct#initialize') - expect(node.docstring).to eq('This is a special intializer') + expect(node.docstring).to eq('This is a special initializer') end it 'preserves param tag text' do