the_help 1.3.2 → 1.4.0
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 +7 -2
- data/lib/the_help/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 5c249146f67fe809e04cf0067c953b43e6c9f89511f1bdfd2c5d0419359a84d3
|
4
|
+
data.tar.gz: cace0ad0305c0222d69a58f1c4d5cf8bc05966da4e7b9785727d33e6065b2d6b
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: ffc6e68bc2ce7e0d283f2dd328fd9c48b79f2ac836e6a376930f7fc6ae4ec0e0d6ad91db14c43d3ee242b8ed715e0f25cdeb457f8b0a62c646600d3c9da82764
|
7
|
+
data.tar.gz: 64b41f6e4e5da7117c2b76100eb2b4fa546dfdcbc4ab7c1e717aaf544fad423ad0075a68c051292160b14be33fc8524fa7ff38925fb9d0e2db7eb26486870b0c
|
data/Gemfile.lock
CHANGED
data/lib/the_help/service.rb
CHANGED
@@ -125,7 +125,7 @@ module TheHelp
|
|
125
125
|
# Any arguments are passed to #initialize
|
126
126
|
def call(*args, &block)
|
127
127
|
result = new(*args).call(&block)
|
128
|
-
return result
|
128
|
+
return result unless result.is_a?(self)
|
129
129
|
self
|
130
130
|
end
|
131
131
|
|
@@ -200,6 +200,7 @@ module TheHelp
|
|
200
200
|
self.block_result = yield result if block_given?
|
201
201
|
end
|
202
202
|
return block_result if block_given?
|
203
|
+
return result if result_set?
|
203
204
|
self
|
204
205
|
end
|
205
206
|
|
@@ -251,8 +252,12 @@ module TheHelp
|
|
251
252
|
end
|
252
253
|
|
253
254
|
def result
|
254
|
-
raise TheHelp::NoResultError unless
|
255
|
+
raise TheHelp::NoResultError unless result_set?
|
255
256
|
@result
|
256
257
|
end
|
258
|
+
|
259
|
+
def result_set?
|
260
|
+
defined?(@result)
|
261
|
+
end
|
257
262
|
end
|
258
263
|
end
|
data/lib/the_help/version.rb
CHANGED
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: 1.
|
4
|
+
version: 1.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: 2018-
|
11
|
+
date: 2018-04-10 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rake
|