sender 1.5.3 → 1.5.4
Sign up to get free protection for your applications and to get access to all the features.
- data/CHANGELOG.rdoc +7 -0
- data/README.rdoc +3 -1
- data/Rakefile +2 -5
- data/VERSION.rdoc +1 -1
- data/ext/sender/RubySourceSupport.h +0 -2
- data/ext/sender/extconf.rb +13 -21
- data/ext/sender/rb_Kernel.c +1 -2
- data/lib/VERSION.rdoc +1 -1
- data/lib/sender/sender.bundle +0 -0
- data/sender.gemspec +8 -5
- metadata +27 -14
data/CHANGELOG.rdoc
CHANGED
@@ -63,3 +63,10 @@ Fixed return values for :backtrace_with_frame to return nil rather than false.
|
|
63
63
|
|
64
64
|
Added support for Ruby 1.9.2rc1 (iseq struct changed).
|
65
65
|
Added ruby_core_source support so that Ruby core files don't have to be included.
|
66
|
+
|
67
|
+
=== 1.5.4 2010-08-24
|
68
|
+
|
69
|
+
Updated for 1.9.2p0
|
70
|
+
Fixed dependencies (hopefully).
|
71
|
+
Changed from ruby_core_source gem to core-source gem
|
72
|
+
Changed from mkmf to mkmfmf gem
|
data/README.rdoc
CHANGED
@@ -12,13 +12,15 @@ matching frame information for the frame(s) matching the given description.
|
|
12
12
|
|
13
13
|
== SUMMARY:
|
14
14
|
|
15
|
-
Adds object-oriented backtrace, which returns :object and :
|
15
|
+
Adds object-oriented backtrace, which returns :object, :method, :line, and :file for each stack frame,
|
16
16
|
and which permits queries regarding backtrace contents.
|
17
17
|
|
18
18
|
* __sender__
|
19
19
|
* __caller__
|
20
20
|
* backtrace
|
21
21
|
* backtrace( frames_to_trace_backward )
|
22
|
+
* each_backtrace_frame
|
23
|
+
* each_backtrace_frame( frames_to_trace_backward )
|
22
24
|
* backtrace_includes?( Class, class_instance, :symbol, {frame_hash}, ... )
|
23
25
|
* backtrace_includes?( frames_to_trace_backward, Class, class_instance, :symbol, {frame_hash}, ... )
|
24
26
|
* backtrace_includes_one_of?( Class, class_instance, :symbol, {frame_hash}, ... )
|
data/Rakefile
CHANGED
@@ -1,4 +1,3 @@
|
|
1
|
-
require 'rubygems'
|
2
1
|
require 'hoe'
|
3
2
|
require 'rake/extensiontask'
|
4
3
|
|
@@ -11,12 +10,10 @@ Hoe.spec 'sender' do
|
|
11
10
|
self.extra_rdoc_files = FileList['*.rdoc']
|
12
11
|
self.spec_extras = { :extensions => ["ext/sender/extconf.rb"] }
|
13
12
|
self.extra_dev_deps << ['rake-compiler', '>= 0']
|
14
|
-
self.
|
15
|
-
|
16
|
-
|
13
|
+
self.extra_deps << ['core-source', '>= 0'] << ['mkmfmf', '>= 0']
|
17
14
|
Rake::ExtensionTask.new( 'sender', spec ) do |ext|
|
18
15
|
ext.lib_dir = File.join('lib', 'sender')
|
19
|
-
end
|
16
|
+
end
|
20
17
|
end
|
21
18
|
|
22
19
|
Rake::Task[:test].prerequisites << :compile
|
data/VERSION.rdoc
CHANGED
@@ -1 +1 @@
|
|
1
|
-
1.5.
|
1
|
+
1.5.4
|
data/ext/sender/extconf.rb
CHANGED
@@ -1,28 +1,20 @@
|
|
1
1
|
#!/usr/bin/env ruby
|
2
2
|
|
3
|
-
require '
|
3
|
+
require 'mkmfmf'
|
4
|
+
require 'core-source'
|
4
5
|
|
5
|
-
|
6
|
-
|
7
|
-
target = "sender"
|
8
|
-
|
9
|
-
require 'ruby_core_source'
|
10
|
-
headers = proc { have_header( "vm_core.h" ) and
|
11
|
-
have_header( "iseq.h" ) and
|
12
|
-
have_header( "eval_intern.h" ) and
|
13
|
-
have_header( "version.h" ) }
|
14
|
-
|
15
|
-
if RUBY_VERSION == "1.9.2"
|
16
|
-
RUBY_REVISION = 28524
|
17
|
-
end
|
6
|
+
target = "sender"
|
18
7
|
|
19
|
-
|
20
|
-
|
21
|
-
|
8
|
+
required_core_headers = [ "vm_core.h",
|
9
|
+
"iseq.h",
|
10
|
+
"eval_intern.h",
|
11
|
+
"version.h" ]
|
12
|
+
|
13
|
+
default_cflags = "-march=x86-64 -gfull -fcatch-undefined-behavior -fno-common -fsigned-char -pipe"
|
22
14
|
|
23
15
|
# Create our makefile from sources
|
24
|
-
if
|
25
|
-
|
26
|
-
|
27
|
-
|
16
|
+
if ensure_core_headers( required_core_headers )
|
17
|
+
with_cflags( default_cflags ) do
|
18
|
+
create_makefile( target )
|
19
|
+
end
|
28
20
|
end
|
data/ext/sender/rb_Kernel.c
CHANGED
@@ -156,7 +156,6 @@ VALUE rb_RPRuby_Sender_Kernel_each_backtrace_frame( int argc,
|
|
156
156
|
rb_self );
|
157
157
|
|
158
158
|
RETURN_ENUMERATOR( rb_self, 1, & rb_stored_backtrace_array );
|
159
|
-
//rb_raise( rb_eArgError, RPRUBY_SENDER_ERROR_NO_ENUMERATORS );
|
160
159
|
}
|
161
160
|
|
162
161
|
// otherwise, yield the block
|
@@ -574,7 +573,7 @@ VALUE rb_RPRuby_Sender_Kernel_internal_backtraceHashForControlFrame( rb_control_
|
|
574
573
|
|
575
574
|
// get name of method
|
576
575
|
|
577
|
-
#if RUBY_PATCHLEVEL
|
576
|
+
#if RUBY_PATCHLEVEL >= -1
|
578
577
|
// For 1.9.2:
|
579
578
|
const rb_method_entry_t* c_method_for_frame = ( *c_current_frame )->me;
|
580
579
|
c_method_name = rb_id2name( c_method_for_frame->called_id );
|
data/lib/VERSION.rdoc
CHANGED
@@ -1 +1 @@
|
|
1
|
-
1.5.
|
1
|
+
1.5.4
|
data/lib/sender/sender.bundle
CHANGED
Binary file
|
data/sender.gemspec
CHANGED
@@ -2,11 +2,11 @@
|
|
2
2
|
|
3
3
|
Gem::Specification.new do |s|
|
4
4
|
s.name = %q{sender}
|
5
|
-
s.version = "1.5.
|
5
|
+
s.version = "1.5.4"
|
6
6
|
|
7
7
|
s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
|
8
8
|
s.authors = ["Asher"]
|
9
|
-
s.date = %q{2010-
|
9
|
+
s.date = %q{2010-08-24}
|
10
10
|
s.description = %q{Adds :__sender__ and :__caller__ to the built-in :__callee__ and :__method__ methods in Ruby 1.9.1.
|
11
11
|
|
12
12
|
Also provides object-oriented :backtrace supporting n-levels backward, :each_backtrace_frame for iteration, :backtrace_includes?,
|
@@ -29,20 +29,23 @@ matching frame information for the frame(s) matching the given description.}
|
|
29
29
|
s.specification_version = 3
|
30
30
|
|
31
31
|
if Gem::Version.new(Gem::VERSION) >= Gem::Version.new('1.2.0') then
|
32
|
+
s.add_runtime_dependency(%q<core-source>, [">= 0"])
|
33
|
+
s.add_runtime_dependency(%q<mkmfmf>, [">= 0"])
|
32
34
|
s.add_development_dependency(%q<rubyforge>, [">= 2.0.4"])
|
33
35
|
s.add_development_dependency(%q<rake-compiler>, [">= 0"])
|
34
|
-
s.add_development_dependency(%q<ruby_core_source>, [">= 0"])
|
35
36
|
s.add_development_dependency(%q<hoe>, [">= 2.6.1"])
|
36
37
|
else
|
38
|
+
s.add_dependency(%q<core-source>, [">= 0"])
|
39
|
+
s.add_dependency(%q<mkmfmf>, [">= 0"])
|
37
40
|
s.add_dependency(%q<rubyforge>, [">= 2.0.4"])
|
38
41
|
s.add_dependency(%q<rake-compiler>, [">= 0"])
|
39
|
-
s.add_dependency(%q<ruby_core_source>, [">= 0"])
|
40
42
|
s.add_dependency(%q<hoe>, [">= 2.6.1"])
|
41
43
|
end
|
42
44
|
else
|
45
|
+
s.add_dependency(%q<core-source>, [">= 0"])
|
46
|
+
s.add_dependency(%q<mkmfmf>, [">= 0"])
|
43
47
|
s.add_dependency(%q<rubyforge>, [">= 2.0.4"])
|
44
48
|
s.add_dependency(%q<rake-compiler>, [">= 0"])
|
45
|
-
s.add_dependency(%q<ruby_core_source>, [">= 0"])
|
46
49
|
s.add_dependency(%q<hoe>, [">= 2.6.1"])
|
47
50
|
end
|
48
51
|
end
|
metadata
CHANGED
@@ -5,8 +5,8 @@ version: !ruby/object:Gem::Version
|
|
5
5
|
segments:
|
6
6
|
- 1
|
7
7
|
- 5
|
8
|
-
-
|
9
|
-
version: 1.5.
|
8
|
+
- 4
|
9
|
+
version: 1.5.4
|
10
10
|
platform: ruby
|
11
11
|
authors:
|
12
12
|
- Asher
|
@@ -14,11 +14,11 @@ autorequire:
|
|
14
14
|
bindir: bin
|
15
15
|
cert_chain: []
|
16
16
|
|
17
|
-
date: 2010-
|
17
|
+
date: 2010-08-24 00:00:00 -04:00
|
18
18
|
default_executable:
|
19
19
|
dependencies:
|
20
20
|
- !ruby/object:Gem::Dependency
|
21
|
-
name:
|
21
|
+
name: core-source
|
22
22
|
prerelease: false
|
23
23
|
requirement: &id001 !ruby/object:Gem::Requirement
|
24
24
|
none: false
|
@@ -26,14 +26,12 @@ dependencies:
|
|
26
26
|
- - ">="
|
27
27
|
- !ruby/object:Gem::Version
|
28
28
|
segments:
|
29
|
-
- 2
|
30
29
|
- 0
|
31
|
-
|
32
|
-
|
33
|
-
type: :development
|
30
|
+
version: "0"
|
31
|
+
type: :runtime
|
34
32
|
version_requirements: *id001
|
35
33
|
- !ruby/object:Gem::Dependency
|
36
|
-
name:
|
34
|
+
name: mkmfmf
|
37
35
|
prerelease: false
|
38
36
|
requirement: &id002 !ruby/object:Gem::Requirement
|
39
37
|
none: false
|
@@ -43,10 +41,10 @@ dependencies:
|
|
43
41
|
segments:
|
44
42
|
- 0
|
45
43
|
version: "0"
|
46
|
-
type: :
|
44
|
+
type: :runtime
|
47
45
|
version_requirements: *id002
|
48
46
|
- !ruby/object:Gem::Dependency
|
49
|
-
name:
|
47
|
+
name: rubyforge
|
50
48
|
prerelease: false
|
51
49
|
requirement: &id003 !ruby/object:Gem::Requirement
|
52
50
|
none: false
|
@@ -54,14 +52,29 @@ dependencies:
|
|
54
52
|
- - ">="
|
55
53
|
- !ruby/object:Gem::Version
|
56
54
|
segments:
|
55
|
+
- 2
|
57
56
|
- 0
|
58
|
-
|
57
|
+
- 4
|
58
|
+
version: 2.0.4
|
59
59
|
type: :development
|
60
60
|
version_requirements: *id003
|
61
61
|
- !ruby/object:Gem::Dependency
|
62
|
-
name:
|
62
|
+
name: rake-compiler
|
63
63
|
prerelease: false
|
64
64
|
requirement: &id004 !ruby/object:Gem::Requirement
|
65
|
+
none: false
|
66
|
+
requirements:
|
67
|
+
- - ">="
|
68
|
+
- !ruby/object:Gem::Version
|
69
|
+
segments:
|
70
|
+
- 0
|
71
|
+
version: "0"
|
72
|
+
type: :development
|
73
|
+
version_requirements: *id004
|
74
|
+
- !ruby/object:Gem::Dependency
|
75
|
+
name: hoe
|
76
|
+
prerelease: false
|
77
|
+
requirement: &id005 !ruby/object:Gem::Requirement
|
65
78
|
none: false
|
66
79
|
requirements:
|
67
80
|
- - ">="
|
@@ -72,7 +85,7 @@ dependencies:
|
|
72
85
|
- 1
|
73
86
|
version: 2.6.1
|
74
87
|
type: :development
|
75
|
-
version_requirements: *
|
88
|
+
version_requirements: *id005
|
76
89
|
description: |-
|
77
90
|
Adds :__sender__ and :__caller__ to the built-in :__callee__ and :__method__ methods in Ruby 1.9.1.
|
78
91
|
|