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 +4 -4
- data/Gemfile.lock +1 -1
- data/lib/the_help/service.rb +2 -9
- 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: 03cf7be0ebdb3dc0dd0b1a8fe6166353fea4d4a1fa9b76ff5a538e09fb75fa44
|
4
|
+
data.tar.gz: d6b506269aa35bea4579d5f9fa3fb6e5a98d992aaeedd33f7d6f0389b9cdabbb
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: c0ad07fad6b9e9f1699e50e84825e0124518c35e57f35d7cb55962da61ce81bf096adfe97f7d9f8221abd8c355ba7d2b00a98c187edb71670bc2d942598fdcca
|
7
|
+
data.tar.gz: 84c756f0b5a843c808bfda9eb3881560a7f99e286fd6ee4ec0ab96ceb5cfa44a2e3fa2f62f11ab25ae7c0cbfc66c98455366e1109ecc7c8bfd5ef354be302796
|
data/Gemfile.lock
CHANGED
data/lib/the_help/service.rb
CHANGED
@@ -126,7 +126,7 @@ module TheHelp
|
|
126
126
|
#
|
127
127
|
# @return [Class] Returns the receiver
|
128
128
|
def call(*args, &block)
|
129
|
-
new(*args
|
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
|
-
|
207
|
-
result_handler.call(result)
|
208
|
-
end
|
201
|
+
yield result if block_given?
|
209
202
|
end
|
210
203
|
self
|
211
204
|
end
|
data/lib/the_help/version.rb
CHANGED