bake 0.4.1 → 0.4.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/bake/recipe.rb +6 -1
- data/lib/bake/version.rb +1 -1
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 6b3b57fb0631e04baba5000b3477e1f0ca9bdb35143c8928cc624c63293e6c0e
|
4
|
+
data.tar.gz: b015680730e03cb7bc60186a2d36cdcd800c7cdb772bdf7c2b1d3a5178cb5c80
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 7f8c6696f72fea3064488308761254f76fb121c65b89530b275ac50ba867d1f42e2972bc2e8a7094b243b60f134d8cb953a04157af575da081913c0cc6f3077a
|
7
|
+
data.tar.gz: 56882063d49b3e590d33ae6ef4d99171d93b7004ce9f2395e254d2468a12e8644ec7cd452214633d3084c47dec45f517cb45eb051f813b3369d4bcdb91cc681a
|
data/lib/bake/recipe.rb
CHANGED
@@ -27,6 +27,7 @@ module Bake
|
|
27
27
|
@description = nil
|
28
28
|
|
29
29
|
@method = method
|
30
|
+
@arity = nil
|
30
31
|
end
|
31
32
|
|
32
33
|
attr :scope
|
@@ -61,7 +62,11 @@ module Bake
|
|
61
62
|
end
|
62
63
|
|
63
64
|
def arity
|
64
|
-
|
65
|
+
if @arity.nil?
|
66
|
+
@arity = method.parameters.count{|type, name| type == :req}
|
67
|
+
end
|
68
|
+
|
69
|
+
return @arity
|
65
70
|
end
|
66
71
|
|
67
72
|
def prepare(arguments)
|
data/lib/bake/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: bake
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.4.
|
4
|
+
version: 0.4.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Samuel Williams
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2020-02-
|
11
|
+
date: 2020-02-27 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: samovar
|
@@ -130,7 +130,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
130
130
|
- !ruby/object:Gem::Version
|
131
131
|
version: '0'
|
132
132
|
requirements: []
|
133
|
-
rubygems_version: 3.
|
133
|
+
rubygems_version: 3.0.6
|
134
134
|
signing_key:
|
135
135
|
specification_version: 4
|
136
136
|
summary: A replacement for rake with a simpler syntax.
|