rbbt-rest 1.3.21 → 1.3.22
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/rbbt/rest/knowledge_base/helpers.rb +2 -2
- data/lib/rbbt/rest/workflow/jobs.rb +1 -0
- 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: 0b2b8d4c1d09e608e53211fe45ceef1ae2db4f1c
|
4
|
+
data.tar.gz: 44744fcc43e9bda18008e0693797d7571f272d2c
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 0032457f3632bc63b141b1833186913fb45a858af537fa63965526f62b552c86a3dc74b6367b324a63942ceae40df48dc6699e94440a07dd64ace04175b50c82
|
7
|
+
data.tar.gz: 26c4c0e7bf0d00f74bbf5b6d23ac3081e4562288d328d1586cb54a34eb0f2b55e732f9ce5a24f166fcb8688ccf9c25fde8c53a3b6d2795363d587b1dba7db9c7
|
@@ -36,6 +36,7 @@ module KnowledgeBaseRESTHelpers
|
|
36
36
|
end
|
37
37
|
|
38
38
|
def user_kb(user)
|
39
|
+
user = "guest" if user.nil?
|
39
40
|
@@user_knowledge_bases ||= IndiferentHash.setup({})
|
40
41
|
@@user_knowledge_bases[user] ||= begin
|
41
42
|
kb = KnowledgeBase.new File.join(KnowledgeBaseRESTHelpers.knowledge_base_dir, File.join('user', user)), "Hsa/jan2013"
|
@@ -62,7 +63,7 @@ module KnowledgeBaseRESTHelpers
|
|
62
63
|
KnowledgeBase.new name
|
63
64
|
when KnowledgeBase.registry.include?(name)
|
64
65
|
KnowledgeBase.registry[name]
|
65
|
-
when Study.studies.include?(name)
|
66
|
+
when (defined? Study and Study.studies.include?(name))
|
66
67
|
Study.setup(name).knowledge_base
|
67
68
|
when name.to_s == "user"
|
68
69
|
user_kb(user)
|
@@ -73,5 +74,4 @@ module KnowledgeBaseRESTHelpers
|
|
73
74
|
namespace ? kb.version(namespace) : kb
|
74
75
|
end
|
75
76
|
end
|
76
|
-
|
77
77
|
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: rbbt-rest
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.3.
|
4
|
+
version: 1.3.22
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Miguel Vazquez
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2014-
|
11
|
+
date: 2014-07-10 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rake
|