miga-base 1.2.2.1 → 1.2.2.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: b13fbb5ae17b883dde03cec010e19649e09cecf2254e5bf9f4e8f9e5447d6445
4
- data.tar.gz: a26e562d5517dbad291a4817c2c309f7472460a7e6c063a811a9949d060e7667
3
+ metadata.gz: 4b1fb93676b3b4c48d2204f48a106575274ee50ab294bbf34a3790e7c9adb94b
4
+ data.tar.gz: 629d74fd9c861b9afc99c9764b1990e8ea8c9b89e5d10780201828fd68ab3c7c
5
5
  SHA512:
6
- metadata.gz: e16918bfa39b28db6b057bc9794e8766a56cffe36bff47d29e8d57ef5dac7274fdec1369291c468123acf7dbb7c2002ec58e8e9b0715f01c1e508d355f0a74a8
7
- data.tar.gz: 78217ee076fe60f36273e6ce8638a32cd4b117ffa524d2d7bc2d5286a179b40e4e8117d6eab617f73e5283ca57860f8197b1f9052be3f356acff8b116b50e2f7
6
+ metadata.gz: 46d9ad97e0033b0c99e06476594148baaf2bc630f59c4775d763a2ab322a2ad449229fa9f342509fdfe6ca9a0949405f50b17c719fc817eb426f32a9dd287f54
7
+ data.tar.gz: 4e6ae0abee96441ac65eb2e8e886f4c2f3d00cc9716205936563022d7858f0d966d28d110c3b18ecdaa8aa328ef58b3b53410e9c32560aa0368b88e7ea6604b8
@@ -57,6 +57,7 @@ class MiGA::Cli::Action::Add < MiGA::Cli::Action
57
57
 
58
58
  def perform
59
59
  p = cli.load_project
60
+ cli.ensure_par(type: '-t')
60
61
  files, file_type = get_files_and_type
61
62
 
62
63
  paired = cli[:input_type].to_s.include?('_paired')
@@ -113,7 +114,7 @@ class MiGA::Cli::Action::Add < MiGA::Cli::Action
113
114
  cli.ensure_type(Dataset)
114
115
  files = [nil]
115
116
  else
116
- raise 'Please specify input type (-i).' if cli[:input_type].nil?
117
+ cli.ensure_par({ input_type: '-i' }, 'Please specify input type (-i)')
117
118
 
118
119
  file_type = self.class.INPUT_TYPES[cli[:input_type]]
119
120
  raise "Unrecognized input type: #{cli[:input_type]}." if file_type.nil?
data/lib/miga/common.rb CHANGED
@@ -43,9 +43,8 @@ class MiGA::MiGA
43
43
  # +ext+ values (Array of String).
44
44
  def result_files_exist?(base, ext)
45
45
  ext = [ext] unless ext.is_a? Array
46
- ext.all? do |f|
47
- File.exist?(base + f) or File.exist?("#{base}#{f}.gz")
48
- end
46
+ MiGA::MiGA.DEBUG("Assserting files for result: #{ext}")
47
+ ext.all? { |f| File.exist?(base + f) or File.exist?("#{base}#{f}.gz") }
49
48
  end
50
49
 
51
50
  ##
data/lib/miga/daemon.rb CHANGED
@@ -66,6 +66,12 @@ class MiGA::Daemon < MiGA::MiGA
66
66
  "MiGA:#{project.name}"
67
67
  end
68
68
 
69
+ ##
70
+ # Alias to +project.path+ for compatibility with lairs
71
+ def path
72
+ project.path
73
+ end
74
+
69
75
  ##
70
76
  # Run only in the first loop
71
77
  def daemon_first_loop
data/lib/miga/version.rb CHANGED
@@ -12,7 +12,7 @@ module MiGA
12
12
  # - String indicating release status:
13
13
  # - rc* release candidate, not released as gem
14
14
  # - [0-9]+ stable release, released as gem
15
- VERSION = [1.2, 2, 1].freeze
15
+ VERSION = [1.2, 2, 2].freeze
16
16
 
17
17
  ##
18
18
  # Nickname for the current major.minor version.
@@ -20,7 +20,7 @@ module MiGA
20
20
 
21
21
  ##
22
22
  # Date of the current gem relese.
23
- VERSION_DATE = Date.new(2022, 1, 27)
23
+ VERSION_DATE = Date.new(2022, 2, 2)
24
24
 
25
25
  ##
26
26
  # References 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: 1.2.2.1
4
+ version: 1.2.2.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: 2022-01-27 00:00:00.000000000 Z
11
+ date: 2022-02-02 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: daemons