request_profiler 0.0.3 → 0.0.4
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/Gemfile +1 -0
- data/Gemfile.lock +7 -5
- data/lib/request_profiler/version.rb +1 -1
- data/request_profiler.gemspec +1 -0
- data/test/request_profiler_test.rb +3 -4
- data/test/test_helper.rb +2 -0
- metadata +16 -15
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: f1b6889188513b50c0cfc5604f576a0b470494bd
|
4
|
+
data.tar.gz: f2e80636507b5f6fc50c3b3584ffb404b4d6b528
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: bb3b789e23b2243c697c5b45bf888d5149c48441046defaff22fe4c9eef597652d2472397f5d7e60c08d48ec5e478e3d31e766c536261be7a9ab290020d0e659
|
7
|
+
data.tar.gz: 3d9fe9e6860ab52ba8754da9f0f07d1593b0623935700eee4e1d017d1086cfef710aa77d63cd3fcaeda2be71146a973731380d2c57d9e9a45a99c19c0b60f911
|
data/Gemfile
CHANGED
data/Gemfile.lock
CHANGED
@@ -1,19 +1,20 @@
|
|
1
1
|
PATH
|
2
2
|
remote: .
|
3
3
|
specs:
|
4
|
-
request_profiler (0.0.
|
4
|
+
request_profiler (0.0.4)
|
5
5
|
ruby-prof
|
6
6
|
|
7
7
|
GEM
|
8
8
|
remote: http://rubygems.org/
|
9
9
|
specs:
|
10
|
-
|
11
|
-
|
10
|
+
metaclass (0.0.4)
|
11
|
+
mocha (1.1.0)
|
12
|
+
metaclass (~> 0.0.1)
|
12
13
|
rack (1.2.1)
|
13
14
|
rack-test (0.5.6)
|
14
15
|
rack (>= 1.0)
|
15
|
-
rake (
|
16
|
-
ruby-prof (0.
|
16
|
+
rake (10.3.1)
|
17
|
+
ruby-prof (0.15.1)
|
17
18
|
sinatra (1.1.0)
|
18
19
|
rack (~> 1.1)
|
19
20
|
tilt (~> 1.1)
|
@@ -25,5 +26,6 @@ PLATFORMS
|
|
25
26
|
DEPENDENCIES
|
26
27
|
mocha
|
27
28
|
rack-test
|
29
|
+
rake
|
28
30
|
request_profiler!
|
29
31
|
sinatra
|
data/request_profiler.gemspec
CHANGED
@@ -11,6 +11,7 @@ Gem::Specification.new do |s|
|
|
11
11
|
s.homepage = "https://github.com/justinweiss/request_profiler"
|
12
12
|
s.summary = %q{Profile Rack requests with ruby-prof}
|
13
13
|
s.description = %q{Request Profiler is a Rack middleware that allows optionally profiling requests with ruby-prof.}
|
14
|
+
s.license = 'MIT'
|
14
15
|
|
15
16
|
s.rubyforge_project = "request_profiler"
|
16
17
|
|
@@ -1,6 +1,5 @@
|
|
1
1
|
require 'test_helper'
|
2
2
|
require 'fake_app'
|
3
|
-
require 'mocha'
|
4
3
|
|
5
4
|
class RequestProfilerTest < Test::Unit::TestCase
|
6
5
|
include Rack::Test::Methods
|
@@ -41,15 +40,15 @@ class RequestProfilerTest < Test::Unit::TestCase
|
|
41
40
|
get "/?profile_request=wall_time"
|
42
41
|
assert last_response.ok?
|
43
42
|
end
|
44
|
-
|
43
|
+
|
45
44
|
def test_file_format
|
46
45
|
self.app = Rack::RequestProfiler.new(FakeApp.new)
|
47
46
|
RubyProf.start
|
48
47
|
results = RubyProf.stop
|
49
48
|
printer = self.app.instance_variable_get(:@printer).new(results)
|
50
|
-
|
49
|
+
|
51
50
|
assert_equal ::RubyProf::GraphHtmlPrinter, printer.class
|
52
51
|
assert_equal 'html', self.app.format(printer)
|
53
52
|
end
|
54
|
-
|
53
|
+
|
55
54
|
end
|
data/test/test_helper.rb
CHANGED
metadata
CHANGED
@@ -1,69 +1,69 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: request_profiler
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.4
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Justin Weiss
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2014-05-15 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: ruby-prof
|
15
15
|
requirement: !ruby/object:Gem::Requirement
|
16
16
|
requirements:
|
17
|
-
- -
|
17
|
+
- - ">="
|
18
18
|
- !ruby/object:Gem::Version
|
19
19
|
version: '0'
|
20
20
|
type: :runtime
|
21
21
|
prerelease: false
|
22
22
|
version_requirements: !ruby/object:Gem::Requirement
|
23
23
|
requirements:
|
24
|
-
- -
|
24
|
+
- - ">="
|
25
25
|
- !ruby/object:Gem::Version
|
26
26
|
version: '0'
|
27
27
|
- !ruby/object:Gem::Dependency
|
28
28
|
name: rack-test
|
29
29
|
requirement: !ruby/object:Gem::Requirement
|
30
30
|
requirements:
|
31
|
-
- -
|
31
|
+
- - ">="
|
32
32
|
- !ruby/object:Gem::Version
|
33
33
|
version: '0'
|
34
34
|
type: :development
|
35
35
|
prerelease: false
|
36
36
|
version_requirements: !ruby/object:Gem::Requirement
|
37
37
|
requirements:
|
38
|
-
- -
|
38
|
+
- - ">="
|
39
39
|
- !ruby/object:Gem::Version
|
40
40
|
version: '0'
|
41
41
|
- !ruby/object:Gem::Dependency
|
42
42
|
name: sinatra
|
43
43
|
requirement: !ruby/object:Gem::Requirement
|
44
44
|
requirements:
|
45
|
-
- -
|
45
|
+
- - ">="
|
46
46
|
- !ruby/object:Gem::Version
|
47
47
|
version: '0'
|
48
48
|
type: :development
|
49
49
|
prerelease: false
|
50
50
|
version_requirements: !ruby/object:Gem::Requirement
|
51
51
|
requirements:
|
52
|
-
- -
|
52
|
+
- - ">="
|
53
53
|
- !ruby/object:Gem::Version
|
54
54
|
version: '0'
|
55
55
|
- !ruby/object:Gem::Dependency
|
56
56
|
name: mocha
|
57
57
|
requirement: !ruby/object:Gem::Requirement
|
58
58
|
requirements:
|
59
|
-
- -
|
59
|
+
- - ">="
|
60
60
|
- !ruby/object:Gem::Version
|
61
61
|
version: '0'
|
62
62
|
type: :development
|
63
63
|
prerelease: false
|
64
64
|
version_requirements: !ruby/object:Gem::Requirement
|
65
65
|
requirements:
|
66
|
-
- -
|
66
|
+
- - ">="
|
67
67
|
- !ruby/object:Gem::Version
|
68
68
|
version: '0'
|
69
69
|
description: Request Profiler is a Rack middleware that allows optionally profiling
|
@@ -74,7 +74,7 @@ executables: []
|
|
74
74
|
extensions: []
|
75
75
|
extra_rdoc_files: []
|
76
76
|
files:
|
77
|
-
- .gitignore
|
77
|
+
- ".gitignore"
|
78
78
|
- Gemfile
|
79
79
|
- Gemfile.lock
|
80
80
|
- README.rdoc
|
@@ -88,7 +88,8 @@ files:
|
|
88
88
|
- test/request_profiler_test.rb
|
89
89
|
- test/test_helper.rb
|
90
90
|
homepage: https://github.com/justinweiss/request_profiler
|
91
|
-
licenses:
|
91
|
+
licenses:
|
92
|
+
- MIT
|
92
93
|
metadata: {}
|
93
94
|
post_install_message:
|
94
95
|
rdoc_options: []
|
@@ -96,17 +97,17 @@ require_paths:
|
|
96
97
|
- lib
|
97
98
|
required_ruby_version: !ruby/object:Gem::Requirement
|
98
99
|
requirements:
|
99
|
-
- -
|
100
|
+
- - ">="
|
100
101
|
- !ruby/object:Gem::Version
|
101
102
|
version: '0'
|
102
103
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
103
104
|
requirements:
|
104
|
-
- -
|
105
|
+
- - ">="
|
105
106
|
- !ruby/object:Gem::Version
|
106
107
|
version: '0'
|
107
108
|
requirements: []
|
108
109
|
rubyforge_project: request_profiler
|
109
|
-
rubygems_version: 2.
|
110
|
+
rubygems_version: 2.2.2
|
110
111
|
signing_key:
|
111
112
|
specification_version: 4
|
112
113
|
summary: Profile Rack requests with ruby-prof
|