kiss-tnc 2.0.0 → 2.1.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +5 -0
- data/CONTRIBUTORS.md +1 -1
- data/lib/kiss/app_info.rb +1 -1
- data/lib/kiss/kiss.rb +9 -0
- data/lib/kiss/kiss_abstract.rb +3 -2
- data/lib/kiss.rb +3 -1
- metadata +2 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: '09b09122da0f586f8c540ad8327c90ac04b5461b1fc6a7ed82e4a19319f23330'
|
4
|
+
data.tar.gz: 1c126ad07648e80290e873ed49cf9bf9c6672d3ea9e2d181ff977a54d6208a46
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 2b0df5c966c1e2082162902ec988dff74d455ebe831f774e4df32768e6ea91ece147168714fa36cd71014616f6eb384550391003a22092bace28ab6672c066f8
|
7
|
+
data.tar.gz: f6fa098359c055522eddbcabd135244e06a4d06e37b0682556e77fbd9b0c0d017bce82c25c6fad12f06c2be358647511b562be09db7ee354514720230a226764
|
data/CHANGELOG.md
CHANGED
@@ -1,10 +1,15 @@
|
|
1
1
|
# Changelog
|
2
2
|
|
3
|
+
## 2.1.0
|
4
|
+
|
5
|
+
* Added a parent interface to KissAbstract called Kiss
|
6
|
+
|
3
7
|
## 2.0.0
|
4
8
|
|
5
9
|
* Moved abstraction over to abstractify library.
|
6
10
|
* Added more parsing methods so entry points now take strings rather than KISS encoded data.
|
7
11
|
* Added errors where appropriate, for example writing invalid frames now throw an IOError.
|
12
|
+
* The write and read methods now take frames in the form of a map of strings, all encoding is now handled by the library.
|
8
13
|
|
9
14
|
## 1.0.3
|
10
15
|
|
data/CONTRIBUTORS.md
CHANGED
data/lib/kiss/app_info.rb
CHANGED
data/lib/kiss/kiss.rb
ADDED
data/lib/kiss/kiss_abstract.rb
CHANGED
@@ -1,9 +1,10 @@
|
|
1
1
|
require 'thread'
|
2
2
|
require 'abstractify'
|
3
3
|
require 'kiss/constants'
|
4
|
+
require 'kiss/kiss'
|
4
5
|
|
5
6
|
module Kiss
|
6
|
-
class KissAbstract
|
7
|
+
class KissAbstract < Kiss
|
7
8
|
include Abstractify::Abstract
|
8
9
|
|
9
10
|
abstract :write_interface, :read_interface, :connect, :close
|
@@ -132,7 +133,7 @@ module Kiss
|
|
132
133
|
enc_frame += encode_callsign(parse_identity_string(hop.to_s))
|
133
134
|
end
|
134
135
|
|
135
|
-
return enc_frame[0...-1] + [enc_frame[-1] | 0x01] + [
|
136
|
+
return enc_frame[0...-1] + [enc_frame[-1] | 0x01] + [SLOT_TIME] + [0xf0] + frame[:payload].chars.map { |c| c.ord }
|
136
137
|
end
|
137
138
|
|
138
139
|
private
|
data/lib/kiss.rb
CHANGED
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: kiss-tnc
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 2.
|
4
|
+
version: 2.1.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Jeffrey Phillips Freeman
|
@@ -128,6 +128,7 @@ files:
|
|
128
128
|
- lib/kiss.rb
|
129
129
|
- lib/kiss/app_info.rb
|
130
130
|
- lib/kiss/constants.rb
|
131
|
+
- lib/kiss/kiss.rb
|
131
132
|
- lib/kiss/kiss_abstract.rb
|
132
133
|
- lib/kiss/kiss_serial.rb
|
133
134
|
homepage: https://git.qoto.org/digipex/kiss-tnc
|