lib_serial 0.0.2 → 0.0.3
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/lib_serial/version.rb +1 -1
- data/lib/lib_serial.rb +4 -4
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 5c11d7199743ddd77ac8b7a41dcf38e91552f66f
|
4
|
+
data.tar.gz: 8763555148fac867f88595ac677d6f3fc25cdf22
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 5bce5415cb9476d007280146a0a6f2bb88633ba41061c81c268d6b618c903eaf42a96531a4e1e6ba0770b15e7860d92644311b4d25ce08696b539e28776eea3c
|
7
|
+
data.tar.gz: a2d95a579c6db53f3eefdd4ec29e55e281307264adcd1fcc1e27c7ac912c219cfe95f113628314cf013f32aa12068b76360ce27480f92440915206ce332eb5cd
|
data/lib/lib_serial/version.rb
CHANGED
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
|