miga-base 1.2.10.0 → 1.2.10.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: 22d59bdb8dee84becd895fa7cd7be47912f3b895025494e55fb46b7125ac5560
4
- data.tar.gz: d7213e012fa9b110d5391f5957cd3b2336e41a7ad84775471beca7da3c9510e3
3
+ metadata.gz: bc04109959a53156953d2a20365a0af4555010b119bfcf632558d2a6c22b70e4
4
+ data.tar.gz: b7aa96e71d322c590289f72d8735153f23741335c657dab8343f68835da21952
5
5
  SHA512:
6
- metadata.gz: ecfd6595931a7fb0fd9b924a8a7cc64535a78ab97a1a978a65f0861e719d8570ef4ac34da8587a23664e84c215b67efdaac059d1aa159da318750dd75ebab04d
7
- data.tar.gz: cda07a76118f2cba313deb974d8f6397612e11dd619332a707e12898afbb1d199bb8eeef07485c95826ddaa7b15adb617475168b668b201f59b7acc424afff84
6
+ metadata.gz: 5c2485fd256fd2cb2861ddf5510213aac302ec5fdb4e8429e752ea2cf2c184ba0ddb44f84f9f4077cef72be345ef0b204dcf019f7b5403c9f03974ba3ccd785d
7
+ data.tar.gz: 84974ec7a124769a7fffa8bdcd703720e0f9bfb9b842d92ac8996b4cad4dbb3667a806fc164adf8e73414db15b8a083376a6ec89cf3aaf40a8773d7b9aa59f43
@@ -28,14 +28,15 @@ class MiGA::Cli::Action::Stats < MiGA::Cli::Action
28
28
  end
29
29
 
30
30
  def perform
31
- if cli[:try_load] && !r[:stats].nil? && !r[:stats].empty?
32
- cli[:compute] = false
33
- end
34
31
  r = cli.load_result or return
32
+
33
+ cli[:compute] = false if cli[:try_load] && !r[:stats]&.empty?
34
+
35
35
  if cli[:compute]
36
36
  cli.say 'Computing statistics'
37
37
  r.compute_stats
38
38
  end
39
+
39
40
  if cli[:key].nil?
40
41
  r[:stats].each do |k, v|
41
42
  k_n = k.to_s.unmiga_name.sub(/^./, &:upcase)
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, 10, 0].freeze
15
+ VERSION = [1.2, 10, 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, 11, 28)
23
+ VERSION_DATE = Date.new(2022, 12, 14)
24
24
 
25
25
  ##
26
26
  # References of MiGA
@@ -87,6 +87,6 @@ module MiGA::SubcladeRunner::Pipeline
87
87
  end
88
88
 
89
89
  def run_cmd(cmd)
90
- MiGA::MiGA.run_cmd(cmd, show_cmd: true, err2out: true)
90
+ MiGA::MiGA.run_cmd(cmd, show_cmd: true, err2out: true, source: :miga)
91
91
  end
92
92
  end
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.10.0
4
+ version: 1.2.10.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-11-28 00:00:00.000000000 Z
11
+ date: 2022-12-14 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: daemons