stackprof-webnav 0.1.0 → 1.0.0

Sign up to get free protection for your applications and to get access to all the features.
@@ -0,0 +1,15 @@
1
+ ENV['APP_ENV'] = 'test'
2
+ $LOAD_PATH.unshift File.join(Dir.pwd, "lib")
3
+
4
+ require "stackprof-webnav"
5
+ require "rspec"
6
+ require_relative 'helpers'
7
+
8
+ RSpec.configure do |config|
9
+ config.include Helpers
10
+ config.backtrace_exclusion_patterns << /.gem/
11
+
12
+ config.after(:each) do
13
+ StackProf::Webnav::Server.cmd_options = {}
14
+ end
15
+ end
@@ -21,10 +21,14 @@ Gem::Specification.new do |spec|
21
21
  spec.bindir = 'bin'
22
22
  spec.executables << 'stackprof-webnav'
23
23
 
24
- spec.add_dependency "sinatra", "~> 2.0.1"
25
- spec.add_dependency "haml", "~> 4.0"
26
- spec.add_dependency "stackprof", "~> 0.2"
24
+ spec.add_dependency "sinatra", "~> 2.0.7"
25
+ spec.add_dependency "haml", "~> 5.1.2"
26
+ spec.add_dependency "stackprof", ">= 0.2.13"
27
27
  spec.add_dependency "better_errors", "~> 1.1.0"
28
+ spec.add_dependency "ruby-graphviz", "~> 1.2.4"
29
+ spec.add_dependency "sinatra-contrib", "~> 2.0.5"
28
30
  spec.add_development_dependency "bundler", "~> 1.5"
29
31
  spec.add_development_dependency "rake", "~> 10.1"
32
+ spec.add_development_dependency "rspec", "~> 3.9.0"
33
+ spec.add_development_dependency "rack-test", "~> 1.1.0"
30
34
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: stackprof-webnav
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.0
4
+ version: 1.0.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Andrei Lisnic
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2018-03-01 00:00:00.000000000 Z
11
+ date: 2019-12-05 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: sinatra
@@ -16,42 +16,42 @@ dependencies:
16
16
  requirements:
17
17
  - - "~>"
18
18
  - !ruby/object:Gem::Version
19
- version: 2.0.1
19
+ version: 2.0.7
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
- version: 2.0.1
26
+ version: 2.0.7
27
27
  - !ruby/object:Gem::Dependency
28
28
  name: haml
29
29
  requirement: !ruby/object:Gem::Requirement
30
30
  requirements:
31
31
  - - "~>"
32
32
  - !ruby/object:Gem::Version
33
- version: '4.0'
33
+ version: 5.1.2
34
34
  type: :runtime
35
35
  prerelease: false
36
36
  version_requirements: !ruby/object:Gem::Requirement
37
37
  requirements:
38
38
  - - "~>"
39
39
  - !ruby/object:Gem::Version
40
- version: '4.0'
40
+ version: 5.1.2
41
41
  - !ruby/object:Gem::Dependency
42
42
  name: stackprof
43
43
  requirement: !ruby/object:Gem::Requirement
44
44
  requirements:
45
- - - "~>"
45
+ - - ">="
46
46
  - !ruby/object:Gem::Version
47
- version: '0.2'
47
+ version: 0.2.13
48
48
  type: :runtime
49
49
  prerelease: false
50
50
  version_requirements: !ruby/object:Gem::Requirement
51
51
  requirements:
52
- - - "~>"
52
+ - - ">="
53
53
  - !ruby/object:Gem::Version
54
- version: '0.2'
54
+ version: 0.2.13
55
55
  - !ruby/object:Gem::Dependency
56
56
  name: better_errors
57
57
  requirement: !ruby/object:Gem::Requirement
@@ -66,6 +66,34 @@ dependencies:
66
66
  - - "~>"
67
67
  - !ruby/object:Gem::Version
68
68
  version: 1.1.0
69
+ - !ruby/object:Gem::Dependency
70
+ name: ruby-graphviz
71
+ requirement: !ruby/object:Gem::Requirement
72
+ requirements:
73
+ - - "~>"
74
+ - !ruby/object:Gem::Version
75
+ version: 1.2.4
76
+ type: :runtime
77
+ prerelease: false
78
+ version_requirements: !ruby/object:Gem::Requirement
79
+ requirements:
80
+ - - "~>"
81
+ - !ruby/object:Gem::Version
82
+ version: 1.2.4
83
+ - !ruby/object:Gem::Dependency
84
+ name: sinatra-contrib
85
+ requirement: !ruby/object:Gem::Requirement
86
+ requirements:
87
+ - - "~>"
88
+ - !ruby/object:Gem::Version
89
+ version: 2.0.5
90
+ type: :runtime
91
+ prerelease: false
92
+ version_requirements: !ruby/object:Gem::Requirement
93
+ requirements:
94
+ - - "~>"
95
+ - !ruby/object:Gem::Version
96
+ version: 2.0.5
69
97
  - !ruby/object:Gem::Dependency
70
98
  name: bundler
71
99
  requirement: !ruby/object:Gem::Requirement
@@ -94,6 +122,34 @@ dependencies:
94
122
  - - "~>"
95
123
  - !ruby/object:Gem::Version
96
124
  version: '10.1'
125
+ - !ruby/object:Gem::Dependency
126
+ name: rspec
127
+ requirement: !ruby/object:Gem::Requirement
128
+ requirements:
129
+ - - "~>"
130
+ - !ruby/object:Gem::Version
131
+ version: 3.9.0
132
+ type: :development
133
+ prerelease: false
134
+ version_requirements: !ruby/object:Gem::Requirement
135
+ requirements:
136
+ - - "~>"
137
+ - !ruby/object:Gem::Version
138
+ version: 3.9.0
139
+ - !ruby/object:Gem::Dependency
140
+ name: rack-test
141
+ requirement: !ruby/object:Gem::Requirement
142
+ requirements:
143
+ - - "~>"
144
+ - !ruby/object:Gem::Version
145
+ version: 1.1.0
146
+ type: :development
147
+ prerelease: false
148
+ version_requirements: !ruby/object:Gem::Requirement
149
+ requirements:
150
+ - - "~>"
151
+ - !ruby/object:Gem::Version
152
+ version: 1.1.0
97
153
  description: Provides the ability to analyze StackProf dumps
98
154
  email:
99
155
  - andrei.lisnic@gmail.com
@@ -103,6 +159,7 @@ extensions: []
103
159
  extra_rdoc_files: []
104
160
  files:
105
161
  - ".gitignore"
162
+ - ".travis.yml"
106
163
  - Gemfile
107
164
  - Gemfile.lock
108
165
  - LICENSE.txt
@@ -111,21 +168,33 @@ files:
111
168
  - Rakefile
112
169
  - bin/stackprof-webnav
113
170
  - lib/stackprof-webnav.rb
171
+ - lib/stackprof-webnav/dump.rb
114
172
  - lib/stackprof-webnav/presenter.rb
115
173
  - lib/stackprof-webnav/public/css/application.css
116
174
  - lib/stackprof-webnav/public/css/code.css
117
175
  - lib/stackprof-webnav/public/css/foundation.min.css
118
176
  - lib/stackprof-webnav/public/css/normalize.css
177
+ - lib/stackprof-webnav/public/flamegraph.js
119
178
  - lib/stackprof-webnav/server.rb
120
179
  - lib/stackprof-webnav/version.rb
180
+ - lib/stackprof-webnav/views/error.haml
121
181
  - lib/stackprof-webnav/views/file.haml
182
+ - lib/stackprof-webnav/views/flamegraph.haml
183
+ - lib/stackprof-webnav/views/graph.haml
184
+ - lib/stackprof-webnav/views/index.haml
185
+ - lib/stackprof-webnav/views/invalid_dump.haml
122
186
  - lib/stackprof-webnav/views/layout.haml
123
- - lib/stackprof-webnav/views/listing.haml
124
187
  - lib/stackprof-webnav/views/method.haml
125
188
  - lib/stackprof-webnav/views/overview.haml
126
- - screenshots/file.png
127
- - screenshots/main.png
128
- - screenshots/method.png
189
+ - screenshots/callgraph.png
190
+ - screenshots/directory.png
191
+ - screenshots/flamegraph.png
192
+ - screenshots/overview.png
193
+ - spec/fixtures/test-raw.dump
194
+ - spec/fixtures/test.dump
195
+ - spec/helpers.rb
196
+ - spec/integration_spec.rb
197
+ - spec/spec_helper.rb
129
198
  - stackprof-webnav.gemspec
130
199
  homepage: https://github.com/alisnic/stackprof-webnav
131
200
  licenses:
@@ -147,8 +216,13 @@ required_rubygems_version: !ruby/object:Gem::Requirement
147
216
  version: '0'
148
217
  requirements: []
149
218
  rubyforge_project:
150
- rubygems_version: 2.7.5
219
+ rubygems_version: 2.6.14.4
151
220
  signing_key:
152
221
  specification_version: 4
153
222
  summary: View stackprof dumps in a web UI
154
- test_files: []
223
+ test_files:
224
+ - spec/fixtures/test-raw.dump
225
+ - spec/fixtures/test.dump
226
+ - spec/helpers.rb
227
+ - spec/integration_spec.rb
228
+ - spec/spec_helper.rb
@@ -1,23 +0,0 @@
1
- %h3 StackProf Navigator
2
- %hr
3
-
4
- %p
5
- Viewing S3 bucket at
6
- %b= @file
7
-
8
- %table.centered
9
- %thead
10
- %th Key
11
- %th Date
12
- %th Size
13
- %th Dump
14
-
15
- %tbody
16
- - @dumps.each do |dump|
17
- %tr
18
- %td= dump[:key]
19
- %td= dump[:date]
20
- %td= dump[:size]
21
- %td
22
- %a{:href => overview_url(dump[:uri])}
23
- = dump[:uri]
Binary file
Binary file
Binary file