sterm 0.1.1 → 0.1.2

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
  SHA256:
3
- metadata.gz: 776cd3fc4c213366de13bc93d5c1e3cb4b42b981626f7ce7c538095001e33915
4
- data.tar.gz: f3d71305c1eba773032a0206c1a4349a26b218b6c8473983d6daeecf2fdc12fb
3
+ metadata.gz: 4a614b22fe272b9f9fe3aeee0232ce0eb3fcd7e8f98582ea695c9aa387bd95ee
4
+ data.tar.gz: bcd3bcebd69f41ef94161a162ae443cbb83e095d712bc15fa02aa361015f42ed
5
5
  SHA512:
6
- metadata.gz: eb6fe554527b454bb97cd85561337bd51a91aa2e0e096a73b4777a568e05462abf95703b70b3dd3b3620fee66d52fb74a826f7fdb9e97f22f95de5617ed05c33
7
- data.tar.gz: 2c7be6c1557600f798c5ac47ddcea3c81ca25423d1b593d46a0c7cc1e2e110456572cc94cc9fc68889290b82a8d8e9369ff7ca8afe79cf014f805613404782a1
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 using the <a href="https://rubygems.org/gems/serialport/versions/1.3.1" target="_blank">serialport</a> gem.
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:
@@ -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)
@@ -16,5 +16,5 @@
16
16
  # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
17
17
 
18
18
  module Sterm
19
- VERSION = "0.1.1"
19
+ VERSION = "0.1.2"
20
20
  end
@@ -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.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