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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: f2e2296038d11eb4348f89c5c048c88838815acd
4
- data.tar.gz: ebad8021a69adef79c6d1b4d178604be12374ed6
3
+ metadata.gz: b3ccc37dcb47d924a5863e87f6a46c35543976b9
4
+ data.tar.gz: 371c09614bbd72b95c613d9436d877bf3b6fc624
5
5
  SHA512:
6
- metadata.gz: 5cdbdac767187a9d438b115baad268024addcb771934b351e219fe7766b8ad44189060d8df85efe1eace04dc967bfa98914bc1ee3f6444e5ca78ef5592e1724e
7
- data.tar.gz: cb3aa1e59e7d0e4ca5284a8d779da1bfa9e4231188387ac8f024560d81f9e9d868fdb7c11bc7ab945b892897e55ab0e681a56ef7be89d3ca3fd2f5a82ef3a836
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
- actual_data == expected_data
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
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: extended_logger
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.6.5
4
+ version: 0.6.6
5
5
  platform: ruby
6
6
  authors:
7
7
  - Nathan Ladd