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 +4 -4
- data/lib/work_list/results.rb +10 -0
- data/lib/work_list/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 9e6cd7c4fa237aa57b6be57816d0b68257a1b18b
|
4
|
+
data.tar.gz: 2141ce999bf8bd89492e137296906c33d52901e2
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: e5385449ae347c588414a8c4b08f41f562b45a47b75f5ff6cf4047b572c8b59fd45d9e2f41bce935401d489f7facfc376012547b473631b446d06866090d041b
|
7
|
+
data.tar.gz: 5a883dd1c3157e74d234ffcb4216619b8e7541b8d139edbb0696e6b3c09457164adda524a08e9070a014db2385d04dcedb4ae4fb3ce920e28613827df5d581fa
|
data/lib/work_list/results.rb
CHANGED
@@ -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
|
data/lib/work_list/version.rb
CHANGED
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.
|
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
|
11
|
+
date: 2018-02-01 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|