source_route 0.4.0 → 0.5.0
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/README.md +2 -5
- data/lib/source_route/core_ext.rb +9 -2
- data/lib/source_route/formats/html_semantic.slim +7 -6
- data/lib/source_route/version.rb +1 -1
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: a04414f0a3fc78965a7b84b519771817b01aaf41
|
4
|
+
data.tar.gz: 7ace385216b4e224e7f551b00b4626a35e93b8cd
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: b146be3ce3eea65dfd2e80a16d45ad2a0a25fad09a53cf05adecb66c4eed30199ff3197367a4380f3faf42bc44177d84bbcf31a9cb0fa709cad81f1f28c20795
|
7
|
+
data.tar.gz: f8877f910f84a3ace2bcded0cc5ebadcc91cb95375aef2c41f514f24faadc27ddb5ffb9c1dcfed592f3965947555c9a954a93cae825403047a7a3b3347a7569f
|
data/README.md
CHANGED
@@ -91,14 +91,11 @@ Finally, I expect my working style can changes from searching workaround from in
|
|
91
91
|
4. Push to the branch (`git push origin my-new-feature`)
|
92
92
|
5. Create a new Pull Request
|
93
93
|
|
94
|
-
|
95
94
|
### TODO
|
96
95
|
|
97
|
-
|
98
|
-
|
99
|
-
does Rails 4.1.8 support failed?
|
96
|
+
call and return event combined together is no useful. So traces data structure need changed.
|
100
97
|
|
101
|
-
|
98
|
+
global disable some class from monitor
|
102
99
|
|
103
100
|
Cleanup Code and remove useless comments.
|
104
101
|
|
@@ -1,7 +1,8 @@
|
|
1
1
|
class Object
|
2
2
|
def source_route_display
|
3
|
-
#
|
4
|
-
|
3
|
+
# in case inspect was override
|
4
|
+
inspect_method = Kernel.instance_method(:inspect)
|
5
|
+
inspect_method.bind(self).call
|
5
6
|
end
|
6
7
|
end
|
7
8
|
|
@@ -22,3 +23,9 @@ class String
|
|
22
23
|
eql?('') ? inspect : to_s
|
23
24
|
end
|
24
25
|
end
|
26
|
+
|
27
|
+
class Numeric
|
28
|
+
def source_route_display
|
29
|
+
self
|
30
|
+
end
|
31
|
+
end
|
@@ -50,7 +50,8 @@ html
|
|
50
50
|
.ui.container
|
51
51
|
.row
|
52
52
|
.ui.relaxed.items(ng-class="{{traceFilter.event}}")
|
53
|
-
|
53
|
+
// track by trace.order_id doesn't always work. because order_id doesn't always exists
|
54
|
+
.item.trace(ng-repeat="trace in traces | filter:traceFilter:true | filter:childParentFilterFn" ng-class="callLevelClass(trace)" ng-controller="TpTraceCtrl")
|
54
55
|
.content(ng-init="showMoreDetail = false" style="display: flex; justify-content: space-between; align-items: center;")
|
55
56
|
.ui.segment.padded.main
|
56
57
|
a.ui.top.right.attached.label.mini(ng-show="::containsDetail(trace)" ng-click="showMoreDetail = !showMoreDetail")
|
@@ -72,19 +73,19 @@ html
|
|
72
73
|
.details.right.floated(ng-if="showMoreDetail")
|
73
74
|
.ui.segments(style="border-color: blue")
|
74
75
|
.ui.segment(ng-if="::trace.params_var")
|
75
|
-
.ui.teal.
|
76
|
+
.ui.teal.left.ribbon.label Parameters
|
76
77
|
json-formatter(open="1" json="::trace.params_var" title="{{::trace.params_var_class}}")
|
77
78
|
.ui.segment(ng-if="::trace.hasOwnProperty('return_value')")
|
78
|
-
.ui.grey.
|
79
|
+
.ui.grey.left.ribbon.label Return Value
|
79
80
|
json-formatter(open="1" json="::trace.return_value" title="{{::trace.return_value_class}}")
|
80
81
|
.ui.segment(ng-if="::trace.local_var")
|
81
|
-
.ui.teal.
|
82
|
+
.ui.teal.left.ribbon.label Local Variables
|
82
83
|
json-formatter(open="1" json="::trace.local_var" title="{{::trace.local_var_class}}")
|
83
84
|
.ui.segment(ng-if="::trace.instance_var")
|
84
|
-
.ui.blue.
|
85
|
+
.ui.blue.left.ribbon.label Instance Variables
|
85
86
|
json-formatter(open="1" json="::trace.instance_var" title="{{::trace.instance_var_class}}")
|
86
87
|
.ui.segment(ng-if="::containsOtherAttrs(trace)")
|
87
|
-
.ui.orange.
|
88
|
+
.ui.orange.left.ribbon.label Trace Attributes
|
88
89
|
json-formatter(open="1" json="::plusTraceAttrs[trace.order_id]" title="TracePoint")
|
89
90
|
|
90
91
|
script src="https://cdn.rawgit.com/Urigo/angular-spinkit/master/build/angular-spinkit.min.js"
|
data/lib/source_route/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: source_route
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.5.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- raykin
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2016-
|
11
|
+
date: 2016-03-03 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: awesome_print
|
@@ -225,7 +225,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
225
225
|
version: '0'
|
226
226
|
requirements: []
|
227
227
|
rubyforge_project:
|
228
|
-
rubygems_version: 2.
|
228
|
+
rubygems_version: 2.5.1
|
229
229
|
signing_key:
|
230
230
|
specification_version: 4
|
231
231
|
summary: Wrapper of TracePoint.
|