interscript 3.0.0 → 3.0.1
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 +4 -4
- data/lib/interscript/ml/imf.rb +1 -1
- data/lib/interscript/ml/provisioning.rb +8 -6
- data/lib/interscript/version.rb +1 -1
- 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: 420389cb34a86a2f6b94abf9bd55367da2a92bea023426d45132e30cd14bb90d
|
|
4
|
+
data.tar.gz: 85dde2d6ac474fecfcb7cb27683f164727cb9aa83fb4c68b9c025e3437a2ec32
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 86d6895fdefc229d99a4eb993d3aa32380dc72515d5fb8dce8757b5b636ffb1b39b0995e8592f6be27a0cbe84bebafff3e7265019dfc059089da08bec44dd39d
|
|
7
|
+
data.tar.gz: da833c4f4aa295e7f2d6c557908196c85eef26206bbd2ce89904a04ca5ca7eb0590d4b03bfb9b85334b07716f0617012b0117cb9e8234b37c25cd2820ee72b5a
|
data/lib/interscript/ml/imf.rb
CHANGED
|
@@ -14,7 +14,7 @@ module Interscript::ML
|
|
|
14
14
|
EOS_ID = 1
|
|
15
15
|
UNK_ID = 2
|
|
16
16
|
|
|
17
|
-
DEFAULT_INDEX_URL = "https://github.com/interscript/interscript-
|
|
17
|
+
DEFAULT_INDEX_URL = "https://github.com/interscript/interscript-models/releases/download/index-v8/models-index.yaml"
|
|
18
18
|
|
|
19
19
|
class FormatError < StandardError; end
|
|
20
20
|
class RegistryError < StandardError; end
|
|
@@ -27,12 +27,7 @@ module Interscript::ML
|
|
|
27
27
|
# we use it to store the Secryst data we need. Otherwise, we try the following
|
|
28
28
|
# paths:
|
|
29
29
|
|
|
30
|
-
possible_paths =
|
|
31
|
-
"/var/lib/secryst",
|
|
32
|
-
"/usr/local/share/secryst",
|
|
33
|
-
"/usr/share/secryst",
|
|
34
|
-
File.join(Dir.home, ".local/share/secryst")
|
|
35
|
-
]
|
|
30
|
+
possible_paths = candidate_paths
|
|
36
31
|
|
|
37
32
|
# We find the first writable path to become the primary one. The remaining
|
|
38
33
|
# ones will be used read-only if they exist
|
|
@@ -95,6 +90,13 @@ module Interscript::ML
|
|
|
95
90
|
@preload_models.each { |i| locate(i) }
|
|
96
91
|
end
|
|
97
92
|
|
|
93
|
+
def self.candidate_paths
|
|
94
|
+
[
|
|
95
|
+
File.join(Dir.home, ".local/share/interscript-ml"),
|
|
96
|
+
File.join(Dir.home, ".local/share/secryst") # legacy fallback
|
|
97
|
+
]
|
|
98
|
+
end
|
|
99
|
+
|
|
98
100
|
def locate(name)
|
|
99
101
|
# Shortcut this if user gave a filename.
|
|
100
102
|
return name if name =~ %r{[.\\/]}
|
data/lib/interscript/version.rb
CHANGED