debug-extras 0.4.1 → 0.4.2

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
  SHA256:
3
- metadata.gz: efd3403b20978559405fb093bda6f49a72db8b37053e3923a83609a0c6ac6c1d
4
- data.tar.gz: bd0687c28074f62cd4127a5803e3f1774e172f57864a09f15f15396558aeb906
3
+ metadata.gz: a57f4d72a18282f0fd9b294419ed0b038cf74958c0ed837cc7d024c7ecadc7b5
4
+ data.tar.gz: 8f669668bc0a2a6fe27841305ccc374a94b32ae964c759b69e3cb92b5cfd8200
5
5
  SHA512:
6
- metadata.gz: 682e9b91e7b3a3d3266a06885c0f0d04265a591ba547312a248aed345287fc4eaf0fc1988a62a348c441f697ae56ac03f6a170efa6ca55b77ae89f8f24650858
7
- data.tar.gz: '084b6fd3e018f00b2ac470d8f98943b873775587cd3c2f0a2302cbb105e028ac1f0e5a2898d75293b82ab0ea6819ad303d2e196e12b190b02a8f434bcd6704b3'
6
+ metadata.gz: b6db906ef3f95697a96d1f7e7f51f921153436ad95a00d223e60b3f24d43f7cca50e9d88119bd7d26aa6d15c8215f72584f6323484b92c365b9a5e5b7ea675df
7
+ data.tar.gz: 3c788655584e1f70967a597c6176ea7db1c44d2216ad2b51dafdf52b29e9d73911dac208476847a140a680f2545b4cb218d8fe20bf77bc50a225b8c02667c961
data/lib/debug-extras.rb CHANGED
@@ -1,3 +1,4 @@
1
+ require "active_support/concern"
1
2
  require "active_support/dependencies/autoload"
2
3
  require "active_support/lazy_load_hooks"
3
4
 
@@ -1,7 +1,14 @@
1
1
  module DebugExtras
2
2
  module ActionController
3
- def render(*args)
4
- super
3
+ extend ActiveSupport::Concern
4
+
5
+ included do
6
+ after_action :debug_extras_inject
7
+ end
8
+
9
+ private
10
+
11
+ def debug_extras_inject
5
12
  injector = Injector.new(response)
6
13
  response.body = injector.process_response
7
14
  end
@@ -1,5 +1,3 @@
1
- require "active_support/concern"
2
-
3
1
  module DebugExtras
4
2
  module ActionView
5
3
  def dump(object)
@@ -1,3 +1,3 @@
1
1
  module DebugExtras
2
- VERSION = "0.4.1"
2
+ VERSION = "0.4.2"
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: debug-extras
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.4.1
4
+ version: 0.4.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Vladimir Avgustov
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2018-01-26 00:00:00.000000000 Z
11
+ date: 2018-01-28 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: awesome_print