artoo 1.4.0 → 1.4.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: fc2c09e0a14563f5fe2f41494c5b6585a4e03149
4
- data.tar.gz: 9ad3f22226d23f71b6669a02d49d2d7c5aacb725
3
+ metadata.gz: 57e4bd711ba505875140f81f9b2d469bad032770
4
+ data.tar.gz: 45850c141125fe86cb4ac9eb5a6af5b958748e89
5
5
  SHA512:
6
- metadata.gz: 83cdfc79670a4d97a58aeff5b0c7600def14b30305773b01955e45b31c5b583c285102334ea9c088b9f7538175fdf3aa2cfcb606770015f0ba98bdd402fd35d0
7
- data.tar.gz: cf019656c478414e7670aa65fbc57037acf0393fe1f32a20274649e9b0a23cc710e41bfa77d3fd76178b630f06d1c9671b10cbfeb1621739f54e89818fdb411b
6
+ metadata.gz: 696898f26fb1138d0cfbdef2e9975003c19024cc812b7e35e1cb2561f1abc8f1dd5515f56ad3917ce3ba3cbe46477971cb6b31e91b3af9ac0092ea8decf45f18
7
+ data.tar.gz: 666ee74c17749ba33b3a124703cbbc459954b28c8a7608b9bc826b972a74c723cda49343e2837fe1a8f56b8bdaddedfdfc8f7001f4b9a2e2640e03c0f9632866
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- artoo (1.4.0)
4
+ artoo (1.4.1)
5
5
  celluloid (~> 0.15.0)
6
6
  celluloid-io (~> 0.15.0)
7
7
  multi_json (~> 1.6)
@@ -8,7 +8,8 @@ module Artoo
8
8
  # @see https://github.com/celluloid/celluloid-io Celluloid::IO Documentation
9
9
  class Adaptor
10
10
  include Celluloid::IO
11
-
11
+ finalizer :finalize
12
+
12
13
  attr_reader :parent, :port, :additional_params
13
14
 
14
15
  # Initialize an adaptor
@@ -23,6 +24,12 @@ module Artoo
23
24
  @connected = false
24
25
  end
25
26
 
27
+ # Closes connection with device if connected
28
+ # @return [Boolean]
29
+ def finalize
30
+ disconnect if connected?
31
+ end
32
+
26
33
  # Makes connected flag true
27
34
  # @return [Boolean]
28
35
  def connect
@@ -5,15 +5,8 @@ module Artoo
5
5
  # Connect to a <%= adaptor_name %> device
6
6
  # @see device documentation for more information
7
7
  class <%= adaptor_class_name %> < Adaptor
8
- finalizer :finalize
9
8
  attr_reader :device
10
9
 
11
- # Closes connection with device if connected
12
- # @return [Boolean]
13
- def finalize
14
- disconnect if connected?
15
- end
16
-
17
10
  # Creates a connection with device
18
11
  # @return [Boolean]
19
12
  def connect
data/lib/artoo/version.rb CHANGED
@@ -1,5 +1,5 @@
1
1
  module Artoo
2
2
  unless const_defined?('VERSION')
3
- VERSION = "1.4.0"
3
+ VERSION = "1.4.1"
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: artoo
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.4.0
4
+ version: 1.4.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Ron Evans