sushi_fabric 1.2.0 → 1.2.1

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
  SHA256:
3
- metadata.gz: 2624e396ce9d663acbeb4dd22bfbd4463cba7c14699d6e171907517c2636bee7
4
- data.tar.gz: 8117911fa8b21fdc81bb1672b9c40f25ae383d22c7d496a964be55ac0703b272
3
+ metadata.gz: 4b09cd3b4d6a3357e0dcb22f20446c1bba615316d6aba33f13eb84608d4ffa25
4
+ data.tar.gz: 2f0ebf4ad1ac5df177df7371565da896eaebc9adea188ecbca6648c2339412c1
5
5
  SHA512:
6
- metadata.gz: 1be2262ff2a7180e0d110fd06d1d7c2ab8a38252e514dca4cae35c9a29b15010751ab1ce36509005a1628c107cdd90de9fa032290674600d734a066e7173d0c9
7
- data.tar.gz: f57ab1b10f1f382b68a7e517b499e46160d64046b9363e36f2d8f9c13b0b981e44e031c4674aa579252e45de9635672da36f3d9cb98e5b582bb801525aa031c6
6
+ metadata.gz: '0548d2078159ddd9c926663ec250bc1869ec02ea92b8e2689ffb048c731c982556f745e77f021b33b214ea568444f6096537b5b3aef0dcfc956276a13e20060f'
7
+ data.tar.gz: de17c3cad3cc3bf8f81e7d37f3bb65ca2135624d3efa5c235a48ba70c32a33d2bcc3ef1e9e6a52301da224c33adb05d82f6e5fb9a3379886602badf2f7aa60e1
@@ -1,6 +1,6 @@
1
1
  #!/usr/bin/env ruby
2
2
  # encoding: utf-8
3
- # Version = '20230404-145037'
3
+ # Version = '20230622-143640'
4
4
 
5
5
  require 'csv'
6
6
  require 'fileutils'
@@ -349,7 +349,7 @@ class SushiApp
349
349
  end
350
350
  def check_application_parameters
351
351
  if @required_params and (@required_params - @params.keys).empty?
352
- @output_params = @params.clone
352
+ @output_params = {"sushi_app" => self.class}.merge(@params.clone)
353
353
  end
354
354
  end
355
355
  def set_user_parameters
@@ -588,9 +588,8 @@ rm -rf #{@scratch_dir} || exit 1
588
588
  def save_parameters_as_tsv
589
589
  file_path = File.join(@scratch_result_dir, @parameter_file)
590
590
  CSV.open(file_path, 'w', :col_sep=>"\t") do |out|
591
- out << ["sushi_app", self.class.name]
592
591
  @output_params.each do |key, value|
593
- if @output_params[key, 'file_upload']
592
+ if @output_params[key, 'file_upload'] and !value.to_s.empty?
594
593
  uploaded_file_path = File.join(@result_dir, "uploaded", File.basename(value))
595
594
  out << [key, uploaded_file_path]
596
595
  @params[key] = uploaded_file_path
@@ -651,7 +650,7 @@ rm -rf #{@scratch_dir} || exit 1
651
650
  end
652
651
  def copy_uploaded_files
653
652
  if not @uploaded_files.empty?
654
- @uploaded_files.each do |file|
653
+ @uploaded_files.compact.select{|file| !file.empty?}.each do |file|
655
654
  FileUtils.cp(file, @uploaded_files_dir)
656
655
  command = "cp #{file} #{@uploaded_files_dir}"
657
656
  puts command
@@ -1,3 +1,3 @@
1
1
  module SushiFabric
2
- VERSION = "1.2.0"
2
+ VERSION = "1.2.1"
3
3
  end
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: 1.2.0
4
+ version: 1.2.1
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: 2023-04-04 00:00:00.000000000 Z
11
+ date: 2023-06-22 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler