dead_end 1.1.0 → 1.1.1

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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 8b372fd8bb6cb9f7b3a601fcb32a539ae361fa19e3f64471d6c446564532750c
4
- data.tar.gz: fc78d6a4ff9f86663af64dc6acf1bf2a0bced8fded065a2e0b52210e19766496
3
+ metadata.gz: 4690f965eeee0b3f75ce6d3f27360a73639a3cb918ee77fafb77c559e278a035
4
+ data.tar.gz: 95ea085f4a5cf1f8b5882b717fe5f6c08fac7ab97568c9c3022632a52988351e
5
5
  SHA512:
6
- metadata.gz: 5ee131a4f8574bec7a8e9054b4085524cf49692afeb40387144f9461f34323b533944b1c9683b0772c43858ed348fb6eb889ae89ecfb765b0c26b805e93dee4c
7
- data.tar.gz: bffe41e67a11e342ad5db8a36b7faa81c1ea24eab2a37bb67c77762cd0be470f12cc55b8baf9e9696e2ed321943eed348328b637220102d2e9e1678c17ef3d18
6
+ metadata.gz: be19b5b8999599b226de6f0c511d91ce091867b67b30c8e9c5e56b0c3c06ac78c229b1c08823921c0fc461977e2e08d4fb6c2a8d4a796c47d0410ee84ac82da0
7
+ data.tar.gz: 3c5254b82d3f6e17cbd3012f4b82c2f9ae0df533f521c41eeea08e14ff5e8b8c6fdd17a6aa4b40b655437510d10f9f059df611b8c4496558230741cec7812f15
@@ -1,5 +1,9 @@
1
1
  ## HEAD (unreleased)
2
2
 
3
+ ## 1.1.1
4
+
5
+ - Safer NoMethodError annotation (https://github.com/zombocom/dead_end/pull/48)
6
+
3
7
  ## 1.1.0
4
8
 
5
9
  - Annotate NoMethodError in non-production environments (https://github.com/zombocom/dead_end/pull/46)
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- dead_end (1.1.0)
4
+ dead_end (1.1.1)
5
5
 
6
6
  GEM
7
7
  remote: https://rubygems.org/
@@ -33,4 +33,4 @@ DEPENDENCIES
33
33
  stackprof
34
34
 
35
35
  BUNDLED WITH
36
- 2.1.4
36
+ 2.2.3
@@ -62,6 +62,8 @@ end
62
62
  # we can attempt to disable this behavior in a production context.
63
63
  if !DeadEnd::IsProduction.call
64
64
  class NoMethodError
65
+ alias :original_to_s :to_s
66
+
65
67
  def to_s
66
68
  return super if DeadEnd::IsProduction.call
67
69
 
@@ -91,8 +93,9 @@ if !DeadEnd::IsProduction.call
91
93
  message << $/
92
94
  message
93
95
  rescue => e
94
- puts "DeadEnd Internal error: #{e.message}"
95
- puts "DeadEnd Internal backtrace: #{e.backtrace}"
96
+ puts "DeadEnd Internal error: #{e.original_to_s}"
97
+ puts "DeadEnd Internal backtrace:"
98
+ puts backtrace.map {|l| " " + l }.join($/)
96
99
  super
97
100
  end
98
101
  end
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module DeadEnd
4
- VERSION = "1.1.0"
4
+ VERSION = "1.1.1"
5
5
  end
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.0
4
+ version: 1.1.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - schneems
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2020-12-29 00:00:00.000000000 Z
11
+ date: 2020-12-30 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
@@ -76,7 +76,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
76
76
  - !ruby/object:Gem::Version
77
77
  version: '0'
78
78
  requirements: []
79
- rubygems_version: 3.1.4
79
+ rubygems_version: 3.2.3
80
80
  signing_key:
81
81
  specification_version: 4
82
82
  summary: Find syntax errors in your source in a snap