rjb 1.0.7-mswin32 → 1.0.8-mswin32

Sign up to get free protection for your applications and to get access to all the features.
Files changed (4) hide show
  1. data/ext/rjb.c +4 -1
  2. data/lib/rjbcore.so +0 -0
  3. data/test/test.rb +3 -0
  4. metadata +2 -2
data/ext/rjb.c CHANGED
@@ -15,7 +15,7 @@
15
15
  * $Id: rjb.c 19 2007-09-14 14:59:29Z arton $
16
16
  */
17
17
 
18
- #define RJB_VERSION "1.0.7"
18
+ #define RJB_VERSION "1.0.8"
19
19
 
20
20
  #include "ruby.h"
21
21
  #include "st.h"
@@ -538,6 +538,9 @@ static VALUE jv2rv_withprim(JNIEnv* jenv, jobject o)
538
538
  case 'c':
539
539
  jv.c = (*jenv)->CallCharMethod(jenv, o, jpcvt[i].to_prim_id);
540
540
  break;
541
+ case 'l':
542
+ jv.j = (*jenv)->CallLongMethod(jenv, o, jpcvt[i].to_prim_id);
543
+ break;
541
544
  default:
542
545
  rb_raise(rb_eRuntimeError, "no convertor defined(%d)", i);
543
546
  break;
Binary file
@@ -456,6 +456,9 @@ class TestRjb < Test::Unit::TestCase
456
456
  jByte = Rjb::import('java.lang.Byte')
457
457
  assert_equal(5, jByte.valueOf('5'))
458
458
  assert_equal(-6, jByte.valueOf('-6'))
459
+ jLong = Rjb::import('java.lang.Long')
460
+ assert_equal(500000, jLong.valueOf('500000'))
461
+ assert_equal(-600000, jLong.valueOf('-600000'))
459
462
  end
460
463
  end
461
464
 
metadata CHANGED
@@ -3,8 +3,8 @@ rubygems_version: 0.9.4
3
3
  specification_version: 1
4
4
  name: rjb
5
5
  version: !ruby/object:Gem::Version
6
- version: 1.0.7
7
- date: 2007-09-14 00:00:00 +09:00
6
+ version: 1.0.8
7
+ date: 2007-09-15 00:00:00 +09:00
8
8
  summary: Ruby Java bridge
9
9
  require_paths:
10
10
  - lib