blinky-tape-test-status 0.0.1 → 0.0.2

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: 3a2fcdcd66d4074f9242f0a309262ea66e8d82a1
4
- data.tar.gz: 77bb359f3f88e26bcf398d654a3ad4f1d8c9e9f8
3
+ metadata.gz: 7a28d6bedd21d8c1b25ae940004c30aca11b609d
4
+ data.tar.gz: 4a884752a81e75987f9f08f0fbd01666606d8f78
5
5
  SHA512:
6
- metadata.gz: 9fe710ab32b7c18939abc039fdb499eb94cfd45ff54e3c009550ec2d35081a25c42647d3fbad241f543c18fb2d5e733ca4bf74537b39c9cee6dba2fbfce22c00
7
- data.tar.gz: 680fc86acce7599ace7e8935eea0bd686673c3ebc7981216d8c64a456421b643882fc4fd22e55affbc704ddce82fd0a65c3472dd992a3b472408ee025fe9a489
6
+ metadata.gz: 4542becc1c251717bfae063bb8935814263e067dfbffab8ad1180e43bacca7ed661532bd6f8b04d9e15c4e6513b466dd9e3b30e7409fa61b11fec64832a1bc91
7
+ data.tar.gz: 4a98dea9249d49a1ff7bab93a95fe2d6e1928ae38634b0793dc7e8530594f5beafd5d65588f2643e3ae408b89accb4a973eb43a8329ebe368e5b68c3e9e5695a
@@ -4,7 +4,6 @@ require "blinky_tape_test_status/version"
4
4
  Gem::Specification.new do |s|
5
5
  s.name = 'blinky-tape-test-status'
6
6
  s.version = BlinkyTapeTestStatus::VERSION
7
- s.date = '2013-12-26'
8
7
  s.summary = "blinky-tape-test-status"
9
8
  s.description = "A Ruby interface for blinky-tape-test-status"
10
9
  s.authors = ["Jade Meskill", "Roy van de Water"]
@@ -1,4 +1,3 @@
1
1
  #!/usr/bin/env ruby
2
- require "blinky_tape_test_status/base"
3
2
  require "serialport"
4
-
3
+ require "blinky_tape_test_status/base"
@@ -1,5 +1,9 @@
1
1
  module BlinkyTapeTestStatus
2
2
  class Base
3
+ def initialize(options={})
4
+ @tty ||= options[:tty]
5
+ end
6
+
3
7
  def blue!
4
8
  write! 'sb'
5
9
  end
@@ -46,7 +50,7 @@ module BlinkyTapeTestStatus
46
50
 
47
51
  protected
48
52
  def serial_port
49
- @serial_port ||= SerialPort.new '/dev/ttyACM0', 9600, 8, 1, SerialPort::NONE
53
+ @serial_port ||= SerialPort.new @tty, 9600, 8, 1, SerialPort::NONE
50
54
  end
51
55
 
52
56
  def valid_port
@@ -1,3 +1,3 @@
1
1
  module BlinkyTapeTestStatus
2
- VERSION = '0.0.1'
2
+ VERSION = '0.0.2'
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: blinky-tape-test-status
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.1
4
+ version: 0.0.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Jade Meskill
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2013-12-26 00:00:00.000000000 Z
12
+ date: 2013-12-27 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: serialport