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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: e9353efac39e230da0d999efff1f3839dd5d0c1e
4
- data.tar.gz: 2860e3b8c6ee0bb18bfb5f8ff753754762253eb6
3
+ metadata.gz: 0568af20da0be58fdf630b68d78851117f5be7fd
4
+ data.tar.gz: 3941417241eff3bb78965b95a415497ffc09109b
5
5
  SHA512:
6
- metadata.gz: 66086e7e08f1ca5cb27986ebd206d65c71562fe0b9c026673c08c20f543772b015dfe23fd6c1792e9747d1334d331b2feade1ea9225e579c9b4e691575bb16b2
7
- data.tar.gz: b7801121cb4f332eebe6e88c907c9e68c0f6e3851cd445eb2467cdf84a9091243a0303fecad6505ae6efba7efa5287f4f5c3efc6b9bd44d54ce4af653e8ddc11
6
+ metadata.gz: d15f8cb3bec1a804fe09901f52d9d1aedd557136675ea2e9edead1090c0752bde92d36de1414a5d84df799c105afe852eb0d7e4afe3cfb122e3023353333c654
7
+ data.tar.gz: 1d0527e5f4942560d7efea9cfa17c5f95979ae2b342aca954d859d021fdf7c31d46055065860384706adb05b37712cd0a60d127d90080ce25ba17d1797287574
@@ -43,7 +43,7 @@ end.parse!
43
43
 
44
44
  ##=> Main <=
45
45
  opt_require(o)
46
- opt_require(o, type:"-t")
46
+ opt_require(o, type:"-t") unless o[:update]
47
47
 
48
48
  $stderr.puts "Loading project." unless o[:q]
49
49
  p = MiGA::Project.load(o[:project])
@@ -20,7 +20,8 @@ OptionParser.new do |opt|
20
20
  end.parse!
21
21
 
22
22
  ##=> Main <=
23
- opt_require(o, project:"-P", type:"-t")
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
- raise "Unrecognized dataset type: #{type}." if
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, 0]
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, 23)
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.0
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-23 00:00:00.000000000 Z
11
+ date: 2017-03-24 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rest-client