rack-perftools_profiler 0.2.0 → 0.2.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.
Files changed (3) hide show
  1. data/README.rdoc +6 -7
  2. data/VERSION +1 -1
  3. metadata +3 -3
data/README.rdoc CHANGED
@@ -30,7 +30,7 @@ For Rails 2, add the following to config/environment.rb
30
30
 
31
31
  config.gem 'rack-perftools_profiler', :version => '~> 0.1', :lib => 'rack/perftools_profiler'
32
32
  require 'rack/perftools_profiler'
33
- config.middleware.use Rack::PerftoolsProfiler, :default_printer => 'gif'
33
+ config.middleware.use ::Rack::PerftoolsProfiler, :default_printer => 'gif'
34
34
 
35
35
  For Rails 3, add the following to your Gemfile
36
36
 
@@ -38,18 +38,18 @@ For Rails 3, add the following to your Gemfile
38
38
 
39
39
  and add the following to config/application.rb
40
40
 
41
- config.middleware.use Rack::PerftoolsProfiler, :default_printer => 'gif', :bundler => true
41
+ config.middleware.use ::Rack::PerftoolsProfiler, :default_printer => 'gif', :bundler => true
42
42
 
43
43
  For Sinatra, call 'use' inside a configure block, like so:
44
44
 
45
45
  configure :profiling do
46
- use Rack::PerftoolsProfiler, :default_printer => 'gif'
46
+ use ::Rack::PerftoolsProfiler, :default_printer => 'gif'
47
47
  end
48
48
 
49
49
  For Rack::Builder, call 'use' inside the Builder constructor block
50
50
 
51
51
  Rack::Builder.new do
52
- use Rack::PerftoolsProfiler, :default_printer => 'gif'
52
+ use ::Rack::PerftoolsProfiler, :default_printer => 'gif'
53
53
  end
54
54
 
55
55
  == Options
@@ -113,7 +113,7 @@ For example, consider the following Sinatra application:
113
113
  require 'rack/perftools_profiler'
114
114
 
115
115
  configure do
116
- use Rack::PerftoolsProfiler, :default_printer => 'gif', :mode => :cputime
116
+ use ::Rack::PerftoolsProfiler, :default_printer => 'gif', :mode => :cputime
117
117
  end
118
118
 
119
119
  get "/slow" do
@@ -144,8 +144,7 @@ Setting the mode to 'object allocation'
144
144
 
145
145
  A huge thanks to Aman Gupta for the awesome perftools.rb gem.
146
146
 
147
- The basic idea and initial implementation of the middleware was heavily influenced by
148
- Rack::Profiler from rack-contrib.
147
+ The basic idea and initial implementation of the middleware was heavily influenced by Rack::Profiler from rack-contrib.
149
148
 
150
149
  == Note on Patches/Pull Requests
151
150
 
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.2.0
1
+ 0.2.1
metadata CHANGED
@@ -5,8 +5,8 @@ version: !ruby/object:Gem::Version
5
5
  segments:
6
6
  - 0
7
7
  - 2
8
- - 0
9
- version: 0.2.0
8
+ - 1
9
+ version: 0.2.1
10
10
  platform: ruby
11
11
  authors:
12
12
  - Ben Brinckerhoff
@@ -14,7 +14,7 @@ autorequire:
14
14
  bindir: bin
15
15
  cert_chain: []
16
16
 
17
- date: 2010-11-09 00:00:00 -07:00
17
+ date: 2010-11-29 00:00:00 -07:00
18
18
  default_executable:
19
19
  dependencies:
20
20
  - !ruby/object:Gem::Dependency