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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 2e5e66af80e2889d45d0aa3398b73c6c336a2eeb
4
- data.tar.gz: dd1cfd00641e7cdc5891215ab2d75d44cc3b0c0b
3
+ metadata.gz: 8a545e4bea21578313a10048200f7ba7edaba804
4
+ data.tar.gz: f2bcadaeb7502f83dbc4345d433d037e3508cf5f
5
5
  SHA512:
6
- metadata.gz: 331c8a91b7b3f443ff4e680ad5c3dd36932ddd0dafe22d68f00da6916f699a98f984fd39faf7340a16513e9c089c1a1556d63d02b916ff8e41db1f18688eb83c
7
- data.tar.gz: b37bc4ce9b24019f2c41f21799bc9e29238858072b3d5b3cafe1aceaeea70b1a89573da6d67354bfac74b7a68e5ffafd321109de77c2f9535143eba0724132f3
6
+ metadata.gz: 319a7162980c994691fa13f75bd316a7149d59f6b85b602169baa765513c5f47ea029a6c5b924b9382a054e87a6f07bec69797b33ff06d0a2826e42e854190af
7
+ data.tar.gz: 051fc24f25505a30dabde7762fc5734dcb097c0c42c3f5c1ce3ffc9d6850369c593860d18981d07191b0e531e9f494215acaa0aa86436ca95399b1bc6cde62cb
data/README.md CHANGED
@@ -2,12 +2,16 @@
2
2
 
3
3
  [![Gem Version](https://badge.fury.io/rb/speed_gun.svg)](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
+ ![Events View](http://zeny.io/products/speed_gun/events.png)
12
+
13
+ ![Sources View](http://zeny.io/products/speed_gun/sources.png)
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
- TODO: Write usage instructions here
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
 
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: ../..
3
3
  specs:
4
- speed_gun (2.0.0.pre.alpha.1)
4
+ speed_gun (2.0.0)
5
5
  msgpack
6
6
  rack
7
7
  rblineprof
@@ -181,4 +181,4 @@ DEPENDENCIES
181
181
  web-console (~> 2.0)
182
182
 
183
183
  BUNDLED WITH
184
- 1.12.4
184
+ 1.12.5
@@ -10,7 +10,11 @@ class SpeedGun::Railtie < ::Rails::Railtie
10
10
  end
11
11
 
12
12
  initializer 'speed_gun' do |app|
13
- app.middleware.insert(0, Rack::SpeedGun)
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
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module SpeedGun
4
- VERSION = '2.0.0'
4
+ VERSION = '2.0.1'
5
5
  end
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.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-28 00:00:00.000000000 Z
11
+ date: 2016-07-06 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: msgpack