dead_end 1.1.5 → 1.1.7
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/CHANGELOG.md +9 -1
- data/Gemfile.lock +2 -2
- data/lib/dead_end/auto.rb +1 -1
- data/lib/dead_end/version.rb +1 -1
- data/lib/dead_end/who_dis_syntax_error.rb +7 -7
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 49c72ccc76282ed1e7f9256f51f0adc1c886e1a05b3951e8f86d45eca0f22609
|
4
|
+
data.tar.gz: 2d1fc7eefe0fb741a516adf09ea5c5472d8f678572cc73858a3a1b4468b10457
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: a4007362e70da478bb4590ad7196897b50fe4ab31bf384a4e4a80df44b906cee5faadf992a400a45d85e16b4864a42f17cc49490e8411020a4058310c088d84c
|
7
|
+
data.tar.gz: 1cd5eaa6385bf7e451801c33d13f89a69c6412608067dc8acc23d7955ecc8ca5796ae839b966767a37f12b48e0d280fb0a1946e9d5e24f92edf14b2913b36c68
|
data/CHANGELOG.md
CHANGED
@@ -1,8 +1,16 @@
|
|
1
1
|
## HEAD (unreleased)
|
2
2
|
|
3
|
+
## 1.1.7
|
4
|
+
|
5
|
+
- Fix sinatra support for `require_relative` (https://github.com/zombocom/dead_end/pull/63)
|
6
|
+
|
7
|
+
## 1.1.6
|
8
|
+
|
9
|
+
- Consider if syntax error caused an unexpected variable instead of end (https://github.com/zombocom/dead_end/pull/58)
|
10
|
+
|
3
11
|
## 1.1.5
|
4
12
|
|
5
|
-
-
|
13
|
+
- Parse error once and not twice if there's more than one available (https://github.com/zombocom/dead_end/pull/57)
|
6
14
|
|
7
15
|
## 1.1.4
|
8
16
|
|
data/Gemfile.lock
CHANGED
data/lib/dead_end/auto.rb
CHANGED
@@ -27,7 +27,7 @@ module Kernel
|
|
27
27
|
if Pathname.new(file).absolute?
|
28
28
|
dead_end_original_require file
|
29
29
|
else
|
30
|
-
dead_end_original_require File.expand_path("../#{file}", caller_locations(1, 1)[0].absolute_path)
|
30
|
+
dead_end_original_require File.expand_path("../#{file}", Kernel.caller_locations(1, 1)[0].absolute_path)
|
31
31
|
end
|
32
32
|
rescue SyntaxError => e
|
33
33
|
DeadEnd.handle_error(e)
|
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.7
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- schneems
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2021-
|
11
|
+
date: 2021-05-10 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
|
@@ -75,7 +75,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
75
75
|
- !ruby/object:Gem::Version
|
76
76
|
version: '0'
|
77
77
|
requirements: []
|
78
|
-
rubygems_version: 3.2.
|
78
|
+
rubygems_version: 3.2.15
|
79
79
|
signing_key:
|
80
80
|
specification_version: 4
|
81
81
|
summary: Find syntax errors in your source in a snap
|