hellojava 0.0.1-java → 0.0.2-java

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: ee74609312914eb653568ea4b13a5f5c83f62584f2b0da524fee0c8bdbe57986
4
- data.tar.gz: fd2e78b76f0290a4685a2aef05fb3ccb555dbcf5889b529de23516fb8085cc5a
3
+ metadata.gz: d0c2ffdb6d2410fbf8dd873ed900d3fc7039fe7b8b049311a2b534e6fa485ed2
4
+ data.tar.gz: 9123d1fd37b94823905cf7bd1c3f48202e57b64a984c7801e8f0043882b87a60
5
5
  SHA512:
6
- metadata.gz: 6f2f6e0bfa1f59bf8181d70ab49e5bc755b5c0470eab2f4722f9db56154fde91b40a82ec0ac266563658cfc6cafb5bbd4ee44f72987254d113f6a89529cef9f1
7
- data.tar.gz: 6d6a684c4e14e257402cc7fa3728b532d6bf2c579c001ea90b7fc929837f99792e4ffca528f434d33e75ea7c937ea8ac995bbda973365ee10bfc3b0224480773
6
+ metadata.gz: 1d5d2c1a4cfdcdc7f9204700b7665b637e19f147b37407b76d156840e102289eb4edd3166eefc24f8277380f44d068f02a42c7a90b025a1552dcf8b1b7e624e6
7
+ data.tar.gz: 0f02ff2814a869a34f0c936fc7ba54a4cf84014f917198b8dc8395587ef19256b4831738b4b0b577070ea099d5c9b27013ef0723eff28563e4a071a3f896f615
data/CHANGELOG.md CHANGED
@@ -2,7 +2,12 @@
2
2
 
3
3
  ## Unreleased
4
4
 
5
- ## [0.0.1] - 2023-03-25
5
+ ## [0.0.2] - 2023-09-27
6
+
7
+ ### Added
8
+ - Add yardoc
9
+
10
+ ## [0.0.1] - 2023-09-05
6
11
 
7
12
  ### Fixed
8
13
  - fix first fixed.
data/Rakefile CHANGED
@@ -1,9 +1,6 @@
1
- require 'rake/javaextensiontask'
1
+ require 'rake/javaextensiontask'
2
2
 
3
- gemspec = Gem::Specification.load('hellojava.gemspec')
4
- Rake::JavaExtensionTask.new(name=gemspec.name, gem_spec=gemspec) do | ext |
5
- ext.source_version = '11'
6
- ext.target_version = '11'
3
+ Rake::JavaExtensionTask.new(name='hellojava') do | ext |
4
+ ext.release = '11'
7
5
  end
8
-
9
6
  task :default => [:compile]
data/lib/hellojava.rb CHANGED
@@ -5,17 +5,38 @@ java_import 'JavaCallTest'
5
5
  java_import 'Hoge'
6
6
 
7
7
  module HelloJavaLib
8
-
8
+ # Systemクラス使用
9
+ #
10
+ # @overload func_a
11
+ # @return [void]
12
+ # @example
13
+ # HelloJavaLib::func_a() => 'Hello, JRuby'
9
14
  def func_a()
10
15
  System.out.println("Hello, JRuby")
11
16
  end
17
+ # 標準クラス以外の使用
18
+ #
19
+ # @overload func_b
20
+ # @return [void]
21
+ # @example
22
+ # HelloJavaLib::func_b() => 'str1'
12
23
  def func_b()
13
24
  p JavaCallTest.str1
25
+ return
14
26
  end
27
+ # 戻り値がオブジェクトの場合
28
+ #
29
+ # @overload func_c(value1, value2)
30
+ # @param [int] value1 value1の値
31
+ # @param [int] value2 value2の値
32
+ # @return [void]
33
+ # @example
34
+ # HelloJavaLib::func_c(1, 2) => 3
15
35
  def func_c(value1, value2)
16
36
  hoge = Hoge.new
17
37
  calc = hoge.getCalc(value1, value2)
18
38
  p calc.add
39
+ return
19
40
  end
20
41
 
21
42
  module_function :func_a
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: hellojava
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.1
4
+ version: 0.0.2
5
5
  platform: java
6
6
  authors:
7
7
  - siranovel
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2023-09-02 00:00:00.000000000 Z
11
+ date: 2023-09-27 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  requirement: !ruby/object:Gem::Requirement
@@ -64,7 +64,6 @@ files:
64
64
  - ext/hellojava/Calc.java
65
65
  - ext/hellojava/Hoge.java
66
66
  - ext/hellojava/JavaCallTest.java
67
- - hellojava.gemspec
68
67
  - lib/hellojava.rb
69
68
  homepage: http://github.com/siranovel/stdy4act
70
69
  licenses:
data/hellojava.gemspec DELETED
@@ -1,19 +0,0 @@
1
- Gem::Specification.new do |s|
2
- s.name = 'hellojava'
3
- s.version = '0.0.1'
4
- s.date = '2023-09-02'
5
- s.summary = "hello jruby"
6
- s.description = "call from jruby to java."
7
- s.platform = 'java'
8
- s.authors = ["siranovel"]
9
- s.email = "siranovel@gmail.com"
10
- s.homepage = "http://github.com/siranovel/stdy4act"
11
- s.license = "MIT"
12
- s.files = ["LICENSE", "Gemfile", "CHANGELOG.md"]
13
- s.files += ["hellojava.gemspec"]
14
- s.files += Dir.glob("{lib,ext}/**/*")
15
- s.extensions = %w[Rakefile]
16
- s.add_development_dependency 'rake', '~> 12.3', '>= 12.3.3'
17
- s.add_development_dependency 'rake-compiler', '~> 1.2', '>= 1.2.5'
18
- end
19
-