miga-base 1.1.2.0 → 1.1.2.4

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: de5b82c94df9087cad64bd9e99cfacf3a48f308b8def7aa4f7e717b58cfb94f5
4
- data.tar.gz: 3cdf8e7657ce6acc8c43d84c969d8fa92724b45a7731e891e5c6b99ea142ed31
3
+ metadata.gz: beb13a42d514a4cf731b3b042096728cd6d615124f1412046ad16fb8de2b709e
4
+ data.tar.gz: 64e32095ac59863d4005e602e55a1396530aac12da40fe88316985c95a90eb12
5
5
  SHA512:
6
- metadata.gz: 9f4296997e67a60adfd390cc31abd4ff5a3ed28569593cbfafafd66943080d4e16cee9599e3831fd04231bc3ed2ce41fcbe6f2f6bc77c048a35bc36334276549
7
- data.tar.gz: 1b824dd9fa98df3fe966fd39c80d74ca4ade22161b70b608b7cc7a2cf37c8715c14bcb630ab5ac62e82ed48745c836dd4c380be60700148fe46cc56f5b3038c2
6
+ metadata.gz: d8f813d3b32cfdfb86da746e63c8e7a3a5c142822dc44a7c2588219368bed31851a77cd05ce30ee2d1dc02d930beaab836cda58a122cc5955d6ec0235b2edb42
7
+ data.tar.gz: 81d773c3d4078ec3fd27d389bb1159aa9585dafdd2efdb5a917471ec784d9ebf24e67f2fba5358a4c4c589d03a12ab9f3e1b120e83390e0f0354a059a0cbb568
@@ -5,7 +5,7 @@
5
5
  module MiGA::Cli::Action::Init::DaemonHelper
6
6
  def configure_daemon
7
7
  cli.puts 'Default daemon configuration:'
8
- daemon_f = File.expand_path('.miga_daemon.json', ENV['HOME'])
8
+ daemon_f = File.expand_path('.miga_daemon.json', ENV['MIGA_HOME'])
9
9
  unless File.exist?(daemon_f) and cli.ask_user(
10
10
  'A template daemon already exists, do you want to preserve it?',
11
11
  'yes', %w(yes no)
@@ -4,7 +4,7 @@
4
4
  # Helper module with files configuration functions for MiGA::Cli::Action::Init
5
5
  module MiGA::Cli::Action::Init::FilesHelper
6
6
  def open_rc_file
7
- rc_path = File.expand_path('.miga_rc', ENV['HOME'])
7
+ rc_path = File.expand_path('.miga_rc', ENV['MIGA_HOME'])
8
8
  if File.exist? rc_path
9
9
  if cli.ask_user(
10
10
  'I found a previous configuration. Do you want to continue?',
data/lib/miga/daemon.rb CHANGED
@@ -93,7 +93,7 @@ class MiGA::Daemon < MiGA::MiGA
93
93
  flush!
94
94
  if (loop_i % 12).zero?
95
95
  purge!
96
- queue_maintenance if (loop_i % 12 * (skip_maintenance + 1)).zero?
96
+ queue_maintenance if (loop_i % (12 * (skip_maintenance + 1))).zero?
97
97
  end
98
98
  save_status
99
99
  sleep(latency)
data/lib/miga/dataset.rb CHANGED
@@ -107,7 +107,7 @@ class MiGA::Dataset < MiGA::MiGA
107
107
  metadata[:warn] = "Inactive: #{reason}" unless reason.nil?
108
108
  metadata[:inactive] = true
109
109
  metadata.save
110
- project.recalculate_tasks('Reference dataset inactivated') if ref?
110
+ project.recalculate_tasks("Reference dataset inactivated: #{name}") if ref?
111
111
  pull_hook :on_inactivate
112
112
  end
113
113
 
@@ -117,7 +117,7 @@ class MiGA::Dataset < MiGA::MiGA
117
117
  metadata[:inactive] = nil
118
118
  metadata[:warn] = nil if metadata[:warn] && metadata[:warn] =~ /^Inactive: /
119
119
  metadata.save
120
- project.recalculate_tasks('Reference dataset activated') if ref?
120
+ project.recalculate_tasks("Reference dataset activated: #{name}") if ref?
121
121
  pull_hook :on_activate
122
122
  end
123
123
 
@@ -52,7 +52,9 @@ module MiGA::Project::Dataset
52
52
  @metadata[:datasets] << name
53
53
  @dataset_names_hash = nil # Ensure loading even if +do_not_save+ is true
54
54
  save
55
- recalculate_tasks('New reference dataset added') if d.ref? && d.active?
55
+ if d.ref? && d.active?
56
+ recalculate_tasks("Reference dataset added: #{d.name}")
57
+ end
56
58
  pull_hook(:on_add_dataset, name)
57
59
  end
58
60
  dataset(name)
@@ -66,7 +68,9 @@ module MiGA::Project::Dataset
66
68
 
67
69
  self.metadata[:datasets].delete(name)
68
70
  save
69
- recalculate_tasks('Reference dataset unlinked') if d.ref? && d.active?
71
+ if d.ref? && d.active?
72
+ recalculate_tasks("Reference dataset unlinked: #{d.name}")
73
+ end
70
74
  pull_hook(:on_unlink_dataset, name)
71
75
  d
72
76
  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.1, 2, 0].freeze
15
+ VERSION = [1.1, 2, 4].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(2021, 11, 6)
23
+ VERSION_DATE = Date.new(2021, 11, 16)
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.1.2.0
4
+ version: 1.1.2.4
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: 2021-11-06 00:00:00.000000000 Z
11
+ date: 2021-11-16 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: daemons