blinky-tape-test-status 1.0.0 → 1.1.0

Sign up to get free protection for your applications and to get access to all the features.
@@ -1,6 +1,6 @@
1
1
  #!/usr/bin/env ruby
2
- require_relative "blinky-tape"
2
+ require "blinky_tape_test_status"
3
3
 
4
- blinky_tape = BlinkyTape.new
4
+ blinky_tape = BlinkyTapeTestStatus::Base.new
5
5
  blinky_tape.write! *ARGV
6
6
  blinky_tape.quit!
@@ -1,7 +1,8 @@
1
1
  module BlinkyTapeTestStatus
2
2
  class Base
3
3
  def initialize(options={})
4
- @tty ||= options[:tty]
4
+ @tty ||= options[:tty] || best_guess_tty
5
+ raise "No tty specified or discoved" unless @tty
5
6
  end
6
7
 
7
8
  def blue!
@@ -49,6 +50,12 @@ module BlinkyTapeTestStatus
49
50
  end
50
51
 
51
52
  protected
53
+ def best_guess_tty
54
+ Dir.glob "/dev/tty.usbmodem*" do |tty|
55
+ return tty
56
+ end
57
+ end
58
+
52
59
  def serial_port
53
60
  @serial_port ||= SerialPort.new @tty, 9600, 8, 1, SerialPort::NONE
54
61
  end
@@ -1,3 +1,3 @@
1
1
  module BlinkyTapeTestStatus
2
- VERSION = '1.0.0'
2
+ VERSION = '1.1.0'
3
3
  end
metadata CHANGED
@@ -1,7 +1,8 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: blinky-tape-test-status
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.0
4
+ version: 1.1.0
5
+ prerelease:
5
6
  platform: ruby
6
7
  authors:
7
8
  - Jade Meskill
@@ -9,20 +10,22 @@ authors:
9
10
  autorequire:
10
11
  bindir: bin
11
12
  cert_chain: []
12
- date: 2013-12-27 00:00:00.000000000 Z
13
+ date: 2014-04-08 00:00:00.000000000 Z
13
14
  dependencies:
14
15
  - !ruby/object:Gem::Dependency
15
16
  name: serialport
16
17
  requirement: !ruby/object:Gem::Requirement
18
+ none: false
17
19
  requirements:
18
- - - '>='
20
+ - - ! '>='
19
21
  - !ruby/object:Gem::Version
20
22
  version: '0'
21
23
  type: :runtime
22
24
  prerelease: false
23
25
  version_requirements: !ruby/object:Gem::Requirement
26
+ none: false
24
27
  requirements:
25
- - - '>='
28
+ - - ! '>='
26
29
  - !ruby/object:Gem::Version
27
30
  version: '0'
28
31
  description: A Ruby interface for blinky-tape-test-status
@@ -44,25 +47,27 @@ files:
44
47
  homepage: http://rubygems.org/gems/blinky-tape-test-status
45
48
  licenses:
46
49
  - MIT
47
- metadata: {}
48
50
  post_install_message:
49
51
  rdoc_options: []
50
52
  require_paths:
51
53
  - lib
52
54
  required_ruby_version: !ruby/object:Gem::Requirement
55
+ none: false
53
56
  requirements:
54
- - - '>='
57
+ - - ! '>='
55
58
  - !ruby/object:Gem::Version
56
59
  version: '0'
57
60
  required_rubygems_version: !ruby/object:Gem::Requirement
61
+ none: false
58
62
  requirements:
59
- - - '>='
63
+ - - ! '>='
60
64
  - !ruby/object:Gem::Version
61
65
  version: '0'
62
66
  requirements: []
63
67
  rubyforge_project:
64
- rubygems_version: 2.0.2
68
+ rubygems_version: 1.8.23
65
69
  signing_key:
66
- specification_version: 4
70
+ specification_version: 3
67
71
  summary: blinky-tape-test-status
68
72
  test_files: []
73
+ has_rdoc:
checksums.yaml DELETED
@@ -1,7 +0,0 @@
1
- ---
2
- SHA1:
3
- metadata.gz: f0ad47c9d7464b498e54dd721a6ab4b5f852aca3
4
- data.tar.gz: 3c6faf21193a9db2a27dc12ed701e0ea89c988a2
5
- SHA512:
6
- metadata.gz: 882158b35983db98269b40d492b0b0d319e39768d975c20005c91278c6d14cadca56c5c6bc62a7bcb81eb8624da9b0ff972233f1162053fae6cdc0979e36dced
7
- data.tar.gz: 3260181f5c0db5f4fde08a979f5ce9adc500f0b82455b584c07d9dd4c1dc4716b3ae0cce319096f62cba0059ea791490a4fb6e02b7fc3a076f26d72ddea58a82