sushi_fabric 1.2.8 → 1.2.9

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: 625777da16fc54a819726f5b5f82dcf309865c05c11f902a0065dd1d385d7307
4
- data.tar.gz: 628bec7e0c32fa99832d35bd2016eaee2bcec4984f71089b23d4b9ebbe7b0c37
3
+ metadata.gz: 601c5bc07a9e6c62dc71d101a2c459719e2eaef937c9b59c176bb8f3225b4f43
4
+ data.tar.gz: f4d98401899172185098c8f8d78f782acb032d5e1849ca7142d713e36ae250b6
5
5
  SHA512:
6
- metadata.gz: 928ddc2796c22bd809bbadc1b91c2a9aa4b15754b60a64a66d26c387b916386d5df39de3e5f8e42424e101256fe7ce55872521644ba96258b9381ea75cb3e59d
7
- data.tar.gz: 2d669efcfc9afce6ffad2f07b18496744d0a4b7b52588c519fe791fb8ee2eb23a4c5c8e48855c037359fd6081ffae54c58e483835ddc0a384ffd1b0c9ce2383a
6
+ metadata.gz: eb1dc2673c8441ffd5a8d360337903d18126c2ddaefc1265b679b22c9ddd23bed8ba724cf192f4b3445191ea6c34b5ed67d31105dbba255d26a15b61044776f9
7
+ data.tar.gz: dcf130309a2d75527972c1c3a78d265f1a9b161654f2798940074cc0b6c193b261bcd950d40c709888746ea24d310008bda24a37166ae9ad2c90b8755b6f57a2
@@ -1,6 +1,6 @@
1
1
  #!/usr/bin/env ruby
2
2
  # encoding: utf-8
3
- # Version = '20240823-112404'
3
+ # Version = '20241108-111516'
4
4
 
5
5
  require 'csv'
6
6
  require 'fileutils'
@@ -178,21 +178,17 @@ def save_data_set(data_set_arr, headers, rows, user=nil)
178
178
  end
179
179
  sample = Sample.new
180
180
  sample.key_value = sample_hash.to_s
181
- sample.save unless sample.saved?
181
+ sample.save # skip exact-match search
182
182
  data_set.samples << sample
183
183
  end
184
184
 
185
185
  data_set.md5 = data_set.md5hexdigest
186
- unless data_set.saved?
187
- project.data_sets << data_set
188
- parent_data_set.data_sets << data_set if parent_data_set
189
- data_set.save
190
- if user
191
- user.data_sets << data_set
192
- user.save
193
- end
194
- else
195
- headers[0] = DataSet.find_by_md5(data_set.md5)
186
+ project.data_sets << data_set
187
+ parent_data_set.data_sets << data_set if parent_data_set
188
+ data_set.save
189
+ if user
190
+ user.data_sets << data_set
191
+ user.save
196
192
  end
197
193
  data_set.id
198
194
  end
@@ -794,7 +790,7 @@ rm -rf #{@scratch_dir} || exit 1
794
790
  end
795
791
  sample = Sample.new
796
792
  sample.key_value = sample_hash.to_s
797
- sample.save unless sample.saved?
793
+ sample.save # skip exact-match search
798
794
  data_set.samples << sample
799
795
  end
800
796
 
@@ -803,16 +799,12 @@ rm -rf #{@scratch_dir} || exit 1
803
799
  end
804
800
 
805
801
  data_set.md5 = data_set.md5hexdigest
806
- unless data_set.saved?
807
- project.data_sets << data_set
808
- parent_data_set.data_sets << data_set if parent_data_set
809
- data_set.save
810
- if user
811
- user.data_sets << data_set
812
- user.save
813
- end
814
- else
815
- headers[0] = DataSet.find_by_md5(data_set.md5)
802
+ project.data_sets << data_set
803
+ parent_data_set.data_sets << data_set if parent_data_set
804
+ data_set.save
805
+ if user
806
+ user.data_sets << data_set
807
+ user.save
816
808
  end
817
809
  data_set.id
818
810
  end
@@ -1,3 +1,3 @@
1
1
  module SushiFabric
2
- VERSION = "1.2.8"
2
+ VERSION = "1.2.9"
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.8
4
+ version: 1.2.9
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-08-23 00:00:00.000000000 Z
11
+ date: 2024-11-08 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler