lib_serial 0.0.2 → 0.0.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 1adcd9b62946210edc66a311e87100786bd33af6
4
- data.tar.gz: 6296ceba5addfc2d8a56aa0557e0e9e3e6938e0b
3
+ metadata.gz: 5c11d7199743ddd77ac8b7a41dcf38e91552f66f
4
+ data.tar.gz: 8763555148fac867f88595ac677d6f3fc25cdf22
5
5
  SHA512:
6
- metadata.gz: 36d4dd743db945b5d3168d9bfe577cca3fdaba702e9e9e0149f7c056f4c46e4cc90041182b7e6105db8c896c804cfe1c55c6526fd08370603b0bbbb7a5e8b441
7
- data.tar.gz: 499d742b9b0f83878ad36186da1656b8cd4f11c8dc4e11675840d65496d75c80027a795521634d1d851cac695f90853f5298cdb70281880c15c4c430d4d87a5b
6
+ metadata.gz: 5bce5415cb9476d007280146a0a6f2bb88633ba41061c81c268d6b618c903eaf42a96531a4e1e6ba0770b15e7860d92644311b4d25ce08696b539e28776eea3c
7
+ data.tar.gz: a2d95a579c6db53f3eefdd4ec29e55e281307264adcd1fcc1e27c7ac912c219cfe95f113628314cf013f32aa12068b76360ce27480f92440915206ce332eb5cd
@@ -1,3 +1,3 @@
1
1
  module LibSerial
2
- VERSION = '0.0.2'
2
+ VERSION = '0.0.3'
3
3
  end
data/lib/lib_serial.rb CHANGED
@@ -3,19 +3,19 @@ require 'lib_serial/driver'
3
3
  require 'lib_serial/serial_port'
4
4
 
5
5
  module LibSerial
6
- def windows?
6
+ def self.windows?
7
7
  (/cygwin|mswin|mingw|bccwin|wince|emx/ =~ RUBY_PLATFORM) != nil
8
8
  end
9
9
 
10
- def mac?
10
+ def self.mac?
11
11
  (/darwin/ =~ RUBY_PLATFORM) != nil
12
12
  end
13
13
 
14
- def unix?
14
+ def self.unix?
15
15
  !LibSerial.windows?
16
16
  end
17
17
 
18
- def linux?
18
+ def self.linux?
19
19
  LibSerial.unix? and not LibSerial.mac?
20
20
  end
21
21
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: lib_serial
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.2
4
+ version: 0.0.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Dustin Ward