blinky-tape-test-status 1.1.1 → 1.1.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: c804c8d907077db395019a497f811b4bab3e4e9e
4
- data.tar.gz: 1be76863498ff3102003609794b31293353b25a9
3
+ metadata.gz: a46ac78892cf56f339354fb9caf457ad23bb5209
4
+ data.tar.gz: ddf315c6131afb1fb1977da94b47f9b742a44e3a
5
5
  SHA512:
6
- metadata.gz: 2ee3c86f29c9fffc7c5ff91fce1a8307c8975772fef49af26581d21110a719119d746480c79403d1f27fccac7e448f694da0ac4ec0a30f0b3463c5f859220361
7
- data.tar.gz: 77b97d411a252ce1aa498224cdde5dffaf8a8c2e2cee609fe835a78c0a571959f32be18c75d1e9ea42c461421678940b460b84e61ddadc962e98903800fbab75
6
+ metadata.gz: fbfccacadcb2375255961149f93689ef528fcf4f6097318ef78581a7c77e84f8a2510c88f1c148703bc8dcb98ef351327d59353afbb4da95eded00fa5f85a9d9
7
+ data.tar.gz: 323e89a52521ef3f149a08b2df46143623713f7b531310020ad650c6610d0cf3489fa699e7b26a60234d894fcf7b2f53d2117b118ff0e9d1129b5580def6bbe1
data/Gemfile CHANGED
@@ -1,4 +1,4 @@
1
1
  # A sample Gemfile
2
2
  source "https://rubygems.org"
3
3
 
4
- gem 'serialport'
4
+ gemspec
data/Gemfile.lock ADDED
@@ -0,0 +1,16 @@
1
+ PATH
2
+ remote: .
3
+ specs:
4
+ blinky-tape-test-status (1.1.1)
5
+ serialport
6
+
7
+ GEM
8
+ remote: https://rubygems.org/
9
+ specs:
10
+ serialport (1.3.0)
11
+
12
+ PLATFORMS
13
+ ruby
14
+
15
+ DEPENDENCIES
16
+ blinky-tape-test-status!
@@ -53,8 +53,24 @@ module BlinkyTapeTestStatus
53
53
 
54
54
  protected
55
55
  def best_guess_tty
56
- Dir.glob "/dev/tty.usbmodem*" do |tty|
57
- return tty
56
+ if Gem.win_platform?
57
+ best_guess_tty_windows
58
+ else
59
+ Dir.glob "/dev/tty.usbmodem*" do |tty|
60
+ return tty
61
+ end
62
+ end
63
+ end
64
+
65
+ def best_guess_tty_windows
66
+ 0.upto(10) do |x|
67
+ @tty = x
68
+ begin
69
+ serial_port
70
+ @tty = nil
71
+ return x
72
+ rescue Errno::ENOENT
73
+ end
58
74
  end
59
75
  end
60
76
 
@@ -1,3 +1,3 @@
1
1
  module BlinkyTapeTestStatus
2
- VERSION = '1.1.1'
2
+ VERSION = '1.1.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: 1.1.1
4
+ version: 1.1.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Jade Meskill
@@ -9,20 +9,20 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2014-04-11 00:00:00.000000000 Z
12
+ date: 2014-04-22 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: serialport
16
16
  requirement: !ruby/object:Gem::Requirement
17
17
  requirements:
18
- - - ">="
18
+ - - '>='
19
19
  - !ruby/object:Gem::Version
20
20
  version: '0'
21
21
  type: :runtime
22
22
  prerelease: false
23
23
  version_requirements: !ruby/object:Gem::Requirement
24
24
  requirements:
25
- - - ">="
25
+ - - '>='
26
26
  - !ruby/object:Gem::Version
27
27
  version: '0'
28
28
  description: A Ruby interface for blinky-tape-test-status
@@ -32,8 +32,9 @@ executables:
32
32
  extensions: []
33
33
  extra_rdoc_files: []
34
34
  files:
35
- - ".gitignore"
35
+ - .gitignore
36
36
  - Gemfile
37
+ - Gemfile.lock
37
38
  - LICENSE
38
39
  - README.md
39
40
  - bin/blinky-tape-test-tool
@@ -51,12 +52,12 @@ require_paths:
51
52
  - lib
52
53
  required_ruby_version: !ruby/object:Gem::Requirement
53
54
  requirements:
54
- - - ">="
55
+ - - '>='
55
56
  - !ruby/object:Gem::Version
56
57
  version: '0'
57
58
  required_rubygems_version: !ruby/object:Gem::Requirement
58
59
  requirements:
59
- - - ">="
60
+ - - '>='
60
61
  - !ruby/object:Gem::Version
61
62
  version: '0'
62
63
  requirements: []