miga-base 1.2.17.4 → 1.2.18.0
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 +4 -4
- data/lib/miga/cli/action/new.rb +6 -1
- data/lib/miga/project.rb +2 -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: 524b16b4168b88bb1314cc57b374aa0c7b3374ab4dd07bbc4d5e1a26c50bea2e
|
4
|
+
data.tar.gz: a16ff3fb4e22d22998af2c5556c2b5820a4af6f6dce7dd6d568d92b883ce5b9a
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 68102fd3494096f56c4dcdd717917979887b32b49b18cc316e689ee2e880b824fe631436e44ff99ca1c9dc3b494ed1294051cd92906937c9217bbc995ea958cc
|
7
|
+
data.tar.gz: ca2da55cde77737792337c91e9a69100ba62bbc5accc91dc345b1744d305551fb59fb31862e126d835ff17983829b38ab7e5ff5ab4721409c5af9f88a0cc29a4
|
data/lib/miga/cli/action/new.rb
CHANGED
@@ -34,13 +34,18 @@ class MiGA::Cli::Action::New < MiGA::Cli::Action
|
|
34
34
|
'Metadata as key-value pairs separated by = and delimited by comma',
|
35
35
|
'Values are saved as strings except for booleans (true / false) or nil'
|
36
36
|
) { |v| cli[:metadata] = v }
|
37
|
+
opt.on(
|
38
|
+
'--ignore-init',
|
39
|
+
'Ignore checks for MiGA initialization',
|
40
|
+
'This can be used to create projects that are processed elsewhere'
|
41
|
+
) { |v| cli[:ignore_init] = v }
|
37
42
|
end
|
38
43
|
end
|
39
44
|
|
40
45
|
def perform
|
41
46
|
cli.ensure_type(MiGA::Project)
|
42
47
|
cli.ensure_par(project: '-P')
|
43
|
-
|
48
|
+
if !cli[:ignore_init] && !MiGA::MiGA.initialized?
|
44
49
|
raise 'MiGA has not been initialized, please use "miga init" first'
|
45
50
|
end
|
46
51
|
cli.say "Creating project: #{cli[:project]}"
|
data/lib/miga/project.rb
CHANGED
@@ -32,10 +32,10 @@ class MiGA::Project < MiGA::MiGA
|
|
32
32
|
@datasets = {}
|
33
33
|
@do_not_save = false
|
34
34
|
@path = File.absolute_path(path)
|
35
|
-
self.create if
|
35
|
+
self.create if !update && !Project.exist?(self.path)
|
36
36
|
self.load if self.metadata.nil?
|
37
37
|
self.metadata[:type] = :mixed if type.nil?
|
38
|
-
raise "Unrecognized project type: #{type}
|
38
|
+
raise "Unrecognized project type: #{type}" if @@KNOWN_TYPES[type].nil?
|
39
39
|
end
|
40
40
|
|
41
41
|
##
|
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,
|
15
|
+
VERSION = [1.2, 18, 0].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(2023, 3,
|
23
|
+
VERSION_DATE = Date.new(2023, 3, 7)
|
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.
|
4
|
+
version: 1.2.18.0
|
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: 2023-03-
|
11
|
+
date: 2023-03-07 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: daemons
|