kiss-tnc 2.0.0 → 2.1.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +9 -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 -1
- 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: '0330949f7d851fa7a33e94d63878140ebdabbeb83c0575e46491ee7136784875'
|
4
|
+
data.tar.gz: 4d4b10cf9fbe2108b26c77baaa6655511cedfd8df0cf8d977789bbc8b84b76d6
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: a8a809ffdb17f352d2086c4d9501c02c276df51f3570adf0bcb62025a8f65c816a8b597c46265f6337cade60c78d0816a7f9293a81248e28d88663b5fd0ba236
|
7
|
+
data.tar.gz: 1e0749c38a8f0ec6883202bf3d9b27d7278e5c68b340b76d9ddbd3aaea85303740fa982ee94ad45c8f3e217e0af3a4029dcb7f4dc24017266de18c8a6a9ede48
|
data/CHANGELOG.md
CHANGED
@@ -1,10 +1,19 @@
|
|
1
1
|
# Changelog
|
2
2
|
|
3
|
+
## 2.1.1
|
4
|
+
|
5
|
+
* Kiss was a class, it is now a module (Kiss::Kiss) to allow for mixins.
|
6
|
+
|
7
|
+
## 2.1.0
|
8
|
+
|
9
|
+
* Added a parent interface to KissAbstract called Kiss
|
10
|
+
|
3
11
|
## 2.0.0
|
4
12
|
|
5
13
|
* Moved abstraction over to abstractify library.
|
6
14
|
* Added more parsing methods so entry points now take strings rather than KISS encoded data.
|
7
15
|
* Added errors where appropriate, for example writing invalid frames now throw an IOError.
|
16
|
+
* 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
17
|
|
9
18
|
## 1.0.3
|
10
19
|
|
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,11 @@
|
|
1
1
|
require 'thread'
|
2
2
|
require 'abstractify'
|
3
3
|
require 'kiss/constants'
|
4
|
+
require 'kiss/kiss'
|
4
5
|
|
5
6
|
module Kiss
|
6
7
|
class KissAbstract
|
8
|
+
include Kiss
|
7
9
|
include Abstractify::Abstract
|
8
10
|
|
9
11
|
abstract :write_interface, :read_interface, :connect, :close
|
@@ -132,7 +134,7 @@ module Kiss
|
|
132
134
|
enc_frame += encode_callsign(parse_identity_string(hop.to_s))
|
133
135
|
end
|
134
136
|
|
135
|
-
return enc_frame[0...-1] + [enc_frame[-1] | 0x01] + [
|
137
|
+
return enc_frame[0...-1] + [enc_frame[-1] | 0x01] + [SLOT_TIME] + [0xf0] + frame[:payload].chars.map { |c| c.ord }
|
136
138
|
end
|
137
139
|
|
138
140
|
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.1
|
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
|