sterm 0.1.1 → 0.1.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +3 -1
- data/exe/sterm +29 -0
- data/lib/sterm/version.rb +1 -1
- data/sterm.gemspec +1 -0
- metadata +4 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 4a614b22fe272b9f9fe3aeee0232ce0eb3fcd7e8f98582ea695c9aa387bd95ee
|
4
|
+
data.tar.gz: bcd3bcebd69f41ef94161a162ae443cbb83e095d712bc15fa02aa361015f42ed
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: cfea39dd844f42f7664cdb44b5c48d00a2b85c76a5f1070b3bd64ef95e5cba0da81e4da5f639bd2d6fd930fae4a4cfd07d219842406aadd7e91711ed1cdedd63
|
7
|
+
data.tar.gz: 722d355566715865f5e03ffe96337576b3bd271999c6c1a247b735c913a504617d130953d436b8df72b1ac66f75eeb9b770b4ec5da184bc1caaf01f3305cb95d
|
data/README.md
CHANGED
@@ -1,5 +1,7 @@
|
|
1
1
|
# SerialTerm
|
2
|
-
SerialTerm is a very simple command line tool to output data received from a serial device
|
2
|
+
SerialTerm is a very simple command line tool to output data received from a serial device. It's built in ruby, and the <a href="https://rubygems.org/gems/serialport/versions/1.3.1" target="_blank">serialport</a> gem does most of the heavy lifting.
|
3
|
+
|
4
|
+
I've only tested this with one device but it should work for anything that uses a serial output. If you find errors/exceptions feel free to report them or fix them and issue a pull request.
|
3
5
|
|
4
6
|
## Installation
|
5
7
|
To install, just run:
|
data/exe/sterm
ADDED
@@ -0,0 +1,29 @@
|
|
1
|
+
#!/usr/bin/env ruby
|
2
|
+
|
3
|
+
# SerialTerm is a very simple command line tool that outputs data received from a serial device.
|
4
|
+
# Copyright (C) 2019 Cian Guinee
|
5
|
+
|
6
|
+
# This program is free software; you can redistribute it and/or
|
7
|
+
# modify it under the terms of the GNU General Public License
|
8
|
+
# as published by the Free Software Foundation; either version 2
|
9
|
+
# of the License, or (at your option) any later version.
|
10
|
+
|
11
|
+
# This program is distributed in the hope that it will be useful,
|
12
|
+
# but WITHOUT ANY WARRANTY; without even the implied warranty of
|
13
|
+
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
14
|
+
# GNU General Public License for more details.
|
15
|
+
|
16
|
+
# You should have received a copy of the GNU General Public License
|
17
|
+
# along with this program; if not, write to the Free Software
|
18
|
+
# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
|
19
|
+
|
20
|
+
require "sterm"
|
21
|
+
|
22
|
+
include Sterm
|
23
|
+
|
24
|
+
trap "SIGINT" do
|
25
|
+
puts "\nBye!"
|
26
|
+
exit(0)
|
27
|
+
end
|
28
|
+
|
29
|
+
Sterm.sterm(ARGV)
|
data/lib/sterm/version.rb
CHANGED
data/sterm.gemspec
CHANGED
@@ -6,6 +6,7 @@ require "sterm/version"
|
|
6
6
|
Gem::Specification.new do |spec|
|
7
7
|
spec.name = "sterm"
|
8
8
|
spec.version = Sterm::VERSION
|
9
|
+
spec.executables << 'sterm'
|
9
10
|
spec.authors = ["Cian Guinee"]
|
10
11
|
spec.email = ["cian.guinee@gmail.com"]
|
11
12
|
spec.licenses = ["GPL-2.0"] # As required by the serialport dependency
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: sterm
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Cian Guinee
|
@@ -69,7 +69,8 @@ dependencies:
|
|
69
69
|
description:
|
70
70
|
email:
|
71
71
|
- cian.guinee@gmail.com
|
72
|
-
executables:
|
72
|
+
executables:
|
73
|
+
- sterm
|
73
74
|
extensions: []
|
74
75
|
extra_rdoc_files: []
|
75
76
|
files:
|
@@ -81,6 +82,7 @@ files:
|
|
81
82
|
- bin/console
|
82
83
|
- bin/setup
|
83
84
|
- bin/sterm
|
85
|
+
- exe/sterm
|
84
86
|
- lib/sterm.rb
|
85
87
|
- lib/sterm/version.rb
|
86
88
|
- sterm.gemspec
|