speed_gun 2.0.0 → 2.0.1
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/README.md +10 -3
- data/example/rails/Gemfile.lock +2 -2
- data/lib/speed_gun/railtie.rb +5 -1
- data/lib/speed_gun/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA1:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 8a545e4bea21578313a10048200f7ba7edaba804
|
|
4
|
+
data.tar.gz: f2bcadaeb7502f83dbc4345d433d037e3508cf5f
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 319a7162980c994691fa13f75bd316a7149d59f6b85b602169baa765513c5f47ea029a6c5b924b9382a054e87a6f07bec69797b33ff06d0a2826e42e854190af
|
|
7
|
+
data.tar.gz: 051fc24f25505a30dabde7762fc5734dcb097c0c42c3f5c1ce3ffc9d6850369c593860d18981d07191b0e531e9f494215acaa0aa86436ca95399b1bc6cde62cb
|
data/README.md
CHANGED
|
@@ -2,12 +2,16 @@
|
|
|
2
2
|
|
|
3
3
|
[](http://badge.fury.io/rb/speed_gun)
|
|
4
4
|
|
|
5
|
-
**Work In Progress**
|
|
6
|
-
|
|
7
5
|
> I feel the need... the need for speed!
|
|
8
6
|
|
|
9
7
|
SpeedGun is a more better performance measurement tool for Rails and Rack applications.
|
|
10
8
|
|
|
9
|
+
## Screenshots
|
|
10
|
+
|
|
11
|
+

|
|
12
|
+
|
|
13
|
+

|
|
14
|
+
|
|
11
15
|
## Installation
|
|
12
16
|
|
|
13
17
|
Add this line to your application's Gemfile:
|
|
@@ -24,7 +28,10 @@ $ bundle install
|
|
|
24
28
|
|
|
25
29
|
## Usage
|
|
26
30
|
|
|
27
|
-
|
|
31
|
+
1. Add speed_gun gem into your Rails project
|
|
32
|
+
2. Send a request to your Rails application
|
|
33
|
+
3. Speed gun reports profile page URL
|
|
34
|
+
4. Check it
|
|
28
35
|
|
|
29
36
|
## Development
|
|
30
37
|
|
data/example/rails/Gemfile.lock
CHANGED
data/lib/speed_gun/railtie.rb
CHANGED
|
@@ -10,7 +10,11 @@ class SpeedGun::Railtie < ::Rails::Railtie
|
|
|
10
10
|
end
|
|
11
11
|
|
|
12
12
|
initializer 'speed_gun' do |app|
|
|
13
|
-
|
|
13
|
+
if ActionDispatch.const_defined? :RequestId
|
|
14
|
+
app.config.middleware.insert_after ActionDispatch::RequestId, Rack::SpeedGun
|
|
15
|
+
else
|
|
16
|
+
app.config.middleware.insert_after Rack::MethodOverride, Rack::SpeedGun
|
|
17
|
+
end
|
|
14
18
|
|
|
15
19
|
SpeedGun.configure do |config|
|
|
16
20
|
config.logger = Rails.logger
|
data/lib/speed_gun/version.rb
CHANGED
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: speed_gun
|
|
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
|
- Sho Kusano
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: exe
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date: 2016-06
|
|
11
|
+
date: 2016-07-06 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: msgpack
|