lib_serial 0.0.4 → 0.0.5
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/driver.rb +3 -3
- data/lib/lib_serial/version.rb +1 -1
- 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: bd11c74595f07c40ebe8ce7b0320bf57e30a4236
|
4
|
+
data.tar.gz: 186411bdc634ca39e8cf119a4127b0f9814ab465
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: d5ae7836d16405f506aa884d04b25d6064d2eaf0ad6b93672f7cab6ae0a03d894a96a71a1a1b414079338ab980cc80467b3da79f20b3948b154e1b76cdba4275
|
7
|
+
data.tar.gz: e8114d235981a3fc004fdd7f8829fa67d3b5783908e227d6388d865a712e3ede28b93c303d9545be9e016705af42fbf4d4a7ac164ba78a820fed5d678d9b1365
|
data/lib/lib_serial/driver.rb
CHANGED
@@ -3,11 +3,11 @@ require 'lib_serial/drivers/mac_os'
|
|
3
3
|
|
4
4
|
module LibSerial
|
5
5
|
module Drivers
|
6
|
-
def baud_rates
|
6
|
+
def self.baud_rates
|
7
7
|
[110,150,300,600,1200,2400,4800,9600,19200,38400,57600,115200]
|
8
8
|
end
|
9
9
|
|
10
|
-
def parity
|
10
|
+
def self.parity
|
11
11
|
{
|
12
12
|
none: '-parenb',
|
13
13
|
odd: 'parenb parodd',
|
@@ -15,7 +15,7 @@ module LibSerial
|
|
15
15
|
}
|
16
16
|
end
|
17
17
|
|
18
|
-
def flow_control
|
18
|
+
def self.flow_control
|
19
19
|
{
|
20
20
|
none: 'clocal -crtscts -ixon -ixoff',
|
21
21
|
rts_cts: '-clocal crtscts -ixon -ixoff',
|
data/lib/lib_serial/version.rb
CHANGED