indented-tracer 0.1.4 → 0.1.5

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: 34e51576dc06f960af146008b32c6e81b5d8679c
4
- data.tar.gz: 720cd4bc500007845ecf6d2039cb8c9ae17177f2
3
+ metadata.gz: 65386effa53154691930d63c89b34ea5e897db00
4
+ data.tar.gz: 2a16d498159cd75d282b90470be0ce3a30e46966
5
5
  SHA512:
6
- metadata.gz: dd66cd927d911349a4366aac3951d50756f678ca625a5928ec1b00e0b3eb0175327a2403c675c07fe28365e8814b320f23fc084b035b16e58d5b5dfd5b427bca
7
- data.tar.gz: f3781696a67984ae5b70d0b1558f600f6eef68ec68318c65b6e051928efe8786226733b620f6a758477cc19f3a7e7c1e91a4d4f9faa45d1daf72f72f17d1d399
6
+ metadata.gz: e1bd355be47a961bce4b58b791afc4870cb86553e894e6ce430d84f4cf077fd71d5580c32147a30f6742babb85ad9b5d1792e86368443ff9100d6b82883941e1
7
+ data.tar.gz: 846e1f6cc4a620f024a47438da98700b720caf8204a6fc167a3b62e523176c9167bd92d6950065b6bb857be82b35950c747d86393db4010aa8275c90bf3ecf2d
@@ -1 +1 @@
1
- a��~1�̧�oݵe��=7�cY��#-.ML��?+b/�=�ޅ��G�� ���vG���9�y����C���Lx\i���x���m��K�С����#����Vh��@�+�Ks*C�\�0�F��vt�}��������7�!aV���y��znj4�7eaKw�%�ƏkBk n��ccgjY�E�K��#�%�v��!������3�Ot:�**r���0Xb[�P���� yR�����2$A����#
1
+ ��q���o�\����aٓI����u�%S`�9�� |��Sd��nE���"]�B��o���Ϋu^�CpYu��jX�F:� ���6}539z�+�n�?����}�+c��F��zŢx���F��Ig<𬽖���c`q��O_�0I���bu����T\T��@�!e�y��r_Xk��ee�+�u�FY`SjE x<_������1��)뺸�u��5��e��o��f��X����E)@
data.tar.gz.sig CHANGED
Binary file
@@ -6,14 +6,17 @@ require 'tracer'
6
6
 
7
7
  class IndentedTracer < Tracer
8
8
 
9
- attr_accessor :classes
9
+ attr_accessor :classes, :ignore_methods
10
10
 
11
11
  def initialize()
12
12
  super
13
+
14
+ @ignore_methods = []
13
15
 
14
16
  add_filter do |event, file, line, id, binding, klass, *rest|
15
17
 
16
- if @classes.map(&:to_s).include? klass.to_s then
18
+ if @classes.map(&:to_s).include? klass.to_s and
19
+ !@ignore_methods.map(&:to_sym).include? id.to_sym then
17
20
 
18
21
  if event == 'call' then
19
22
 
@@ -39,7 +42,7 @@ class IndentedTracer < Tracer
39
42
 
40
43
  end
41
44
 
42
- def log(title, tags: tags=[])
45
+ def log(title='', tags: tags=[])
43
46
  "<?polyrex schema='session[title,tags]/entry[classname, methodname]' " + \
44
47
  "delimiter='#'?>\ntitle: #{title}\ntags: #{(['trace'] + tags)
45
48
  .join(' ')}\n\n" + print_all(@a)
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: indented-tracer
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.4
4
+ version: 0.1.5
5
5
  platform: ruby
6
6
  authors:
7
7
  - James Robertson
metadata.gz.sig CHANGED
Binary file