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.
Files changed (7) hide show
  1. checksums.yaml +5 -5
  2. data/ChangeLog +5 -0
  3. data/ext/extconf.h +1 -1
  4. data/ext/load.c +4 -0
  5. data/ext/rjb.c +2 -2
  6. metadata +12 -10
  7. data/README.md +0 -65
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
- SHA1:
3
- metadata.gz: 3bd11fadf55c58d28049cbd150cf6b74f8ff0a9a
4
- data.tar.gz: b5b308b407d408baa604487c6d2d520d46e3ce65
2
+ SHA256:
3
+ metadata.gz: d2b0f2af57eaee97970ba6fc2edcf52b284e4b609f984e51be36affb6be3f185
4
+ data.tar.gz: 76bbbcb0d8442a1c64ca5532f0b9678c2ed54537bc75a58e1b1ae3d996d07f6e
5
5
  SHA512:
6
- metadata.gz: acad6e9acd24e609195014897eebe87d16bb7a8e11b5a96da77511a158a95b83bb820a1fb70b8a9b76fde457dbfae801589aac5b81027990beff05206318146a
7
- data.tar.gz: 88082cd6024ed28ea83cfbd0b6dfce9e9421878af47c734dec5a6d0351dda9d6053e6689bc2a33218b20c6530e37e94479444dec93cf9007d8f4fd91327e40c6
6
+ metadata.gz: 04f3b57c9041ee7862723ec31e86950b597611e334473c387b97a647478d6e170f099be3ab72fb3c8739950b4b49b1355d78922d426e04e73f7800e17949fb1c
7
+ data.tar.gz: d3fa29ac0db4648212cef20077974a4167b217c7c7e044e928dae03570a2a456a1325561948d768bc3b52454cd73747db76f7387670deb766d59cb1c70913927
data/ChangeLog CHANGED
@@ -1,3 +1,8 @@
1
+ Thu Dec 27 2018 sean-npu
2
+ * ext/load.c
3
+ support aarch64
4
+ * ext/rjb.c
5
+ RJB_VERSION -> 1.5.6
1
6
  Sun Oct 30 arbox, maxberger and arton
2
7
  *Rakefile
3
8
  *rjb.gemspec
@@ -4,5 +4,5 @@
4
4
  #define HAVE_NL_LANGINFO 1
5
5
  #define HAVE_SETLOCALE 1
6
6
  #define HAVE_GETENV 1
7
- #define RJB_RUBY_VERSION_CODE 240
7
+ #define RJB_RUBY_VERSION_CODE 260
8
8
  #endif
data/ext/load.c CHANGED
@@ -79,6 +79,10 @@
79
79
  #define ARCH "i386"
80
80
  #elif defined(__arm__)
81
81
  #define ARCH "arm"
82
+ #elif defined(__aarch64__)
83
+ #define ARCH "aarch64"
84
+ #undef JVM_TYPE
85
+ #define JVM_TYPE "server"
82
86
  #endif
83
87
  #ifndef ARCH
84
88
  #include <sys/systeminfo.h>
data/ext/rjb.c CHANGED
@@ -14,7 +14,7 @@
14
14
  *
15
15
  */
16
16
 
17
- #define RJB_VERSION "1.5.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 convertor defined(%d)", i);
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.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: 2016-10-29 00:00:00.000000000 Z
11
+ date: 2018-12-27 00:00:00.000000000 Z
12
12
  dependencies: []
13
- description: RJB is a Bridge library which connects Ruby and Java code using the Java
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: http://www.artonx.org/collabo/backyard/?RubyJavaBridge
70
+ homepage: https://www.artonx.org/collabo/backyard/?RubyJavaBridge
70
71
  licenses:
71
- - LGPL-2.1
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
- rubyforge_project:
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 Bridge
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