mushin 0.51.0 → 0.53.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 8b998fb075c66bec0eaf9732ceed7c04dfccdf73
4
- data.tar.gz: 89e62ff9ed11613fe2943e573b0d9fe92ffb7361
3
+ metadata.gz: 4785a7a901ff65c051ffa3acbdfefe871f42a969
4
+ data.tar.gz: 5aff3bfdffa50f3773b4dd9f5e649c6b20a97b92
5
5
  SHA512:
6
- metadata.gz: 8bb54ea27f6c04dfafc1277aea4428011049855c3922b35ea18847299be682729a05f80a75b32963d7451328e67c76da90d037e0a2523b64d570b3aa2afb1086
7
- data.tar.gz: 32f787a05535dd80690da1d67cb2477026456ed5b1592daf0a1f933cf8fce5d2469bc83b3852e0cc1693a0ff3d2f642700be9b717e5ccd8fc6f49a6d77640848
6
+ metadata.gz: 31d7ea07feac6da68f666babf83df18c69a0a77c2751596221ef856cb71baeed7d76277103dffac6a26af24420475b913d93809c2ff2c7b749f5b00acc38facd
7
+ data.tar.gz: 3c42ff16966e66402f500b12152239097d7b56bacb87c1bc5ecc36f5bcab21097379834c3f6e498da62823ff7505a973b7acaa9437afbfafaa7a980c57f7b836
data/exe/generator.rb CHANGED
@@ -50,6 +50,11 @@ module Mushin
50
50
  @opts = opts
51
51
  @params = params
52
52
  end
53
+
54
+ def check_params key
55
+ return (keys.all? {|key| (@params.key?(key) && !@params[key].nil?)})
56
+ end
57
+
53
58
  def call env
54
59
  env ||= Hash.new
55
60
 
@@ -1,3 +1,3 @@
1
1
  module Mushin
2
- VERSION = "0.51.0"
2
+ VERSION = "0.53.0"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: mushin
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.51.0
4
+ version: 0.53.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - zotherstupidguy