rack-profiler 1.1.1 → 1.1.2
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 +4 -4
- data/lib/rack/grape/endpoint_json.rb +10 -0
- data/lib/rack/profiler.rb +5 -1
- data/lib/rack/profiler/version.rb +1 -1
- metadata +4 -4
- data/lib/grape/endpoint.rb +0 -7
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 1f5398210924d7b6d55e62cba6b5eaefbf0832f7
|
4
|
+
data.tar.gz: 2655da5d924948ee52e26d0dabe0714524828f1a
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: d9416780b7a29246118e0e69eeff96c7bc4c0dc19d3ccdb382dfec0fed23b3079309ce8341436c1cafeae2701d3e485e666e7ed65fd69c3bf1554eeea8ce15b3
|
7
|
+
data.tar.gz: 663266c332ffc194a47af1043a1ef5e8087a25d3b2679bed29d0f8ba7a3e6fc09ba898a2b88b40f0a4cb2158da8fd30a9c364d791397bae84a03631a2bb270af
|
data/lib/rack/profiler.rb
CHANGED
@@ -3,7 +3,7 @@ require "rack/request"
|
|
3
3
|
require "rack/auth/basic"
|
4
4
|
require "rack/profiler/version"
|
5
5
|
require "active_support/notifications"
|
6
|
-
require "grape/
|
6
|
+
require "rack/grape/endpoint_json"
|
7
7
|
|
8
8
|
module Rack
|
9
9
|
class Profiler
|
@@ -37,6 +37,10 @@ module Rack
|
|
37
37
|
@app = app
|
38
38
|
subscribe_to_default
|
39
39
|
block.call(self) if block_given?
|
40
|
+
|
41
|
+
if defined?(::Grape::Endpoint)
|
42
|
+
::Grape::Endpoint.include Rack::Grape::EndpointJson
|
43
|
+
end
|
40
44
|
end
|
41
45
|
|
42
46
|
def call(env)
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: rack-profiler
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.1.
|
4
|
+
version: 1.1.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Luca Ongaro
|
@@ -9,7 +9,7 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date: 2016-01-
|
12
|
+
date: 2016-01-21 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: rack
|
@@ -95,7 +95,7 @@ files:
|
|
95
95
|
- LICENSE.txt
|
96
96
|
- README.md
|
97
97
|
- Rakefile
|
98
|
-
- lib/grape/
|
98
|
+
- lib/rack/grape/endpoint_json.rb
|
99
99
|
- lib/rack/profiler.rb
|
100
100
|
- lib/rack/profiler/version.rb
|
101
101
|
- public/rack-profiler.html
|
@@ -122,7 +122,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
122
122
|
version: '0'
|
123
123
|
requirements: []
|
124
124
|
rubyforge_project:
|
125
|
-
rubygems_version: 2.
|
125
|
+
rubygems_version: 2.5.1
|
126
126
|
signing_key:
|
127
127
|
specification_version: 4
|
128
128
|
summary: A simple profiler for Rack applications
|