eco-rake 0.2.11 → 0.2.12
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/CHANGELOG.md +8 -2
- data/lib/eco-rake/lib/task/runner_launch.rb +13 -2
- data/lib/eco-rake/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: f0e5b2b6b60004f17abddc0bdc9c89dd1f9ccbaabe48f26d61af56c0def57674
|
4
|
+
data.tar.gz: adc4853a88785e607e7b0492dfdc21e9fd62a4c7d8fcd63f9f13c993e3d82e06
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 597b31f058011663a3e9d2648fa17f121de9cd3f4a83c966e1cf82ba1c0ac560eb191160eb85e1e96b18dcefeb3dba1d44c59aabc919eef5abd6a9f95636a962
|
7
|
+
data.tar.gz: 1583db2d611313f1f279ae2770febca8d404664272fedeb7f37889cc0dd20b15c338e35a922617224398eebb6cc678b2ad6b064898ccd5cbdcbc42c72c34022b
|
data/CHANGELOG.md
CHANGED
@@ -2,7 +2,7 @@
|
|
2
2
|
|
3
3
|
All notable changes to this project will be documented in this file.
|
4
4
|
|
5
|
-
## [0.2.
|
5
|
+
## [0.2.13] - 2025-02-xx
|
6
6
|
|
7
7
|
### Added
|
8
8
|
|
@@ -10,7 +10,13 @@ All notable changes to this project will be documented in this file.
|
|
10
10
|
|
11
11
|
### Fixed
|
12
12
|
|
13
|
-
## [0.2.
|
13
|
+
## [0.2.12] - 2025-02-25
|
14
|
+
|
15
|
+
### Fixed
|
16
|
+
|
17
|
+
- Backwards compatibility on task runners.
|
18
|
+
|
19
|
+
## [0.2.11] - 2025-02-25
|
14
20
|
|
15
21
|
### Fixed
|
16
22
|
|
@@ -14,11 +14,22 @@ class EcoRake
|
|
14
14
|
attr_const :target_enviro, required: true
|
15
15
|
option_reopen :enviro, default_lookup: :target_enviro
|
16
16
|
|
17
|
-
option_reopen :task, type: [], desc: 'Target task to run', required: true
|
18
|
-
|
19
17
|
# Offer native way to declare tasks
|
20
18
|
class << self
|
19
|
+
def task_option
|
20
|
+
option_get(:task)
|
21
|
+
end
|
22
|
+
|
21
23
|
def subtask(name, desc = nil, **kargs, &block)
|
24
|
+
unless task_option&.enum?
|
25
|
+
option_reopen(
|
26
|
+
:task,
|
27
|
+
type: [],
|
28
|
+
desc: 'Target task to run',
|
29
|
+
required: true
|
30
|
+
)
|
31
|
+
end
|
32
|
+
|
22
33
|
EcoRake::Subtask.new(name, desc, **kargs, &block).tap do |subtask|
|
23
34
|
raise "Task '#{name}' is already defined" if subtasks.key?(subtask.name)
|
24
35
|
|
data/lib/eco-rake/version.rb
CHANGED