rbbt-util 5.21.111 → 5.21.112
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/rbbt/knowledge_base/registry.rb +2 -4
- metadata +2 -2
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA1:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: ab22a14dd533bbe47f20ee1c4c72efc7a6b41003
|
|
4
|
+
data.tar.gz: 75b85c1fc2b3297b002df6ab02a3347b68f58a8c
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: cd02e01845df02b2b6f087c7b8247e82eecb32ed37c718514f7a18e89a027a8e0e61fd23d31e336bf58694c5d6423caab69083b8c7be9753f5f37262efc26bc4
|
|
7
|
+
data.tar.gz: 329cb2523fd19d1e74a229175f8784389f85a4fe8f9bb2fd3117c78df128d2cccf81448d322f1a0b34f07223637c74e1ccc55ccabc3b9baf1ee5aea2c83a626d
|
|
@@ -40,6 +40,7 @@ class KnowledgeBase
|
|
|
40
40
|
|
|
41
41
|
def get_index(name, options = {})
|
|
42
42
|
name = name.to_s
|
|
43
|
+
options[:organism] ||= options[:namespace] ||= self.namespace unless self.namespace.nil?
|
|
43
44
|
@indices[[name, options]] ||=
|
|
44
45
|
begin
|
|
45
46
|
if options.empty?
|
|
@@ -52,8 +53,6 @@ class KnowledgeBase
|
|
|
52
53
|
Persist.memory("Index:" << [key, dir] * "@") do
|
|
53
54
|
options = options.dup
|
|
54
55
|
|
|
55
|
-
options[:organism] ||= options[:namespace] ||= self.namespace unless self.namespace.nil?
|
|
56
|
-
|
|
57
56
|
persist_dir = dir
|
|
58
57
|
persist_file = persist_dir[key].find
|
|
59
58
|
file, registered_options = registry[name]
|
|
@@ -91,6 +90,7 @@ class KnowledgeBase
|
|
|
91
90
|
def get_database(name, options = {})
|
|
92
91
|
name = name.to_s
|
|
93
92
|
|
|
93
|
+
options[:organism] ||= options[:namespace] ||= self.namespace unless self.namespace.nil?
|
|
94
94
|
@databases[[name, options]] ||=
|
|
95
95
|
begin
|
|
96
96
|
fp = Misc.fingerprint([name,options])
|
|
@@ -106,8 +106,6 @@ class KnowledgeBase
|
|
|
106
106
|
Persist.memory("Database:" << [key, dir] * "@") do
|
|
107
107
|
options = options.dup
|
|
108
108
|
|
|
109
|
-
options[:organism] ||= options[:namespace] ||= self.namespace unless self.namespace.nil?
|
|
110
|
-
|
|
111
109
|
persist_dir = dir
|
|
112
110
|
persist_file = persist_dir[key].find
|
|
113
111
|
file, registered_options = registry[name]
|
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: rbbt-util
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 5.21.
|
|
4
|
+
version: 5.21.112
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Miguel Vazquez
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: bin
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date: 2017-12-
|
|
11
|
+
date: 2017-12-07 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: rake
|