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 +4 -4
- data/ext/is_a/extconf.rb +2 -1
- data/ext/is_a/is_a.c +4 -3
- data/lib/is_a/version.rb +1 -1
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: eb77c2bef1a8aff38d674bf891e33ceb87bc9e8c
|
4
|
+
data.tar.gz: c73632f2e4496fe926a93c6fe2ca61937077d981
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: c7802f2c755fe74a8670e188fe75817f3148230f9baac5ab52b63899293e03f67b21ee4c05b80ee5f503b4df7833a13f030409b2d3f6ea721cf61d083093c747
|
7
|
+
data.tar.gz: bde0cf56dbf4f6d18f9161e0ad893d154697225c7bd4be79d1dc390545ea0584882e99f07738547495113963202064faa274b04c8f0fae33152dc9bed884cad8
|
data/ext/is_a/extconf.rb
CHANGED
@@ -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
|
-
|
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
|
|
data/ext/is_a/is_a.c
CHANGED
@@ -28,7 +28,7 @@ rb_object_id_of(VALUE self, VALUE obj)
|
|
28
28
|
#define ID_ALLOCATOR 0
|
29
29
|
#endif
|
30
30
|
|
31
|
-
#
|
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
|
-
|
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
|
-
|
46
|
+
lineno = calc_lineno(cfp->iseq, cfp->pc);
|
46
47
|
}
|
47
48
|
return lineno;
|
48
49
|
}
|
data/lib/is_a/version.rb
CHANGED
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
|
+
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:
|
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.
|
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
|