corn_starch 1.9.35 → 1.9.36
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:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 8d96654e29272c7705c0521d7285d22b821ba5f3
|
|
4
|
+
data.tar.gz: 8786ca341a3b1aa1653f59e24910edf146a97200
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: f0c23194d3a4e95e172e3ef98aa156e6e533291da579d56ccb9f1dab212fefbbcd7930926a95efdad582afaa751c6a9cc8cf047e60de1ea4d0506ccdb68409d5
|
|
7
|
+
data.tar.gz: 3f7ea8441f91f4fc8b049df35bdd06917dd355f3f99fbeeba670e79c4cd0b27eb6917ab7d59993b100473c396a9c287eef020c5588359f038ab62b04ed34a6fb
|
|
@@ -267,13 +267,13 @@ module CornStarch
|
|
|
267
267
|
end
|
|
268
268
|
|
|
269
269
|
# Build Notification
|
|
270
|
-
def notify key,
|
|
270
|
+
def notify key, body_hash = nil, head_hash = nil
|
|
271
271
|
{ head: t("#{key}.head", head_hash), body: t("#{key}.body", body_hash) }
|
|
272
272
|
end
|
|
273
273
|
|
|
274
274
|
# Build Pass / Fail Notification
|
|
275
|
-
def notify_res key, res,
|
|
276
|
-
Hash[[:pass, :fail].map { |r| notify "#{key}.#{r}",
|
|
275
|
+
def notify_res key, res, body_hash = nil, head_hash = nil
|
|
276
|
+
Hash[[:pass, :fail].map { |r| notify "#{key}.#{r}", body_hash, head_hash }][res]
|
|
277
277
|
end
|
|
278
278
|
|
|
279
279
|
# Build Access-Denied Notification
|
data/lib/corn_starch/version.rb
CHANGED