source_route 0.4.0 → 0.5.0

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 8160b88083287b44b8d70d1a279f9f83cff46d48
4
- data.tar.gz: 6df4dfed2f5c79c9e676b86d202099f6b6b44cbb
3
+ metadata.gz: a04414f0a3fc78965a7b84b519771817b01aaf41
4
+ data.tar.gz: 7ace385216b4e224e7f551b00b4626a35e93b8cd
5
5
  SHA512:
6
- metadata.gz: 9f62a0b28a1fd1c58c9c6c023ff8841753054e47ab180547e29896cf3331016d6240d31acfd8862b0dcd89222ca6be915c485e1c6d308be87df4539af76e8576
7
- data.tar.gz: 9527da75cbe11a77766eaad9415a2b061dcd3c7c93b535d22383f1eb3b35a9de943700942759d117ce30f7d024cd14b26907688871c53508ac416dcb1ea98eb6
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
- global disable some class from monitor
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
- Add debug log to help debugging (ex: stack level too deep)
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
- # to_s # cause crash?
4
- self
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
- .item.trace(ng-repeat="trace in traces | filter:traceFilter:true | filter:childParentFilterFn track by trace.order_id" ng-class="callLevelClass(trace)" ng-controller="TpTraceCtrl")
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.right.ribbon.label Parameters
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.right.ribbon.label Return Value
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.right.ribbon.label Local Variables
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.right.ribbon.label Instance Variables
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.right.ribbon.label Trace Attributes
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"
@@ -1,3 +1,3 @@
1
1
  module SourceRoute
2
- VERSION = "0.4.0"
2
+ VERSION = "0.5.0"
3
3
  end
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.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-02-03 00:00:00.000000000 Z
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.2.2
228
+ rubygems_version: 2.5.1
229
229
  signing_key:
230
230
  specification_version: 4
231
231
  summary: Wrapper of TracePoint.