green_eye_monitor 0.0.4 → 0.0.5

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: 7663ce5a7fac9acec62f26da6736257acd048c09
4
- data.tar.gz: bdf2c0843106306a6fb8ea85750028fdf18a95f6
3
+ metadata.gz: 40a349cf7f93cf035f1f2bdc2f8ad697537f045b
4
+ data.tar.gz: 70c474480c45c022bfc7a6487e3d3b59ba54833f
5
5
  SHA512:
6
- metadata.gz: 2d037172e610ae30773832c2a7d3d31da14e1765626a3d908ea3fab3187c8d931526323ce7f221d935c9fb1ab64a5ab5faa05d63617497072e01bfeab983af59
7
- data.tar.gz: e7d7a2748ffbd88b8f94843da8007d71672ddf10d6b18476e277fc562d4e9cb7e7165dd1ddc52cf4b9240eda7348562011d1a28bc970e8f4a31f0e49cc4d21a4
6
+ metadata.gz: fd9953572437c8c51db7dfb988f1b2d0502bf25e3dab3bd36d07241c705fea40937665a51bfb087a177ea8ba7ed4bf7e82ba2debdd9be303d6aa26f1a5d4bc12
7
+ data.tar.gz: 6be5f19032e47ef3fa0a10aeef7beb30480ff252c756728478c2a2f6cb32ed0417d984346c29692888b478929bd85fce1edd8878cf0802531a31508b0d19668e
@@ -1,5 +1,9 @@
1
1
  # Changelog
2
2
 
3
+ # 0.0.5 (20160518)
4
+
5
+ * Fix serial waiting logic (@johnf)
6
+
3
7
  # 0.0.4 (20160518)
4
8
 
5
9
  * Don't wait on serial port forever (@johnf)
@@ -269,9 +269,10 @@ module GreenEyeMonitor
269
269
  iterations = 5 * 1_000 / @serial.read_timeout
270
270
 
271
271
  i = 0
272
+ byte = nil
272
273
  loop do
273
274
  byte = @serial.getbyte
274
- break if byte.nil?
275
+ break unless byte.nil?
275
276
 
276
277
  i += 1
277
278
  raise(Errors::Timeout, 'Waited too long for data') if i > iterations
@@ -1,3 +1,3 @@
1
1
  module GreenEyeMonitor
2
- VERSION = '0.0.4'.freeze
2
+ VERSION = '0.0.5'.freeze
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: green_eye_monitor
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.4
4
+ version: 0.0.5
5
5
  platform: ruby
6
6
  authors:
7
7
  - John Ferlito