glycobook 0.1.0.alpha.11-java → 0.1.0.alpha.13-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: 81e4afed9860fe7eeae27e6162a98227ab0fe7606bc5daed5a253d590478ef81
4
- data.tar.gz: 950712b122450887ef79d6e82f31c6f4b3ab80f55bafb052fda959f9d256765f
3
+ metadata.gz: b6597991ee22be9f80490074af766e649928da064481acc7cec61696beda9212
4
+ data.tar.gz: 84ff7fb0d1e34c14b2ba60e42870e96aa01080a9bd4aa96e9ac18610c93eadb2
5
5
  SHA512:
6
- metadata.gz: 2ed1e6e19e2e5408b70c2a7b12a00046250c1ced29e601034e031e8456a8f5fa7173ba550e23e8f844cddd99b34a7a53b45e4f86439d74ba209135a76c4a7b7c
7
- data.tar.gz: a3f62cbfab0ba29c8d0a0bdf323b97b087591e0db68ceda7b80e14a7d64ed019b3e2da519a59ad64fda8cf6611a133b48f358165402cf003817a08871e34e935
6
+ metadata.gz: 3d97a3ebcd70fac044adc0d16989da2f9ee8042f4d65b4f18977cd91df7e4216a724a6a9de34211ac22837b796ae69b6952589624060a392faae21b72d471316
7
+ data.tar.gz: 66c04e3a9fd53e7d5c5ae219664c0100b2fe18e7d3b31f5deb243d8abcca109c111dabbabfa58964af819c633b2a4caa0bf0d7355b100aca8d655c7881aaf587
data/jar.yml CHANGED
@@ -12,9 +12,9 @@ list:
12
12
  file: "jar/wurcsframework-1.0.1.jar"
13
13
  - url: "https://repo1.maven.org/maven2/org/slf4j/slf4j-api/2.0.7/slf4j-api-2.0.7.jar"
14
14
  file: "jar/slf4j-api.jar"
15
- - url: "https://gitlab.glyco.info/glycosmos/subsumption/subsumption/-/package_files/238/download"
16
- file: "jar/subsumption.jar"
17
15
  - url: "https://gitlab.glyco.info/glycosmos/subsumption/subsumption/-/package_files/567/download"
16
+ file: "jar/subsumption.jar"
17
+ - url: "https://gitlab.glyco.info/glycosmos/glytoucangroup/archetype/lib/-/package_files/489/download"
18
18
  file: "jar/archetype.jar"
19
19
  - url: "https://gitlab.com/glycoinfo/glycanformatconverter/-/package_files/81149971/download"
20
20
  file: "jar/glycanformatconverter.jar"
@@ -0,0 +1,23 @@
1
+ require 'java'
2
+ require 'logger'
3
+ require_relative '../jar/slf4j-api.jar'
4
+ java_import 'org.slf4j.LoggerFactory'
5
+
6
+ class JRubySLF4JLogger < Logger
7
+ def initialize(name)
8
+ super(STDOUT) # STDOUTはダミー、実際のログはSLF4Jを通じて行われる
9
+ @java_logger = LoggerFactory.getLogger(name)
10
+ end
11
+
12
+ def add(severity, message = nil, progname = nil)
13
+ # Rubyのログレベルに応じてJavaのSLF4Jメソッドを呼び出す
14
+ case severity
15
+ when Logger::INFO
16
+ @java_logger.info(message)
17
+ # 他のログレベルについても同様に実装
18
+ end
19
+ end
20
+ end
21
+
22
+ logger = JRubySLF4JLogger.new("MyLogger")
23
+ logger.info("This is an info message from JRuby with SLF4J")
@@ -57,7 +57,7 @@ class Subsumption
57
57
  end
58
58
  end
59
59
 
60
- java_import 'org.glycoinfo.subsumption.generator.BaseComposition'
60
+ java_import 'org.glycoinfo.subsumption.generator.BaseCompositionWithoutLinkage'
61
61
  def baseComposition(w)
62
62
  g = nil
63
63
  begin
data/lib/glycobook.rb CHANGED
@@ -1,6 +1,7 @@
1
1
  module GlycoBook
2
2
 
3
3
  end
4
+ require 'glycobook/Loggerinit'
4
5
  require 'glycobook/glycan_builder'
5
6
  require 'glycobook/glycan_format_converter'
6
7
  require 'glycobook/gly_tou_can'
metadata CHANGED
@@ -1,24 +1,24 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: glycobook
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.0.alpha.11
4
+ version: 0.1.0.alpha.13
5
5
  platform: java
6
6
  authors:
7
7
  - Akihiro Fujita
8
- autorequire:
8
+ autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
11
  date: 2023-11-15 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
- name: java
15
14
  requirement: !ruby/object:Gem::Requirement
16
15
  requirements:
17
16
  - - "~>"
18
17
  - !ruby/object:Gem::Version
19
18
  version: 0.0.2
20
- type: :runtime
19
+ name: java
21
20
  prerelease: false
21
+ type: :runtime
22
22
  version_requirements: !ruby/object:Gem::Requirement
23
23
  requirements:
24
24
  - - "~>"
@@ -34,6 +34,7 @@ files:
34
34
  - jar.yml
35
35
  - lib/bookinit.rb
36
36
  - lib/glycobook.rb
37
+ - lib/glycobook/Loggerinit.rb
37
38
  - lib/glycobook/gly_tou_can.rb
38
39
  - lib/glycobook/glycan_builder.rb
39
40
  - lib/glycobook/glycan_format_converter.rb
@@ -47,7 +48,7 @@ metadata:
47
48
  source_code_uri: https://github.com/akihirof0005/glycobook
48
49
  homepage_uri: https://github.com/akihirof0005/glycobook/blob/main/README.md
49
50
  changelog_uri: https://github.com/akihirof0005/glycobooks
50
- post_install_message:
51
+ post_install_message:
51
52
  rdoc_options: []
52
53
  require_paths:
53
54
  - lib
@@ -62,8 +63,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
62
63
  - !ruby/object:Gem::Version
63
64
  version: 1.3.1
64
65
  requirements: []
65
- rubygems_version: 3.0.3.1
66
- signing_key:
66
+ rubygems_version: 3.2.33
67
+ signing_key:
67
68
  specification_version: 4
68
69
  summary: Glycobook is a JRuby library for glycaninformatics
69
70
  test_files: []