the_help 3.3.2 → 3.4.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
  SHA256:
3
- metadata.gz: dc4395e67a6bb231d32bce3a2663791e8e5626b186df2cf8801bfbef60f4808d
4
- data.tar.gz: 3ff62f7e6df84f25611e7a742bcb1122468af481153c13affb1c8feafd405758
3
+ metadata.gz: 8430824b2d2a5a8b4fdf1925b234a81c9377f5916e352c967f15b084ba546386
4
+ data.tar.gz: 75a481c9cd39173aafd183ba79ee217bbce2474bcd5b1c3a7daee851cce813ba
5
5
  SHA512:
6
- metadata.gz: 184272bb541578a4da8b7c97b52febe1b45ce1f87596c7f609f5fedb2d74aaff3240c04a1560adab0f9858a776c0953b531a255e83bf0071b90f87d509003f40
7
- data.tar.gz: 7528614f77a172d920e9cf943fc4fa54f7630d341d2fb39b97b57780b5476a56399091780c421d1484048a08c472154b619136fb5f8368ac96a7451e7c41c813
6
+ metadata.gz: 9398f9ade624bf4f8ff0e843c69226ea652b39f7e713722f2559bb77daaf181593a99e0f0d28f12bfcd7e0d7cf9198a8ae69383e325a03328b81ae2992a0b49f
7
+ data.tar.gz: b050a8e67894e4fd5572c56cd76e0faf29269a847662ac06ca50da8d69ba1404b7793e84fe431a4fa91948edd389478d1349cde32eea6d933fd802b27918d91a
@@ -1,5 +1,11 @@
1
1
  # TheHelp Changelog #
2
2
 
3
+ ## 3.4.0 ##
4
+
5
+ * added `TheHelp::Service#delegate_to_service` method that can be used inside a service definition
6
+ in order to have the current service delegate to another service and use the other service's
7
+ result as its own.
8
+
3
9
  ## 3.3.0 ##
4
10
 
5
11
  * Calling `#stop!` with no arguments in a service definition will now check that a result was set
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- the_help (3.3.2)
4
+ the_help (3.4.0)
5
5
 
6
6
  GEM
7
7
  remote: https://rubygems.org/
@@ -349,5 +349,9 @@ module TheHelp
349
349
  end
350
350
  self.stop_caller ||= !continue
351
351
  end
352
+
353
+ def delegate_to_service(*args)
354
+ call_service(*args) { |result| @result = result }
355
+ end
352
356
  end
353
357
  end
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module TheHelp
4
- VERSION = '3.3.2'
4
+ VERSION = '3.4.0'
5
5
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: the_help
3
3
  version: !ruby/object:Gem::Version
4
- version: 3.3.2
4
+ version: 3.4.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - John Wilger
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2020-10-29 00:00:00.000000000 Z
11
+ date: 2020-11-13 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: byebug