miga-base 1.4.0.0 → 1.4.0.1

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: 5525ee26722f9be06bf3d8ddd8a94909457c55d8e2ac9d8f137bf44e15cf2035
4
- data.tar.gz: ce4036f422bb2cc4e5da887d0dfaea6de89a73f152f63269c5894644f8a92127
3
+ metadata.gz: d4b67bd0a5a151b1aa8598c56df2db8e286382dec6a43714b04e41bc3fd03302
4
+ data.tar.gz: 8e52fcc9cdd873467318854b8048503374354fb71026cc66c52cf835511259ff
5
5
  SHA512:
6
- metadata.gz: 8b3393571b1f4425a243181ba50117829b264022c02ac251717721bb6ef092ac81f323b8ccb1f4ea1989fe77d61b9f224115f0758f81a0963503127938b59b3f
7
- data.tar.gz: d6dd244f7ea5261900d4fc8329398e5bb07a44e28e0ddf8706c546798546814735142c0179831193a4a48d8b3c2bdc93745bd0a021ee31df7ec385f7ef58c4fe
6
+ metadata.gz: b1f9746da7cc703094dd602ebb91482930b78031cfcd6249d0e1bd5efbfa39c122adc1c30133e3791e66b0651d5e057b8df397e2f542938e74829afc5d0c955c
7
+ data.tar.gz: 0b37cf54c49dbac3c81d118e9b2ccded9b11ee13b073847ddf6f7bd187102067e850bdf9a7b912a8bbdece6f0e581aeebf6b1689f45d79b83b5f381b20f93c51
@@ -30,6 +30,9 @@ class MiGA::Cli::Action::Lair < MiGA::Cli::Action
30
30
  '--exclude NAME1,NAME2,NAME3', Array,
31
31
  'Exclude these projects (identified by name) from the lair'
32
32
  ) { |v| cli[:exclude] = v }
33
+ opt.on(
34
+ '--exclude-releases', 'Exclude projects with release metadata'
35
+ ) { |v| cli[:exclude_releases] = v }
33
36
  opt.on(
34
37
  '--json PATH',
35
38
  'Path to a custom daemon definition in json format'
@@ -86,7 +89,8 @@ class MiGA::Cli::Action::Lair < MiGA::Cli::Action
86
89
  def perform
87
90
  cli.ensure_par(path: '-p')
88
91
  k_opts = %i[
89
- json latency wait_for keep_inactive trust_timestamp name dry exclude
92
+ json latency wait_for keep_inactive trust_timestamp name dry
93
+ exclude exclude_releases
90
94
  ]
91
95
  opts = Hash[k_opts.map { |k| [k, cli[k]] }]
92
96
  lair = MiGA::Lair.new(cli[:path], opts)
data/lib/miga/lair.rb CHANGED
@@ -32,6 +32,7 @@ class MiGA::Lair < MiGA::MiGA
32
32
  # - dry: Only report when daemons would be launched, but don't actually launch
33
33
  # them
34
34
  # - exclude: Array of project names to be excluded from the lair
35
+ # - exclude_releases: Exclude projects with release metadata from the lair
35
36
  def initialize(path, opts = {})
36
37
  @path = File.expand_path(path)
37
38
  @options = opts
@@ -43,7 +44,8 @@ class MiGA::Lair < MiGA::MiGA
43
44
  trust_timestamp: true,
44
45
  name: File.basename(@path),
45
46
  dry: false,
46
- exclude: []
47
+ exclude: [],
48
+ exclude_releases: false
47
49
  }.each { |k, v| @options[k] = v if @options[k].nil? }
48
50
  end
49
51
 
@@ -116,8 +118,10 @@ class MiGA::Lair < MiGA::MiGA
116
118
  if MiGA::Project.exist? f
117
119
  project = MiGA::Project.load(f)
118
120
  raise "Cannot load project: #{f}" if project.nil?
121
+ next if options[:exclude].include?(project.name)
122
+ next if options[:exclude_releases] && project.metadata[:release]
119
123
 
120
- yield(project) unless options[:exclude].include?(project.name)
124
+ yield(project)
121
125
  elsif Dir.exist? f
122
126
  each_project(f) { |p| yield(p) }
123
127
  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.4, 0, 0].freeze
15
+ VERSION = [1.4, 0, 1].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(2025, 9, 23)
23
+ VERSION_DATE = Date.new(2025, 10, 10)
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.4.0.0
4
+ version: 1.4.0.1
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: 2025-09-23 00:00:00.000000000 Z
11
+ date: 2025-10-10 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: daemons