rack-mini-profiler 0.1.24 → 0.1.29
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.
Potentially problematic release.
This version of rack-mini-profiler might be problematic. Click here for more details.
- checksums.yaml +4 -4
- data/Ruby/CHANGELOG +25 -0
- data/Ruby/README.md +11 -0
- data/Ruby/lib/html/flamegraph.html +351 -0
- data/Ruby/lib/html/includes.js +82 -67
- data/Ruby/lib/mini_profiler/config.rb +10 -9
- data/Ruby/lib/mini_profiler/flame_graph.rb +4 -4
- data/Ruby/lib/mini_profiler/profiler.rb +75 -40
- data/Ruby/lib/mini_profiler/sql_timer_struct.rb +1 -1
- data/Ruby/lib/mini_profiler/storage/abstract_store.rb +4 -3
- data/Ruby/lib/mini_profiler/storage/redis_store.rb +3 -3
- data/Ruby/lib/mini_profiler/version.rb +1 -1
- data/Ruby/lib/mini_profiler_rails/railtie.rb +44 -40
- data/Ruby/lib/patches/sql_patches.rb +6 -1
- data/rack-mini-profiler.gemspec +2 -1
- metadata +6 -4
@@ -200,7 +200,12 @@ if SqlPatches.class_exists?("RSolr::Connection") && RSolr::VERSION[0] != "0" #
|
|
200
200
|
|
201
201
|
data = "#{request_context[:method].upcase} #{request_context[:uri]}"
|
202
202
|
if request_context[:method] == :post and request_context[:data]
|
203
|
-
|
203
|
+
if request_context[:headers].include?("Content-Type") and request_context[:headers]["Content-Type"] == "text/xml"
|
204
|
+
# it's xml, unescaping isn't needed
|
205
|
+
data << "\n#{request_context[:data]}"
|
206
|
+
else
|
207
|
+
data << "\n#{Rack::Utils.unescape(request_context[:data])}"
|
208
|
+
end
|
204
209
|
end
|
205
210
|
result.instance_variable_set("@miniprofiler_sql_id", ::Rack::MiniProfiler.record_sql(data, elapsed_time))
|
206
211
|
|
data/rack-mini-profiler.gemspec
CHANGED
@@ -1,11 +1,12 @@
|
|
1
1
|
Gem::Specification.new do |s|
|
2
2
|
s.name = "rack-mini-profiler"
|
3
|
-
s.version = "0.1.
|
3
|
+
s.version = "0.1.29"
|
4
4
|
s.summary = "Profiles loading speed for rack applications."
|
5
5
|
s.authors = ["Sam Saffron", "Robin Ward","Aleks Totic"]
|
6
6
|
s.description = "Profiling toolkit for Rack applications with Rails integration. Client Side profiling, DB profiling and Server profiling."
|
7
7
|
s.email = "sam.saffron@gmail.com"
|
8
8
|
s.homepage = "http://miniprofiler.com"
|
9
|
+
s.license = "MIT"
|
9
10
|
s.files = [
|
10
11
|
'rack-mini-profiler.gemspec',
|
11
12
|
].concat( Dir.glob('Ruby/lib/**/*').reject {|f| File.directory?(f) || f =~ /~$/ } )
|
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: 0.1.
|
4
|
+
version: 0.1.29
|
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: 2013-
|
13
|
+
date: 2013-08-20 00:00:00.000000000 Z
|
14
14
|
dependencies:
|
15
15
|
- !ruby/object:Gem::Dependency
|
16
16
|
name: rack
|
@@ -89,6 +89,7 @@ files:
|
|
89
89
|
- Ruby/lib/html/includes.js
|
90
90
|
- Ruby/lib/html/list.js
|
91
91
|
- Ruby/lib/html/jquery.1.7.1.js
|
92
|
+
- Ruby/lib/html/flamegraph.html
|
92
93
|
- Ruby/lib/html/includes.css
|
93
94
|
- Ruby/lib/mini_profiler/context.rb
|
94
95
|
- Ruby/lib/mini_profiler/page_timer_struct.rb
|
@@ -115,7 +116,8 @@ files:
|
|
115
116
|
- Ruby/README.md
|
116
117
|
- Ruby/CHANGELOG
|
117
118
|
homepage: http://miniprofiler.com
|
118
|
-
licenses:
|
119
|
+
licenses:
|
120
|
+
- MIT
|
119
121
|
metadata: {}
|
120
122
|
post_install_message:
|
121
123
|
rdoc_options: []
|
@@ -133,7 +135,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
133
135
|
version: '0'
|
134
136
|
requirements: []
|
135
137
|
rubyforge_project:
|
136
|
-
rubygems_version: 2.0.
|
138
|
+
rubygems_version: 2.0.3
|
137
139
|
signing_key:
|
138
140
|
specification_version: 4
|
139
141
|
summary: Profiles loading speed for rack applications.
|