miga-base 1.2.5.0 → 1.2.5.3

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: e020ccd1d0a0291a8bc271432fe1dceccbe27c794295942bc6ad2e57ffcd9539
4
- data.tar.gz: 7998b7647cefd9e09a06143f019acb01ee436e28e5f0f87aafbb677674b5cf62
3
+ metadata.gz: c0eca4dbad780bdf6cc4a739ee17fd38d23e2cca6502f8dc8d656755e4d40431
4
+ data.tar.gz: 18a6f228cb63c068483e82c9b857cd11ba3cffe7bf6168e8ba12c88541e6aa74
5
5
  SHA512:
6
- metadata.gz: 3752e382431318bab43319ae6bb2a1725d5c66593a6bd144c8d6623219ab4ca5833764037cb8e59a8e491f44fb0cda8b4e001dd821ba0e6ca793ea7986c1f4e1
7
- data.tar.gz: dea859f260cc498967d23190bc899c2a591577312b9208933b8750c4874a5a5664e4d1999e49b8152c6e7fc6cef02ab5e54825d9f5815e89cae39ff2775fcb84
6
+ metadata.gz: a5955cd677402862aeb06b96246091fe511092cede22fe32027e235713683c4adfcaa2935e0b9221e856346e5c4dd241fffa42ab7b5c89d4c14facd3b49ca71d
7
+ data.tar.gz: 7116fb4803c97b790fea7b62199f24e24d120cc7c19358134e0065d18ca03943fdccb486c63cd96fbe64fe95d880f1639834b4b4e29c3900fdb575988deb0c27
@@ -130,8 +130,9 @@ class MiGA::Cli::Action::Add < MiGA::Cli::Action
130
130
  else
131
131
  files = files.map { |i| [i] }
132
132
  end
133
- if files.size > 1 && !cli[:dataset].nil?
134
- raise 'The dataset name (-D) can only be specified with one input file.'
133
+
134
+ if files.size != 1 && !cli[:dataset].nil?
135
+ raise 'The dataset name (-D) can only be specified with one input set.'
135
136
  end
136
137
  end
137
138
  [files, file_type]
data/lib/miga/common.rb CHANGED
@@ -115,7 +115,7 @@ class MiGA::MiGA
115
115
  { T: 4, G: 3, M: 2, K: 1 }.each do |k, x|
116
116
  v = (bin ? 1024 : 1e3)**x
117
117
  if n > v
118
- n = '%.1f' % (n / v)
118
+ n = '%.1f' % (n.to_f / v)
119
119
  p = k
120
120
  break
121
121
  end
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, 0].freeze
15
+ VERSION = [1.2, 5, 3].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, 5, 9)
23
+ VERSION_DATE = Date.new(2022, 5, 19)
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.5.0
4
+ version: 1.2.5.3
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-05-09 00:00:00.000000000 Z
11
+ date: 2022-05-19 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: daemons