rjb 1.6.5 → 1.6.7

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: a210706c728d5d00f5c4c34fc0b4309404ec5303a5b7cd6d52264d0c0e838be5
4
+ data.tar.gz: 49968075c5e92ccd2083d1943fd95dd5856b8cc6a1c2372f48f4284ce9db7ac2
5
5
  SHA512:
6
- metadata.gz: 45803a59a2f1b0566951f20730a01f0a38b9c0c73f935b2e8a7f693a485f735bb9c67bd672e04d03e51c23fa7588a4a2e874bc29820ae7e9b98e9eb3fc0cffbf
7
- data.tar.gz: 40991859104df82352635605f84c2c28b5fb44c8fcb4c8475b9d1f9f0733ea193e9cc0405d9d80673d913d8df1c0933c02dec3126e3ed217e932b0ceeaf02656
6
+ metadata.gz: 811023ee8c809b9221cf3e7c802d0697bc2bec4c8491d832fef925e65005c355967bb8429e4f3bcf195856e11a6fb46fbdb89469784746260a9d8a07d6c728fd
7
+ data.tar.gz: 14ac35e925c6a0bdb09cc8ace7f1f2157e617cdafef5c64689fcb2da76bd67bfceee0638023240da35d34f51dfa9131ed508ff7df6f05346cdf8594ca09a51e2
data/ChangeLog CHANGED
@@ -1,3 +1,15 @@
1
+ Wed Feb 15 2023 geekontheway
2
+ Fix aarch64 checking exception
3
+ * ext/load.c
4
+ put defined directive on one line
5
+ * ext/rjb.c
6
+ RJB_VERSION -> 1.6.7 (for Gem)
7
+ Mon Dec 26 2022 chaadow
8
+ ruby 3.2 support
9
+ * ext/extconf.rb
10
+ call File.exist? instead of deprecated File.exists?
11
+ * ext/rjb.c
12
+ RJB_VERSION -> 1.6.6 (for Gem)
1
13
  Fri Apr 8 2022 arton
2
14
  fix #85
3
15
  * 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 320
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,7 @@
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__) || defined(__aarch64__) || defined(__ARMv8__) || defined(__ARMv8_A__)
86
86
  #define ARCH "aarch64"
87
87
  #undef JVM_TYPE
88
88
  #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.7"
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.7
5
5
  platform: ruby
6
6
  authors:
7
7
  - arton
8
- autorequire:
8
+ autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2022-04-08 00:00:00.000000000 Z
11
+ date: 2023-02-15 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,11 +72,11 @@ 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: {}
78
- post_install_message:
79
+ post_install_message:
79
80
  rdoc_options: []
80
81
  require_paths:
81
82
  - lib
@@ -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
95
- signing_key:
96
+ rubygems_version: 3.4.2
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