miga-base 0.3.11.1 → 0.3.11.2

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: 554f2669d16dc0d77c5e4894ce6032c3aa9c145fcf1d5285785a0cf395642ac5
4
- data.tar.gz: 813c1291018a543a49fdfedb63ff66062687429c9ffc0a3b5061d78bff7a88d5
3
+ metadata.gz: 71f390ca4ceb03f4d0dfeac23f55939aaf91d135bbd22129102468d8e25095e0
4
+ data.tar.gz: e139fb696e76345da577f4e8fc4cd4b0bf11efaee23423e5693b5f46b1ee06b6
5
5
  SHA512:
6
- metadata.gz: 6c4c893e4526a3260a82aa65e0e0117bf74f79190341c844e3494e871623cae302003dbe05c2550f9cc6dc098d28e664771f3d8bbab9bd3eceac5dbe69ed5d65
7
- data.tar.gz: bc9bef0a7177e6cb5fdb421a7d497b902a9a8ec3095926b1780bfe991b5224be19365df37e588178a0ae030d50913739326246c6e827006d5ceba839768c6cb5
6
+ metadata.gz: 3cc2ec5d43cc613ab69debed6e623d6793190dae0e6e12954af5d1edf58ced8c2b87fdaa55b9a47b428ed3ed833cf19418875c40b1b8efc9ea84167c94b31fd9
7
+ data.tar.gz: 5ec76e8f90c73b274b2d4b67ed3b09bd085126940e2c7a5d0941a7be390a0c79c739956690e31902a70a7b1b148f05d08dc665ec555c5c079dd0ba2655736b98
data/actions/ncbi_get.rb CHANGED
@@ -151,7 +151,7 @@ end
151
151
  # Download entries
152
152
  $stderr.puts "Downloading #{ds.size} " +
153
153
  (ds.size == 1 ? 'entry' : 'entries') unless o[:q]
154
- p.do_not_save = true if o[:save_every] <= 1
154
+ p.do_not_save = true if o[:save_every] != 1
155
155
  ds.each do |name, body|
156
156
  d << name
157
157
  puts name
data/lib/miga/daemon.rb CHANGED
@@ -122,7 +122,7 @@ class MiGA::Daemon < MiGA::MiGA
122
122
  say "Warning: Dataset #{n} listed but not loaded, reloading project"
123
123
  project.load
124
124
  else
125
- to_run = ds.next_preprocessing(true)
125
+ to_run = ds.next_preprocessing(false)
126
126
  queue_job(:d, ds) unless to_run.nil?
127
127
  end
128
128
  end
@@ -38,7 +38,7 @@ module MiGA::Dataset::Result
38
38
  # - +force+: A Boolean indicating if the result must be re-indexed. If true,
39
39
  # it implies save=true.
40
40
  # Returns MiGA::Result or nil.
41
- def add_result(result_type, save=true, opts={})
41
+ def add_result(result_type, save = true, opts = {})
42
42
  dir = @@RESULT_DIRS[result_type]
43
43
  return nil if dir.nil?
44
44
  base = File.expand_path("data/#{dir}/#{name}", project.path)
@@ -63,7 +63,7 @@ module MiGA::Dataset::Result
63
63
  # Returns the key symbol of the first registered result (sorted by the
64
64
  # execution order). This typically corresponds to the result used as the
65
65
  # initial input. Passes +save+ to #add_result.
66
- def first_preprocessing(save=false)
66
+ def first_preprocessing(save = false)
67
67
  @@PREPROCESSING_TASKS.find do |t|
68
68
  not ignore_task?(t) and not add_result(t, save).nil?
69
69
  end
@@ -72,7 +72,7 @@ module MiGA::Dataset::Result
72
72
  ##
73
73
  # Returns the key symbol of the next task that needs to be executed. Passes
74
74
  # +save+ to #add_result.
75
- def next_preprocessing(save=false)
75
+ def next_preprocessing(save = false)
76
76
  after_first = false
77
77
  first = first_preprocessing(save)
78
78
  return nil if first.nil?
data/lib/miga/version.rb CHANGED
@@ -10,7 +10,7 @@ module MiGA
10
10
  # - Float representing the major.minor version.
11
11
  # - Integer representing gem releases of the current version.
12
12
  # - Integer representing minor changes that require new version number.
13
- VERSION = [0.3, 11, 1]
13
+ VERSION = [0.3, 11, 2]
14
14
 
15
15
  ##
16
16
  # Nickname for the current major.minor version.
@@ -18,7 +18,7 @@ module MiGA
18
18
 
19
19
  ##
20
20
  # Date of the current gem release.
21
- VERSION_DATE = Date.new(2019, 04, 17)
21
+ VERSION_DATE = Date.new(2019, 04, 20)
22
22
 
23
23
  ##
24
24
  # Reference of MiGA.
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: miga-base
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.3.11.1
4
+ version: 0.3.11.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Luis M. Rodriguez-R
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2019-04-17 00:00:00.000000000 Z
11
+ date: 2019-04-20 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: daemons
@@ -508,7 +508,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
508
508
  - !ruby/object:Gem::Version
509
509
  version: '0'
510
510
  requirements: []
511
- rubygems_version: 3.0.2
511
+ rubygems_version: 3.0.3
512
512
  signing_key:
513
513
  specification_version: 4
514
514
  summary: MiGA