rbx-tracer 0.0.1-universal-rubinius

Sign up to get free protection for your applications and to get access to all the features.
@@ -0,0 +1,29 @@
1
+ require 'test/unit'
2
+ require 'rubygems'; require 'require_relative'
3
+ require_relative '../lib/set_trace'
4
+
5
+ class TestSetTraceFunc < Test::Unit::TestCase
6
+ def test_basic
7
+ events = []
8
+ eval <<-EOF.gsub(/^.*?: /, "")
9
+ 1: set_trace_func(Proc.new { |event, file, lineno, mid, binding, klass|
10
+ 2: events << [event, lineno, mid, klass]
11
+ 3: })
12
+ 4: x = 1 + 1
13
+ 5: set_trace_func(nil)
14
+ EOF
15
+ assert_equal(false, events.empty?)
16
+ end
17
+
18
+ def test_new_style_callback
19
+ events = []
20
+ eval <<-EOF.gsub(/^.*?: /, "")
21
+ 1: set_trace_func(Proc.new { |event, vm_locs|
22
+ 2: events << [event, vm_locs]
23
+ 3: }, {:callback_style => :new})
24
+ 4: x = 1 + 1
25
+ 5: set_trace_func(nil)
26
+ EOF
27
+ assert_equal(false, events.empty?)
28
+ end
29
+ end
metadata ADDED
@@ -0,0 +1,94 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: rbx-tracer
3
+ version: !ruby/object:Gem::Version
4
+ hash: 29
5
+ prerelease: false
6
+ segments:
7
+ - 0
8
+ - 0
9
+ - 1
10
+ version: 0.0.1
11
+ platform: universal-rubinius
12
+ authors:
13
+ - R. Bernstein
14
+ autorequire:
15
+ bindir: bin
16
+ cert_chain: []
17
+
18
+ date: 2010-12-25 00:00:00 -05:00
19
+ default_executable:
20
+ dependencies:
21
+ - !ruby/object:Gem::Dependency
22
+ name: rbx-require-relative
23
+ prerelease: false
24
+ requirement: &id001 !ruby/object:Gem::Requirement
25
+ none: false
26
+ requirements:
27
+ - - ">="
28
+ - !ruby/object:Gem::Version
29
+ hash: 3
30
+ segments:
31
+ - 0
32
+ version: "0"
33
+ type: :runtime
34
+ version_requirements: *id001
35
+ description: |
36
+ Emulates Ruby set_trace_func in Rubinus and contains related step-tracing
37
+ features.
38
+
39
+ email: rockyb@rubyforge.net
40
+ executables: []
41
+
42
+ extensions: []
43
+
44
+ extra_rdoc_files: []
45
+
46
+ files:
47
+ - README
48
+ - ChangeLog
49
+ - LICENSE
50
+ - NEWS
51
+ - Rakefile
52
+ - THANKS
53
+ - lib/set_trace.rbc
54
+ - lib/set_trace.rb
55
+ - test/test-settracefunc.rb
56
+ has_rdoc: true
57
+ homepage: http://wiki.github.com/rocky/rbx-tracer
58
+ licenses:
59
+ - MIT
60
+ post_install_message:
61
+ rdoc_options:
62
+ - --title
63
+ - Rubinius::SetTrace 0.0.1 Documentation
64
+ require_paths:
65
+ - lib
66
+ required_ruby_version: !ruby/object:Gem::Requirement
67
+ none: false
68
+ requirements:
69
+ - - ~>
70
+ - !ruby/object:Gem::Version
71
+ hash: 57
72
+ segments:
73
+ - 1
74
+ - 8
75
+ - 7
76
+ version: 1.8.7
77
+ required_rubygems_version: !ruby/object:Gem::Requirement
78
+ none: false
79
+ requirements:
80
+ - - ">="
81
+ - !ruby/object:Gem::Version
82
+ hash: 3
83
+ segments:
84
+ - 0
85
+ version: "0"
86
+ requirements: []
87
+
88
+ rubyforge_project:
89
+ rubygems_version: 1.3.7
90
+ signing_key:
91
+ specification_version: 3
92
+ summary: set_trace_func Rubinius 1.2 and above
93
+ test_files: []
94
+