web-console 3.3.0 → 3.3.1

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: bf5732bddc2528664e5567694ec06c4c4a6c0fab
4
- data.tar.gz: 302c11d030141cde9b568ff1a5c50f6f3cdbead9
3
+ metadata.gz: caf063e0c1a30832d5fa0b6ce776514809889448
4
+ data.tar.gz: 0ea92426f743c1463500a0367b8d490501b80e20
5
5
  SHA512:
6
- metadata.gz: cd24a5c51ea68a52e01adb457a16a716b5b3d608f9e817f1bc8c0123ed688029f54363cebcca80eafe2d11e300cae467880d3536e89d21ca088e8513b78b95f0
7
- data.tar.gz: 36b4e435412d84bbea06f5a3cda46a90a3cb440a0e6eb2f603649042be804d2760fa043e3ab319b3a060b12a46f83d064e10d7263eeea9cdc3ab58d9f9d4719c
6
+ metadata.gz: dc7485fccd26fc2af5a0110215df7baf09188f6ee94d2cb02a6da71c649bb22f84070ff4f7dd0d1c34ba355ff962ac590f1cf8520b04bc4db91ef5256e8b7b49
7
+ data.tar.gz: f8e6b128bfc10fba1c76d95287a0316d028281acac1853b451f024a99c23b6c2d26a6ad3cb1fa4b87395aaabd4c446f2dc3a9d1f792ceff2e86b34c1b7e92e76
@@ -2,6 +2,14 @@
2
2
 
3
3
  ## master (unreleased)
4
4
 
5
+ ## 3.3.1
6
+
7
+ Drop support for Rails `4.2.0`.
8
+
9
+ ## 3.3.0
10
+
11
+ * [203](https://github.com/rails/web-console/pull/203) Map bindings to traces based on the trace __FILE__ and __LINE__ ([@gsamokovarov])
12
+
5
13
  ## 3.2.1
6
14
 
7
15
  * [#202](https://github.com/rails/web-console/pull/202) Use first binding when there is no application binding ([@sh19910711])
@@ -24,10 +24,7 @@ module ActionDispatch
24
24
  class DebugExceptions
25
25
  def render_exception_with_web_console(request, exception)
26
26
  render_exception_without_web_console(request, exception).tap do
27
- # Retain superficial Rails 4.2 compatibility.
28
- env = Hash === request ? request : request.env
29
-
30
- backtrace_cleaner = env['action_dispatch.backtrace_cleaner']
27
+ backtrace_cleaner = request.get_header('action_dispatch.backtrace_cleaner')
31
28
  error = ExceptionWrapper.new(backtrace_cleaner, exception).exception
32
29
 
33
30
  # Get the original exception if ExceptionWrapper decides to follow it.
@@ -1,25 +1,12 @@
1
- module WebConsole
2
- # Returns the Ruby bindings of Kernel#callers locations.
3
- #
4
- # The list of bindings here doesn't map 1 to 1 with Kernel#callers, as we
5
- # can't build Ruby bindings for C functions or the equivalent native
6
- # implementations in JRuby and Rubinius.
7
- #
8
- # This method needs to be overridden by every integration.
9
- def self.caller_bindings
10
- raise NotImplementedError
11
- end
12
- end
13
-
14
1
  class Exception
15
2
  # Returns an array of the exception backtrace locations bindings.
16
3
  #
17
4
  # The list won't map to the traces in #backtrace 1 to 1, because we can't
18
5
  # build bindings for every trace (C functions, for example).
19
6
  #
20
- # Every integration should the instance variable.
7
+ # Every integration should set the instance variable.
21
8
  def bindings
22
- (defined?(@bindings) && @bindings) || []
9
+ defined?(@bindings) ? @bindings : []
23
10
  end
24
11
  end
25
12
 
@@ -28,4 +15,19 @@ when 'rbx'
28
15
  require 'web_console/integration/rubinius'
29
16
  when 'ruby'
30
17
  require 'web_console/integration/cruby'
18
+ else
19
+ # Prevent a `method redefined; discarding old caller_bindings` warning.
20
+
21
+ module WebConsole
22
+ # Returns the Ruby bindings of Kernel#callers locations.
23
+ #
24
+ # The list of bindings here doesn't map 1 to 1 with Kernel#callers, as we
25
+ # can't build Ruby bindings for C functions or the equivalent native
26
+ # implementations in JRuby and Rubinius.
27
+ #
28
+ # This method needs to be overridden by every integration.
29
+ def self.caller_bindings
30
+ raise NotImplementedError
31
+ end
32
+ end
31
33
  end
@@ -1,3 +1,3 @@
1
1
  module WebConsole
2
- VERSION = '3.3.0'
2
+ VERSION = '3.3.1'
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: web-console
3
3
  version: !ruby/object:Gem::Version
4
- version: 3.3.0
4
+ version: 3.3.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Charlie Somerville
@@ -11,7 +11,7 @@ authors:
11
11
  autorequire:
12
12
  bindir: bin
13
13
  cert_chain: []
14
- date: 2016-06-15 00:00:00.000000000 Z
14
+ date: 2016-07-05 00:00:00.000000000 Z
15
15
  dependencies:
16
16
  - !ruby/object:Gem::Dependency
17
17
  name: railties
@@ -19,28 +19,42 @@ dependencies:
19
19
  requirements:
20
20
  - - ">="
21
21
  - !ruby/object:Gem::Version
22
- version: '4.2'
22
+ version: '5.0'
23
23
  type: :runtime
24
24
  prerelease: false
25
25
  version_requirements: !ruby/object:Gem::Requirement
26
26
  requirements:
27
27
  - - ">="
28
28
  - !ruby/object:Gem::Version
29
- version: '4.2'
29
+ version: '5.0'
30
30
  - !ruby/object:Gem::Dependency
31
31
  name: activemodel
32
32
  requirement: !ruby/object:Gem::Requirement
33
33
  requirements:
34
34
  - - ">="
35
35
  - !ruby/object:Gem::Version
36
- version: '4.2'
36
+ version: '5.0'
37
37
  type: :runtime
38
38
  prerelease: false
39
39
  version_requirements: !ruby/object:Gem::Requirement
40
40
  requirements:
41
41
  - - ">="
42
42
  - !ruby/object:Gem::Version
43
- version: '4.2'
43
+ version: '5.0'
44
+ - !ruby/object:Gem::Dependency
45
+ name: actionview
46
+ requirement: !ruby/object:Gem::Requirement
47
+ requirements:
48
+ - - ">="
49
+ - !ruby/object:Gem::Version
50
+ version: '5.0'
51
+ type: :runtime
52
+ prerelease: false
53
+ version_requirements: !ruby/object:Gem::Requirement
54
+ requirements:
55
+ - - ">="
56
+ - !ruby/object:Gem::Version
57
+ version: '5.0'
44
58
  - !ruby/object:Gem::Dependency
45
59
  name: debug_inspector
46
60
  requirement: !ruby/object:Gem::Requirement