better_errors 2.7.0 → 2.7.1

Sign up to get free protection for your applications and to get access to all the features.

Potentially problematic release.


This version of better_errors might be problematic. Click here for more details.

checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: f0a9449e2952fc0366176c6e7160b9c3dc0ea875902510fd60d6f6e54e0b8110
4
- data.tar.gz: f03dd3cf91ed360f4bd0a826e7b99827b9149f50efff44ea8dbc8bb1b585fa45
3
+ metadata.gz: 02fd367f762466af8d20849212f8f765139d03d9c32df942cbe72ccfe78a5bbd
4
+ data.tar.gz: 24746f4912c8b8dc817bc5e12f7ae9237857418923c3c951abe3ab511c6474ef
5
5
  SHA512:
6
- metadata.gz: e70808745a84bd58172df545a84371e64f7a42c0dc330ae44b271b759194ae534f7afb918d890c321e0dc075dc9cc66082e0ec9cef0dd769a3738ffa1aafcbd3
7
- data.tar.gz: 1d69c89a9b05b116eac00cc03267abcd831bbcb9314f7462ea13279f5960db3abdab27c408f517af79259e837f60403650196fa06acacb59a820b8cdc166dcd1
6
+ metadata.gz: 3986c20ba505005e72c3f4933d73a8f62b384ce15e98393fee07b1cc8cee9b574b6790f6f772d164d7e969560323b3e303f619ef9541a3b808774b162454c5e9
7
+ data.tar.gz: 3138903e38853c5a1ec862fdd1b91600906db24ae52abaac48adfa36d6272d044e8ca3a295f48617b9fb6d3298f54f20ff29dee103d1f6791d15e77b64ed86d2
@@ -57,6 +57,10 @@ module BetterErrors
57
57
 
58
58
  def massage_syntax_error
59
59
  case exception.class.to_s
60
+ when "ActionView::Template::Error"
61
+ if exception.respond_to?(:file_name) && exception.respond_to?(:line_number)
62
+ backtrace.unshift(StackFrame.new(exception.file_name, exception.line_number.to_i, "view template"))
63
+ end
60
64
  when "Haml::SyntaxError", "Sprockets::Coffeelint::Error"
61
65
  if /\A(.+?):(\d+)/ =~ exception.backtrace.first
62
66
  backtrace.unshift(StackFrame.new($1, $2.to_i, ""))
@@ -1,3 +1,3 @@
1
1
  module BetterErrors
2
- VERSION = "2.7.0"
2
+ VERSION = "2.7.1"
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: better_errors
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.7.0
4
+ version: 2.7.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Charlie Somerville
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2020-04-24 00:00:00.000000000 Z
11
+ date: 2020-05-13 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rake
@@ -214,7 +214,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
214
214
  - !ruby/object:Gem::Version
215
215
  version: '0'
216
216
  requirements: []
217
- rubygems_version: 3.0.3
217
+ rubygems_version: 3.1.2
218
218
  signing_key:
219
219
  specification_version: 4
220
220
  summary: Better error page for Rails and other Rack apps