c42 0.0.8 → 0.0.9
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/c42/runner.rb +6 -2
- data/lib/c42/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA1:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: b625601f27fb73ad8f677fbc2b7f225593d6fa1e
|
|
4
|
+
data.tar.gz: ced3fedd5105cf2deeee98d0d8dae8c0f1a720d0
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 915dc36d9d60199baafb20b98819bad25c5cdb8db1956f6e2f485ee0936b15502a62566f23c7391d5b8bd31f7eff2c31b8bf7fa345f3ef287c204ee91319aae8
|
|
7
|
+
data.tar.gz: 4075b724f65b335213e13cb7fde4b8cec16f2f8a206bc7f485cad51d2e51301af71182f5a55a5ed3e7575c2b8bffac80df349f49c527b9d8303c1e110d87d35a
|
data/lib/c42/runner.rb
CHANGED
|
@@ -8,7 +8,6 @@ module C42
|
|
|
8
8
|
|
|
9
9
|
def self.run(c42file)
|
|
10
10
|
c42s = []
|
|
11
|
-
c42s << C42_HOME_FILE if File.exists?(C42_HOME_FILE)
|
|
12
11
|
|
|
13
12
|
if c42file.is_a?(String)
|
|
14
13
|
c42file = File.expand_path(c42file).freeze
|
|
@@ -23,10 +22,15 @@ module C42
|
|
|
23
22
|
end
|
|
24
23
|
|
|
25
24
|
fwd.ascend do |path|
|
|
26
|
-
c42s << Dir[Thor::Util.escape_globs(path)+"/tasks/*.c42.rb"].sort.reverse
|
|
27
25
|
c42s << Dir[Thor::Util.escape_globs(path)+"/tasks.rb"]
|
|
26
|
+
c42s << Dir[Thor::Util.escape_globs(path)+"/tasks/*.c42.rb"].sort
|
|
27
|
+
c42s << Dir[Thor::Util.escape_globs(path)+"/.c42/tasks.rb"]
|
|
28
|
+
c42s << Dir[Thor::Util.escape_globs(path)+"/.c42/tasks/*.c42.rb"].sort
|
|
28
29
|
end
|
|
29
30
|
c42s.flatten!
|
|
31
|
+
|
|
32
|
+
c42s << C42_HOME_FILE if File.exists?(C42_HOME_FILE)
|
|
33
|
+
|
|
30
34
|
c42s.uniq!
|
|
31
35
|
c42s.reverse!
|
|
32
36
|
|
data/lib/c42/version.rb
CHANGED