kiss-tnc 1.0.1 → 1.0.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +6 -0
- data/Rakefile +1 -1
- data/kiss-tnc.gemspec +1 -1
- data/lib/kiss/app_info.rb +1 -1
- data/lib/kiss/kiss_serial.rb +4 -1
- metadata +4 -4
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 99d6c50a0bf885718135a8dc1cb68981f3687e4c
|
4
|
+
data.tar.gz: 537b7c2326b4178c298a95b2ceb914847f3b89c2
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 98e0c08a289ff4e3a2c7dc3b16d7447ba0ca7a4199d17b0f06c88c16d209723517e61080172b3aaaa493756c529e28fce8a9a2592a9b540f1d5c024f7683bfbd
|
7
|
+
data.tar.gz: 1f45a81b214692a2e64e1749190bcea353efd8c93ef9599d8c97640dd0e75ca6e169abd3da79f01dc3769ccf0a35010818dbba47628377c1a13e7484891fecc5
|
data/CHANGELOG.md
CHANGED
@@ -1,5 +1,11 @@
|
|
1
1
|
# Changelog
|
2
2
|
|
3
|
+
## 1.0.2
|
4
|
+
|
5
|
+
* Fixed a bug where bytes were not written to the serial stream correctly.
|
6
|
+
* Now correctly handles writing both byte arrays and strings to the serial port.
|
7
|
+
* Fixed connect method so it properly sends the initialize codes.
|
8
|
+
|
3
9
|
## 1.0.1
|
4
10
|
|
5
11
|
* Added serialport gem as a project dependency.
|
data/Rakefile
CHANGED
data/kiss-tnc.gemspec
CHANGED
@@ -31,7 +31,7 @@ Gem::Specification.new do |spec|
|
|
31
31
|
|
32
32
|
spec.add_dependency 'abstraction', '~> 0.0.4'
|
33
33
|
spec.add_dependency 'serialport', '~> 1.3'
|
34
|
-
spec.add_development_dependency 'bundler', '~> 1.
|
34
|
+
spec.add_development_dependency 'bundler', '~> 1.7'
|
35
35
|
spec.add_development_dependency 'rake', '~> 11.3'
|
36
36
|
spec.add_development_dependency 'rdoc', '~> 4.2'
|
37
37
|
spec.add_development_dependency 'aruba', '~> 0.14'
|
data/lib/kiss/app_info.rb
CHANGED
data/lib/kiss/kiss_serial.rb
CHANGED
@@ -39,6 +39,9 @@ module Kiss
|
|
39
39
|
|
40
40
|
protected
|
41
41
|
def write_interface(data)
|
42
|
+
unless data.is_a? String
|
43
|
+
data = data.map { |b| b.chr }.join
|
44
|
+
end
|
42
45
|
@serial.write(data)
|
43
46
|
end
|
44
47
|
|
@@ -50,7 +53,7 @@ module Kiss
|
|
50
53
|
@serial.read_timeout = SERIAL_READ_TIMEOUT
|
51
54
|
|
52
55
|
if mode_init
|
53
|
-
|
56
|
+
write_interface(mode_init)
|
54
57
|
@exit_kiss = true
|
55
58
|
else
|
56
59
|
@exit_kiss = false
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: kiss-tnc
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.0.
|
4
|
+
version: 1.0.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Jeffrey Phillips Freeman
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2016-10-
|
11
|
+
date: 2016-10-04 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: abstraction
|
@@ -44,14 +44,14 @@ dependencies:
|
|
44
44
|
requirements:
|
45
45
|
- - "~>"
|
46
46
|
- !ruby/object:Gem::Version
|
47
|
-
version: '1.
|
47
|
+
version: '1.7'
|
48
48
|
type: :development
|
49
49
|
prerelease: false
|
50
50
|
version_requirements: !ruby/object:Gem::Requirement
|
51
51
|
requirements:
|
52
52
|
- - "~>"
|
53
53
|
- !ruby/object:Gem::Version
|
54
|
-
version: '1.
|
54
|
+
version: '1.7'
|
55
55
|
- !ruby/object:Gem::Dependency
|
56
56
|
name: rake
|
57
57
|
requirement: !ruby/object:Gem::Requirement
|