rjb 1.1.8 → 1.1.9
Sign up to get free protection for your applications and to get access to all the features.
- data/ChangeLog +8 -0
- data/ext/extconf.h +9 -0
- data/ext/load.c +9 -2
- data/ext/rjb.c +2 -2
- data/ext/rjbexception.c +2 -2
- metadata +3 -2
data/ChangeLog
CHANGED
@@ -1,3 +1,11 @@
|
|
1
|
+
Thu Sep 10 arton
|
2
|
+
*ext/load.c
|
3
|
+
Correct previous code (always reload jvm if OSX < Snow Leopard)
|
4
|
+
Clear DL's exception if success
|
5
|
+
*ext/rjb.c
|
6
|
+
RJB_VERSION -> 1.1.9
|
7
|
+
*ext/rjbexception.c
|
8
|
+
fit arguments for rb_raise to shut warning down
|
1
9
|
Mon Sep 07 arton
|
2
10
|
*ext/load.c
|
3
11
|
Check no compat type dylib after loading was failed (for Snow Leopard)
|
data/ext/extconf.h
ADDED
data/ext/load.c
CHANGED
@@ -12,7 +12,7 @@
|
|
12
12
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
13
13
|
* Lesser General Public License for more details.
|
14
14
|
*
|
15
|
-
* $Id: load.c
|
15
|
+
* $Id: load.c 96 2009-09-10 13:57:04Z arton $
|
16
16
|
*/
|
17
17
|
|
18
18
|
#include <stdlib.h>
|
@@ -270,12 +270,19 @@ int rjb_create_jvm(JNIEnv** pjenv, JavaVMInitArgs* vm_args, char* userpath, VALU
|
|
270
270
|
JVMDLL = "%s/Libraries/libjvm.dylib";
|
271
271
|
CREATEJVM = "JNI_CreateJavaVM_Impl";
|
272
272
|
GETDEFAULTJVMINITARGS = "JNI_GetDefaultJavaVMInitArgs_Impl";
|
273
|
-
}
|
274
273
|
#endif
|
275
274
|
if (!(load_jvm(JVM_TYPE) || load_jvm(ALT_JVM_TYPE)))
|
276
275
|
{
|
277
276
|
return -1;
|
278
277
|
}
|
278
|
+
#if defined(__APPLE__) && defined(__MACH__)
|
279
|
+
}
|
280
|
+
#endif
|
281
|
+
#if RJB_RUBY_VERSION_CODE < 190
|
282
|
+
ruby_errinfo = Qnil;
|
283
|
+
#else
|
284
|
+
rb_set_errinfo(Qnil);
|
285
|
+
#endif
|
279
286
|
}
|
280
287
|
|
281
288
|
if (NIL_P(getdefaultjavavminitargsfunc))
|
data/ext/rjb.c
CHANGED
@@ -12,10 +12,10 @@
|
|
12
12
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
13
13
|
* Lesser General Public License for more details.
|
14
14
|
*
|
15
|
-
* $Id: rjb.c
|
15
|
+
* $Id: rjb.c 93 2009-09-10 13:43:04Z arton $
|
16
16
|
*/
|
17
17
|
|
18
|
-
#define RJB_VERSION "1.1.
|
18
|
+
#define RJB_VERSION "1.1.9"
|
19
19
|
|
20
20
|
#include "ruby.h"
|
21
21
|
#include "extconf.h"
|
data/ext/rjbexception.c
CHANGED
@@ -12,7 +12,7 @@
|
|
12
12
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
13
13
|
* Lesser General Public License for more details.
|
14
14
|
*
|
15
|
-
* $Id: rjbexception.c
|
15
|
+
* $Id: rjbexception.c 94 2009-09-10 13:54:42Z arton $
|
16
16
|
*/
|
17
17
|
|
18
18
|
#include "ruby.h"
|
@@ -132,7 +132,7 @@ void rjb_check_exception(JNIEnv* jenv, int t)
|
|
132
132
|
}
|
133
133
|
else
|
134
134
|
{
|
135
|
-
|
135
|
+
rb_raise(rexp, "%s", msg);
|
136
136
|
}
|
137
137
|
}
|
138
138
|
}
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: rjb
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.1.
|
4
|
+
version: 1.1.9
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- arton
|
@@ -9,7 +9,7 @@ autorequire:
|
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
11
|
|
12
|
-
date: 2009-09-
|
12
|
+
date: 2009-09-10 00:00:00 +09:00
|
13
13
|
default_executable:
|
14
14
|
dependencies: []
|
15
15
|
|
@@ -27,6 +27,7 @@ files:
|
|
27
27
|
- ext/riconv.c
|
28
28
|
- ext/rjb.c
|
29
29
|
- ext/rjbexception.c
|
30
|
+
- ext/extconf.h
|
30
31
|
- ext/jniwrap.h
|
31
32
|
- ext/jp_co_infoseek_hp_arton_rjb_RBridge.h
|
32
33
|
- ext/riconv.h
|