extended_logger 0.6.5 → 0.6.6
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/extended_logger/extended_logger.rb +5 -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: b3ccc37dcb47d924a5863e87f6a46c35543976b9
|
4
|
+
data.tar.gz: 371c09614bbd72b95c613d9436d877bf3b6fc624
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 4d1735499906f35314397ffbc8da9b36c12ab131210076a73a7da2a934ac00efe16f42563fbef8d2aa6ebe94f9a39b3885958758306d045d03a2f0d60526e41d
|
7
|
+
data.tar.gz: 415cd2620048dfada48d89593e3b5802500f3747b28e0ace32eb294828b5252590a7ecd2dd2f9d28ec235ce8df96cb1fbeab22f7bd97715fe3c8ff9d8822c800
|
@@ -74,7 +74,11 @@ class ExtendedLogger
|
|
74
74
|
def written? expected_data
|
75
75
|
device.rewind
|
76
76
|
actual_data = device.read
|
77
|
-
|
77
|
+
|
78
|
+
case expected_data
|
79
|
+
when Regexp then expected_data.match actual_data
|
80
|
+
else actual_data == expected_data.to_s
|
81
|
+
end
|
78
82
|
end
|
79
83
|
end
|
80
84
|
end
|