artoo-raspi 0.4.0 → 0.5.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
  SHA1:
3
- metadata.gz: 1f834761fadd08b3676394c8d8e7d98d6001486a
4
- data.tar.gz: 69c02de21859c3595e6e590fcd3b01fb0df08130
3
+ metadata.gz: 78bffdebb6bd643a77423176db4dac73b1e88c43
4
+ data.tar.gz: 45d5c77f4f3eaef110175a3ffc83a8ca1352bb45
5
5
  SHA512:
6
- metadata.gz: 9d2e259a6937be632bd674c57ce59dcf9d6585488fe9eb6e0e1a8f6ffbae314dcfa5cd8e9f8503e79edb74d5ea7a2fce5d466f76f53a780a12d247abd187080e
7
- data.tar.gz: e300afdea903eec06e477a62b5f4b5dcd11f8a41d5a58401eb4c44935cd67c43ab174c6167e00d75e33d91f4008b34075b3bad3b18fdb91b160c9dd2eee87247
6
+ metadata.gz: 659872ba3903d1c208729ef416d3ecc3c5d3808b56a62385711889670b7ec0705944ef3c29a99cf39fd27bb607a3e1e2c9a5d25ed36ef6072736375277db43f7
7
+ data.tar.gz: 7c07640ab82d8856bf777f677228fd271e9ed13ff987da77938a558b60d8a7153a9c596bcc56b785c64e641544704e558e4e9c0ea92543037ed5db6325a1f0c7
@@ -1,15 +1,15 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- artoo-raspi (0.4.0)
5
- artoo (>= 1.3.0)
4
+ artoo-raspi (0.5.0)
5
+ artoo (>= 1.4.0)
6
6
  artoo-gpio
7
7
  artoo-i2c
8
8
 
9
9
  GEM
10
10
  remote: http://rubygems.org/
11
11
  specs:
12
- artoo (1.3.0)
12
+ artoo (1.4.1)
13
13
  celluloid (~> 0.15.0)
14
14
  celluloid-io (~> 0.15.0)
15
15
  multi_json (~> 1.6)
@@ -17,11 +17,11 @@ GEM
17
17
  rake
18
18
  reel (~> 0.4.0)
19
19
  thor (~> 0.18.1)
20
- artoo-gpio (0.2.1)
21
- artoo (>= 1.2.2)
22
- artoo-i2c (0.2.1)
23
- artoo (>= 1.2.2)
24
- celluloid (0.15.1)
20
+ artoo-gpio (0.3.0)
21
+ artoo (>= 1.4.0)
22
+ artoo-i2c (0.4.0)
23
+ artoo (>= 1.4.0)
24
+ celluloid (0.15.2)
25
25
  timers (~> 1.1.0)
26
26
  celluloid-io (0.15.0)
27
27
  celluloid (>= 0.15.0)
@@ -36,7 +36,7 @@ GEM
36
36
  minitest-happy (1.0.0)
37
37
  mocha (0.14.0)
38
38
  metaclass (~> 0.0.1)
39
- multi_json (1.8.1)
39
+ multi_json (1.8.2)
40
40
  nio4r (0.5.0)
41
41
  pry (0.9.12.2)
42
42
  coderay (~> 1.0.5)
@@ -20,7 +20,7 @@ Gem::Specification.new do |s|
20
20
  s.executables = `git ls-files -- bin/*`.split("\n").map{ |f| File.basename(f) }
21
21
  s.require_paths = ["lib"]
22
22
 
23
- s.add_runtime_dependency 'artoo', '>= 1.3.0'
23
+ s.add_runtime_dependency 'artoo', '>= 1.4.0'
24
24
  s.add_runtime_dependency 'artoo-gpio'
25
25
  s.add_runtime_dependency 'artoo-i2c'
26
26
  s.add_development_dependency 'minitest', '>= 5.0'
@@ -1,5 +1,5 @@
1
1
  module Artoo
2
2
  module Raspi
3
- VERSION = '0.4.0'
3
+ VERSION = '0.5.0'
4
4
  end
5
5
  end
@@ -28,13 +28,8 @@ module Artoo
28
28
  24 => 8,
29
29
  26 => 7,
30
30
  }
31
- finalizer :finalize
32
- attr_reader :device, :pins, :pwm_pins, :i2c, :board_version
33
31
 
34
- # Closes connection with device if connected
35
- # @return [Boolean]
36
- def finalize
37
- end
32
+ attr_reader :device, :pins, :pwm_pins, :i2c, :board_version
38
33
 
39
34
  # Creates a connection with device
40
35
  # @return [Boolean]
@@ -48,6 +43,7 @@ module Artoo
48
43
  # Closes connection with device
49
44
  # @return [Boolean]
50
45
  def disconnect
46
+ puts "Disconnecting all PWM pins..."
51
47
  release_all_pwm_pins
52
48
  super
53
49
  end
@@ -4,7 +4,6 @@ require 'artoo/adaptors/raspi'
4
4
  describe Artoo::Adaptors::Raspi do
5
5
  before do
6
6
  @adaptor = Artoo::Adaptors::Raspi.new
7
- #@adaptor.stubs(:joystick).returns("joy")
8
7
  end
9
8
 
10
9
  describe "device info interface" do
@@ -22,9 +21,13 @@ describe Artoo::Adaptors::Raspi do
22
21
  it "#digital_write"
23
22
  end
24
23
 
24
+ describe "PWM GPIO interface" do
25
+ it "#pwm_write"
26
+ end
27
+
25
28
  describe "i2c interface" do
26
29
  it "#i2c_start"
27
30
  it "#i2c_read"
28
- it "#digital_write"
31
+ it "#i2c_write"
29
32
  end
30
33
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: artoo-raspi
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.4.0
4
+ version: 0.5.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Ron Evans
@@ -10,7 +10,7 @@ authors:
10
10
  autorequire:
11
11
  bindir: bin
12
12
  cert_chain: []
13
- date: 2013-10-05 00:00:00.000000000 Z
13
+ date: 2013-10-18 00:00:00.000000000 Z
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency
16
16
  name: artoo
@@ -18,14 +18,14 @@ dependencies:
18
18
  requirements:
19
19
  - - '>='
20
20
  - !ruby/object:Gem::Version
21
- version: 1.3.0
21
+ version: 1.4.0
22
22
  type: :runtime
23
23
  prerelease: false
24
24
  version_requirements: !ruby/object:Gem::Requirement
25
25
  requirements:
26
26
  - - '>='
27
27
  - !ruby/object:Gem::Version
28
- version: 1.3.0
28
+ version: 1.4.0
29
29
  - !ruby/object:Gem::Dependency
30
30
  name: artoo-gpio
31
31
  requirement: !ruby/object:Gem::Requirement