bake 0.8.0 → 0.9.0

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: 24da40cece4d7deba62b4e2da664a28b672bc9aacb9c257d8e2a5e6c509f6fa2
4
- data.tar.gz: 374c18c8e2cc439b03db3af40cc1f72d66e55404d8420b88651b1b5d70394026
3
+ metadata.gz: 5aba3727b1bef4faf8ded43808247926e428eb6a0fce4fe8ec56185ab797d04e
4
+ data.tar.gz: 9c737b302ff12b1cb7d7202b40e988bb7ec6d1f0c05da74cdfba638b4e7043b0
5
5
  SHA512:
6
- metadata.gz: c2f2d82f245533bdfd80841427996770ec9b94c423b1e1a11d168293b0b8c98d2435ed35d7593fcadf9da848c9a269302e325df79da602529ac07b78ca309c2f
7
- data.tar.gz: cec40b1184938a6a0d1543400853f76ca49bb4f1616032b0922e1499628d5a24103ce20fbf3336a21824652ddb68445c6584212dae93ea72c917002093809a02
6
+ metadata.gz: 36a47243d54fac8c16599d2544060d33089640f30cbcfa18500223ceef0d2534989c62f773ea94cb17cc3663bc9e0ddbbbf6d63f2c3302c8b5f80366d43fcf21
7
+ data.tar.gz: ac47d457ae191faa4ef3fc40661c7529cade611ed700b881668e2a45d4794991c112256c173dfd7da064295a00f8b9bbbc3b157bf434e5b51f898d9fe9f2d040
data/lib/bake/context.rb CHANGED
@@ -128,12 +128,12 @@ module Bake
128
128
  def recipe_for(command)
129
129
  path = command.split(":")
130
130
 
131
- if instance = @instances[path]
131
+ if instance = @instances[path] and instance.respond_to?(path.last)
132
132
  return instance.recipe_for(path.last)
133
133
  else
134
134
  *path, name = *path
135
135
 
136
- if instance = @instances[path]
136
+ if instance = @instances[path] and instance.respond_to?(name)
137
137
  return instance.recipe_for(name)
138
138
  end
139
139
  end
data/lib/bake/version.rb CHANGED
@@ -19,5 +19,5 @@
19
19
  # THE SOFTWARE.
20
20
 
21
21
  module Bake
22
- VERSION = "0.8.0"
22
+ VERSION = "0.9.0"
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.8.0
4
+ version: 0.9.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Samuel Williams