syntax_suggest 0.0.1 → 1.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/ci.yml +44 -0
- data/CHANGELOG.md +38 -30
- data/Gemfile.lock +1 -1
- data/README.md +12 -10
- data/Rakefile +1 -0
- data/lib/syntax_suggest/capture_code_context.rb +3 -3
- data/lib/syntax_suggest/cli.rb +3 -2
- data/lib/syntax_suggest/display_code_with_line_numbers.rb +3 -3
- data/lib/syntax_suggest/display_invalid_blocks.rb +0 -1
- data/lib/syntax_suggest/pathname_from_message.rb +1 -1
- data/lib/syntax_suggest/version.rb +1 -1
- data/{dead_end.gemspec → syntax_suggest.gemspec} +2 -2
- metadata +7 -7
- data/.circleci/config.yml +0 -91
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 7f8b41fd2cbb19ed9ce0553b53e88f29de1a0ae46e7ffbd0de1d9bf1b881a9a5
|
4
|
+
data.tar.gz: c0787c1da43c9e19ca97e8fd616360c188946e996c283aa8c0b4c187dd2a66ec
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 9ed334240baa6233e259756bd4e532638fb7796e5fc3f671a3c31bb8c01a508d1418fe62380f3c5db9bb1568395b2686ab9fb56c4badcace009b91d92c2cbded
|
7
|
+
data.tar.gz: 5fa487311079e5000a2bbfb8216e855983c816668657e7f4fbca4fe2e79370e6c00e1665d4230879ca59c2ec4c9476a387c2295aa1b13d259d41446ae84c8629
|
@@ -0,0 +1,44 @@
|
|
1
|
+
name: CI
|
2
|
+
|
3
|
+
on:
|
4
|
+
- push
|
5
|
+
- pull_request
|
6
|
+
|
7
|
+
jobs:
|
8
|
+
lint:
|
9
|
+
runs-on: ubuntu-latest
|
10
|
+
steps:
|
11
|
+
- name: Checkout code
|
12
|
+
uses: actions/checkout@v3
|
13
|
+
- name: Set up Ruby
|
14
|
+
uses: ruby/setup-ruby@v1
|
15
|
+
with:
|
16
|
+
ruby-version: 3.1
|
17
|
+
bundler-cache: true
|
18
|
+
- name: Linting
|
19
|
+
run: bundle exec standardrb
|
20
|
+
|
21
|
+
test:
|
22
|
+
runs-on: ubuntu-latest
|
23
|
+
strategy:
|
24
|
+
fail-fast: false
|
25
|
+
matrix:
|
26
|
+
ruby:
|
27
|
+
- 2.5
|
28
|
+
- 2.6
|
29
|
+
- 2.7
|
30
|
+
- '3.0'
|
31
|
+
- 3.1
|
32
|
+
- "3.2.0-preview1"
|
33
|
+
- head
|
34
|
+
steps:
|
35
|
+
- name: Checkout code
|
36
|
+
uses: actions/checkout@v3
|
37
|
+
- name: Set up Ruby
|
38
|
+
uses: ruby/setup-ruby@v1
|
39
|
+
with:
|
40
|
+
ruby-version: ${{ matrix.ruby }}
|
41
|
+
bundler-cache: true
|
42
|
+
- name: test
|
43
|
+
run: bundle exec rake test
|
44
|
+
continue-on-error: ${{ matrix.ruby == 'head' }}
|
data/CHANGELOG.md
CHANGED
@@ -1,48 +1,56 @@
|
|
1
1
|
## HEAD (unreleased)
|
2
2
|
|
3
|
+
## 1.0.1
|
4
|
+
|
5
|
+
- Replace `❯` with `>` in error output for compatability with more fonts (https://github.com/ruby/syntax_suggest/pull/161)
|
6
|
+
|
7
|
+
## 1.0.0 (Library renamed to syntax_suggest )
|
8
|
+
|
9
|
+
- [Breaking] Output "Syntax OK" will no longer be output when `syntax_suggest` is fired due to a syntax error. (https://github.com/ruby/syntax_suggest/pull/158)
|
3
10
|
- [Breaking] Rename `dead_end` to `syntax_suggest` (https://github.com/zombocom/dead_end/pull/154)
|
4
11
|
- [Breaking] Lazy loading moved from `autoload` to manually checking for constants and requiring `dead_end/api`. To manually use any SyntaxSuggest internals you MUST require `dead_end/api`, otherwise it will be lazy loaded on syntax error (https://github.com/zombocom/dead_end/pull/148)
|
5
12
|
- Default to highlighted output on Ruby 3.2 (https://github.com/zombocom/dead_end/pull/150)
|
6
13
|
- Debug functionality enabled by `DEBUG=1` env var is now under `SYNTAX_SUGGEST_DEBUG=1`. Note this is not a stable interface or feature. Output content is subject to change without major version change (https://github.com/zombocom/dead_end/pull/149)
|
7
14
|
- Enable/Disable dead_end by using the `dead_end` kwarg in `detailed_message` (https://github.com/zombocom/dead_end/pull/147)
|
8
15
|
- Respect `highlight` kwarg in Ruby 3.2's `detailed_message` to enable/disable control characters (https://github.com/zombocom/dead_end/pull/147)
|
16
|
+
- Added workarounds for running on ruby/ruby repo (https://github.com/ruby/syntax_suggest/pull/156)
|
9
17
|
|
10
|
-
## 4.0.0
|
18
|
+
## dead_end 4.0.0
|
11
19
|
|
12
20
|
- Code that does not have an associated file (eval and streamed) no longer produce a warning saying that the file could not be found. To produce a warning with these code types run with DEBUG=1 environment variable. (https://github.com/zombocom/dead_end/pull/143)
|
13
21
|
- [Breaking] Lazy load SyntaxSuggest internals only if there is a Syntax error. Use `require "dead_end"; require "dead_end/api"` to load eagerly all internals. Otherwise `require "dead_end"` will set up an autoload for the first time the SyntaxSuggest module is used in code. This should only happen on a syntax error. (https://github.com/zombocom/dead_end/pull/142)
|
14
22
|
- Monkeypatch `SyntaxError#detailed_message` in Ruby 3.2+ instead of `require`, `load`, and `require_relative` (https://github.com/zombocom/dead_end/pull/139)
|
15
23
|
|
16
|
-
## 3.1.2
|
24
|
+
## dead_end 3.1.2
|
17
25
|
|
18
26
|
- Fixed internal class AroundBlockScan, minor changes in outputs (https://github.com/zombocom/dead_end/pull/131)
|
19
27
|
|
20
|
-
## 3.1.1
|
28
|
+
## dead_end 3.1.1
|
21
29
|
|
22
30
|
- Fix case where Ripper lexing identified incorrect code as a keyword (https://github.com/zombocom/dead_end/pull/122)
|
23
31
|
|
24
|
-
## 3.1.0
|
32
|
+
## dead_end 3.1.0
|
25
33
|
|
26
34
|
- Add support for Ruby 3.1 by updating `require_relative` logic (https://github.com/zombocom/dead_end/pull/120)
|
27
35
|
- Requiring `dead_end/auto` is now deprecated please require `dead_end` instead (https://github.com/zombocom/dead_end/pull/119)
|
28
36
|
- Requiring `dead_end/api` now loads code without monkeypatching core extensions (https://github.com/zombocom/dead_end/pull/119)
|
29
37
|
- The interface `SyntaxSuggest.handle_error` is declared public and stable (https://github.com/zombocom/dead_end/pull/119)
|
30
38
|
|
31
|
-
## 3.0.3
|
39
|
+
## dead_end 3.0.3
|
32
40
|
|
33
41
|
- Expand explanations coming from additional Ripper errors (https://github.com/zombocom/dead_end/pull/117)
|
34
42
|
- Fix explanation involving shorthand syntax for literals like `%w[]` and `%Q{}` (https://github.com/zombocom/dead_end/pull/116)
|
35
43
|
|
36
|
-
## 3.0.2
|
44
|
+
## dead_end 3.0.2
|
37
45
|
|
38
46
|
- Fix windows filename detection (https://github.com/zombocom/dead_end/pull/114)
|
39
47
|
- Update links on readme and code of conduct (https://github.com/zombocom/dead_end/pull/107)
|
40
48
|
|
41
|
-
## 3.0.1
|
49
|
+
## dead_end 3.0.1
|
42
50
|
|
43
51
|
- Fix CLI parsing when flags come before filename (https://github.com/zombocom/dead_end/pull/102)
|
44
52
|
|
45
|
-
## 3.0.0
|
53
|
+
## dead_end 3.0.0
|
46
54
|
|
47
55
|
- [Breaking] CLI now outputs to STDOUT instead of STDERR (https://github.com/zombocom/dead_end/pull/98)
|
48
56
|
- [Breaking] Remove previously deprecated `require "dead_end/fyi"` interface (https://github.com/zombocom/dead_end/pull/94)
|
@@ -53,11 +61,11 @@
|
|
53
61
|
- Parse errors emitted per-block rather than for the whole document (https://github.com/zombocom/dead_end/pull/94)
|
54
62
|
- The "banner" is now based on lexical analysis rather than parser regex (fix #68, fix #87) (https://github.com/zombocom/dead_end/pull/96)
|
55
63
|
|
56
|
-
## 2.0.2
|
64
|
+
## dead_end 2.0.2
|
57
65
|
|
58
66
|
- Don't print terminal color codes when output is not tty (https://github.com/zombocom/dead_end/pull/91)
|
59
67
|
|
60
|
-
## 2.0.1
|
68
|
+
## dead_end 2.0.1
|
61
69
|
|
62
70
|
- Reintroduce Ruby 2.5 support (https://github.com/zombocom/dead_end/pull/90)
|
63
71
|
- Support naked braces/brackets/parens, invert labels on banner (https://github.com/zombocom/dead_end/pull/89)
|
@@ -65,94 +73,94 @@
|
|
65
73
|
- CLI returns non-zero exit code when syntax error is found (https://github.com/zombocom/dead_end/pull/86)
|
66
74
|
- Let -v respond with gem version instead of 'unknown' (https://github.com/zombocom/dead_end/pull/82)
|
67
75
|
|
68
|
-
## 2.0.0
|
76
|
+
## dead_end 2.0.0
|
69
77
|
|
70
78
|
- Support "endless" oneline method definitions for Ruby 3+ (https://github.com/zombocom/dead_end/pull/80)
|
71
79
|
- Reduce timeout to 1 second (https://github.com/zombocom/dead_end/pull/79)
|
72
80
|
- Logically consecutive lines (such as chained methods are now joined) (https://github.com/zombocom/dead_end/pull/78)
|
73
81
|
- Output improvement for cases where the only line is an single `end` (https://github.com/zombocom/dead_end/pull/78)
|
74
82
|
|
75
|
-
## 1.2.0
|
83
|
+
## dead_end 1.2.0
|
76
84
|
|
77
85
|
- Output improvements via less greedy unmatched kw capture https://github.com/zombocom/dead_end/pull/73
|
78
86
|
- Remove NoMethodError patching instead use https://github.com/ruby/error_highlight/ (https://github.com/zombocom/dead_end/pull/71)
|
79
87
|
|
80
|
-
## 1.1.7
|
88
|
+
## dead_end 1.1.7
|
81
89
|
|
82
90
|
- Fix sinatra support for `require_relative` (https://github.com/zombocom/dead_end/pull/63)
|
83
91
|
|
84
|
-
## 1.1.6
|
92
|
+
## dead_end 1.1.6
|
85
93
|
|
86
94
|
- Consider if syntax error caused an unexpected variable instead of end (https://github.com/zombocom/dead_end/pull/58)
|
87
95
|
|
88
|
-
## 1.1.5
|
96
|
+
## dead_end 1.1.5
|
89
97
|
|
90
98
|
- Parse error once and not twice if there's more than one available (https://github.com/zombocom/dead_end/pull/57)
|
91
99
|
|
92
|
-
## 1.1.4
|
100
|
+
## dead_end 1.1.4
|
93
101
|
|
94
102
|
- Avoid including demo gif in built gem (https://github.com/zombocom/dead_end/pull/53)
|
95
103
|
|
96
|
-
## 1.1.3
|
104
|
+
## dead_end 1.1.3
|
97
105
|
|
98
106
|
- Add compatibility with zeitwerk (https://github.com/zombocom/dead_end/pull/52)
|
99
107
|
|
100
|
-
## 1.1.2
|
108
|
+
## dead_end 1.1.2
|
101
109
|
|
102
110
|
- Namespace Kernel method aliases (https://github.com/zombocom/dead_end/pull/51)
|
103
111
|
|
104
|
-
## 1.1.1
|
112
|
+
## dead_end 1.1.1
|
105
113
|
|
106
114
|
- Safer NoMethodError annotation (https://github.com/zombocom/dead_end/pull/48)
|
107
115
|
|
108
|
-
## 1.1.0
|
116
|
+
## dead_end 1.1.0
|
109
117
|
|
110
118
|
- Annotate NoMethodError in non-production environments (https://github.com/zombocom/dead_end/pull/46)
|
111
119
|
- Do not count trailing if/unless as a keyword (https://github.com/zombocom/dead_end/pull/44)
|
112
120
|
|
113
|
-
## 1.0.2
|
121
|
+
## dead_end 1.0.2
|
114
122
|
|
115
123
|
- Fix bug where empty lines were interpreted to have a zero indentation (https://github.com/zombocom/dead_end/pull/39)
|
116
124
|
- Better results when missing "end" comes at the end of a capturing block (such as a class or module definition) (https://github.com/zombocom/dead_end/issues/32)
|
117
125
|
|
118
|
-
## 1.0.1
|
126
|
+
## dead_end 1.0.1
|
119
127
|
|
120
128
|
- Fix performance issue when evaluating multiple block combinations (https://github.com/zombocom/dead_end/pull/35)
|
121
129
|
|
122
|
-
## 1.0.0
|
130
|
+
## dead_end 1.0.0
|
123
131
|
|
124
132
|
- Gem name changed from `syntax_search` to `dead_end` (https://github.com/zombocom/syntax_search/pull/30)
|
125
133
|
- Moved `syntax_search/auto` behavior to top level require (https://github.com/zombocom/syntax_search/pull/30)
|
126
134
|
- Error banner now indicates when missing a `|` or `}` in addition to `end` (https://github.com/zombocom/syntax_search/pull/29)
|
127
135
|
- Trailing slashes are now handled (joined) before the code search (https://github.com/zombocom/syntax_search/pull/28)
|
128
136
|
|
129
|
-
## 0.2.0
|
137
|
+
## dead_end 0.2.0
|
130
138
|
|
131
139
|
- Simplify large file output so minimal context around the invalid section is shown (https://github.com/zombocom/syntax_search/pull/26)
|
132
140
|
- Block expansion is now lexically aware of keywords (def/do/end etc.) (https://github.com/zombocom/syntax_search/pull/24)
|
133
141
|
- Fix bug where not all of a source is lexed which is used in heredoc detection/removal (https://github.com/zombocom/syntax_search/pull/23)
|
134
142
|
|
135
|
-
## 0.1.5
|
143
|
+
## dead_end 0.1.5
|
136
144
|
|
137
145
|
- Strip out heredocs in documents first (https://github.com/zombocom/syntax_search/pull/19)
|
138
146
|
|
139
|
-
## 0.1.4
|
147
|
+
## dead_end 0.1.4
|
140
148
|
|
141
149
|
- Parser gem replaced with Ripper (https://github.com/zombocom/syntax_search/pull/17)
|
142
150
|
|
143
|
-
## 0.1.3
|
151
|
+
## dead_end 0.1.3
|
144
152
|
|
145
153
|
- Internal refactor (https://github.com/zombocom/syntax_search/pull/13)
|
146
154
|
|
147
|
-
## 0.1.2
|
155
|
+
## dead_end 0.1.2
|
148
156
|
|
149
157
|
- Codeblocks in output are now indented with 4 spaces and "code fences" are removed (https://github.com/zombocom/syntax_search/pull/11)
|
150
158
|
- "Unmatched end" and "missing end" not generate different error text instructions (https://github.com/zombocom/syntax_search/pull/10)
|
151
159
|
|
152
|
-
## 0.1.1
|
160
|
+
## dead_end 0.1.1
|
153
161
|
|
154
162
|
- Fire search on both unexpected end-of-input and unexected end (https://github.com/zombocom/syntax_search/pull/8)
|
155
163
|
|
156
|
-
## 0.1.0
|
164
|
+
## dead_end 0.1.0
|
157
165
|
|
158
166
|
- Initial release
|
data/Gemfile.lock
CHANGED
data/README.md
CHANGED
@@ -6,11 +6,13 @@ An error in your code forces you to stop. SyntaxSuggest helps you find those err
|
|
6
6
|
Unmatched `end', missing keyword (`do', `def`, `if`, etc.) ?
|
7
7
|
|
8
8
|
1 class Dog
|
9
|
-
|
10
|
-
|
9
|
+
> 2 defbark
|
10
|
+
> 4 end
|
11
11
|
5 end
|
12
12
|
```
|
13
13
|
|
14
|
+
> This project was previously named `dead_end` as it attempted to find dangling `end` keywords. The name was changed to be more descriptive and welcoming as part of the effort to merge it into [Ruby 3.2](https://bugs.ruby-lang.org/issues/18159#note-29).
|
15
|
+
|
14
16
|
## Installation in your codebase
|
15
17
|
|
16
18
|
To automatically annotate errors when they happen, add this to your Gemfile:
|
@@ -70,9 +72,9 @@ end
|
|
70
72
|
```
|
71
73
|
Unmatched keyword, missing `end' ?
|
72
74
|
|
73
|
-
|
74
|
-
|
75
|
-
|
75
|
+
> 1 class Dog
|
76
|
+
> 2 def bark
|
77
|
+
> 4 end
|
76
78
|
```
|
77
79
|
|
78
80
|
- Missing keyword
|
@@ -93,8 +95,8 @@ Unmatched `end', missing keyword (`do', `def`, `if`, etc.) ?
|
|
93
95
|
|
94
96
|
1 class Dog
|
95
97
|
2 def speak
|
96
|
-
|
97
|
-
|
98
|
+
> 3 @sounds.each |sound|
|
99
|
+
> 5 end
|
98
100
|
6 end
|
99
101
|
7 end
|
100
102
|
```
|
@@ -115,8 +117,8 @@ end
|
|
115
117
|
Unmatched `(', missing `)' ?
|
116
118
|
|
117
119
|
1 class Dog
|
118
|
-
|
119
|
-
|
120
|
+
> 2 def speak(sound
|
121
|
+
> 4 end
|
120
122
|
5 end
|
121
123
|
```
|
122
124
|
|
@@ -135,7 +137,7 @@ syntax error, unexpected end-of-input
|
|
135
137
|
|
136
138
|
1 class Dog
|
137
139
|
2 def meals_last_month
|
138
|
-
|
140
|
+
> 3 puts 3 *
|
139
141
|
4 end
|
140
142
|
5 end
|
141
143
|
```
|
data/Rakefile
CHANGED
@@ -137,10 +137,10 @@ module SyntaxSuggest
|
|
137
137
|
# puts "woof" # 3
|
138
138
|
# end # 4
|
139
139
|
#
|
140
|
-
# However due to https://github.com/
|
140
|
+
# However due to https://github.com/ruby/syntax_suggest/issues/32
|
141
141
|
# the problem line will be identified as:
|
142
142
|
#
|
143
|
-
#
|
143
|
+
# > class Dog # 1
|
144
144
|
#
|
145
145
|
# Because lines 2, 3, and 4 are technically valid code and are expanded
|
146
146
|
# first, deemed valid, and hidden. We need to un-hide the matching end
|
@@ -200,7 +200,7 @@ module SyntaxSuggest
|
|
200
200
|
#
|
201
201
|
# the problem line will be identified as:
|
202
202
|
#
|
203
|
-
#
|
203
|
+
# > end # 4
|
204
204
|
#
|
205
205
|
# This happens because lines 1, 2, and 3 are technically valid code and are expanded
|
206
206
|
# first, deemed valid, and hidden. We need to un-hide the matching keyword on
|
data/lib/syntax_suggest/cli.rb
CHANGED
@@ -65,6 +65,7 @@ module SyntaxSuggest
|
|
65
65
|
)
|
66
66
|
|
67
67
|
if display.document_ok?
|
68
|
+
@io.puts "Syntax OK"
|
68
69
|
@exit_obj.exit(0)
|
69
70
|
else
|
70
71
|
@exit_obj.exit(1)
|
@@ -91,8 +92,8 @@ module SyntaxSuggest
|
|
91
92
|
|
92
93
|
# ...
|
93
94
|
|
94
|
-
|
95
|
-
|
95
|
+
> 10 defdog
|
96
|
+
> 15 end
|
96
97
|
|
97
98
|
ENV options:
|
98
99
|
|
@@ -14,8 +14,8 @@ module SyntaxSuggest
|
|
14
14
|
# # =>
|
15
15
|
# 1
|
16
16
|
# 2 def cat
|
17
|
-
#
|
18
|
-
#
|
17
|
+
# > 3 Dir.chdir
|
18
|
+
# > 4 end
|
19
19
|
# 5 end
|
20
20
|
# 6
|
21
21
|
class DisplayCodeWithLineNumbers
|
@@ -50,7 +50,7 @@ module SyntaxSuggest
|
|
50
50
|
private def format(contents:, number:, empty:, highlight: false)
|
51
51
|
string = +""
|
52
52
|
string << if highlight
|
53
|
-
"
|
53
|
+
"> "
|
54
54
|
else
|
55
55
|
" "
|
56
56
|
end
|
@@ -4,7 +4,7 @@ module SyntaxSuggest
|
|
4
4
|
# Converts a SyntaxError message to a path
|
5
5
|
#
|
6
6
|
# Handles the case where the filename has a colon in it
|
7
|
-
# such as on a windows file system: https://github.com/
|
7
|
+
# such as on a windows file system: https://github.com/ruby/syntax_suggest/issues/111
|
8
8
|
#
|
9
9
|
# Example:
|
10
10
|
#
|
@@ -14,12 +14,12 @@ Gem::Specification.new do |spec|
|
|
14
14
|
|
15
15
|
spec.summary = "Find syntax errors in your source in a snap"
|
16
16
|
spec.description = 'When you get an "unexpected end" in your syntax this gem helps you find it'
|
17
|
-
spec.homepage = "https://github.com/
|
17
|
+
spec.homepage = "https://github.com/ruby/syntax_suggest.git"
|
18
18
|
spec.license = "MIT"
|
19
19
|
spec.required_ruby_version = Gem::Requirement.new(">= 2.5.0")
|
20
20
|
|
21
21
|
spec.metadata["homepage_uri"] = spec.homepage
|
22
|
-
spec.metadata["source_code_uri"] = "https://github.com/
|
22
|
+
spec.metadata["source_code_uri"] = "https://github.com/ruby/syntax_suggest.git"
|
23
23
|
|
24
24
|
# Specify which files should be added to the gem when it is released.
|
25
25
|
# The `git ls-files -z` loads the files in the RubyGem that have been added into git.
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: syntax_suggest
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version:
|
4
|
+
version: 1.0.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- schneems
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2022-
|
11
|
+
date: 2022-11-29 00:00:00.000000000 Z
|
12
12
|
dependencies: []
|
13
13
|
description: When you get an "unexpected end" in your syntax this gem helps you find
|
14
14
|
it
|
@@ -19,8 +19,8 @@ executables:
|
|
19
19
|
extensions: []
|
20
20
|
extra_rdoc_files: []
|
21
21
|
files:
|
22
|
-
- ".circleci/config.yml"
|
23
22
|
- ".github/workflows/check_changelog.yml"
|
23
|
+
- ".github/workflows/ci.yml"
|
24
24
|
- ".gitignore"
|
25
25
|
- ".rspec"
|
26
26
|
- ".standard.yml"
|
@@ -33,7 +33,6 @@ files:
|
|
33
33
|
- Rakefile
|
34
34
|
- bin/console
|
35
35
|
- bin/setup
|
36
|
-
- dead_end.gemspec
|
37
36
|
- exe/syntax_suggest
|
38
37
|
- lib/syntax_suggest.rb
|
39
38
|
- lib/syntax_suggest/api.rb
|
@@ -60,12 +59,13 @@ files:
|
|
60
59
|
- lib/syntax_suggest/ripper_errors.rb
|
61
60
|
- lib/syntax_suggest/unvisited_lines.rb
|
62
61
|
- lib/syntax_suggest/version.rb
|
63
|
-
|
62
|
+
- syntax_suggest.gemspec
|
63
|
+
homepage: https://github.com/ruby/syntax_suggest.git
|
64
64
|
licenses:
|
65
65
|
- MIT
|
66
66
|
metadata:
|
67
|
-
homepage_uri: https://github.com/
|
68
|
-
source_code_uri: https://github.com/
|
67
|
+
homepage_uri: https://github.com/ruby/syntax_suggest.git
|
68
|
+
source_code_uri: https://github.com/ruby/syntax_suggest.git
|
69
69
|
post_install_message:
|
70
70
|
rdoc_options: []
|
71
71
|
require_paths:
|
data/.circleci/config.yml
DELETED
@@ -1,91 +0,0 @@
|
|
1
|
-
version: 2.1
|
2
|
-
orbs:
|
3
|
-
ruby: circleci/ruby@1.8.0
|
4
|
-
references:
|
5
|
-
unit: &unit
|
6
|
-
run:
|
7
|
-
name: Run test suite
|
8
|
-
command: bundle exec rspec spec/
|
9
|
-
|
10
|
-
lint: &lint
|
11
|
-
run:
|
12
|
-
name: Run linter, fix with `standardrb --fix` locally
|
13
|
-
command: bundle exec standardrb
|
14
|
-
|
15
|
-
jobs:
|
16
|
-
"ruby-2-5":
|
17
|
-
docker:
|
18
|
-
- image: circleci/ruby:2.5
|
19
|
-
steps:
|
20
|
-
- checkout
|
21
|
-
- ruby/install-deps
|
22
|
-
- <<: *unit
|
23
|
-
|
24
|
-
"ruby-2-6":
|
25
|
-
docker:
|
26
|
-
- image: circleci/ruby:2.6
|
27
|
-
steps:
|
28
|
-
- checkout
|
29
|
-
- ruby/install-deps
|
30
|
-
- <<: *unit
|
31
|
-
|
32
|
-
"ruby-2-7":
|
33
|
-
docker:
|
34
|
-
- image: circleci/ruby:2.7
|
35
|
-
steps:
|
36
|
-
- checkout
|
37
|
-
- ruby/install-deps
|
38
|
-
- <<: *unit
|
39
|
-
|
40
|
-
"ruby-3-0":
|
41
|
-
docker:
|
42
|
-
- image: circleci/ruby:3.0
|
43
|
-
steps:
|
44
|
-
- checkout
|
45
|
-
- ruby/install-deps
|
46
|
-
- <<: *unit
|
47
|
-
|
48
|
-
"ruby-3-1":
|
49
|
-
docker:
|
50
|
-
- image: 'cimg/ruby:3.1'
|
51
|
-
steps:
|
52
|
-
- checkout
|
53
|
-
- ruby/install-deps
|
54
|
-
- <<: *unit
|
55
|
-
|
56
|
-
"ruby-3-2":
|
57
|
-
docker:
|
58
|
-
- image: 'ruby:3.2.0-preview1'
|
59
|
-
steps:
|
60
|
-
- checkout
|
61
|
-
- ruby/install-deps
|
62
|
-
- <<: *unit
|
63
|
-
"ruby-3-2-yjit":
|
64
|
-
docker:
|
65
|
-
- image: 'ruby:3.2.0-preview1'
|
66
|
-
steps:
|
67
|
-
- run: echo "export RUBY_YJIT_ENABLE=1" >> $BASH_ENV
|
68
|
-
- checkout
|
69
|
-
- ruby/install-deps
|
70
|
-
- <<: *unit
|
71
|
-
|
72
|
-
"lint":
|
73
|
-
docker:
|
74
|
-
- image: circleci/ruby:3.0
|
75
|
-
steps:
|
76
|
-
- checkout
|
77
|
-
- ruby/install-deps
|
78
|
-
- <<: *lint
|
79
|
-
|
80
|
-
workflows:
|
81
|
-
version: 2
|
82
|
-
build:
|
83
|
-
jobs:
|
84
|
-
- "ruby-2-5"
|
85
|
-
- "ruby-2-6"
|
86
|
-
- "ruby-2-7"
|
87
|
-
- "ruby-3-0"
|
88
|
-
- "ruby-3-1"
|
89
|
-
- "ruby-3-2"
|
90
|
-
- "ruby-3-2-yjit"
|
91
|
-
- "lint"
|