rallhook 0.7.3 → 0.7.4
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.
- data/CHANGELOG +2 -0
- data/Rakefile +1 -1
- data/ext/rallhook_base/method_node.c +7 -3
- metadata +3 -3
data/CHANGELOG
CHANGED
data/Rakefile
CHANGED
@@ -98,11 +98,15 @@ VALUE rb_method_body(VALUE self) {
|
|
98
98
|
Data_Get_Struct(self,struct METHOD,method);
|
99
99
|
|
100
100
|
if (method->body == 0) return Qnil;
|
101
|
-
|
102
|
-
|
103
|
-
|
101
|
+
|
102
|
+
#ifdef RUBY1_8
|
103
|
+
// nd_defn is only present in ruby_1.8
|
104
|
+
if (method->body->nd_defn != 0) {
|
104
105
|
return Data_Wrap_Struct(rb_cNode, 0, 0, method->body->nd_defn);
|
105
106
|
}
|
107
|
+
#endif
|
108
|
+
|
109
|
+
return Data_Wrap_Struct(rb_cNode, 0, 0, method->body);
|
106
110
|
}
|
107
111
|
|
108
112
|
/*
|
metadata
CHANGED
@@ -1,13 +1,13 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: rallhook
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
hash:
|
4
|
+
hash: 11
|
5
5
|
prerelease: false
|
6
6
|
segments:
|
7
7
|
- 0
|
8
8
|
- 7
|
9
|
-
-
|
10
|
-
version: 0.7.
|
9
|
+
- 4
|
10
|
+
version: 0.7.4
|
11
11
|
platform: ruby
|
12
12
|
authors:
|
13
13
|
- Dario Seminara
|