bake 0.4.3 → 0.4.4
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/bake/command/list.rb +1 -1
- data/lib/bake/recipe.rb +8 -0
- data/lib/bake/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: 229a72fb2b01f8620666a273b5cbbb1e326b80fd0c3b0a1cc2967cf628bbca6e
|
4
|
+
data.tar.gz: 240325c384794ab40525c1b1c47152f0bcdd6f319afa61df577c8b46b4659b6d
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: deb0caf57627b894e24c260c4ff86dd634860f72507680e796fed42bc3a131a8c1de0e48f93a69b5f578b1c043da15ba5cb0d0a410295d13a4e64d55f6ecd8d9
|
7
|
+
data.tar.gz: c76b247bb14ac2846bacf732db20155e7255cb9ec53cccc583b72b36f2ec3215aa409fb9c9e1ab837d488e216b3d39194c6cae07e0ac5626728df08d37fdedec
|
data/lib/bake/command/list.rb
CHANGED
@@ -55,7 +55,7 @@ module Bake
|
|
55
55
|
def print_scope(terminal, scope)
|
56
56
|
format_recipe = self.method(:format_recipe).curry
|
57
57
|
|
58
|
-
scope.recipes.
|
58
|
+
scope.recipes.sort.each do |recipe|
|
59
59
|
terminal.print_line
|
60
60
|
terminal.print_line("\t", format_recipe[recipe])
|
61
61
|
|
data/lib/bake/recipe.rb
CHANGED
@@ -33,10 +33,18 @@ module Bake
|
|
33
33
|
attr :scope
|
34
34
|
attr :name
|
35
35
|
|
36
|
+
def <=> other
|
37
|
+
self.source_location <=> other.source_location
|
38
|
+
end
|
39
|
+
|
36
40
|
def method
|
37
41
|
@method ||= @scope.method(@name)
|
38
42
|
end
|
39
43
|
|
44
|
+
def source_location
|
45
|
+
self.method.source_location
|
46
|
+
end
|
47
|
+
|
40
48
|
def parameters
|
41
49
|
parameters = method.parameters
|
42
50
|
|
data/lib/bake/version.rb
CHANGED