the_help 1.2.0 → 1.2.1

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 9839566fa2430a430f15129d61d210d5140a9799eb85de929ea3d04768821e90
4
- data.tar.gz: fc9e5f57c9e615edd1a2858893ca8529dd2c471dcc7a0e9f57bc16b96f428cdb
3
+ metadata.gz: 03cf7be0ebdb3dc0dd0b1a8fe6166353fea4d4a1fa9b76ff5a538e09fb75fa44
4
+ data.tar.gz: d6b506269aa35bea4579d5f9fa3fb6e5a98d992aaeedd33f7d6f0389b9cdabbb
5
5
  SHA512:
6
- metadata.gz: 6a202d3b4725139bec17b7644279486ba9c71abd6ccc6f904f749e473c012460c0264809796523d518c9172e16e36e325e55aa7a1cc03b26b4a7eefe86fed3c8
7
- data.tar.gz: df6f0dcbc797265af71b36725e554143f027eeed97c2963318fb56e73cf91cb1323eaa1d59ef6f5be4941a147b501017d28d2fbf396e00a8084ea6c702634259
6
+ metadata.gz: c0ad07fad6b9e9f1699e50e84825e0124518c35e57f35d7cb55962da61ce81bf096adfe97f7d9f8221abd8c355ba7d2b00a98c187edb71670bc2d942598fdcca
7
+ data.tar.gz: 84c756f0b5a843c808bfda9eb3881560a7f99e286fd6ee4ec0ab96ceb5cfa44a2e3fa2f62f11ab25ae7c0cbfc66c98455366e1109ecc7c8bfd5ef354be302796
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- the_help (1.2.0)
4
+ the_help (1.2.1)
5
5
 
6
6
  GEM
7
7
  remote: https://rubygems.org/
@@ -126,7 +126,7 @@ module TheHelp
126
126
  #
127
127
  # @return [Class] Returns the receiver
128
128
  def call(*args, &block)
129
- new(*args, &block).call
129
+ new(*args).call(&block)
130
130
  self
131
131
  end
132
132
 
@@ -190,11 +190,6 @@ module TheHelp
190
190
  self.logger = logger
191
191
  self.not_authorized = not_authorized
192
192
  self.inputs = inputs
193
- if block_given?
194
- self.result_handler = ->(result) {
195
- yield result
196
- }
197
- end
198
193
  end
199
194
 
200
195
  def call
@@ -203,9 +198,7 @@ module TheHelp
203
198
  authorize
204
199
  log_service_call
205
200
  main
206
- unless result_handler.nil?
207
- result_handler.call(result)
208
- end
201
+ yield result if block_given?
209
202
  end
210
203
  self
211
204
  end
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module TheHelp
4
- VERSION = '1.2.0'
4
+ VERSION = '1.2.1'
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: 1.2.0
4
+ version: 1.2.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - John Wilger