sender 1.5 → 1.5.1

Sign up to get free protection for your applications and to get access to all the features.
data/CHANGELOG.rdoc CHANGED
@@ -54,3 +54,7 @@ Added Hash-specification support for context inspection. Now functions take elem
54
54
  line number fixnum) or Hash containing frame detail specification.
55
55
 
56
56
  Added Enumerator support. Non-block enumeration will iterate the backtrace that was the active context when :each_backtrace_frame was called.
57
+
58
+ === 1.5.1 2010-07-09
59
+
60
+ Fixed return values for :backtrace_with_frame to return nil rather than false.
data/VERSION.rdoc CHANGED
@@ -1 +1 @@
1
- 1.5
1
+ 1.5.1
@@ -255,7 +255,7 @@ VALUE rb_RPRuby_Sender_Kernel_backtrace_includes( int argc,
255
255
  rb_frame_hashes_array = rb_ary_new();
256
256
  }
257
257
 
258
- VALUE rb_frame_hash;
258
+ VALUE rb_frame_hash = Qnil;
259
259
 
260
260
  // for each control frame:
261
261
  while ( c_current_context_frame < c_top_of_control_frame ) {
@@ -419,7 +419,12 @@ VALUE rb_RPRuby_Sender_Kernel_backtrace_includes( int argc,
419
419
  }
420
420
  // if we finish iterating frames and still have items in the array, return false
421
421
  else if ( RARRAY_LEN( rb_tracking_array ) > 0 ) {
422
- return Qfalse;
422
+ if ( c_return_frame == TRUE ) {
423
+ return Qnil;
424
+ }
425
+ else {
426
+ return Qfalse;
427
+ }
423
428
  }
424
429
  // otherwise, return true
425
430
  else if ( c_return_frame == TRUE ) {
data/lib/VERSION.rdoc CHANGED
@@ -1 +1 @@
1
- 1.5
1
+ 1.5.1
Binary file
data/sender.gemspec CHANGED
@@ -2,7 +2,7 @@
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.1"
6
6
 
7
7
  s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
8
8
  s.authors = ["Asher"]
metadata CHANGED
@@ -1,12 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: sender
3
3
  version: !ruby/object:Gem::Version
4
- hash: 5
4
+ hash: 1
5
5
  prerelease: false
6
6
  segments:
7
7
  - 1
8
8
  - 5
9
- version: "1.5"
9
+ - 1
10
+ version: 1.5.1
10
11
  platform: ruby
11
12
  authors:
12
13
  - Asher