renet 0.1.4-i386-mingw32 → 0.1.5-i386-mingw32
Sign up to get free protection for your applications and to get access to all the features.
- data/lib/renet.rb +14 -10
- metadata +1 -1
data/lib/renet.rb
CHANGED
@@ -1,10 +1,14 @@
|
|
1
|
-
|
2
|
-
|
3
|
-
|
4
|
-
|
5
|
-
|
6
|
-
|
7
|
-
|
8
|
-
|
9
|
-
|
10
|
-
|
1
|
+
if File.exists?("#{File.dirname(__FILE__)}/renet.bundle")
|
2
|
+
require "#{File.dirname(__FILE__)}/renet.bundle"
|
3
|
+
end
|
4
|
+
|
5
|
+
if File.exists?("#{File.dirname(__FILE__)}/renet.so")
|
6
|
+
require "#{File.dirname(__FILE__)}/renet.so"
|
7
|
+
end
|
8
|
+
|
9
|
+
if defined? RUBY_VERSION and RUBY_VERSION[0..2] == '1.9' then
|
10
|
+
version = '1.9'
|
11
|
+
else
|
12
|
+
version = '1.8'
|
13
|
+
end
|
14
|
+
require "#{File.dirname(__FILE__)}/renet.#{version}.so"
|