miga-base 1.2.17.4 → 1.2.18.0

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: 2794c3a8ed472cd61bf74f46e30651fd9d2682d296e52154edae497be101a475
4
- data.tar.gz: fefed99fab3fdc0a9d44a325a786a2abed8276770b033581eac0ba5eb22fecc3
3
+ metadata.gz: 524b16b4168b88bb1314cc57b374aa0c7b3374ab4dd07bbc4d5e1a26c50bea2e
4
+ data.tar.gz: a16ff3fb4e22d22998af2c5556c2b5820a4af6f6dce7dd6d568d92b883ce5b9a
5
5
  SHA512:
6
- metadata.gz: bf8aed5b9ab717c20a3685d414a83cc4f14202bee7f1ee836a70861e17f985705ed6d732a7e24f0330e39cbf372d83cfbae789086a902c9391663bfc5e3b02fa
7
- data.tar.gz: 87b0d84971623b4d8864dff7978537c5b1321bdce393a489740a542997d89b63a27b13463e8e6b9743efcbc816a77529680c08f464003ef93381aa6475a8af7b
6
+ metadata.gz: 68102fd3494096f56c4dcdd717917979887b32b49b18cc316e689ee2e880b824fe631436e44ff99ca1c9dc3b494ed1294051cd92906937c9217bbc995ea958cc
7
+ data.tar.gz: ca2da55cde77737792337c91e9a69100ba62bbc5accc91dc345b1744d305551fb59fb31862e126d835ff17983829b38ab7e5ff5ab4721409c5af9f88a0cc29a4
@@ -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
- unless MiGA::MiGA.initialized?
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 not update and not Project.exist? self.path
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}." if @@KNOWN_TYPES[type].nil?
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, 17, 4].freeze
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, 4)
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.17.4
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-04 00:00:00.000000000 Z
11
+ date: 2023-03-07 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: daemons