Skip to content

Commit c4b6ce3

Browse files
hsbtk0kubun
authored andcommitted
Merge syntax-suggest-2.0.1
1 parent 494fcc5 commit c4b6ce3

File tree

10 files changed

+14
-14
lines changed

10 files changed

+14
-14
lines changed

lib/syntax_suggest/around_block_scan.rb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -118,7 +118,7 @@ def scan_while
118118
end
119119

120120
# Scanning is intentionally conservative because
121-
# we have no way of rolling back an agressive block (at this time)
121+
# we have no way of rolling back an aggressive block (at this time)
122122
#
123123
# If a block was stopped for some trivial reason, (like an empty line)
124124
# but the next line would have caused it to be balanced then we
@@ -224,7 +224,7 @@ def lines
224224
@scanner.lines
225225
end
226226

227-
# Managable rspec errors
227+
# Manageable rspec errors
228228
def inspect
229229
"#<#{self.class}:0x0000123843lol >"
230230
end

lib/syntax_suggest/block_expand.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -157,7 +157,7 @@ def expand_neighbors(block)
157157
end
158158
end
159159

160-
# Managable rspec errors
160+
# Manageable rspec errors
161161
def inspect
162162
"#<SyntaxSuggest::CodeBlock:0x0000123843lol >"
163163
end

lib/syntax_suggest/capture_code_context.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ module SyntaxSuggest
2626
# they can't add extra data that's not present.
2727
#
2828
# In the case of known ambiguious cases, this class adds context
29-
# back to the ambiguitiy so the programmer has full information.
29+
# back to the ambiguity so the programmer has full information.
3030
#
3131
# Beyond handling these ambiguities, it also captures surrounding
3232
# code context information:

lib/syntax_suggest/clean_document.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -267,7 +267,7 @@ def join_groups(groups)
267267
groups.each do |lines|
268268
line = lines.first
269269

270-
# Handle the case of multiple groups in a a row
270+
# Handle the case of multiple groups in a row
271271
# if one is already replaced, move on
272272
next if @document[line.index].empty?
273273

lib/syntax_suggest/lex_value.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ def initialize(line, type, token, state, last_lex = nil)
2828
@is_end = false
2929
@is_kw = false
3030
return if type != :on_kw
31-
#
31+
3232
return if last_lex && last_lex.fname? # https://github.com/ruby/ruby/commit/776759e300e4659bb7468e2b97c8c2d4359a2953
3333

3434
case token

lib/syntax_suggest/parse_blocks_from_indent_line.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ module SyntaxSuggest
88
# grabbing one that contains only an "end". In this example:
99
#
1010
# def dog
11-
# begonn # mispelled `begin`
11+
# begonn # misspelled `begin`
1212
# puts "bark"
1313
# end
1414
# end

lib/syntax_suggest/version.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
# frozen_string_literal: true
22

33
module SyntaxSuggest
4-
VERSION = "2.0.0"
4+
VERSION = "2.0.1"
55
end

libexec/syntax_suggest

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
#!/usr/bin/env ruby
22

3-
require_relative "../lib/syntax_suggest/api"
3+
require "syntax_suggest/api"
44

55
SyntaxSuggest::Cli.new(
66
argv: ARGV

spec/syntax_suggest/unit/block_expand_spec.rb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -146,7 +146,7 @@ def foo
146146
EOM
147147
end
148148

149-
it "expand until next boundry (indentation)" do
149+
it "expand until next boundary (indentation)" do
150150
source_string = <<~EOM
151151
describe "what" do
152152
Foo.call
@@ -188,7 +188,7 @@ def foo
188188
EOM
189189
end
190190

191-
it "expand until next boundry (empty lines)" do
191+
it "expand until next boundary (empty lines)" do
192192
source_string = <<~EOM
193193
describe "what" do
194194
end

spec/syntax_suggest/unit/clean_document_spec.rb

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -139,7 +139,7 @@ module SyntaxSuggest
139139
source = <<~'EOM'
140140
context "timezones workaround" do
141141
it "should receive a time in UTC format and return the time with the"\
142-
"office's UTC offset substracted from it" do
142+
"office's UTC offset subtracted from it" do
143143
travel_to DateTime.new(2020, 10, 1, 10, 0, 0) do
144144
office = build(:office)
145145
end
@@ -155,7 +155,7 @@ module SyntaxSuggest
155155
).to eq(<<~'EOM'.indent(2))
156156
1 context "timezones workaround" do
157157
2 it "should receive a time in UTC format and return the time with the"\
158-
3 "office's UTC offset substracted from it" do
158+
3 "office's UTC offset subtracted from it" do
159159
4 travel_to DateTime.new(2020, 10, 1, 10, 0, 0) do
160160
5 office = build(:office)
161161
6 end
@@ -171,7 +171,7 @@ module SyntaxSuggest
171171
).to eq(<<~'EOM')
172172
1 context "timezones workaround" do
173173
> 2 it "should receive a time in UTC format and return the time with the"\
174-
> 3 "office's UTC offset substracted from it" do
174+
> 3 "office's UTC offset subtracted from it" do
175175
4 travel_to DateTime.new(2020, 10, 1, 10, 0, 0) do
176176
5 office = build(:office)
177177
6 end

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy