monolens 0.5.0 → 0.5.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/monolens/error_handler.rb +10 -0
- data/lib/monolens/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 9f60bac69139624ed4d81f0ae72e710b384ca42f
|
4
|
+
data.tar.gz: f69b94c2440bd260a61d7619f9883501fa5237d7
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 5e9cebb9122bac25f9787f8061242b69315bac0bfa5c27eb9cea4c22802060b8b3c7d28e82c536d25011b23756f14663f00030f75d1a8852fea688b5ac6a3a55
|
7
|
+
data.tar.gz: de6e9e3fedf61c3ef624d11a958ff2de6a5e3d8babd6b8d6f65175179e015e8eff77088bcf7c93e1d571aeeb97ea67b30b94a3b90ff65922c1acd2058b1bbe96
|
@@ -1,5 +1,7 @@
|
|
1
1
|
module Monolens
|
2
2
|
class ErrorHandler
|
3
|
+
include Enumerable
|
4
|
+
|
3
5
|
def initialize
|
4
6
|
@errors = []
|
5
7
|
end
|
@@ -8,6 +10,14 @@ module Monolens
|
|
8
10
|
@errors << error
|
9
11
|
end
|
10
12
|
|
13
|
+
def each(&bl)
|
14
|
+
@errors.each(&bl)
|
15
|
+
end
|
16
|
+
|
17
|
+
def size
|
18
|
+
@errors.size
|
19
|
+
end
|
20
|
+
|
11
21
|
def empty?
|
12
22
|
@errors.empty?
|
13
23
|
end
|
data/lib/monolens/version.rb
CHANGED