work_list 0.2.0 → 0.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
  SHA1:
3
- metadata.gz: f0b76f7f951d3892ed1fc494199469f9376ffbe7
4
- data.tar.gz: 73403e93932e6b35da01db314e471d390930c67a
3
+ metadata.gz: 9e6cd7c4fa237aa57b6be57816d0b68257a1b18b
4
+ data.tar.gz: 2141ce999bf8bd89492e137296906c33d52901e2
5
5
  SHA512:
6
- metadata.gz: 2352bd104ca8ab8bd4a55f4fd3b2d623c236845441ab730132fadc44c27cf0df1d9b875c85e74b65faf7e8f4ffbda47aa3eb2fed0daa3a56d88c70573953b150
7
- data.tar.gz: f5069a2a9b4841e78dd271737b49791866a2186a7c4ce871e28b06e9d4722b8a69354c5cfb8a4f3852f0cf14d54ac4d8c4c5ee481d26be7023456b33ba23df89
6
+ metadata.gz: e5385449ae347c588414a8c4b08f41f562b45a47b75f5ff6cf4047b572c8b59fd45d9e2f41bce935401d489f7facfc376012547b473631b446d06866090d041b
7
+ data.tar.gz: 5a883dd1c3157e74d234ffcb4216619b8e7541b8d139edbb0696e6b3c09457164adda524a08e9070a014db2385d04dcedb4ae4fb3ce920e28613827df5d581fa
@@ -30,10 +30,20 @@ module WorkList
30
30
  @items.select { |item| item[:success] }.map { |item| item[:result] }
31
31
  end
32
32
 
33
+ def each_result(&block)
34
+ results.each(&block)
35
+ self
36
+ end
37
+
33
38
  def exceptions
34
39
  @items.reject { |item| item[:success] }.map { |item| item[:exception] }
35
40
  end
36
41
 
42
+ def each_exception(&block)
43
+ results.each(&block)
44
+ self
45
+ end
46
+
37
47
  def outcomes
38
48
  @items.map { |item| item[:success] }
39
49
  end
@@ -1,3 +1,3 @@
1
1
  module WorkList
2
- VERSION = '0.2.0'
2
+ VERSION = '0.2.1'
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: work_list
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.0
4
+ version: 0.2.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Cory Kaufman-Schofield
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2018-01-31 00:00:00.000000000 Z
11
+ date: 2018-02-01 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler