miga-base 0.2.4.0 → 0.2.4.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/actions/create_dataset.rb +1 -1
- data/actions/create_project.rb +2 -1
- data/lib/miga/dataset.rb +5 -3
- data/lib/miga/version.rb +2 -2
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 0568af20da0be58fdf630b68d78851117f5be7fd
|
4
|
+
data.tar.gz: 3941417241eff3bb78965b95a415497ffc09109b
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: d15f8cb3bec1a804fe09901f52d9d1aedd557136675ea2e9edead1090c0752bde92d36de1414a5d84df799c105afe852eb0d7e4afe3cfb122e3023353333c654
|
7
|
+
data.tar.gz: 1d0527e5f4942560d7efea9cfa17c5f95979ae2b342aca954d859d021fdf7c31d46055065860384706adb05b37712cd0a60d127d90080ce25ba17d1797287574
|
data/actions/create_dataset.rb
CHANGED
data/actions/create_project.rb
CHANGED
@@ -20,7 +20,8 @@ OptionParser.new do |opt|
|
|
20
20
|
end.parse!
|
21
21
|
|
22
22
|
##=> Main <=
|
23
|
-
opt_require(o, project:"-P"
|
23
|
+
opt_require(o, project:"-P")
|
24
|
+
opt_require(o, type:"-t") unless o[:update]
|
24
25
|
|
25
26
|
unless File.exist? "#{ENV["HOME"]}/.miga_rc" and
|
26
27
|
File.exist? "#{ENV["HOME"]}/.miga_daemon.json"
|
data/lib/miga/dataset.rb
CHANGED
@@ -109,7 +109,7 @@ class MiGA::Dataset < MiGA::MiGA
|
|
109
109
|
metadata[:ref] = is_ref
|
110
110
|
@metadata = MiGA::Metadata.new(
|
111
111
|
File.expand_path("metadata/#{name}.json", project.path), metadata )
|
112
|
-
|
112
|
+
warn "Warning: Unrecognized dataset type: #{type}." if
|
113
113
|
!type.nil? and @@KNOWN_TYPES[type].nil?
|
114
114
|
end
|
115
115
|
|
@@ -148,14 +148,16 @@ class MiGA::Dataset < MiGA::MiGA
|
|
148
148
|
##
|
149
149
|
# Is this dataset known to be multi-organism?
|
150
150
|
def is_multi?
|
151
|
-
return false if self.metadata[:type].nil?
|
151
|
+
return false if self.metadata[:type].nil? or
|
152
|
+
@@KNOWN_TYPES[self.metadata[:type]].nil?
|
152
153
|
@@KNOWN_TYPES[self.metadata[:type]][:multi]
|
153
154
|
end
|
154
155
|
|
155
156
|
##
|
156
157
|
# Is this dataset known to be single-organism?
|
157
158
|
def is_nonmulti?
|
158
|
-
return false if self.metadata[:type].nil?
|
159
|
+
return false if self.metadata[:type].nil? or
|
160
|
+
@@KNOWN_TYPES[self.metadata[:type]].nil?
|
159
161
|
!@@KNOWN_TYPES[self.metadata[:type]][:multi]
|
160
162
|
end
|
161
163
|
|
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.2, 4,
|
13
|
+
VERSION = [0.2, 4, 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(2017, 3,
|
21
|
+
VERSION_DATE = Date.new(2017, 3, 24)
|
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.2.4.
|
4
|
+
version: 0.2.4.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: 2017-03-
|
11
|
+
date: 2017-03-24 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rest-client
|