the_help 3.3.1 → 3.3.2
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 +4 -4
- data/Gemfile.lock +1 -1
- data/lib/the_help/service.rb +7 -7
- data/lib/the_help/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: dc4395e67a6bb231d32bce3a2663791e8e5626b186df2cf8801bfbef60f4808d
|
|
4
|
+
data.tar.gz: 3ff62f7e6df84f25611e7a742bcb1122468af481153c13affb1c8feafd405758
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 184272bb541578a4da8b7c97b52febe1b45ce1f87596c7f609f5fedb2d74aaff3240c04a1560adab0f9858a776c0953b531a255e83bf0071b90f87d509003f40
|
|
7
|
+
data.tar.gz: 7528614f77a172d920e9cf943fc4fa54f7630d341d2fb39b97b57780b5476a56399091780c421d1484048a08c472154b619136fb5f8368ac96a7451e7c41c813
|
data/Gemfile.lock
CHANGED
data/lib/the_help/service.rb
CHANGED
|
@@ -325,14 +325,14 @@ module TheHelp
|
|
|
325
325
|
end
|
|
326
326
|
|
|
327
327
|
def stop!(type: :error, **opts)
|
|
328
|
-
|
|
329
|
-
if type == :success
|
|
330
|
-
result.success value
|
|
331
|
-
else
|
|
332
|
-
result.error value
|
|
333
|
-
end
|
|
334
|
-
else
|
|
328
|
+
value = opts.fetch(:value) { |key|
|
|
335
329
|
check_result!
|
|
330
|
+
throw :stop
|
|
331
|
+
}
|
|
332
|
+
if type == :success
|
|
333
|
+
result.success value
|
|
334
|
+
else
|
|
335
|
+
result.error value
|
|
336
336
|
end
|
|
337
337
|
throw :stop
|
|
338
338
|
end
|
data/lib/the_help/version.rb
CHANGED