glycobook 0.1.0.alpha.27-java → 0.1.0.alpha.28-java
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/jar.yml +18 -0
- data/lib/wurcsverify.rb +56 -17
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 0ab0fb823f5ea6b6b7bab5498ec7dacba8eb712eee803cfd42812b53e78c6e3b
|
4
|
+
data.tar.gz: 3b914b777654781379056d9a35c94278d2810c90db16553495632c4da6f21d8e
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: f6f8cd1f6966ff7b4410787203641aa756b5f31a63355329679530ed40f597e8a319dbf37f52d1f1442110e7e0938c437f576f7a552d971bc9fb50c1be97ce17
|
7
|
+
data.tar.gz: 2438c0d81e3e965937e4f48b3cd8d047f0dbdbeb052f83eaaa05edc5abda3bb07a36b10e69eba3c796fd0e3c6128c73e36755a00db74d663c7f407727be74b35
|
data/jar.yml
CHANGED
@@ -24,6 +24,24 @@ libraries:
|
|
24
24
|
url: "https://gitlab.com/glycoinfo/wurcsframework/-/package_files/87428121/download"
|
25
25
|
file: "jar/wurcsframework-1.2.14.jar"
|
26
26
|
|
27
|
+
- name: wurcsframework-1.2.15
|
28
|
+
info: "https://gitlab.com/glycoinfo/wurcsframework"
|
29
|
+
version: 1.2.15
|
30
|
+
url: "https://gitlab.com/glycoinfo/wurcsframework/-/package_files/110116881/download"
|
31
|
+
file: "jar/wurcsframework-1.2.15.jar"
|
32
|
+
|
33
|
+
- name: wurcsframework-1.2.16
|
34
|
+
info: "https://gitlab.com/glycoinfo/wurcsframework"
|
35
|
+
version: 1.2.16
|
36
|
+
url: "https://gitlab.com/glycoinfo/wurcsframework/-/package_files/119628420/download"
|
37
|
+
file: "jar/wurcsframework-1.2.16.jar"
|
38
|
+
|
39
|
+
- name: wurcsframework-1.3.0
|
40
|
+
info: "https://gitlab.com/glycoinfo/wurcsframework"
|
41
|
+
version: 1.3.0
|
42
|
+
url: "https://gitlab.com/glycoinfo/wurcsframework/-/package_files/125589992/download"
|
43
|
+
file: "jar/wurcsframework-1.3.0.jar"
|
44
|
+
|
27
45
|
- name: wurcsframework-1.3.1
|
28
46
|
info: "https://gitlab.com/glycoinfo/wurcsframework"
|
29
47
|
version: 1.3.1
|
data/lib/wurcsverify.rb
CHANGED
@@ -10,11 +10,24 @@ java_import 'java.net.URLClassLoader'
|
|
10
10
|
java_import 'org.slf4j.Logger'
|
11
11
|
|
12
12
|
class WurcsVerify
|
13
|
+
|
14
|
+
@@gtc_version = "1.2.14"
|
15
|
+
@@v1215 = "1.2.15"
|
16
|
+
@@v1216 = "1.2.16"
|
17
|
+
@@v130 = "1.3.0"
|
18
|
+
@@v131 = "1.3.1"
|
19
|
+
|
13
20
|
def initialize
|
14
|
-
@wfw_glytoucan_loader = self.create_custom_classloader("jar/wurcsframework-
|
15
|
-
@
|
21
|
+
@wfw_glytoucan_loader = self.create_custom_classloader("jar/wurcsframework-" + @@gtc_version + ".jar")
|
22
|
+
@wfw_v131_loader = self.create_custom_classloader("jar/wurcsframework-" + @@v131 + ".jar")
|
23
|
+
@wfw_v130_loader = self.create_custom_classloader("jar/wurcsframework-" + @@v130 + ".jar")
|
24
|
+
@wfw_v1216_loader = self.create_custom_classloader("jar/wurcsframework-" + @@v1216 + ".jar")
|
25
|
+
@wfw_v1215_loader = self.create_custom_classloader("jar/wurcsframework-" + @@v1215 + ".jar")
|
16
26
|
@validator_glytoucan = java.lang.Class.forName("org.glycoinfo.WURCSFramework.util.validation.WURCSValidator",true,@wfw_glytoucan_loader)
|
17
|
-
@
|
27
|
+
@validator_v131 = java.lang.Class.forName("org.glycoinfo.WURCSFramework.util.validation.WURCSValidator", true, @wfw_v131_loader)
|
28
|
+
@validator_v130 = java.lang.Class.forName("org.glycoinfo.WURCSFramework.util.validation.WURCSValidator", true, @wfw_v130_loader)
|
29
|
+
@validator_v1216 = java.lang.Class.forName("org.glycoinfo.WURCSFramework.util.validation.WURCSValidator", true, @wfw_v1216_loader)
|
30
|
+
@validator_v1215 = java.lang.Class.forName("org.glycoinfo.WURCSFramework.util.validation.WURCSValidator", true, @wfw_v1215_loader)
|
18
31
|
end
|
19
32
|
|
20
33
|
def create_custom_classloader(jar_path)
|
@@ -23,34 +36,60 @@ class WurcsVerify
|
|
23
36
|
URLClassLoader.newInstance([url].to_java(URL), java.lang.Thread.currentThread.getContextClassLoader)
|
24
37
|
end
|
25
38
|
|
26
|
-
def validatorVerify(w)
|
39
|
+
def validatorVerify(w,style)
|
27
40
|
v_glytoucan = @validator_glytoucan.new_instance
|
28
41
|
v_glytoucan.start(w)
|
29
42
|
|
30
|
-
v_131 = @
|
43
|
+
v_131 = @validator_v131.new_instance
|
31
44
|
v_131.start(w)
|
32
45
|
|
33
|
-
|
34
|
-
|
46
|
+
v_130 = @validator_v130.new_instance
|
47
|
+
v_130.start(w)
|
48
|
+
|
49
|
+
v_1216 = @validator_v1216.new_instance
|
50
|
+
v_1216.start(w)
|
51
|
+
|
52
|
+
v_1215 = @validator_v1215.new_instance
|
53
|
+
v_1215.start(w)
|
54
|
+
|
55
|
+
if (style == "v3")
|
56
|
+
ret = {@@gtc_version => self.dovalidatorv3(v_glytoucan,@@gtc_version),
|
57
|
+
@@v131 => self.dovalidatorv3(v_131, @@v131),
|
58
|
+
@@v130 => self.dovalidatorv3(v_130, @@v130),
|
59
|
+
@@v1215 => self.dovalidatorv3(v_1215, @@v1215),
|
60
|
+
@@v1216 => self.dovalidatorv3(v_1216, @@v1216)
|
61
|
+
}
|
62
|
+
elsif (style == "wfw")
|
63
|
+
ret = {@@gtc_version => self.dovalidator(v_glytoucan,@@gtc_version),
|
64
|
+
@@v131 => self.dovalidator(v_131, @@v131),
|
65
|
+
@@v130 => self.dovalidator(v_130, @@v130),
|
66
|
+
@@v1215 => self.dovalidator(v_1215, @@v1215),
|
67
|
+
@@v1216 => self.dovalidator(v_1216, @@v1216)
|
68
|
+
}
|
69
|
+
else
|
70
|
+
pp "strange second paramerters"
|
71
|
+
end
|
35
72
|
return ret
|
36
73
|
end
|
37
74
|
|
38
|
-
def
|
39
|
-
|
75
|
+
def dovalidatorv3(validator,version)
|
76
|
+
if validator.getReport().respond_to?(:isStandardized)
|
77
|
+
flag = validator.getReport().isStandardized()
|
78
|
+
else
|
79
|
+
flag = "undef"
|
80
|
+
end
|
81
|
+
reports = { "VALIDATOR" => ["WURCSFramework-" + version],
|
40
82
|
"WARNING" => validator.getReport().hasWarning(),
|
83
|
+
|
84
|
+
"FLAG" => flag,
|
41
85
|
"ERROR" => validator.getReport().hasError(),
|
42
86
|
"UNVERIFIABLE" => validator.getReport().hasUnverifiable() }
|
43
87
|
return {"message" => reports,
|
44
88
|
"StandardWURCS" => validator.getReport().standard_string(),
|
45
89
|
"RESULTS" => validator.getReport().getResults() }
|
46
90
|
end
|
47
|
-
def
|
48
|
-
|
49
|
-
|
50
|
-
"ERROR" => validator.getReport().hasError(),
|
51
|
-
"UNVERIFIABLE" => false }
|
52
|
-
return {"message" => reports,
|
53
|
-
"StandardWURCS" => validator.getReport().standard_string(),
|
54
|
-
"RESULTS" => validator.getReport().getResults() }
|
91
|
+
def dovalidator(validator,version)
|
92
|
+
return {"VALIDATOR" => ["WURCSFramework-" + version],
|
93
|
+
"Report" => validator.getReport().getResults()}
|
55
94
|
end
|
56
95
|
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: glycobook
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.0.alpha.
|
4
|
+
version: 0.1.0.alpha.28
|
5
5
|
platform: java
|
6
6
|
authors:
|
7
7
|
- Akihiro Fujita
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2024-05-
|
11
|
+
date: 2024-05-21 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
requirement: !ruby/object:Gem::Requirement
|