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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 144a3c9af8e24a615a96bdee20289797e61f6682f871201317a2a239e91892f3
4
- data.tar.gz: a44cf0b9bc9707807c29dca1f5e3cd9645903b9bfd4df67e716512a2c74a9b81
3
+ metadata.gz: 6b3b57fb0631e04baba5000b3477e1f0ca9bdb35143c8928cc624c63293e6c0e
4
+ data.tar.gz: b015680730e03cb7bc60186a2d36cdcd800c7cdb772bdf7c2b1d3a5178cb5c80
5
5
  SHA512:
6
- metadata.gz: b832fe843062980d070f90ceaf4d6d8d84e02984c9e191759f0af4df2b6d77ddd4f043ec147744f8c4728e39fdff0574645c1846d0b1ab919c5ec3e66189a43e
7
- data.tar.gz: a57b5703daa1a3d41dd9e388833a0659a36cfaa5d97e38571e1269bcdf851d3c21030178211841327709e52cd57c4db253ddc2d43293e0d5dbe73c06b3d7f5ba
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
- method.arity
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
@@ -19,5 +19,5 @@
19
19
  # THE SOFTWARE.
20
20
 
21
21
  module Bake
22
- VERSION = "0.4.1"
22
+ VERSION = "0.4.2"
23
23
  end
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.1
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-20 00:00:00.000000000 Z
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.1.2
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.