eco-rake 0.2.18 → 0.2.19

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: 7876dd36735ea99fcb006628a2f8fe2c49c05115befe40f64ac82337a9851b29
4
- data.tar.gz: 17042f197a6535f2f33f2ebc0ff3de57d0628c4eef561340e443c1a43f7d5c3d
3
+ metadata.gz: a340954aeedb14ae0b78422449f7533d6905c9fc6d321780af08c182d1cd1ccc
4
+ data.tar.gz: dd0891774a00fd0bb2e93cf42f0a46b73addd827508998c53f9e9570ac4d81f0
5
5
  SHA512:
6
- metadata.gz: f3932c8e52dc30e19b2f12292fe6349974a33136622a6ba4165e2e8c2096b9bffbabca76f8c50fa1373101a9180c179e58d8866cc82559b2340a373620c66251
7
- data.tar.gz: 1afc961abec0938ea8d4007cb644d7adb8ec21b01f166769e75ed7458f50441777763cb49f1c299ab31a23673770aedb814120d8564adcc3af98570aca5e4ffe
6
+ metadata.gz: b6a8f94ec722427359c5994c2ae02b6fc29a476736aaaeaf5a35cc3e26ca0c1cd91c1623686e5bbc985b38743a519e8a2aef203a2727aa8725b1acb2838b23c1
7
+ data.tar.gz: d8a89d67b14729c88201da0e53621004239ab8b2e0d7755a765e3979723d6266c9460db30821bd8b31d8faf7b19beeb670d9992bd31725aa76922edc7c92dd27
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.18] - 2025-03-xx
5
+ ## [0.2.20] - 2025-03-xx
6
6
 
7
7
  ### Added
8
8
 
@@ -10,6 +10,12 @@ All notable changes to this project will be documented in this file.
10
10
 
11
11
  ### Fixed
12
12
 
13
+ ## [0.2.19] - 2025-03-xx
14
+
15
+ ### Changed
16
+
17
+ - `subtask` names to have an alternative substitution from `-` to `_` for method names compatiblity
18
+
13
19
  ## [0.2.18] - 2025-03-22
14
20
 
15
21
  ### Changed
@@ -62,10 +62,16 @@ class EcoRake
62
62
 
63
63
  def target_subtask
64
64
  subtask_name = options[:task].to_sym
65
- self.class.subtasks[subtask_name].tap do |ts|
65
+ alt_name = subtask_name.to_s.gsub('-', '_').to_sym
66
+
67
+ subtasks = self.class.subtasks
68
+ subtasks.values_at(subtask_name, alt_name).compact.first.tap do |ts|
66
69
  next if ts
67
70
 
68
- raise "Couldn't find any (sub)task named '#{subtask_name}'"
71
+ msg = "Couldn't find any (sub)task named '#{subtask_name}'"
72
+ msg << " (#{alt_name})" unless alt_name == subtask_name
73
+
74
+ raise msg
69
75
  end
70
76
  end
71
77
 
@@ -1,5 +1,5 @@
1
1
  require 'rake-commander'
2
2
 
3
3
  class EcoRake < RakeCommander
4
- VERSION = '0.2.18'.freeze
4
+ VERSION = '0.2.19'.freeze
5
5
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: eco-rake
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.18
4
+ version: 0.2.19
5
5
  platform: ruby
6
6
  authors:
7
7
  - Oscar Segura Samper
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2025-03-21 00:00:00.000000000 Z
11
+ date: 2025-03-22 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rake