debugger 1.1.1 → 1.1.2

Sign up to get free protection for your applications and to get access to all the features.
@@ -1,3 +1,6 @@
1
+ ## 1.1.2
2
+ * Fix where command failing at the top level
3
+
1
4
  ## 1.1.1
2
5
  * Fix allowing user's to pass --with-ruby-include
3
6
  * Improve rvm src autodetection - works for 1.9.3-head
data/README.md CHANGED
@@ -45,6 +45,7 @@ To use in your Rails app, drop in your Gemfile:
45
45
  * Install painlessly for rvm and rbenv rubies i.e. no compiler flags needed
46
46
  * No downloading ruby source during install - was behavior of old ruby_core_source dependency
47
47
  * Fix LocalJumpError caused by using proc in extconf.rb
48
+ * Fix where command failing at top level
48
49
  * Passing tests are up on travis-ci
49
50
  * Minor
50
51
  * The gem name matches the module namespace, Debugger, and main required file, debugger.
@@ -63,7 +64,7 @@ Let's keep this working for the ruby community!
63
64
  ## Credits
64
65
 
65
66
  * Thanks to the original authors: Kent Sibilev and Mark Moseley
66
- * Contributors: jnimety, adammck
67
+ * Contributors: ericpromislow, jnimety, adammck
67
68
  * Fork started on awesome @relevance fridays!
68
69
 
69
70
  ## TODO
@@ -1755,6 +1755,7 @@ context_frame_id(int argc, VALUE *argv, VALUE self)
1755
1755
  {
1756
1756
  ID id;
1757
1757
  VALUE frame;
1758
+ VALUE frame_id;
1758
1759
  debug_context_t *debug_context;
1759
1760
  rb_control_frame_t *cfp;
1760
1761
 
@@ -1764,10 +1765,11 @@ context_frame_id(int argc, VALUE *argv, VALUE self)
1764
1765
 
1765
1766
  cfp = GET_FRAME->info.runtime.cfp;
1766
1767
  #if defined HAVE_RB_CONTROL_FRAME_T_METHOD_ID
1767
- return(RUBYVM_CFUNC_FRAME_P(cfp) ? ID2SYM(cfp->method_id) : ID2SYM(cfp->iseq->defined_method_id));
1768
+ frame_id = RUBYVM_CFUNC_FRAME_P(cfp) ? cfp->method_id : cfp->iseq->defined_method_id;
1768
1769
  #elif defined HAVE_RB_METHOD_ENTRY_T_CALLED_ID
1769
- return(RUBYVM_CFUNC_FRAME_P(cfp) ? ID2SYM(cfp->me->called_id) : ID2SYM(cfp->iseq->defined_method_id));
1770
+ frame_id = RUBYVM_CFUNC_FRAME_P(cfp) ? cfp->me->called_id : cfp->iseq->defined_method_id;
1770
1771
  #endif
1772
+ return frame_id ? ID2SYM(frame_id) : Qnil;
1771
1773
  }
1772
1774
 
1773
1775
  /*
@@ -1,5 +1,5 @@
1
1
  module Debugger
2
2
  # TODO: remove version from C ext
3
3
  send :remove_const, :VERSION if const_defined? :VERSION
4
- VERSION = '1.1.1'
4
+ VERSION = '1.1.2'
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: debugger
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.1.1
4
+ version: 1.1.2
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -11,7 +11,7 @@ authors:
11
11
  autorequire:
12
12
  bindir: bin
13
13
  cert_chain: []
14
- date: 2012-04-10 00:00:00.000000000 Z
14
+ date: 2012-04-29 00:00:00.000000000 Z
15
15
  dependencies:
16
16
  - !ruby/object:Gem::Dependency
17
17
  name: columnize