dead_end 1.1.5 → 1.1.6
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +5 -1
- data/Gemfile.lock +2 -2
- data/lib/dead_end/version.rb +1 -1
- data/lib/dead_end/who_dis_syntax_error.rb +7 -7
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: ac6f2a5183bb09317d83211f3b1f7049154011ae0fbd73f08152864303a763bd
|
4
|
+
data.tar.gz: b6ea7a79863ffcc8664f3b693fabe49635f17fa48ed8e4529eeb48de9808b9c2
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: a5b1524a4a5844d932dfdbd7874b81c43fbe4a98ac30ee4258e8eaefbf33a98d470a96721ce7ee0ec8e61e5f3ce525dabecde40b3900f5e5b8964b71676d49df
|
7
|
+
data.tar.gz: f9c2bf9a500f3428627a4de15af3e7d75ce0446e2042f68b39ab27a97da0c60171b7449241a60b358c8d5045c46f65a3bab3ed1d11cd4881eb5c8da06414d5ba
|
data/CHANGELOG.md
CHANGED
@@ -1,8 +1,12 @@
|
|
1
1
|
## HEAD (unreleased)
|
2
2
|
|
3
|
+
## 1.1.6
|
4
|
+
|
5
|
+
- Consider if syntax error caused an unexpected variable instead of end (https://github.com/zombocom/dead_end/pull/58)
|
6
|
+
|
3
7
|
## 1.1.5
|
4
8
|
|
5
|
-
-
|
9
|
+
- Parse error once and not twice if there's more than one available (https://github.com/zombocom/dead_end/pull/57)
|
6
10
|
|
7
11
|
## 1.1.4
|
8
12
|
|
data/Gemfile.lock
CHANGED
data/lib/dead_end/version.rb
CHANGED
@@ -51,14 +51,14 @@ module DeadEnd
|
|
51
51
|
when /unexpected end-of-input/
|
52
52
|
@error_symbol = :missing_end
|
53
53
|
when /expecting end-of-input/
|
54
|
-
@error_symbol = :unmatched_syntax
|
55
54
|
@unmatched_symbol = :end
|
56
|
-
|
57
|
-
|
58
|
-
|
59
|
-
|
60
|
-
|
61
|
-
|
55
|
+
@error_symbol = :unmatched_syntax
|
56
|
+
when /unexpected .* expecting '(?<unmatched_symbol>.*)'/
|
57
|
+
@unmatched_symbol = $1.to_sym if $1
|
58
|
+
@error_symbol = :unmatched_syntax
|
59
|
+
when /unexpected `end'/, # Ruby 2.7 and 3.0
|
60
|
+
/unexpected end/, # Ruby 2.6
|
61
|
+
/unexpected keyword_end/i # Ruby 2.5
|
62
62
|
|
63
63
|
@error_symbol = :unmatched_syntax
|
64
64
|
else
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: dead_end
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.1.
|
4
|
+
version: 1.1.6
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- schneems
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2021-02-
|
11
|
+
date: 2021-02-25 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
|