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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: c9ac99fc0f5d3e52744323dedb0daf626e845311f9da7abcba87af0d3c46d3a7
4
- data.tar.gz: e5a8d6b4cabdbb022ad9dd2e4b4a58b546b4c713707e4c81d415b7d9503ee12f
3
+ metadata.gz: 5c249146f67fe809e04cf0067c953b43e6c9f89511f1bdfd2c5d0419359a84d3
4
+ data.tar.gz: cace0ad0305c0222d69a58f1c4d5cf8bc05966da4e7b9785727d33e6065b2d6b
5
5
  SHA512:
6
- metadata.gz: 5e461f63789b7fc20541f3d7cd0152ab25e408d7307ee0158e7c289f6cf043af4510184d00ac45ecb9c82120710cb9414f6aed7bf077d9a17b82515a585320db
7
- data.tar.gz: 6ee4326a44896efd17b227ad52a181f8fb8fb8571230e2c53ab5309ab799a96625c90e585c1ca9899c15e1d9560c20253c6a0dccdd03d9300a37c59ed8c95fe2
6
+ metadata.gz: ffc6e68bc2ce7e0d283f2dd328fd9c48b79f2ac836e6a376930f7fc6ae4ec0e0d6ad91db14c43d3ee242b8ed715e0f25cdeb457f8b0a62c646600d3c9da82764
7
+ data.tar.gz: 64b41f6e4e5da7117c2b76100eb2b4fa546dfdcbc4ab7c1e717aaf544fad423ad0075a68c051292160b14be33fc8524fa7ff38925fb9d0e2db7eb26486870b0c
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- the_help (1.3.2)
4
+ the_help (1.4.0)
5
5
 
6
6
  GEM
7
7
  remote: https://rubygems.org/
@@ -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 if block_given?
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 defined?(@result)
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
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module TheHelp
4
- VERSION = '1.3.2'
4
+ VERSION = '1.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: 1.3.2
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-03-03 00:00:00.000000000 Z
11
+ date: 2018-04-10 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rake