rjb 1.1.8 → 1.1.9

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 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)
@@ -0,0 +1,9 @@
1
+ #ifndef EXTCONF_H
2
+ #define EXTCONF_H
3
+ #define HAVE_JNI_H 1
4
+ #define HAVE_DL_H 1
5
+ #define HAVE_NL_LANGINFO 1
6
+ #define HAVE_SETLOCALE 1
7
+ #define HAVE_GETENV 1
8
+ #define RJB_RUBY_VERSION_CODE 187
9
+ #endif
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 91 2009-09-07 14:13:17Z arton $
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 91 2009-09-07 14:13:17Z arton $
15
+ * $Id: rjb.c 93 2009-09-10 13:43:04Z arton $
16
16
  */
17
17
 
18
- #define RJB_VERSION "1.1.8"
18
+ #define RJB_VERSION "1.1.9"
19
19
 
20
20
  #include "ruby.h"
21
21
  #include "extconf.h"
@@ -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 75 2008-08-14 10:03:52Z arton $
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
- rb_raise(rexp, msg);
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.8
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-07 00:00:00 +09:00
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