rjb 1.6.5 → 1.6.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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 9fe56b57b065af45616adb3ed2f9c70aa2b82d4d1357aaff01a5d76355d4d966
4
- data.tar.gz: 27cb4273a33bb6c793cf36341f4306ba1628620845d677a7301411835a8341b7
3
+ metadata.gz: a481b4e42a23930dca94f8e07d5f2149580204caf305a4697bbd7476126f2ece
4
+ data.tar.gz: ebc736fa9ef5c29dcb410fe63e273d5bff4b677e7f0b9a222f9745358bb0a64a
5
5
  SHA512:
6
- metadata.gz: 45803a59a2f1b0566951f20730a01f0a38b9c0c73f935b2e8a7f693a485f735bb9c67bd672e04d03e51c23fa7588a4a2e874bc29820ae7e9b98e9eb3fc0cffbf
7
- data.tar.gz: 40991859104df82352635605f84c2c28b5fb44c8fcb4c8475b9d1f9f0733ea193e9cc0405d9d80673d913d8df1c0933c02dec3126e3ed217e932b0ceeaf02656
6
+ metadata.gz: 1b4f1abbef971a4b75df87bdf57192da213fc409d712bcca7877166a3c0fdc632eeeee685986e006174231fccb01a054d912beaa3d4f9e5ca704e253c1e466a9
7
+ data.tar.gz: 6346c22dba2dd112101e717e745c1e08057da82cd312580892fbb4d2beab0b447daf2c2d018c990cf059bd9c66b4915102ee167062ca22bce57be8aad341a7b1
data/ChangeLog CHANGED
@@ -1,3 +1,9 @@
1
+ Mon Dec 26 2022 chaadow
2
+ ruby 3.2 support
3
+ * ext/extconf.rb
4
+ call File.exist? instead of deprecated File.exists?
5
+ * ext/rjb.c
6
+ RJB_VERSION -> 1.6.6 (for Gem)
1
7
  Fri Apr 8 2022 arton
2
8
  fix #85
3
9
  * data/rjb/jp/co/infoseek/hp/arton/rjb/RBridge.class
data/ext/extconf.h CHANGED
@@ -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 310
7
+ #define RJB_RUBY_VERSION_CODE 312
8
8
  #endif
data/ext/extconf.rb CHANGED
@@ -40,7 +40,7 @@ unless javahome.nil?
40
40
  raise "JAVA_HOME is not directory." unless File.directory?(javahome)
41
41
  pt = Path.new
42
42
  inc = pt.include(javahome, 'include')
43
- if !File.exists?(inc) && RUBY_PLATFORM =~ /darwin/
43
+ if !File.exist?(inc) && RUBY_PLATFORM =~ /darwin/
44
44
  inc = pt.include('/System/Library/Frameworks/JavaVM.framework', 'Headers')
45
45
  end
46
46
  Dir.open(inc).each do |d|
data/ext/load.c CHANGED
@@ -82,7 +82,10 @@
82
82
  #define ARCH "i386"
83
83
  #elif defined(__arm__)
84
84
  #define ARCH "arm"
85
- #elif defined(__aarch64__)
85
+ #elif defined(__ARM64_ARCH_8__)
86
+ || defined(__aarch64__)
87
+ || defined(__ARMv8__)
88
+ || defined(__ARMv8_A__)
86
89
  #define ARCH "aarch64"
87
90
  #undef JVM_TYPE
88
91
  #define JVM_TYPE "server"
data/ext/rjb.c CHANGED
@@ -14,7 +14,7 @@
14
14
  *
15
15
  */
16
16
 
17
- #define RJB_VERSION "1.6.5"
17
+ #define RJB_VERSION "1.6.6"
18
18
 
19
19
  #include "ruby.h"
20
20
  #include "extconf.h"
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.6.5
4
+ version: 1.6.6
5
5
  platform: ruby
6
6
  authors:
7
7
  - arton
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2022-04-08 00:00:00.000000000 Z
11
+ date: 2022-12-25 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.erb
@@ -71,7 +72,7 @@ files:
71
72
  - test/test_osxload.rb
72
73
  - test/test_unload.rb
73
74
  - test/x.rb
74
- homepage: http://www.artonx.org/collabo/backyard/?RubyJavaBridge
75
+ homepage: https://www.artonx.org/collabo/backyard/?RubyJavaBridge
75
76
  licenses:
76
77
  - LGPL-2.1-or-later
77
78
  metadata: {}
@@ -90,9 +91,11 @@ required_rubygems_version: !ruby/object:Gem::Requirement
90
91
  - !ruby/object:Gem::Version
91
92
  version: '0'
92
93
  requirements:
94
+ - none
93
95
  - JDK 5.0
94
- rubygems_version: 3.3.3
96
+ rubygems_version: 3.3.7
95
97
  signing_key:
96
98
  specification_version: 4
97
- summary: Ruby Java Bridge
98
- test_files: []
99
+ summary: Ruby Java bridge
100
+ test_files:
101
+ - 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