sender 1.5.9 → 1.5.10
Sign up to get free protection for your applications and to get access to all the features.
- data/README.rdoc +278 -278
- data/ext/sender/RPSender_internal.c +23 -23
- data/ext/sender/RPSender_internal.h +9 -9
- data/ext/sender/RubySourceSupport.c +20 -20
- data/ext/sender/RubySourceSupport.h +65 -65
- data/ext/sender/extconf.rb +4 -4
- data/ext/sender/rb_Global.c +107 -107
- data/ext/sender/rb_Global.h +6 -6
- data/ext/sender/rb_Global_internal.h +4 -4
- data/ext/sender/rb_Kernel.c +556 -556
- data/ext/sender/rb_Kernel.h +24 -24
- data/ext/sender/rb_Kernel_internal.h +5 -5
- data/ext/sender/sender.c +6 -6
- metadata +68 -70
data/ext/sender/rb_Kernel.h
CHANGED
@@ -1,31 +1,31 @@
|
|
1
1
|
|
2
2
|
#ifndef RP_SENDER_KERNEL
|
3
|
-
|
3
|
+
#define RP_SENDER_KERNEL
|
4
4
|
|
5
|
-
|
5
|
+
#include "ruby.h"
|
6
6
|
|
7
|
-
|
7
|
+
#define RPRUBY_SENDER_ERROR_STACK_LEVEL_LESS_THAN_ZERO "Maximum level for stack trace specified was less than zero."
|
8
8
|
|
9
|
-
|
9
|
+
void Init_senderKernel();
|
10
10
|
|
11
|
-
|
12
|
-
|
13
|
-
|
14
|
-
|
15
|
-
|
16
|
-
|
17
|
-
|
18
|
-
|
19
|
-
|
20
|
-
|
21
|
-
|
22
|
-
|
23
|
-
|
24
|
-
|
25
|
-
|
26
|
-
|
27
|
-
|
28
|
-
|
29
|
-
|
30
|
-
|
11
|
+
VALUE rb_RPRuby_Sender_Kernel_backtrace( int argc,
|
12
|
+
VALUE* args,
|
13
|
+
VALUE rb_self );
|
14
|
+
VALUE rb_RPRuby_Sender_Kernel_each_backtrace_frame( int argc,
|
15
|
+
VALUE* args,
|
16
|
+
VALUE rb_self );
|
17
|
+
VALUE rb_RPRuby_Sender_Kernel_backtrace_includes( int argc,
|
18
|
+
VALUE* args,
|
19
|
+
VALUE rb_self );
|
20
|
+
VALUE rb_RPRuby_Sender_Kernel_backtrace_includes_one_of( int argc,
|
21
|
+
VALUE* args,
|
22
|
+
VALUE rb_self );
|
23
|
+
VALUE rb_RPRuby_Sender_Kernel_backtrace_frame_with( int argc,
|
24
|
+
VALUE* args,
|
25
|
+
VALUE rb_self );
|
26
|
+
VALUE rb_RPRuby_Sender_Kernel_backtrace_frames_with( int argc,
|
27
|
+
VALUE* args,
|
28
|
+
VALUE rb_self );
|
29
|
+
|
30
|
+
|
31
31
|
#endif
|
@@ -1,10 +1,10 @@
|
|
1
1
|
|
2
2
|
#ifndef RP_SENDER_KERNEL_INTERNAL
|
3
|
-
|
3
|
+
#define RP_SENDER_KERNEL_INTERNAL
|
4
4
|
|
5
|
-
|
6
|
-
|
5
|
+
#include "ruby.h"
|
6
|
+
#include "eval_intern.h"
|
7
7
|
|
8
|
-
VALUE rb_RPRuby_Sender_Kernel_internal_backtraceHashForControlFrame(
|
9
|
-
|
8
|
+
VALUE rb_RPRuby_Sender_Kernel_internal_backtraceHashForControlFrame( rb_control_frame_t** c_current_frame );
|
9
|
+
|
10
10
|
#endif
|
data/ext/sender/sender.c
CHANGED
@@ -3,14 +3,14 @@
|
|
3
3
|
#include "rb_Kernel.h"
|
4
4
|
|
5
5
|
/*************
|
6
|
-
*
|
6
|
+
* Init *
|
7
7
|
*************/
|
8
8
|
|
9
|
-
//
|
10
|
-
void Init_sender()
|
9
|
+
// Called from ruby when RPBDB module is initialized
|
10
|
+
void Init_sender() {
|
11
11
|
|
12
|
-
|
13
|
-
|
14
|
-
|
12
|
+
Init_senderGlobal();
|
13
|
+
Init_senderKernel();
|
14
|
+
|
15
15
|
}
|
16
16
|
|
metadata
CHANGED
@@ -1,70 +1,75 @@
|
|
1
|
-
--- !ruby/object:Gem::Specification
|
1
|
+
--- !ruby/object:Gem::Specification
|
2
2
|
name: sender
|
3
|
-
version: !ruby/object:Gem::Version
|
4
|
-
|
5
|
-
|
6
|
-
- 1
|
7
|
-
- 5
|
8
|
-
- 9
|
9
|
-
version: 1.5.9
|
3
|
+
version: !ruby/object:Gem::Version
|
4
|
+
version: 1.5.10
|
5
|
+
prerelease:
|
10
6
|
platform: ruby
|
11
|
-
authors:
|
7
|
+
authors:
|
12
8
|
- Asher
|
13
9
|
autorequire:
|
14
10
|
bindir: bin
|
15
11
|
cert_chain: []
|
16
|
-
|
17
|
-
|
18
|
-
|
19
|
-
dependencies:
|
20
|
-
- !ruby/object:Gem::Dependency
|
12
|
+
date: 2012-10-08 00:00:00.000000000 Z
|
13
|
+
dependencies:
|
14
|
+
- !ruby/object:Gem::Dependency
|
21
15
|
name: core-source
|
22
|
-
|
23
|
-
requirement: &id001 !ruby/object:Gem::Requirement
|
16
|
+
requirement: !ruby/object:Gem::Requirement
|
24
17
|
none: false
|
25
|
-
requirements:
|
26
|
-
- -
|
27
|
-
- !ruby/object:Gem::Version
|
28
|
-
|
29
|
-
- 0
|
30
|
-
version: "0"
|
18
|
+
requirements:
|
19
|
+
- - ! '>='
|
20
|
+
- !ruby/object:Gem::Version
|
21
|
+
version: '0'
|
31
22
|
type: :runtime
|
32
|
-
version_requirements: *id001
|
33
|
-
- !ruby/object:Gem::Dependency
|
34
|
-
name: mkmfmf
|
35
23
|
prerelease: false
|
36
|
-
|
24
|
+
version_requirements: !ruby/object:Gem::Requirement
|
25
|
+
none: false
|
26
|
+
requirements:
|
27
|
+
- - ! '>='
|
28
|
+
- !ruby/object:Gem::Version
|
29
|
+
version: '0'
|
30
|
+
- !ruby/object:Gem::Dependency
|
31
|
+
name: mkmfmf
|
32
|
+
requirement: !ruby/object:Gem::Requirement
|
37
33
|
none: false
|
38
|
-
requirements:
|
39
|
-
- -
|
40
|
-
- !ruby/object:Gem::Version
|
41
|
-
|
42
|
-
- 0
|
43
|
-
version: "0"
|
34
|
+
requirements:
|
35
|
+
- - ! '>='
|
36
|
+
- !ruby/object:Gem::Version
|
37
|
+
version: '0'
|
44
38
|
type: :runtime
|
45
|
-
version_requirements: *id002
|
46
|
-
- !ruby/object:Gem::Dependency
|
47
|
-
name: rake-compiler
|
48
39
|
prerelease: false
|
49
|
-
|
40
|
+
version_requirements: !ruby/object:Gem::Requirement
|
41
|
+
none: false
|
42
|
+
requirements:
|
43
|
+
- - ! '>='
|
44
|
+
- !ruby/object:Gem::Version
|
45
|
+
version: '0'
|
46
|
+
- !ruby/object:Gem::Dependency
|
47
|
+
name: rake-compiler
|
48
|
+
requirement: !ruby/object:Gem::Requirement
|
50
49
|
none: false
|
51
|
-
requirements:
|
52
|
-
- -
|
53
|
-
- !ruby/object:Gem::Version
|
54
|
-
|
55
|
-
- 0
|
56
|
-
version: "0"
|
50
|
+
requirements:
|
51
|
+
- - ! '>='
|
52
|
+
- !ruby/object:Gem::Version
|
53
|
+
version: '0'
|
57
54
|
type: :runtime
|
58
|
-
|
59
|
-
|
55
|
+
prerelease: false
|
56
|
+
version_requirements: !ruby/object:Gem::Requirement
|
57
|
+
none: false
|
58
|
+
requirements:
|
59
|
+
- - ! '>='
|
60
|
+
- !ruby/object:Gem::Version
|
61
|
+
version: '0'
|
62
|
+
description: Adds :__sender__ and :__caller__ to the built-in :__callee__ and :__method__
|
63
|
+
methods in Ruby 1.9. Also provides object-oriented :backtrace supporting n-levels
|
64
|
+
backward, :each_backtrace_frame for iteration, :backtrace_includes?, and :backtrace_includes_one_of?
|
65
|
+
for context inspection, and :backtrace_frame_with and :backtrace_frames_with, which
|
66
|
+
return matching frame information for the frame(s) matching the given description.
|
60
67
|
email: asher@ridiculouspower.com
|
61
68
|
executables: []
|
62
|
-
|
63
|
-
extensions:
|
69
|
+
extensions:
|
64
70
|
- ext/sender/extconf.rb
|
65
71
|
extra_rdoc_files: []
|
66
|
-
|
67
|
-
files:
|
72
|
+
files:
|
68
73
|
- ext/sender/extconf.rb
|
69
74
|
- ext/sender/rb_Global.c
|
70
75
|
- ext/sender/rb_Global.h
|
@@ -79,37 +84,30 @@ files:
|
|
79
84
|
- ext/sender/sender.c
|
80
85
|
- test/test_sender.rb
|
81
86
|
- README.rdoc
|
82
|
-
has_rdoc: true
|
83
87
|
homepage: http://rubygems.org/gems/sender
|
84
88
|
licenses: []
|
85
|
-
|
86
89
|
post_install_message:
|
87
90
|
rdoc_options: []
|
88
|
-
|
89
|
-
require_paths:
|
91
|
+
require_paths:
|
90
92
|
- lib
|
91
|
-
required_ruby_version: !ruby/object:Gem::Requirement
|
93
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
92
94
|
none: false
|
93
|
-
requirements:
|
94
|
-
- -
|
95
|
-
- !ruby/object:Gem::Version
|
96
|
-
|
97
|
-
|
98
|
-
version: "0"
|
99
|
-
required_rubygems_version: !ruby/object:Gem::Requirement
|
95
|
+
requirements:
|
96
|
+
- - ! '>='
|
97
|
+
- !ruby/object:Gem::Version
|
98
|
+
version: 1.9.1
|
99
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
100
100
|
none: false
|
101
|
-
requirements:
|
102
|
-
- -
|
103
|
-
- !ruby/object:Gem::Version
|
104
|
-
|
105
|
-
- 0
|
106
|
-
version: "0"
|
101
|
+
requirements:
|
102
|
+
- - ! '>='
|
103
|
+
- !ruby/object:Gem::Version
|
104
|
+
version: '0'
|
107
105
|
requirements: []
|
108
|
-
|
109
106
|
rubyforge_project: sender
|
110
|
-
rubygems_version: 1.
|
107
|
+
rubygems_version: 1.8.23
|
111
108
|
signing_key:
|
112
109
|
specification_version: 3
|
113
|
-
summary: Adds :__sender__ and :__caller__ to the built-in :__callee__ and :__method__
|
110
|
+
summary: Adds :__sender__ and :__caller__ to the built-in :__callee__ and :__method__
|
111
|
+
methods in Ruby 1.9.
|
114
112
|
test_files: []
|
115
|
-
|
113
|
+
has_rdoc:
|