glycobook 0.1.0.alpha.26-java → 0.1.0.alpha.27-java
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/wurcsverify.rb +9 -9
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 6272e65de448b555e008b0cf21a3669e8f32a224f655767be5e1a1f1eb3ceeec
|
4
|
+
data.tar.gz: b2592c9d2276fe74935a3b7344540af16c97c08137d54129d0e340da0b17fcc3
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: e35c8a97d6e542603d803810c03f67a7357fda07f14d8d62fc3d34fc0d0728b30431d39110db5e2dd68383e8f4c756be64821f79bf3160c1e27fd634a9b2d38d
|
7
|
+
data.tar.gz: a9bc9acdb39e2c8081e214339c66559f5c8cc14f35e0e3dd542df97342b8a4318e94acc67062d290c19158b59a183efef4b7abbc1357c1cf6155fe8a0831b410
|
data/lib/wurcsverify.rb
CHANGED
@@ -11,10 +11,10 @@ java_import 'org.slf4j.Logger'
|
|
11
11
|
|
12
12
|
class WurcsVerify
|
13
13
|
def initialize
|
14
|
-
@
|
15
|
-
@
|
16
|
-
@
|
17
|
-
@
|
14
|
+
@wfw_glytoucan_loader = self.create_custom_classloader("jar/wurcsframework-1.2.14.jar")
|
15
|
+
@wfw_131_loader = self.create_custom_classloader("jar/wurcsframework-1.3.1.jar")
|
16
|
+
@validator_glytoucan = java.lang.Class.forName("org.glycoinfo.WURCSFramework.util.validation.WURCSValidator",true,@wfw_glytoucan_loader)
|
17
|
+
@validator_131 = java.lang.Class.forName("org.glycoinfo.WURCSFramework.util.validation.WURCSValidator", true, @wfw_131_loader)
|
18
18
|
end
|
19
19
|
|
20
20
|
def create_custom_classloader(jar_path)
|
@@ -24,13 +24,13 @@ class WurcsVerify
|
|
24
24
|
end
|
25
25
|
|
26
26
|
def validatorVerify(w)
|
27
|
-
|
28
|
-
|
27
|
+
v_glytoucan = @validator_glytoucan.new_instance
|
28
|
+
v_glytoucan.start(w)
|
29
29
|
|
30
|
-
|
31
|
-
|
30
|
+
v_131 = @validator_131.new_instance
|
31
|
+
v_131.start(w)
|
32
32
|
|
33
|
-
ret = {"1.2.14" => self.dovalidator(
|
33
|
+
ret = {"1.2.14" => self.dovalidator(v_glytoucan),
|
34
34
|
"1.3.1" => self.dovalidator131(v_131) }
|
35
35
|
return ret
|
36
36
|
end
|