rbbt-util 5.9.10 → 5.9.11
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/tsv/util.rb +1 -1
- data/lib/rbbt/workflow.rb +13 -11
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: a1719588dd7237bf4f50aafe3d4f3c21f47aac16
|
4
|
+
data.tar.gz: 02a2fec2fa1740b9b0044b987a31da9e8dface6c
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 4c691bb91ad6e5ebd15c581aa4ec3bef4672530bdbc58665a2fd89aaa3aa3bfde0afae59a680d9ddcf950aa6b8bdc5d8863812c27f5a9d6c3e8f6712daaa690b
|
7
|
+
data.tar.gz: e5b7263bbbb493c84ecfde187e7e4fdaeea8155f427b51fcef4ab2e4814c2b8172f80c0ae6974154d00d37132f6e975eac6d5e3d99b4d37c76dfcbfc783d6766
|
data/lib/rbbt/tsv/util.rb
CHANGED
@@ -100,7 +100,7 @@ module TSV
|
|
100
100
|
file.rewind if file.respond_to?(:rewind) and file.eof?
|
101
101
|
file
|
102
102
|
when String
|
103
|
-
raise "Could not open file given by String: #{Misc.fingerprint file}" unless File.exists? file
|
103
|
+
raise "Could not open file given by String: #{Misc.fingerprint file}" unless Open.remote?(file) or File.exists? file
|
104
104
|
Open.open(file, open_options)
|
105
105
|
else
|
106
106
|
raise "Cannot get stream from: #{file.inspect}"
|
data/lib/rbbt/workflow.rb
CHANGED
@@ -18,7 +18,7 @@ module Workflow
|
|
18
18
|
|
19
19
|
#{{{ WORKFLOW MANAGEMENT
|
20
20
|
class << self
|
21
|
-
attr_accessor :workflows, :autoinstall
|
21
|
+
attr_accessor :workflows, :autoinstall, :workflow_dir
|
22
22
|
end
|
23
23
|
|
24
24
|
self.workflows = []
|
@@ -52,16 +52,18 @@ module Workflow
|
|
52
52
|
end
|
53
53
|
|
54
54
|
def self.workflow_dir
|
55
|
-
|
56
|
-
|
57
|
-
|
58
|
-
|
59
|
-
|
60
|
-
|
61
|
-
|
62
|
-
|
63
|
-
|
64
|
-
|
55
|
+
@workflow_dir ||= begin
|
56
|
+
case
|
57
|
+
when (defined?(Rbbt) and Rbbt.etc.workflow_dir.exists?)
|
58
|
+
dir = Rbbt.etc.workflow_dir.read.strip
|
59
|
+
Path.setup(dir)
|
60
|
+
when defined?(Rbbt)
|
61
|
+
Rbbt.workflows
|
62
|
+
else
|
63
|
+
dir = File.join(ENV['HOME'], '.workflows')
|
64
|
+
Path.setup(dir)
|
65
|
+
end
|
66
|
+
end
|
65
67
|
end
|
66
68
|
|
67
69
|
def self.require_local_workflow(wf_name)
|