miga-base 1.2.5.0 → 1.2.5.1
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 +4 -4
- data/lib/miga/cli/action/add.rb +5 -2
- data/lib/miga/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 2992b5ad14069f7dc68885cc65eb81eaa8073c07dd8482e6f399e1c2215ee496
|
4
|
+
data.tar.gz: 7f18d3552baa5ef56757e47387dcb26f1555ec078b113508497ecd8c97a4b282
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: '0806bfd3c1c33685c00e9f794845de2566ea7d62c0b1950c576f964fa2a3b1045de3e024b696592cdf1c44e6dc601dbfe5135974cec97d8ce8f2a18c490ee803'
|
7
|
+
data.tar.gz: 95a072ff6fbc247ef717435506ab114f396615dbf74efe5319d965aa9858e860c2aeac2dfadf2edbe3c64b05679c5cf9f9930bbf3ae4dbb5eb565c84f5ef8ba7
|
data/lib/miga/cli/action/add.rb
CHANGED
@@ -121,17 +121,20 @@ class MiGA::Cli::Action::Add < MiGA::Cli::Action
|
|
121
121
|
raise 'Some files are duplicated, files must be unique.' if
|
122
122
|
files.size != files.uniq.size
|
123
123
|
|
124
|
+
expected_files = 1
|
124
125
|
if cli[:input_type].to_s =~ /_paired$/
|
125
126
|
if files.size.odd?
|
126
127
|
raise 'Odd number of files incompatible with input type.'
|
127
128
|
end
|
128
129
|
|
130
|
+
expected_files = 2
|
129
131
|
files = Hash[*files].to_a
|
130
132
|
else
|
131
133
|
files = files.map { |i| [i] }
|
132
134
|
end
|
133
|
-
|
134
|
-
|
135
|
+
|
136
|
+
if files.size != expected_files && !cli[:dataset].nil?
|
137
|
+
raise 'The dataset name (-D) can only be specified with one input set.'
|
135
138
|
end
|
136
139
|
end
|
137
140
|
[files, file_type]
|
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, 5,
|
15
|
+
VERSION = [1.2, 5, 1].freeze
|
16
16
|
|
17
17
|
##
|
18
18
|
# Nickname for the current major.minor version.
|