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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: de2de9bab4531fa71c87064c557b99545191a14ca86d094c46be3969f7d326a9
4
- data.tar.gz: d6623ac8144ac07a344262577aec994a4841ef5cd1e47a2b84c0ea398a8d3e2a
3
+ metadata.gz: '09b09122da0f586f8c540ad8327c90ac04b5461b1fc6a7ed82e4a19319f23330'
4
+ data.tar.gz: 1c126ad07648e80290e873ed49cf9bf9c6672d3ea9e2d181ff977a54d6208a46
5
5
  SHA512:
6
- metadata.gz: 56e1500ab363d8382e9d4f5324cdb9df36f9516974c01edf4c93e985e31a0597d50ff812853e101146f61838f563a832487309298a6c9427c3221a48d964463e
7
- data.tar.gz: cfe67d7786440d421a7b676407c9efc102b1b6e568805b9992995d762eebf4758fc3b0110804cd115b319ecc42e04caa08fa7854fb10f2141e1c5e5c853961fe
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
@@ -2,7 +2,7 @@
2
2
 
3
3
  * Jeffrey Phillips Freeman (WI2ARD) - http://JeffreyFreeman.me
4
4
 
5
- ## Past Contributors
5
+ ## Contributors
6
6
 
7
7
  * Greg Albrecht W2GMD <oss@undef.net>
8
8
  * Martin Murray (KD8LVZ)
data/lib/kiss/app_info.rb CHANGED
@@ -1,3 +1,3 @@
1
1
  module Kiss
2
- VERSION = "2.0.0"
2
+ VERSION = "2.1.0"
3
3
  end
data/lib/kiss/kiss.rb ADDED
@@ -0,0 +1,9 @@
1
+ require 'abstractify'
2
+
3
+ module Kiss
4
+ class Kiss
5
+ include Abstractify::Abstract
6
+
7
+ abstract :write_interface, :read_interface, :connect, :close
8
+ end
9
+ end
@@ -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] + [Kiss::SLOT_TIME] + [0xf0] + frame[:payload].chars.map { |c| c.ord }
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
@@ -1,3 +1,5 @@
1
1
  require 'kiss/app_info'
2
2
  require 'kiss/kiss_serial'
3
- require 'kiss/constants'
3
+ require 'kiss/constants'
4
+ require 'kiss/kiss_abstract'
5
+ require 'kiss/kiss'
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.0.0
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