rjb 1.5.5 → 1.5.6
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.
- checksums.yaml +5 -5
- data/ChangeLog +5 -0
- data/ext/extconf.h +1 -1
- data/ext/load.c +4 -0
- data/ext/rjb.c +2 -2
- metadata +12 -10
- data/README.md +0 -65
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
|
-
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
2
|
+
SHA256:
|
3
|
+
metadata.gz: d2b0f2af57eaee97970ba6fc2edcf52b284e4b609f984e51be36affb6be3f185
|
4
|
+
data.tar.gz: 76bbbcb0d8442a1c64ca5532f0b9678c2ed54537bc75a58e1b1ae3d996d07f6e
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 04f3b57c9041ee7862723ec31e86950b597611e334473c387b97a647478d6e170f099be3ab72fb3c8739950b4b49b1355d78922d426e04e73f7800e17949fb1c
|
7
|
+
data.tar.gz: d3fa29ac0db4648212cef20077974a4167b217c7c7e044e928dae03570a2a456a1325561948d768bc3b52454cd73747db76f7387670deb766d59cb1c70913927
|
data/ChangeLog
CHANGED
data/ext/extconf.h
CHANGED
data/ext/load.c
CHANGED
data/ext/rjb.c
CHANGED
@@ -14,7 +14,7 @@
|
|
14
14
|
*
|
15
15
|
*/
|
16
16
|
|
17
|
-
#define RJB_VERSION "1.5.
|
17
|
+
#define RJB_VERSION "1.5.6"
|
18
18
|
|
19
19
|
#include "ruby.h"
|
20
20
|
#include "extconf.h"
|
@@ -601,7 +601,7 @@ static VALUE jv2rv_withprim(JNIEnv* jenv, jobject o)
|
|
601
601
|
jv.j = (*jenv)->CallLongMethod(jenv, o, jpcvt[i].to_prim_id);
|
602
602
|
break;
|
603
603
|
default:
|
604
|
-
rb_raise(rb_eRuntimeError, "no
|
604
|
+
rb_raise(rb_eRuntimeError, "no converter defined(%d)", i);
|
605
605
|
break;
|
606
606
|
}
|
607
607
|
(*jenv)->DeleteLocalRef(jenv, o);
|
metadata
CHANGED
@@ -1,17 +1,19 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: rjb
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.5.
|
4
|
+
version: 1.5.6
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- arton
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2018-12-27 00:00:00.000000000 Z
|
12
12
|
dependencies: []
|
13
|
-
description: RJB is a
|
13
|
+
description: 'RJB is a bridge program that connect between Ruby and Java with Java
|
14
14
|
Native Interface.
|
15
|
+
|
16
|
+
'
|
15
17
|
email: artonx@gmail.com
|
16
18
|
executables: []
|
17
19
|
extensions:
|
@@ -20,7 +22,6 @@ extra_rdoc_files: []
|
|
20
22
|
files:
|
21
23
|
- COPYING
|
22
24
|
- ChangeLog
|
23
|
-
- README.md
|
24
25
|
- data/rjb/jp/co/infoseek/hp/arton/rjb/RBridge.class
|
25
26
|
- ext/RBridge.java
|
26
27
|
- ext/depend
|
@@ -66,9 +67,9 @@ files:
|
|
66
67
|
- test/test_osxjvm.rb
|
67
68
|
- test/test_osxload.rb
|
68
69
|
- test/test_unload.rb
|
69
|
-
homepage:
|
70
|
+
homepage: https://www.artonx.org/collabo/backyard/?RubyJavaBridge
|
70
71
|
licenses:
|
71
|
-
- LGPL
|
72
|
+
- LGPL
|
72
73
|
metadata: {}
|
73
74
|
post_install_message:
|
74
75
|
rdoc_options: []
|
@@ -85,10 +86,11 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
85
86
|
- !ruby/object:Gem::Version
|
86
87
|
version: '0'
|
87
88
|
requirements:
|
89
|
+
- none
|
88
90
|
- JDK 5.0
|
89
|
-
|
90
|
-
rubygems_version: 2.6.4
|
91
|
+
rubygems_version: 3.0.1
|
91
92
|
signing_key:
|
92
93
|
specification_version: 4
|
93
|
-
summary: Ruby Java
|
94
|
-
test_files:
|
94
|
+
summary: Ruby Java bridge
|
95
|
+
test_files:
|
96
|
+
- test/test.rb
|
data/README.md
DELETED
@@ -1,65 +0,0 @@
|
|
1
|
-
# Rjb is Ruby-Java bridge using Java Native Interface.
|
2
|
-
|
3
|
-
The [Ruby Kaigi 2010](http://www.slideshare.net/artonx/j-ruby-kaigi-2010)
|
4
|
-
Presentation on `Rjb`.
|
5
|
-
|
6
|
-
A short [introduction](https://www.artonx.org/collabo/backyard/?RubyJavaBridge)
|
7
|
-
in English.
|
8
|
-
|
9
|
-
Some [examples](https://www.artonx.org/collabo/backyard/?RjbQandA) in
|
10
|
-
Japanese, but the source code is clear for everybody.
|
11
|
-
|
12
|
-
# How to install
|
13
|
-
|
14
|
-
You need to install Java2 sdk, and setup `JAVA_HOME` enviromental
|
15
|
-
varible except for OS X. I assume that OS X's `JAVA_HOME` is reported
|
16
|
-
by calling `/usr/libexec/java_home`.
|
17
|
-
|
18
|
-
This done please proceed with:
|
19
|
-
|
20
|
-
``` bash
|
21
|
-
ruby setup.rb config
|
22
|
-
ruby setup.rb setup
|
23
|
-
```
|
24
|
-
|
25
|
-
``` bash
|
26
|
-
# (in Unix)
|
27
|
-
sudo ruby setup.rb install
|
28
|
-
```
|
29
|
-
|
30
|
-
or
|
31
|
-
|
32
|
-
``` bash
|
33
|
-
# (in win32)
|
34
|
-
ruby setup.rb install
|
35
|
-
```
|
36
|
-
|
37
|
-
# How to test
|
38
|
-
|
39
|
-
On Windows based machines:
|
40
|
-
|
41
|
-
``` bash
|
42
|
-
cd test
|
43
|
-
ruby test.rb
|
44
|
-
```
|
45
|
-
|
46
|
-
On Unix based machines plese see `test/readme.unix`. You need to set
|
47
|
-
`LD_LIBRARY_PATH` environmental variable to run `rjb`.
|
48
|
-
|
49
|
-
# Notice for opening non-ASCII 7bit filename
|
50
|
-
|
51
|
-
If you'll plan to open the non-ascii character named file by Java
|
52
|
-
class through Rjb, it may require to set LC_ALL environment variable
|
53
|
-
in you sciprt.
|
54
|
-
|
55
|
-
For example in Rails, set above line in `production.rb` as your environment:
|
56
|
-
|
57
|
-
``` bash
|
58
|
-
ENV['LC_ALL'] = 'en_us.utf8' # or ja_JP.utf8 etc.
|
59
|
-
```
|
60
|
-
|
61
|
-
cf: http://bugs.sun.com/view_bug.do?bug_id=4733494
|
62
|
-
(Thanks Paul for this information).
|
63
|
-
|
64
|
-
# Contact
|
65
|
-
artonx@yahoo.co.jp
|