syntax_suggest 2.0.0 → 2.0.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.github/workflows/check_changelog.yml +1 -1
- data/.github/workflows/ci.yml +3 -3
- data/.gitignore +1 -1
- data/CHANGELOG.md +4 -0
- data/exe/syntax_suggest +1 -1
- data/lib/syntax_suggest/around_block_scan.rb +2 -2
- data/lib/syntax_suggest/block_expand.rb +1 -1
- data/lib/syntax_suggest/capture_code_context.rb +1 -1
- data/lib/syntax_suggest/clean_document.rb +1 -1
- data/lib/syntax_suggest/lex_value.rb +1 -1
- data/lib/syntax_suggest/parse_blocks_from_indent_line.rb +1 -1
- data/lib/syntax_suggest/version.rb +1 -1
- metadata +3 -7
- data/Gemfile.lock +0 -85
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: ae3c4707aa81be21c4b2545128955745f90df5a2a9e978592b5fe58863a6d5a4
|
4
|
+
data.tar.gz: 596b91a251e7c587c54830a8fc6c64db15066fc202bf30fe086a5255d6f2d06b
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: ce891b408cfd1fe2450d61daea1928562cd01ee5c9335d92684489562d9f243df0b2ac4294f5d735badb5cc664da7226a7cd01eae679b52b9203184852505caf
|
7
|
+
data.tar.gz: 1cc64117d7d662e0ab01dde6dd4a8b4efffe544d4b6cf4332f1cc6e6fff6a17199d3dd02f992c8dbb896ab0e105c5ea1ebd4642c47d54dab9f41741c99e6a8b7
|
@@ -13,7 +13,7 @@ jobs:
|
|
13
13
|
!contains(github.event.pull_request.body, '[skip ci]') &&
|
14
14
|
!contains(github.event.pull_request.labels.*.name, 'skip changelog')
|
15
15
|
steps:
|
16
|
-
- uses: actions/checkout@v4.
|
16
|
+
- uses: actions/checkout@v4.2.1
|
17
17
|
- name: Check that CHANGELOG is touched
|
18
18
|
run: |
|
19
19
|
git fetch origin ${{ github.base_ref }} --depth 1 && \
|
data/.github/workflows/ci.yml
CHANGED
@@ -9,7 +9,7 @@ jobs:
|
|
9
9
|
runs-on: ubuntu-latest
|
10
10
|
steps:
|
11
11
|
- name: Checkout code
|
12
|
-
uses: actions/checkout@v4.
|
12
|
+
uses: actions/checkout@v4.2.1
|
13
13
|
- name: Set up Ruby
|
14
14
|
uses: ruby/setup-ruby@v1
|
15
15
|
with:
|
@@ -34,7 +34,7 @@ jobs:
|
|
34
34
|
ruby: ${{ fromJson(needs.ruby-versions.outputs.versions) }}
|
35
35
|
steps:
|
36
36
|
- name: Checkout code
|
37
|
-
uses: actions/checkout@v4.
|
37
|
+
uses: actions/checkout@v4.2.1
|
38
38
|
- name: Set up Ruby
|
39
39
|
uses: ruby/setup-ruby@v1
|
40
40
|
with:
|
@@ -53,7 +53,7 @@ jobs:
|
|
53
53
|
ruby: ${{ fromJson(needs.ruby-versions.outputs.versions) }}
|
54
54
|
steps:
|
55
55
|
- name: Checkout code
|
56
|
-
uses: actions/checkout@v4.
|
56
|
+
uses: actions/checkout@v4.2.1
|
57
57
|
- name: Set up Ruby
|
58
58
|
uses: ruby/setup-ruby@v1
|
59
59
|
with:
|
data/.gitignore
CHANGED
data/CHANGELOG.md
CHANGED
@@ -1,5 +1,9 @@
|
|
1
1
|
## HEAD (unreleased)
|
2
2
|
|
3
|
+
## 2.0.1
|
4
|
+
|
5
|
+
- Fix CLI failure when shipped with default gems. (https://github.com/ruby/syntax_suggest/pull/226 and https://github.com/ruby/syntax_suggest/pull/227)
|
6
|
+
|
3
7
|
## 2.0.0
|
4
8
|
|
5
9
|
- Changed: No longer supports EOL versions of Ruby. (https://github.com/ruby/syntax_suggest/pull/210)
|
data/exe/syntax_suggest
CHANGED
@@ -118,7 +118,7 @@ module SyntaxSuggest
|
|
118
118
|
end
|
119
119
|
|
120
120
|
# Scanning is intentionally conservative because
|
121
|
-
# we have no way of rolling back an
|
121
|
+
# we have no way of rolling back an aggressive block (at this time)
|
122
122
|
#
|
123
123
|
# If a block was stopped for some trivial reason, (like an empty line)
|
124
124
|
# but the next line would have caused it to be balanced then we
|
@@ -224,7 +224,7 @@ module SyntaxSuggest
|
|
224
224
|
@scanner.lines
|
225
225
|
end
|
226
226
|
|
227
|
-
#
|
227
|
+
# Manageable rspec errors
|
228
228
|
def inspect
|
229
229
|
"#<#{self.class}:0x0000123843lol >"
|
230
230
|
end
|
@@ -26,7 +26,7 @@ module SyntaxSuggest
|
|
26
26
|
# they can't add extra data that's not present.
|
27
27
|
#
|
28
28
|
# In the case of known ambiguious cases, this class adds context
|
29
|
-
# back to the
|
29
|
+
# back to the ambiguity so the programmer has full information.
|
30
30
|
#
|
31
31
|
# Beyond handling these ambiguities, it also captures surrounding
|
32
32
|
# code context information:
|
@@ -267,7 +267,7 @@ module SyntaxSuggest
|
|
267
267
|
groups.each do |lines|
|
268
268
|
line = lines.first
|
269
269
|
|
270
|
-
# Handle the case of multiple groups in a
|
270
|
+
# Handle the case of multiple groups in a row
|
271
271
|
# if one is already replaced, move on
|
272
272
|
next if @document[line.index].empty?
|
273
273
|
|
metadata
CHANGED
@@ -1,14 +1,13 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: syntax_suggest
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 2.0.
|
4
|
+
version: 2.0.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- schneems
|
8
|
-
autorequire:
|
9
8
|
bindir: exe
|
10
9
|
cert_chain: []
|
11
|
-
date:
|
10
|
+
date: 2024-10-18 00:00:00.000000000 Z
|
12
11
|
dependencies: []
|
13
12
|
description: When you get an "unexpected end" in your syntax this gem helps you find
|
14
13
|
it
|
@@ -28,7 +27,6 @@ files:
|
|
28
27
|
- CHANGELOG.md
|
29
28
|
- CODE_OF_CONDUCT.md
|
30
29
|
- Gemfile
|
31
|
-
- Gemfile.lock
|
32
30
|
- LICENSE.txt
|
33
31
|
- README.md
|
34
32
|
- Rakefile
|
@@ -73,7 +71,6 @@ licenses:
|
|
73
71
|
metadata:
|
74
72
|
homepage_uri: https://github.com/ruby/syntax_suggest.git
|
75
73
|
source_code_uri: https://github.com/ruby/syntax_suggest.git
|
76
|
-
post_install_message:
|
77
74
|
rdoc_options: []
|
78
75
|
require_paths:
|
79
76
|
- lib
|
@@ -88,8 +85,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
88
85
|
- !ruby/object:Gem::Version
|
89
86
|
version: '0'
|
90
87
|
requirements: []
|
91
|
-
rubygems_version: 3.
|
92
|
-
signing_key:
|
88
|
+
rubygems_version: 3.6.0.dev
|
93
89
|
specification_version: 4
|
94
90
|
summary: Find syntax errors in your source in a snap
|
95
91
|
test_files: []
|
data/Gemfile.lock
DELETED
@@ -1,85 +0,0 @@
|
|
1
|
-
PATH
|
2
|
-
remote: .
|
3
|
-
specs:
|
4
|
-
syntax_suggest (2.0.0)
|
5
|
-
|
6
|
-
GEM
|
7
|
-
remote: https://rubygems.org/
|
8
|
-
specs:
|
9
|
-
ast (2.4.2)
|
10
|
-
benchmark-ips (2.12.0)
|
11
|
-
diff-lcs (1.5.0)
|
12
|
-
json (2.7.0)
|
13
|
-
language_server-protocol (3.17.0.3)
|
14
|
-
lint_roller (1.1.0)
|
15
|
-
parallel (1.23.0)
|
16
|
-
parser (3.2.2.4)
|
17
|
-
ast (~> 2.4.1)
|
18
|
-
racc
|
19
|
-
prism (0.18.0)
|
20
|
-
racc (1.7.3)
|
21
|
-
rainbow (3.1.1)
|
22
|
-
rake (12.3.3)
|
23
|
-
regexp_parser (2.8.3)
|
24
|
-
rexml (3.2.6)
|
25
|
-
rspec (3.12.0)
|
26
|
-
rspec-core (~> 3.12.0)
|
27
|
-
rspec-expectations (~> 3.12.0)
|
28
|
-
rspec-mocks (~> 3.12.0)
|
29
|
-
rspec-core (3.12.2)
|
30
|
-
rspec-support (~> 3.12.0)
|
31
|
-
rspec-expectations (3.12.3)
|
32
|
-
diff-lcs (>= 1.2.0, < 2.0)
|
33
|
-
rspec-support (~> 3.12.0)
|
34
|
-
rspec-mocks (3.12.6)
|
35
|
-
diff-lcs (>= 1.2.0, < 2.0)
|
36
|
-
rspec-support (~> 3.12.0)
|
37
|
-
rspec-support (3.12.1)
|
38
|
-
rubocop (1.57.2)
|
39
|
-
json (~> 2.3)
|
40
|
-
language_server-protocol (>= 3.17.0)
|
41
|
-
parallel (~> 1.10)
|
42
|
-
parser (>= 3.2.2.4)
|
43
|
-
rainbow (>= 2.2.2, < 4.0)
|
44
|
-
regexp_parser (>= 1.8, < 3.0)
|
45
|
-
rexml (>= 3.2.5, < 4.0)
|
46
|
-
rubocop-ast (>= 1.28.1, < 2.0)
|
47
|
-
ruby-progressbar (~> 1.7)
|
48
|
-
unicode-display_width (>= 2.4.0, < 3.0)
|
49
|
-
rubocop-ast (1.30.0)
|
50
|
-
parser (>= 3.2.1.0)
|
51
|
-
rubocop-performance (1.19.1)
|
52
|
-
rubocop (>= 1.7.0, < 2.0)
|
53
|
-
rubocop-ast (>= 0.4.0)
|
54
|
-
ruby-prof (1.6.3)
|
55
|
-
ruby-progressbar (1.13.0)
|
56
|
-
stackprof (0.2.25)
|
57
|
-
standard (1.32.1)
|
58
|
-
language_server-protocol (~> 3.17.0.2)
|
59
|
-
lint_roller (~> 1.0)
|
60
|
-
rubocop (~> 1.57.2)
|
61
|
-
standard-custom (~> 1.0.0)
|
62
|
-
standard-performance (~> 1.2)
|
63
|
-
standard-custom (1.0.2)
|
64
|
-
lint_roller (~> 1.0)
|
65
|
-
rubocop (~> 1.50)
|
66
|
-
standard-performance (1.2.1)
|
67
|
-
lint_roller (~> 1.1)
|
68
|
-
rubocop-performance (~> 1.19.1)
|
69
|
-
unicode-display_width (2.5.0)
|
70
|
-
|
71
|
-
PLATFORMS
|
72
|
-
ruby
|
73
|
-
|
74
|
-
DEPENDENCIES
|
75
|
-
benchmark-ips
|
76
|
-
prism
|
77
|
-
rake (~> 12.0)
|
78
|
-
rspec (~> 3.0)
|
79
|
-
ruby-prof
|
80
|
-
stackprof
|
81
|
-
standard
|
82
|
-
syntax_suggest!
|
83
|
-
|
84
|
-
BUNDLED WITH
|
85
|
-
2.4.21
|