rallhook 0.7.3 → 0.7.4

Sign up to get free protection for your applications and to get access to all the features.
data/CHANGELOG CHANGED
@@ -1,3 +1,5 @@
1
+ 0.7.4 Fixed issue 12 (Compile error for ruby 1.9)
2
+
1
3
  0.7.3 Fixed issue 10 (Compile Error in i486 Arch (-ldistorm64 not found) )
2
4
 
3
5
  0.7.2 Fixed issue 9 by ruby-wrapping properly the rallhook thread info including the garbage collector mark function of
data/Rakefile CHANGED
@@ -6,7 +6,7 @@ require 'rake/gempackagetask'
6
6
 
7
7
  spec = Gem::Specification.new do |s|
8
8
  s.name = 'rallhook'
9
- s.version = '0.7.3'
9
+ s.version = '0.7.4'
10
10
  s.author = 'Dario Seminara'
11
11
  s.email = 'robertodarioseminara@gmail.com'
12
12
  s.platform = Gem::Platform::RUBY
@@ -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
- if (method->body->nd_defn == 0) {
102
- return Data_Wrap_Struct(rb_cNode, 0, 0, method->body);
103
- } else {
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: 5
4
+ hash: 11
5
5
  prerelease: false
6
6
  segments:
7
7
  - 0
8
8
  - 7
9
- - 3
10
- version: 0.7.3
9
+ - 4
10
+ version: 0.7.4
11
11
  platform: ruby
12
12
  authors:
13
13
  - Dario Seminara