renet 0.1.5 → 0.1.6
Sign up to get free protection for your applications and to get access to all the features.
- data/ext/renet/renet.c +1 -1
- data/lib/renet.rb +7 -5
- metadata +1 -1
data/ext/renet/renet.c
CHANGED
@@ -30,7 +30,7 @@ void Init_renet()
|
|
30
30
|
init_renet_connection();
|
31
31
|
init_renet_server();
|
32
32
|
rb_define_const(mENet, "ENET_VERSION", rb_str_new2("1.3.0"));
|
33
|
-
rb_define_const(mENet, "RENET_VERSION", rb_str_new2("0.1.
|
33
|
+
rb_define_const(mENet, "RENET_VERSION", rb_str_new2("0.1.6"));
|
34
34
|
}
|
35
35
|
|
36
36
|
VALUE renet_main_initialize(VALUE self)
|
data/lib/renet.rb
CHANGED
@@ -6,9 +6,11 @@ if File.exists?("#{File.dirname(__FILE__)}/renet.so")
|
|
6
6
|
require "#{File.dirname(__FILE__)}/renet.so"
|
7
7
|
end
|
8
8
|
|
9
|
-
if
|
10
|
-
|
11
|
-
|
12
|
-
|
9
|
+
if File.exists?("#{File.dirname(__FILE__)}/renet.1.8.so")
|
10
|
+
if defined? RUBY_VERSION and RUBY_VERSION[0..2] == '1.9' then
|
11
|
+
version = '1.9'
|
12
|
+
else
|
13
|
+
version = '1.8'
|
14
|
+
end
|
15
|
+
require "#{File.dirname(__FILE__)}/renet.#{version}.so"
|
13
16
|
end
|
14
|
-
require "#{File.dirname(__FILE__)}/renet.#{version}.so"
|