debug-extras 0.4.2 → 0.4.3

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: a57f4d72a18282f0fd9b294419ed0b038cf74958c0ed837cc7d024c7ecadc7b5
4
- data.tar.gz: 8f669668bc0a2a6fe27841305ccc374a94b32ae964c759b69e3cb92b5cfd8200
3
+ metadata.gz: 05c72556ed594c347eab4c2e72ef3f98abb8956e7c7043f82d67806991f93c91
4
+ data.tar.gz: 1cfd16776869ad8582555da23a6565ea89f41f19c63e32b893f001fab5c9ded6
5
5
  SHA512:
6
- metadata.gz: b6db906ef3f95697a96d1f7e7f51f921153436ad95a00d223e60b3f24d43f7cca50e9d88119bd7d26aa6d15c8215f72584f6323484b92c365b9a5e5b7ea675df
7
- data.tar.gz: 3c788655584e1f70967a597c6176ea7db1c44d2216ad2b51dafdf52b29e9d73911dac208476847a140a680f2545b4cb218d8fe20bf77bc50a225b8c02667c961
6
+ metadata.gz: addc97786e64e89a6a14cfa3fae5ab890d16b27f9b4850abd65ed46e01c50e4c776c19a8beb99a2ea769e0ac7a836eb616348d356d6e45615692912c8760fd02
7
+ data.tar.gz: b7696ba9119d84dd4d24fb6593b6fc401cc5d7fedfddf690d43146d616bee209ef655d6f6c8acfe3859a5abc454d2f6e916b21cc81f6caeb21819d90bae7bb78
@@ -1,4 +1,5 @@
1
1
  require "active_support/concern"
2
+ require "active_support/core_ext/object/try"
2
3
  require "active_support/dependencies/autoload"
3
4
  require "active_support/lazy_load_hooks"
4
5
 
@@ -16,7 +16,7 @@ module DebugExtras
16
16
  private
17
17
 
18
18
  def response_is_html?
19
- return false unless @response.headers['Content-Type'].include?('html')
19
+ return false unless @response.headers['Content-Type'].try('include?', 'html')
20
20
  tags = %w[<html <head </head> <body </body> </html>]
21
21
  tags.each do |tag|
22
22
  return false unless @response.body.include? tag
@@ -1,3 +1,3 @@
1
1
  module DebugExtras
2
- VERSION = "0.4.2"
2
+ VERSION = "0.4.3"
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.2
4
+ version: 0.4.3
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-28 00:00:00.000000000 Z
11
+ date: 2018-03-01 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: awesome_print
@@ -155,7 +155,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
155
155
  version: '0'
156
156
  requirements: []
157
157
  rubyforge_project:
158
- rubygems_version: 2.7.3
158
+ rubygems_version: 2.7.5
159
159
  signing_key:
160
160
  specification_version: 4
161
161
  summary: Extras for Ruby on Rails applications debugging.