skylight 0.6.1 → 0.6.2.beta.2
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/CHANGELOG.md +8 -0
- data/lib/skylight/probes/action_view.rb +35 -0
- data/lib/skylight/railtie.rb +1 -1
- data/lib/skylight/version.rb +1 -1
- metadata +6 -5
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 14aa7e3642c22e6321b288a7dbf139e8b3014610
|
4
|
+
data.tar.gz: 755e36a7f63eae26452dbd6e25c78f583e9f787b
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: f3d64c94bae698e2cd21ad81d29fed5d3aeb76635c2f8ee6247e573ab17b32bdd3754b121deaf0928780c85c77e4edb5ded1685d2e56752344a7ec4f9b4d7e13
|
7
|
+
data.tar.gz: 54c7e5198473f0a34b72a0ac9986e88a0c1eb46f2fba86d8778ce256378cecd014a48321f05b023ffc1c28b53c56dcdefee5d4d16065bad840637e31e9d3e3d6
|
data/CHANGELOG.md
CHANGED
@@ -1,3 +1,11 @@
|
|
1
|
+
## 0.6.2-beta.2 (July 1, 2015)
|
2
|
+
|
3
|
+
* No changes. Replaces bad 0.6.2-beta.1 build.
|
4
|
+
|
5
|
+
## 0.6.2-beta.1 (June 30, 2015) [YANKED]
|
6
|
+
|
7
|
+
* [FEATURE] Add probe on ActionView for layout renders
|
8
|
+
|
1
9
|
## 0.6.1 (June 30, 2015)
|
2
10
|
|
3
11
|
* [BUGFIX] Don't use $DEBUG to enable verbose internal logging
|
@@ -0,0 +1,35 @@
|
|
1
|
+
module Skylight
|
2
|
+
module Probes
|
3
|
+
module ActionView
|
4
|
+
class Probe
|
5
|
+
def install
|
6
|
+
# Rails 3.0 didn't have ActionView::TemplateRenderer, but it also
|
7
|
+
# didn't have the bug that this probe is trying to fix. In Rails
|
8
|
+
# 3.1, a templating engine refactor moved the layout rendering out
|
9
|
+
# of the existing instrumentation, making any other events that
|
10
|
+
# happen inside of the layout appear to happen directly inside the
|
11
|
+
# parent (usually the controller).
|
12
|
+
return if [ActionPack::VERSION::MAJOR, ActionPack::VERSION::MINOR] == [3, 0]
|
13
|
+
|
14
|
+
::ActionView::TemplateRenderer.class_eval do
|
15
|
+
alias render_with_layout_without_sk render_with_layout
|
16
|
+
|
17
|
+
def render_with_layout(path, locals, *args, &block) #:nodoc:
|
18
|
+
layout = path && find_layout(path, locals.keys)
|
19
|
+
|
20
|
+
if layout
|
21
|
+
instrument(:template, :identifier => layout.identifier) do
|
22
|
+
render_with_layout_without_sk(path, locals, *args, &block)
|
23
|
+
end
|
24
|
+
else
|
25
|
+
render_with_layout_without_sk(path, locals, *args, &block)
|
26
|
+
end
|
27
|
+
end
|
28
|
+
end
|
29
|
+
end
|
30
|
+
end
|
31
|
+
end
|
32
|
+
|
33
|
+
register("ActionView::TemplateRenderer", "action_view", ActionView::Probe.new)
|
34
|
+
end
|
35
|
+
end
|
data/lib/skylight/railtie.rb
CHANGED
@@ -15,7 +15,7 @@ module Skylight
|
|
15
15
|
# The probes to load
|
16
16
|
# net_http is on by default
|
17
17
|
# Also available: excon, redis
|
18
|
-
config.skylight.probes = ['net_http']
|
18
|
+
config.skylight.probes = ['net_http', 'action_view']
|
19
19
|
|
20
20
|
initializer 'skylight.configure' do |app|
|
21
21
|
# Load probes even when agent is inactive to catch probe related bugs sooner
|
data/lib/skylight/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: skylight
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.6.
|
4
|
+
version: 0.6.2.beta.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Tilde, Inc.
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2015-
|
11
|
+
date: 2015-07-02 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: activesupport
|
@@ -78,6 +78,7 @@ files:
|
|
78
78
|
- lib/skylight/normalizers/default.rb
|
79
79
|
- lib/skylight/normalizers/moped/query.rb
|
80
80
|
- lib/skylight/probes.rb
|
81
|
+
- lib/skylight/probes/action_view.rb
|
81
82
|
- lib/skylight/probes/excon.rb
|
82
83
|
- lib/skylight/probes/excon/middleware.rb
|
83
84
|
- lib/skylight/probes/net_http.rb
|
@@ -167,12 +168,12 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
167
168
|
version: 1.9.2
|
168
169
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
169
170
|
requirements:
|
170
|
-
- - "
|
171
|
+
- - ">"
|
171
172
|
- !ruby/object:Gem::Version
|
172
|
-
version:
|
173
|
+
version: 1.3.1
|
173
174
|
requirements: []
|
174
175
|
rubyforge_project:
|
175
|
-
rubygems_version: 2.4.
|
176
|
+
rubygems_version: 2.4.6
|
176
177
|
signing_key:
|
177
178
|
specification_version: 4
|
178
179
|
summary: Skylight is a smart profiler for Rails apps
|