sushi_fabric 1.3.0 → 1.3.2

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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 5fd326eaf8b9a5122f254584de8c7c05d17f787bc794d9f6c0ae6aece9d3c43a
4
- data.tar.gz: e8974e60c798c7d530cde78b651bcfc0dddec8d1bd251211051c05fd891079bd
3
+ metadata.gz: f7f62a32c7956387ddb637d5ca44147cb681758fccb612e968527e654015eef4
4
+ data.tar.gz: c6e016d50a63ee67817d4b926d3f6dee0aee59153ca38d792f1e029093e3372b
5
5
  SHA512:
6
- metadata.gz: b33a127381df9c20f85cb2f12a9b43e76676c53e9fc2aab9376ffae7a2892d056d96b87bf2b42e6e2f46682c778cf6908e413d4d7eee1dfaa7e8f9cf2db93bf9
7
- data.tar.gz: 0dcb5d15ab77db9c9f3c081e75703dfc9978c97bc3e814471ad906e47a5c55f5f5997a74c5afdc1f860b342827f751c18c07eece1405919e5ea0b848aaf3b99d
6
+ metadata.gz: 0b13c118cda7a72a727da95ac6d0f3a5b468f40e1628569bcb01cc89bea40ab18e60fc799dd1c045bdb54bc5a2654e3d97d41180d0adda3aba035c0d0e93da82
7
+ data.tar.gz: dccf056a1e983858aac59a8f5db4605a03f30ba5b859ba3e05b488dc904881d815ca7a1626b6ceb66b5397f0916b41eec6b6bafe890774586e6ce70a55a271db
@@ -1,6 +1,6 @@
1
1
  #!/usr/bin/env ruby
2
2
  # encoding: utf-8
3
- # Version = '20241121-112242'
3
+ # Version = '20241122-134036'
4
4
 
5
5
  require 'csv'
6
6
  require 'fileutils'
@@ -81,6 +81,8 @@ end
81
81
  require "#{SUSHI_APP_DIR}/app/models/data_set"
82
82
  require "#{SUSHI_APP_DIR}/app/models/sample"
83
83
  require "#{SUSHI_APP_DIR}/app/models/job"
84
+ require "#{SUSHI_APP_DIR}/app/jobs/application_job"
85
+ require "#{SUSHI_APP_DIR}/app/jobs/make_whole_tree_job"
84
86
  else
85
87
  NO_ROR = true
86
88
  end
@@ -854,6 +856,7 @@ rm -rf #{@scratch_dir} || exit 1
854
856
  @next_dataset_tsv_path = save_next_dataset_as_tsv
855
857
 
856
858
  if @dataset_sushi_id and dataset = DataSet.find_by_id(@dataset_sushi_id.to_i)
859
+ @project_id = dataset.project.id
857
860
  data_set_arr = []
858
861
  headers = []
859
862
  rows = []
@@ -912,6 +915,12 @@ rm -rf #{@scratch_dir} || exit 1
912
915
  new_job.data_set.save
913
916
  end
914
917
  end
918
+
919
+ # Update dataset tree
920
+ if @project_id
921
+ puts "# Update dataset tree by ActiveJob"
922
+ MakeWholeTreeJob.perform_later(@project_id)
923
+ end
915
924
  copy_nextdataset
916
925
  end
917
926
  def run
@@ -1,3 +1,3 @@
1
1
  module SushiFabric
2
- VERSION = "1.3.0"
2
+ VERSION = "1.3.2"
3
3
  end
data/lib/sushi_fabric.rb CHANGED
@@ -1,3 +1,5 @@
1
+ require 'csv'
2
+ require 'drb/drb'
1
3
  require "sushi_fabric/version"
2
4
 
3
5
  require 'sushi_fabric/sushiApp'
data/sushi_fabric.gemspec CHANGED
@@ -21,4 +21,7 @@ Gem::Specification.new do |spec|
21
21
 
22
22
  spec.add_development_dependency "bundler", "~> 2.2.10"
23
23
  spec.add_development_dependency "rake"
24
+ spec.add_dependency 'csv'
25
+ spec.add_dependency 'drb'
24
26
  end
27
+
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.3.0
4
+ version: 1.3.2
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: 2024-11-21 00:00:00.000000000 Z
11
+ date: 2025-02-14 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler
@@ -38,6 +38,34 @@ dependencies:
38
38
  - - ">="
39
39
  - !ruby/object:Gem::Version
40
40
  version: '0'
41
+ - !ruby/object:Gem::Dependency
42
+ name: csv
43
+ requirement: !ruby/object:Gem::Requirement
44
+ requirements:
45
+ - - ">="
46
+ - !ruby/object:Gem::Version
47
+ version: '0'
48
+ type: :runtime
49
+ prerelease: false
50
+ version_requirements: !ruby/object:Gem::Requirement
51
+ requirements:
52
+ - - ">="
53
+ - !ruby/object:Gem::Version
54
+ version: '0'
55
+ - !ruby/object:Gem::Dependency
56
+ name: drb
57
+ requirement: !ruby/object:Gem::Requirement
58
+ requirements:
59
+ - - ">="
60
+ - !ruby/object:Gem::Version
61
+ version: '0'
62
+ type: :runtime
63
+ prerelease: false
64
+ version_requirements: !ruby/object:Gem::Requirement
65
+ requirements:
66
+ - - ">="
67
+ - !ruby/object:Gem::Version
68
+ version: '0'
41
69
  description: This library provides us with the methods to submit a job cooperating
42
70
  with workflow manager.
43
71
  email:
@@ -84,7 +112,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
84
112
  - !ruby/object:Gem::Version
85
113
  version: '0'
86
114
  requirements: []
87
- rubygems_version: 3.4.19
115
+ rubygems_version: 3.5.22
88
116
  signing_key:
89
117
  specification_version: 4
90
118
  summary: workflow manager client.