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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: b1529f0d2832e0d69096c3a00b7bf5a909b75f8b14b59a1a49aed87248d4935a
4
- data.tar.gz: 80f2d717ef93107427856d2057672381067ef52939083f79dae38932df8c4b23
3
+ metadata.gz: dc4395e67a6bb231d32bce3a2663791e8e5626b186df2cf8801bfbef60f4808d
4
+ data.tar.gz: 3ff62f7e6df84f25611e7a742bcb1122468af481153c13affb1c8feafd405758
5
5
  SHA512:
6
- metadata.gz: 376ecebb8cd352e0217f8d27fe3f7784ab2bf258454da67f9abdf1b68ba67bf99214f683e8041ef68e016ccb55cfe2492910eae0521652469ffe0b77b86d5e4a
7
- data.tar.gz: b476d0491c4cb3a2f1c9a0149b1ac385d0f4ac6d033d4f0de8a061be6e1c47bbcda58a01fab928d0b93855aaeb14ffcc59d7030913923182479c4ecff54829ca
6
+ metadata.gz: 184272bb541578a4da8b7c97b52febe1b45ce1f87596c7f609f5fedb2d74aaff3240c04a1560adab0f9858a776c0953b531a255e83bf0071b90f87d509003f40
7
+ data.tar.gz: 7528614f77a172d920e9cf943fc4fa54f7630d341d2fb39b97b57780b5476a56399091780c421d1484048a08c472154b619136fb5f8368ac96a7451e7c41c813
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- the_help (3.3.1)
4
+ the_help (3.3.2)
5
5
 
6
6
  GEM
7
7
  remote: https://rubygems.org/
@@ -325,14 +325,14 @@ module TheHelp
325
325
  end
326
326
 
327
327
  def stop!(type: :error, **opts)
328
- if opts.has_key?(:value)
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
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module TheHelp
4
- VERSION = '3.3.1'
4
+ VERSION = '3.3.2'
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: the_help
3
3
  version: !ruby/object:Gem::Version
4
- version: 3.3.1
4
+ version: 3.3.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - John Wilger