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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: efb1833a4727a1b9012d07056b6cc440dc562a49
4
- data.tar.gz: 2dd0ec5ed6ae09d34ce14aea3e007165198e5d28
3
+ metadata.gz: 0b2b8d4c1d09e608e53211fe45ceef1ae2db4f1c
4
+ data.tar.gz: 44744fcc43e9bda18008e0693797d7571f272d2c
5
5
  SHA512:
6
- metadata.gz: cd9d511067b530fbd7c9c4f9295704f9d8eef1800b58bc705131fe29af47ace6149ee9dc44e35bebaa1d8d4bb96bdad899cee3f45707873513a2529b01c37f1c
7
- data.tar.gz: eb42097c68c1e36f703f3cc80e836ab0ac8b319ac47f1ab19b0810439e5e2325f9acd23914bb27445f41301b5abe2357f0225ddd28406d7589f38bf3d218a91b
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
@@ -188,6 +188,7 @@ module WorkflowRESTHelpers
188
188
 
189
189
  begin
190
190
  job.fork
191
+ job.grace
191
192
 
192
193
  job_url = to(File.join("/", workflow.to_s, task, job.name))
193
194
  job_url += "?_format=#{@format}" if @format
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.21
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-06-09 00:00:00.000000000 Z
11
+ date: 2014-07-10 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rake