is_a 0.1.4 → 0.1.5

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: f5011de31b6ce61e041b63288abddf8af8edd5b0
4
- data.tar.gz: 760e5629648eedf4c90e38a76b5a5143c7f90ed6
3
+ metadata.gz: eb77c2bef1a8aff38d674bf891e33ceb87bc9e8c
4
+ data.tar.gz: c73632f2e4496fe926a93c6fe2ca61937077d981
5
5
  SHA512:
6
- metadata.gz: 86d472e6c067e68cc4d105397276282cfa212758339012e6d346a165b429988096ef9fd952997f2e369f473989edf40b15644348f3abfedece1848ef5b602d8a
7
- data.tar.gz: de31578552fc8d887b6bce71197c7e3393cd9c30f65ed30da999b331c4c66fb190ac878a009af740b36c7b7b3cb3e53907b266f65c8607c80d95151231ee0935
6
+ metadata.gz: c7802f2c755fe74a8670e188fe75817f3148230f9baac5ab52b63899293e03f67b21ee4c05b80ee5f503b4df7833a13f030409b2d3f6ea721cf61d083093c747
7
+ data.tar.gz: bde0cf56dbf4f6d18f9161e0ad893d154697225c7bd4be79d1dc390545ea0584882e99f07738547495113963202064faa274b04c8f0fae33152dc9bed884cad8
@@ -23,7 +23,8 @@ hdrs = ->{
23
23
  vm_core.h
24
24
  }.all?{|hdr| have_header(hdr)}
25
25
  have_struct_member("rb_iseq_t", "location", "vm_core.h")
26
- res = res && (have_func("rb_vm_get_sourceline", "vm_core.h") || have_func("rb_iseq_line_no", ["vm_core.h", "method.h", "iseq.h"]))
26
+ # 2.0.0+ has inaccessible rb_vm_get_sourceline (cannot link in runtime), but has rb_iseq_line_no
27
+ res = res && (have_func("rb_iseq_line_no", ["vm_core.h", "method.h", "iseq.h"]) || have_func("rb_vm_get_sourceline", "vm_core.h"))
27
28
  res
28
29
  }
29
30
 
@@ -28,7 +28,7 @@ rb_object_id_of(VALUE self, VALUE obj)
28
28
  #define ID_ALLOCATOR 0
29
29
  #endif
30
30
 
31
- #if !defined(HAVE_RB_VM_GET_SOURCELINE) && defined(HAVE_RB_ISEQ_LINE_NO)
31
+ #ifdef HAVE_RB_ISEQ_LINE_NO
32
32
  #include "method.h"
33
33
  #include "iseq.h"
34
34
 
@@ -37,12 +37,13 @@ calc_lineno(const rb_iseq_t *iseq, const VALUE *pc)
37
37
  {
38
38
  return rb_iseq_line_no(iseq, pc - iseq->iseq_encoded);
39
39
  }
40
- int rb_vm_get_sourceline(const rb_control_frame_t * cfp){
40
+ #define rb_vm_get_sourceline rb_vm_get_sourceline_static
41
+ static int rb_vm_get_sourceline_static(const rb_control_frame_t * cfp){
41
42
  int lineno = 0;
42
43
  const rb_iseq_t *iseq = cfp->iseq;
43
44
 
44
45
  if (RUBY_VM_NORMAL_ISEQ_P(iseq)) {
45
- lineno = calc_lineno(cfp->iseq, cfp->pc);
46
+ lineno = calc_lineno(cfp->iseq, cfp->pc);
46
47
  }
47
48
  return lineno;
48
49
  }
@@ -1,3 +1,3 @@
1
1
  module IsA
2
- VERSION = "0.1.4"
2
+ VERSION = "0.1.5"
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: is_a
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.4
4
+ version: 0.1.5
5
5
  platform: ruby
6
6
  authors:
7
7
  - Vasily Fedoseyev
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2013-12-26 00:00:00.000000000 Z
11
+ date: 2014-01-09 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: debugger-ruby_core_source
@@ -91,7 +91,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
91
91
  version: '0'
92
92
  requirements: []
93
93
  rubyforge_project:
94
- rubygems_version: 2.2.0.rc.1
94
+ rubygems_version: 2.2.1
95
95
  signing_key:
96
96
  specification_version: 4
97
97
  summary: Defines methods to introspect any ruby object more deeply