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 +4 -4
- data/lib/miga/cli/action/init/daemon_helper.rb +1 -1
- data/lib/miga/cli/action/init/files_helper.rb +1 -1
- data/lib/miga/daemon.rb +1 -1
- data/lib/miga/dataset.rb +2 -2
- data/lib/miga/project/dataset.rb +6 -2
- data/lib/miga/version.rb +2 -2
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: beb13a42d514a4cf731b3b042096728cd6d615124f1412046ad16fb8de2b709e
|
4
|
+
data.tar.gz: 64e32095ac59863d4005e602e55a1396530aac12da40fe88316985c95a90eb12
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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['
|
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['
|
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
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(
|
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(
|
120
|
+
project.recalculate_tasks("Reference dataset activated: #{name}") if ref?
|
121
121
|
pull_hook :on_activate
|
122
122
|
end
|
123
123
|
|
data/lib/miga/project/dataset.rb
CHANGED
@@ -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
|
-
|
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
|
-
|
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,
|
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,
|
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.
|
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-
|
11
|
+
date: 2021-11-16 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: daemons
|