rack-mini-profiler 2.0.0 → 2.0.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
  SHA256:
3
- metadata.gz: 93c2989b331d19e51611a97941ea8259812285211b00ad25bb56e55a7fe17b37
4
- data.tar.gz: '07594d8609bad0a73f86cf56cfe1bf1aaeb8e279edeba50e2a5c4a3bf86be0fb'
3
+ metadata.gz: 17348c5390dc454187e6cfd559e9fc955fdcbedbb09f7bec83cb403c5533616d
4
+ data.tar.gz: 5a6c7706f4650bd3e27602afc2d394425b99bde022d055f79c9cf8647d3f3df1
5
5
  SHA512:
6
- metadata.gz: f651aeb06ef7bab9e853aacc4ed3ab22b8470b3b8723b7d7f727092c6e7e35db75003cdb8bbeba2ef94637c9ff85ea5bf269cbefa748f46aaeb72208d900b387
7
- data.tar.gz: ffe60bc20d0132e5e5c34e55debb739da0f3a62fce0d9a391f515fe9ba52f9c6c8f2cd3f327e433a8f2a9222bb60b1bbede8f1f28a9b9f39cb442b4097b982e1
6
+ metadata.gz: f177af4784547eb49be197a7e2be873124ecfbba021f1bc0f6f4fedc1622c9fb2a525a0d991155fe43868eb499804304bb98d7cf9e5fad38033a0001981bc8c0
7
+ data.tar.gz: 01eec1e79eb80e82b94d50cae8d763ba19d1bdce6d126dadb5be9c28abc0e038fe49ca2d2dd6ea39316f493b4e8ecc12069c9435bf50c57e491548278e9c2e34
data/CHANGELOG.md CHANGED
@@ -1,5 +1,9 @@
1
1
  # CHANGELOG
2
2
 
3
+ ## 2.0.1 - 2020-03-17
4
+
5
+ - [REVERT] Prepend Net::HTTP patch instead of class_eval and aliasing (#429) (technique clashes with New Relic and Skylight agents)
6
+
3
7
  ## 2.0.0 - 2020-03-11
4
8
 
5
9
  - [FEATURE] Prepend Net::HTTP patch instead of class_eval and aliasing (#429)
@@ -1,7 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Rack
4
- class MiniProfiler
5
- ENABLE_RAILS_PATCHES = true
6
- end
4
+ MINI_PROFILER_ENABLE_RAILS_PATCHES = true
7
5
  end
@@ -8,7 +8,7 @@ module Rack
8
8
  attr_accessor :subscribe_sql_active_record
9
9
 
10
10
  def patch_rails?
11
- !!defined?(::Rack::MiniProfiler::ENABLE_RAILS_PATCHES)
11
+ !!defined?(Rack::MINI_PROFILER_ENABLE_RAILS_PATCHES)
12
12
  end
13
13
 
14
14
  def generate_id
@@ -2,6 +2,6 @@
2
2
 
3
3
  module Rack
4
4
  class MiniProfiler
5
- VERSION = '2.0.0'
5
+ VERSION = '2.0.1'
6
6
  end
7
7
  end
@@ -1,13 +1,16 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  if (defined?(Net) && defined?(Net::HTTP))
4
- module NetHTTPWithMiniProfiler
5
- def request(request, *args, &block)
4
+
5
+ Net::HTTP.class_eval do
6
+ def request_with_mini_profiler(*args, &block)
7
+ request = args[0]
6
8
  Rack::MiniProfiler.step("Net::HTTP #{request.method} #{request.path}") do
7
- super
9
+ request_without_mini_profiler(*args, &block)
8
10
  end
9
11
  end
12
+ alias request_without_mini_profiler request
13
+ alias request request_with_mini_profiler
10
14
  end
11
15
 
12
- Net::HTTP.prepend(NetHTTPWithMiniProfiler)
13
16
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: rack-mini-profiler
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.0.0
4
+ version: 2.0.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Sam Saffron
@@ -10,7 +10,7 @@ authors:
10
10
  autorequire:
11
11
  bindir: bin
12
12
  cert_chain: []
13
- date: 2020-03-11 00:00:00.000000000 Z
13
+ date: 2020-03-17 00:00:00.000000000 Z
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency
16
16
  name: rack