sushi_fabric 0.9.5 → 0.9.6
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/sushi_fabric/sushiApp.rb +8 -4
- data/lib/sushi_fabric/version.rb +1 -1
- 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: 326d811109da5893c3ac6ea35f946f18849e1bb4
|
4
|
+
data.tar.gz: adce9f2299a8b16217cfd715f82ad0f894f3b0d9
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 9369616e25ddabc40f335f5490bb925591cb52f642e6326cccfbe2205bc807be81983e1f530993ae0256488f3903fc3b3c47e09a2a6f0d261e93e475f712921e
|
7
|
+
data.tar.gz: fedae1c8626fb161831a5e2989c9aeab0cccf54459d09996339f1005322908a4a368326804fec7cee52639fd43272f71d3703de4180640ad3aebe52514ea04a8
|
@@ -1,6 +1,6 @@
|
|
1
1
|
#!/usr/bin/env ruby
|
2
2
|
# encoding: utf-8
|
3
|
-
# Version = '
|
3
|
+
# Version = '20200409-110502'
|
4
4
|
|
5
5
|
require 'csv'
|
6
6
|
require 'fileutils'
|
@@ -391,8 +391,13 @@ class SushiApp
|
|
391
391
|
end
|
392
392
|
def check_latest_module_version(mod)
|
393
393
|
command_out = %x[ bash -lc "source #{@module_source}; module whatis #{mod} 2>&1" ]
|
394
|
-
latest_mod =
|
395
|
-
|
394
|
+
latest_mod = nil
|
395
|
+
command_out.split("\n").each do |line|
|
396
|
+
if line =~ /#{mod}/
|
397
|
+
latest_mod = line.split.first
|
398
|
+
break
|
399
|
+
end
|
400
|
+
end
|
396
401
|
latest_mod
|
397
402
|
end
|
398
403
|
def job_header
|
@@ -416,7 +421,6 @@ class SushiApp
|
|
416
421
|
modules_with_version = @modules.map{|mod| check_latest_module_version(mod)}
|
417
422
|
modules_with_version.compact!
|
418
423
|
"module add #{modules_with_version.join(' ')}"
|
419
|
-
#"module add #{@modules.join(' ')}"
|
420
424
|
else
|
421
425
|
""
|
422
426
|
end
|
data/lib/sushi_fabric/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: sushi_fabric
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.9.
|
4
|
+
version: 0.9.6
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Functional Genomics Center Zurich
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2020-04-09 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|