method_tracer 0.0.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (3) hide show
  1. checksums.yaml +15 -0
  2. data/lib/method_tracer.rb +9 -0
  3. metadata +44 -0
checksums.yaml ADDED
@@ -0,0 +1,15 @@
1
+ ---
2
+ !binary "U0hBMQ==":
3
+ metadata.gz: !binary |-
4
+ ZWUxZGUxOWZjZjMyYzFhYzJlMDY4YzRjNzNlZTUwN2MwZjgwYmNhYg==
5
+ data.tar.gz: !binary |-
6
+ YTkyY2NlODBlMzNlMDhlMDdmNmRmOTZmY2RhZmM4NWJkNDFhMWE2NA==
7
+ !binary "U0hBNTEy":
8
+ metadata.gz: !binary |-
9
+ NWQ2NjU1MmRmNGY2MDA3ZGQyOTkwYjdlNjgzMWViMWIxZDhlMGE1MTJkYTlm
10
+ YjU3YzIzYzc3NGMxYzNlODhlNzlkNWE3ZWYxZmY5NDNhNjU5MTUxNWE4ODk5
11
+ MWVkN2RhYzQ2ZjM5ZmYxNzFlMGMzNjk5NTI3M2NiMWQzZmMxZmM=
12
+ data.tar.gz: !binary |-
13
+ ZWI4YmQ0NTk5ZmM2YzQ5YzVjZDJhNjdjOWM2YzMwMmZiMTU3NmNiYWNhNWI4
14
+ ZTlhMjU0Mzg0MWNlNDk2ZjkxZmEwYjYxNDE2MzM1Mjk3ZGM5MDc1OGU2NDUy
15
+ YmZiNjE0NTZlNDQ2MDc0MDNiZWQ4Nzc0NGVhNzFlOWQyNzMxMGM=
@@ -0,0 +1,9 @@
1
+ class MethodTracer
2
+ def self.trace
3
+ set_trace_func proc { |event, file, line, id, binding, classname|
4
+ printf "%s:%-2d %10s %8s\n", file, line, id, classname if event == 'call'
5
+ }
6
+ yield
7
+ set_trace_func nil
8
+ end
9
+ end
metadata ADDED
@@ -0,0 +1,44 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: method_tracer
3
+ version: !ruby/object:Gem::Version
4
+ version: 0.0.1
5
+ platform: ruby
6
+ authors:
7
+ - Sebi Kurian
8
+ autorequire:
9
+ bindir: bin
10
+ cert_chain: []
11
+ date: 2014-01-26 00:00:00.000000000 Z
12
+ dependencies: []
13
+ description: Trace the method calls that happen within a block of ruby code
14
+ email: sebikurian@gmail.com
15
+ executables: []
16
+ extensions: []
17
+ extra_rdoc_files: []
18
+ files:
19
+ - lib/method_tracer.rb
20
+ homepage: http://rubygems.org/gems/method_tracer
21
+ licenses:
22
+ - MIT
23
+ metadata: {}
24
+ post_install_message:
25
+ rdoc_options: []
26
+ require_paths:
27
+ - lib
28
+ required_ruby_version: !ruby/object:Gem::Requirement
29
+ requirements:
30
+ - - ! '>='
31
+ - !ruby/object:Gem::Version
32
+ version: '0'
33
+ required_rubygems_version: !ruby/object:Gem::Requirement
34
+ requirements:
35
+ - - ! '>='
36
+ - !ruby/object:Gem::Version
37
+ version: '0'
38
+ requirements: []
39
+ rubyforge_project:
40
+ rubygems_version: 2.0.6
41
+ signing_key:
42
+ specification_version: 4
43
+ summary: Trace the method calls that happen within a block of ruby code
44
+ test_files: []