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 +4 -4
- data/CHANGELOG.md +4 -0
- data/lib/enable_rails_patches.rb +1 -3
- data/lib/mini_profiler/profiler.rb +1 -1
- data/lib/mini_profiler/version.rb +1 -1
- data/lib/patches/net_patches.rb +7 -4
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 17348c5390dc454187e6cfd559e9fc955fdcbedbb09f7bec83cb403c5533616d
|
4
|
+
data.tar.gz: 5a6c7706f4650bd3e27602afc2d394425b99bde022d055f79c9cf8647d3f3df1
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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)
|
data/lib/enable_rails_patches.rb
CHANGED
data/lib/patches/net_patches.rb
CHANGED
@@ -1,13 +1,16 @@
|
|
1
1
|
# frozen_string_literal: true
|
2
2
|
|
3
3
|
if (defined?(Net) && defined?(Net::HTTP))
|
4
|
-
|
5
|
-
|
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
|
-
|
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.
|
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-
|
13
|
+
date: 2020-03-17 00:00:00.000000000 Z
|
14
14
|
dependencies:
|
15
15
|
- !ruby/object:Gem::Dependency
|
16
16
|
name: rack
|