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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: f6cbca2741378520e8a3ff194f5b87315b530798
4
- data.tar.gz: 360235f2366aa4987d0ed2474398ca2b1e02a517
3
+ metadata.gz: 99d6c50a0bf885718135a8dc1cb68981f3687e4c
4
+ data.tar.gz: 537b7c2326b4178c298a95b2ceb914847f3b89c2
5
5
  SHA512:
6
- metadata.gz: 58a1adc49653b09c0f0d7351b376e0f624f6454d25e8c5a7dc80c2729b183618e3458f937b61109db4bd3cc9e25f08147d69d9ace4570633b2c6df0ebb7f0d4d
7
- data.tar.gz: c5b347a320a58ab2806d5d11631f3d76af125360945c781277598a1e0b1d21cf4ecbab274a6430ba38c361de431cd416327ad8da4f7c8f4133b112b0ed5c1b50
6
+ metadata.gz: 98e0c08a289ff4e3a2c7dc3b16d7447ba0ca7a4199d17b0f06c88c16d209723517e61080172b3aaaa493756c529e28fce8a9a2592a9b540f1d5c024f7683bfbd
7
+ data.tar.gz: 1f45a81b214692a2e64e1749190bcea353efd8c93ef9599d8c97640dd0e75ca6e169abd3da79f01dc3769ccf0a35010818dbba47628377c1a13e7484891fecc5
@@ -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
@@ -26,7 +26,7 @@ end
26
26
 
27
27
  gem 'json', '~> 1.8.3'
28
28
 
29
- gem 'bundler', '~> 1.13'
29
+ gem 'bundler', '~> 1.7'
30
30
  require 'bundler'
31
31
 
32
32
  gem 'rake', '~> 11.3.0'
@@ -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.13'
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'
@@ -1,3 +1,3 @@
1
1
  module Kiss
2
- VERSION = "1.0.1"
2
+ VERSION = "1.0.2"
3
3
  end
@@ -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
- @serial.write(mode_init)
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.1
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-02 00:00:00.000000000 Z
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.13'
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.13'
54
+ version: '1.7'
55
55
  - !ruby/object:Gem::Dependency
56
56
  name: rake
57
57
  requirement: !ruby/object:Gem::Requirement