serialclient 0.2.3 → 0.2.4
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 +7 -0
- data/VERSION +1 -1
- data/bin/serialclient +4 -4
- data/serialclient.gemspec +2 -2
- metadata +32 -27
checksums.yaml
ADDED
@@ -0,0 +1,7 @@
|
|
1
|
+
---
|
2
|
+
SHA1:
|
3
|
+
metadata.gz: 1c5233a2d2ace6f4ef74855bf8713695840a9d6b
|
4
|
+
data.tar.gz: b6f5f4a55691b733784dac2a8fb23650b5277891
|
5
|
+
SHA512:
|
6
|
+
metadata.gz: 393669453f03abb6f2ec20756a5a2d1705daf1c74b3defa332e5a6bc752d1d1395992f11352009120c20c349fbcdd3d2ca893f9b455539cabdbc5c0e97eee990
|
7
|
+
data.tar.gz: b945e13d688d3571d7b3eb183e6509e052002a807c7d62eadb51195372c30752138a8a3312851e257757b347e53ec4de6a9a58f54e2b4119f8388cf1f6026a9b
|
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
0.2.
|
1
|
+
0.2.4
|
data/bin/serialclient
CHANGED
@@ -1,4 +1,4 @@
|
|
1
|
-
#!/usr/bin/ruby
|
1
|
+
#!/usr/bin/ruby
|
2
2
|
|
3
3
|
# This file is part of Serialclient.
|
4
4
|
#
|
@@ -25,7 +25,7 @@ require 'micro-optparse'
|
|
25
25
|
options = Parser.new do |p|
|
26
26
|
p.banner = "Serial terminal client"
|
27
27
|
p.option :port, "path to serial device, ex: /dev/ttyUSB0", :default => ""
|
28
|
-
p.option :speed, "speed in baups", :default => 115200 , :value_satisfies => lambda {|x| x >= 50 && x <=
|
28
|
+
p.option :speed, "speed in baups", :default => 115200 , :value_satisfies => lambda {|x| x >= 50 && x <= 1000000}
|
29
29
|
p.option :data_bits, "data bits for modem params [5..8] on Unix [4..8] on Windows", :default => 8, :value_satisfies => lambda {|x| x >= 4 && x <= 8 }
|
30
30
|
p.option :stop_bits, "data bits for modem params", :default => 1, :value_in_set => [1, 2]
|
31
31
|
p.option :parity, "parity: NONE/EVEN/ODD/[MARK/SPACE] [Windows only]", :default => "NONE", :value_in_set => ["NONE", "EVEN", "ODD", "MARK", "SPACE"]
|
@@ -56,7 +56,7 @@ class Serial_client < Rink::Console
|
|
56
56
|
|
57
57
|
def process_line (line_) # process line is called by rink when user inputs something
|
58
58
|
@sp.write(line_+ "\n")
|
59
|
-
sleep 0.01 # if device respond to a request, it has time to display: this is only cosmetic
|
59
|
+
sleep 0.01 # if device respond to a request, it has time to display: this is only cosmetic
|
60
60
|
end
|
61
61
|
|
62
62
|
end
|
@@ -66,7 +66,7 @@ Signal.trap('TERM') do
|
|
66
66
|
Process.exit 0
|
67
67
|
end
|
68
68
|
|
69
|
-
Signal.trap('INT') do
|
69
|
+
Signal.trap('INT') do
|
70
70
|
puts "\n"
|
71
71
|
Process.exit 0
|
72
72
|
end
|
data/serialclient.gemspec
CHANGED
@@ -10,8 +10,8 @@ GEMSPEC = Gem::Specification.new do |s|
|
|
10
10
|
EOF
|
11
11
|
s.version = File.read("VERSION").strip
|
12
12
|
s.license = 'GPL-3'
|
13
|
-
s.author = "
|
14
|
-
s.email = "
|
13
|
+
s.author = ""
|
14
|
+
s.email = ""
|
15
15
|
s.homepage = "https://github.com/flagos/serialclient"
|
16
16
|
s.files = FileList["{bin}/*", "serialclient.gemspec", "VERSION"].to_a.sort
|
17
17
|
s.bindir = 'bin'
|
metadata
CHANGED
@@ -1,54 +1,60 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: serialclient
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.2.
|
5
|
-
prerelease:
|
4
|
+
version: 0.2.4
|
6
5
|
platform: ruby
|
7
6
|
authors:
|
8
|
-
-
|
7
|
+
- ''
|
9
8
|
autorequire:
|
10
9
|
bindir: bin
|
11
10
|
cert_chain: []
|
12
|
-
date:
|
11
|
+
date: 2017-02-23 00:00:00.000000000 Z
|
13
12
|
dependencies:
|
14
13
|
- !ruby/object:Gem::Dependency
|
15
14
|
name: serialport
|
16
|
-
requirement:
|
17
|
-
none: false
|
15
|
+
requirement: !ruby/object:Gem::Requirement
|
18
16
|
requirements:
|
19
|
-
- -
|
17
|
+
- - ">="
|
20
18
|
- !ruby/object:Gem::Version
|
21
19
|
version: '0'
|
22
20
|
type: :runtime
|
23
21
|
prerelease: false
|
24
|
-
version_requirements:
|
22
|
+
version_requirements: !ruby/object:Gem::Requirement
|
23
|
+
requirements:
|
24
|
+
- - ">="
|
25
|
+
- !ruby/object:Gem::Version
|
26
|
+
version: '0'
|
25
27
|
- !ruby/object:Gem::Dependency
|
26
28
|
name: rink
|
27
|
-
requirement:
|
28
|
-
none: false
|
29
|
+
requirement: !ruby/object:Gem::Requirement
|
29
30
|
requirements:
|
30
|
-
- -
|
31
|
+
- - ">="
|
31
32
|
- !ruby/object:Gem::Version
|
32
33
|
version: '0'
|
33
34
|
type: :runtime
|
34
35
|
prerelease: false
|
35
|
-
version_requirements:
|
36
|
+
version_requirements: !ruby/object:Gem::Requirement
|
37
|
+
requirements:
|
38
|
+
- - ">="
|
39
|
+
- !ruby/object:Gem::Version
|
40
|
+
version: '0'
|
36
41
|
- !ruby/object:Gem::Dependency
|
37
42
|
name: micro-optparse
|
38
|
-
requirement:
|
39
|
-
none: false
|
43
|
+
requirement: !ruby/object:Gem::Requirement
|
40
44
|
requirements:
|
41
|
-
- -
|
45
|
+
- - ">="
|
42
46
|
- !ruby/object:Gem::Version
|
43
47
|
version: '0'
|
44
48
|
type: :runtime
|
45
49
|
prerelease: false
|
46
|
-
version_requirements:
|
47
|
-
|
48
|
-
|
49
|
-
|
50
|
-
'
|
51
|
-
|
50
|
+
version_requirements: !ruby/object:Gem::Requirement
|
51
|
+
requirements:
|
52
|
+
- - ">="
|
53
|
+
- !ruby/object:Gem::Version
|
54
|
+
version: '0'
|
55
|
+
description: " Need a terminal to communicate to a serial device like Hyperterminal,
|
56
|
+
this gem has been done for you !\n"
|
57
|
+
email: ''
|
52
58
|
executables:
|
53
59
|
- serialclient
|
54
60
|
extensions: []
|
@@ -60,26 +66,25 @@ files:
|
|
60
66
|
homepage: https://github.com/flagos/serialclient
|
61
67
|
licenses:
|
62
68
|
- GPL-3
|
69
|
+
metadata: {}
|
63
70
|
post_install_message:
|
64
71
|
rdoc_options: []
|
65
72
|
require_paths:
|
66
73
|
- bin
|
67
74
|
required_ruby_version: !ruby/object:Gem::Requirement
|
68
|
-
none: false
|
69
75
|
requirements:
|
70
|
-
- -
|
76
|
+
- - ">="
|
71
77
|
- !ruby/object:Gem::Version
|
72
78
|
version: '0'
|
73
79
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
74
|
-
none: false
|
75
80
|
requirements:
|
76
|
-
- -
|
81
|
+
- - ">="
|
77
82
|
- !ruby/object:Gem::Version
|
78
83
|
version: '0'
|
79
84
|
requirements: []
|
80
85
|
rubyforge_project:
|
81
|
-
rubygems_version:
|
86
|
+
rubygems_version: 2.5.1
|
82
87
|
signing_key:
|
83
|
-
specification_version:
|
88
|
+
specification_version: 4
|
84
89
|
summary: Provides a client terminal to connect to a serial device
|
85
90
|
test_files: []
|