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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: ecca2ac61a5ec3ed4a45ceb97e4cee48b83306859c51941688d383e0d7575399
4
- data.tar.gz: 169e1b8021a4b3c30f65b310e33eee0e6d63bb2cd044f367ca799529bbba02be
3
+ metadata.gz: 229a72fb2b01f8620666a273b5cbbb1e326b80fd0c3b0a1cc2967cf628bbca6e
4
+ data.tar.gz: 240325c384794ab40525c1b1c47152f0bcdd6f319afa61df577c8b46b4659b6d
5
5
  SHA512:
6
- metadata.gz: c71918b68ca3f98eb4da13bba9c30d4a307fd42cabca57545656854027bcf4df3d1146ecdb921f508086cd85e72663ca3c26b7e286f251a822185636904626e6
7
- data.tar.gz: 652dae3f79da36c27dfbc2f94c3013e8e9ed143804b5886e0a4b8edf6255cfe535139c08eb37af54c47432a22fd92913315d71ec67100150c731c11c9a9d6733
6
+ metadata.gz: deb0caf57627b894e24c260c4ff86dd634860f72507680e796fed42bc3a131a8c1de0e48f93a69b5f578b1c043da15ba5cb0d0a410295d13a4e64d55f6ecd8d9
7
+ data.tar.gz: c76b247bb14ac2846bacf732db20155e7255cb9ec53cccc583b72b36f2ec3215aa409fb9c9e1ab837d488e216b3d39194c6cae07e0ac5626728df08d37fdedec
@@ -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.sort_by(&:command).each do |recipe|
58
+ scope.recipes.sort.each do |recipe|
59
59
  terminal.print_line
60
60
  terminal.print_line("\t", format_recipe[recipe])
61
61
 
@@ -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
 
@@ -19,5 +19,5 @@
19
19
  # THE SOFTWARE.
20
20
 
21
21
  module Bake
22
- VERSION = "0.4.3"
22
+ VERSION = "0.4.4"
23
23
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: bake
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.4.3
4
+ version: 0.4.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - Samuel Williams