Skip to content

Commit bd5211b

Browse files
authored
Merge pull request #159 from ruby/schneems/v1.0.0
Schneems/v1.0.0
2 parents 13ea525 + f142fcb commit bd5211b

File tree

3 files changed

+34
-32
lines changed

3 files changed

+34
-32
lines changed

CHANGELOG.md

Lines changed: 32 additions & 30 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
## HEAD (unreleased)
22

3+
## 1.0.0 (Library renamed to syntax_suggest )
4+
35
- [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)
46
- [Breaking] Rename `dead_end` to `syntax_suggest` (https://github.com/zombocom/dead_end/pull/154)
57
- [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)
@@ -9,42 +11,42 @@
911
- Respect `highlight` kwarg in Ruby 3.2's `detailed_message` to enable/disable control characters (https://github.com/zombocom/dead_end/pull/147)
1012
- Added workarounds for running on ruby/ruby repo (https://github.com/ruby/syntax_suggest/pull/156)
1113

12-
## 4.0.0
14+
## dead_end 4.0.0
1315

1416
- 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)
1517
- [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)
1618
- Monkeypatch `SyntaxError#detailed_message` in Ruby 3.2+ instead of `require`, `load`, and `require_relative` (https://github.com/zombocom/dead_end/pull/139)
1719

18-
## 3.1.2
20+
## dead_end 3.1.2
1921

2022
- Fixed internal class AroundBlockScan, minor changes in outputs (https://github.com/zombocom/dead_end/pull/131)
2123

22-
## 3.1.1
24+
## dead_end 3.1.1
2325

2426
- Fix case where Ripper lexing identified incorrect code as a keyword (https://github.com/zombocom/dead_end/pull/122)
2527

26-
## 3.1.0
28+
## dead_end 3.1.0
2729

2830
- Add support for Ruby 3.1 by updating `require_relative` logic (https://github.com/zombocom/dead_end/pull/120)
2931
- Requiring `dead_end/auto` is now deprecated please require `dead_end` instead (https://github.com/zombocom/dead_end/pull/119)
3032
- Requiring `dead_end/api` now loads code without monkeypatching core extensions (https://github.com/zombocom/dead_end/pull/119)
3133
- The interface `SyntaxSuggest.handle_error` is declared public and stable (https://github.com/zombocom/dead_end/pull/119)
3234

33-
## 3.0.3
35+
## dead_end 3.0.3
3436

3537
- Expand explanations coming from additional Ripper errors (https://github.com/zombocom/dead_end/pull/117)
3638
- Fix explanation involving shorthand syntax for literals like `%w[]` and `%Q{}` (https://github.com/zombocom/dead_end/pull/116)
3739

38-
## 3.0.2
40+
## dead_end 3.0.2
3941

4042
- Fix windows filename detection (https://github.com/zombocom/dead_end/pull/114)
4143
- Update links on readme and code of conduct (https://github.com/zombocom/dead_end/pull/107)
4244

43-
## 3.0.1
45+
## dead_end 3.0.1
4446

4547
- Fix CLI parsing when flags come before filename (https://github.com/zombocom/dead_end/pull/102)
4648

47-
## 3.0.0
49+
## dead_end 3.0.0
4850

4951
- [Breaking] CLI now outputs to STDOUT instead of STDERR (https://github.com/zombocom/dead_end/pull/98)
5052
- [Breaking] Remove previously deprecated `require "dead_end/fyi"` interface (https://github.com/zombocom/dead_end/pull/94)
@@ -55,106 +57,106 @@
5557
- Parse errors emitted per-block rather than for the whole document (https://github.com/zombocom/dead_end/pull/94)
5658
- The "banner" is now based on lexical analysis rather than parser regex (fix #68, fix #87) (https://github.com/zombocom/dead_end/pull/96)
5759

58-
## 2.0.2
60+
## dead_end 2.0.2
5961

6062
- Don't print terminal color codes when output is not tty (https://github.com/zombocom/dead_end/pull/91)
6163

62-
## 2.0.1
64+
## dead_end 2.0.1
6365

6466
- Reintroduce Ruby 2.5 support (https://github.com/zombocom/dead_end/pull/90)
6567
- Support naked braces/brackets/parens, invert labels on banner (https://github.com/zombocom/dead_end/pull/89)
6668
- Handle mismatched end when using rescue without begin (https://github.com/zombocom/dead_end/pull/83)
6769
- CLI returns non-zero exit code when syntax error is found (https://github.com/zombocom/dead_end/pull/86)
6870
- Let -v respond with gem version instead of 'unknown' (https://github.com/zombocom/dead_end/pull/82)
6971

70-
## 2.0.0
72+
## dead_end 2.0.0
7173

7274
- Support "endless" oneline method definitions for Ruby 3+ (https://github.com/zombocom/dead_end/pull/80)
7375
- Reduce timeout to 1 second (https://github.com/zombocom/dead_end/pull/79)
7476
- Logically consecutive lines (such as chained methods are now joined) (https://github.com/zombocom/dead_end/pull/78)
7577
- Output improvement for cases where the only line is an single `end` (https://github.com/zombocom/dead_end/pull/78)
7678

77-
## 1.2.0
79+
## dead_end 1.2.0
7880

7981
- Output improvements via less greedy unmatched kw capture https://github.com/zombocom/dead_end/pull/73
8082
- Remove NoMethodError patching instead use https://github.com/ruby/error_highlight/ (https://github.com/zombocom/dead_end/pull/71)
8183

82-
## 1.1.7
84+
## dead_end 1.1.7
8385

8486
- Fix sinatra support for `require_relative` (https://github.com/zombocom/dead_end/pull/63)
8587

86-
## 1.1.6
88+
## dead_end 1.1.6
8789

8890
- Consider if syntax error caused an unexpected variable instead of end (https://github.com/zombocom/dead_end/pull/58)
8991

90-
## 1.1.5
92+
## dead_end 1.1.5
9193

9294
- Parse error once and not twice if there's more than one available (https://github.com/zombocom/dead_end/pull/57)
9395

94-
## 1.1.4
96+
## dead_end 1.1.4
9597

9698
- Avoid including demo gif in built gem (https://github.com/zombocom/dead_end/pull/53)
9799

98-
## 1.1.3
100+
## dead_end 1.1.3
99101

100102
- Add compatibility with zeitwerk (https://github.com/zombocom/dead_end/pull/52)
101103

102-
## 1.1.2
104+
## dead_end 1.1.2
103105

104106
- Namespace Kernel method aliases (https://github.com/zombocom/dead_end/pull/51)
105107

106-
## 1.1.1
108+
## dead_end 1.1.1
107109

108110
- Safer NoMethodError annotation (https://github.com/zombocom/dead_end/pull/48)
109111

110-
## 1.1.0
112+
## dead_end 1.1.0
111113

112114
- Annotate NoMethodError in non-production environments (https://github.com/zombocom/dead_end/pull/46)
113115
- Do not count trailing if/unless as a keyword (https://github.com/zombocom/dead_end/pull/44)
114116

115-
## 1.0.2
117+
## dead_end 1.0.2
116118

117119
- Fix bug where empty lines were interpreted to have a zero indentation (https://github.com/zombocom/dead_end/pull/39)
118120
- 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)
119121

120-
## 1.0.1
122+
## dead_end 1.0.1
121123

122124
- Fix performance issue when evaluating multiple block combinations (https://github.com/zombocom/dead_end/pull/35)
123125

124-
## 1.0.0
126+
## dead_end 1.0.0
125127

126128
- Gem name changed from `syntax_search` to `dead_end` (https://github.com/zombocom/syntax_search/pull/30)
127129
- Moved `syntax_search/auto` behavior to top level require (https://github.com/zombocom/syntax_search/pull/30)
128130
- Error banner now indicates when missing a `|` or `}` in addition to `end` (https://github.com/zombocom/syntax_search/pull/29)
129131
- Trailing slashes are now handled (joined) before the code search (https://github.com/zombocom/syntax_search/pull/28)
130132

131-
## 0.2.0
133+
## dead_end 0.2.0
132134

133135
- Simplify large file output so minimal context around the invalid section is shown (https://github.com/zombocom/syntax_search/pull/26)
134136
- Block expansion is now lexically aware of keywords (def/do/end etc.) (https://github.com/zombocom/syntax_search/pull/24)
135137
- 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)
136138

137-
## 0.1.5
139+
## dead_end 0.1.5
138140

139141
- Strip out heredocs in documents first (https://github.com/zombocom/syntax_search/pull/19)
140142

141-
## 0.1.4
143+
## dead_end 0.1.4
142144

143145
- Parser gem replaced with Ripper (https://github.com/zombocom/syntax_search/pull/17)
144146

145-
## 0.1.3
147+
## dead_end 0.1.3
146148

147149
- Internal refactor (https://github.com/zombocom/syntax_search/pull/13)
148150

149-
## 0.1.2
151+
## dead_end 0.1.2
150152

151153
- Codeblocks in output are now indented with 4 spaces and "code fences" are removed (https://github.com/zombocom/syntax_search/pull/11)
152154
- "Unmatched end" and "missing end" not generate different error text instructions (https://github.com/zombocom/syntax_search/pull/10)
153155

154-
## 0.1.1
156+
## dead_end 0.1.1
155157

156158
- Fire search on both unexpected end-of-input and unexected end (https://github.com/zombocom/syntax_search/pull/8)
157159

158-
## 0.1.0
160+
## dead_end 0.1.0
159161

160162
- Initial release

Gemfile.lock

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
PATH
22
remote: .
33
specs:
4-
syntax_suggest (0.0.1)
4+
syntax_suggest (1.0.0)
55

66
GEM
77
remote: https://rubygems.org/

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 = "0.0.1"
4+
VERSION = "1.0.0"
55
end

0 commit comments

Comments
 (0)