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 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 :method for each stack frame,
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.extra_dev_deps << ['ruby_core_source', '>= 0']
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.3
1
+ 1.5.4
@@ -6,8 +6,6 @@
6
6
  #include "version.h"
7
7
  #if RUBY_PATCHLEVEL == -1
8
8
  #include "vm_core.h"
9
- #else
10
- #include "vm_core_1.9.1.h"
11
9
  #endif
12
10
  #include "method.h"
13
11
 
@@ -1,28 +1,20 @@
1
1
  #!/usr/bin/env ruby
2
2
 
3
- require 'mkmf'
3
+ require 'mkmfmf'
4
+ require 'core-source'
4
5
 
5
- RbConfig::MAKEFILE_CONFIG['CC'] = ENV['CC'] if ENV['CC']
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
- # --with-ruby-include=...
20
- # allow user to pass in non-standard core include directory
21
- dir_config( "ruby" )
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 ! Ruby_core_source::create_makefile_with_core( headers, target )
25
- puts 'Make failed.'
26
- # error
27
- exit(1)
16
+ if ensure_core_headers( required_core_headers )
17
+ with_cflags( default_cflags ) do
18
+ create_makefile( target )
19
+ end
28
20
  end
@@ -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 == -1
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.3
1
+ 1.5.4
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.3"
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-07-10}
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
- - 3
9
- version: 1.5.3
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-07-10 00:00:00 -04:00
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: rubyforge
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
- - 4
32
- version: 2.0.4
33
- type: :development
30
+ version: "0"
31
+ type: :runtime
34
32
  version_requirements: *id001
35
33
  - !ruby/object:Gem::Dependency
36
- name: rake-compiler
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: :development
44
+ type: :runtime
47
45
  version_requirements: *id002
48
46
  - !ruby/object:Gem::Dependency
49
- name: ruby_core_source
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
- version: "0"
57
+ - 4
58
+ version: 2.0.4
59
59
  type: :development
60
60
  version_requirements: *id003
61
61
  - !ruby/object:Gem::Dependency
62
- name: hoe
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: *id004
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