artoo-raspi 0.6.1 → 0.7.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/Gemfile.lock +28 -25
- data/README.md +1 -1
- data/lib/artoo-raspi/version.rb +1 -1
- data/lib/artoo/adaptors/raspi.rb +6 -0
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 33ff012c4ae4e9e15dddf1794dd8e035282193bb
|
4
|
+
data.tar.gz: 1ed597e05f4f5322d7927ce266992fec155c6c45
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 82ea59838d6c9be4a5742fb0f8c30414fde4814d8b0ebb33c474e7830892e77b5b3854d1a7e8668e807d253a0003f3b5807394096b5d91316c52741ecf352050
|
7
|
+
data.tar.gz: baee010d98adf44cda47c236d0209e5157f557b9ea0071cf15119027b4987340edd33e68a83cf9c6d4f174e3dd748c39dece8f12581db5e63dd421fb70c6f33f
|
data/Gemfile.lock
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
PATH
|
2
2
|
remote: .
|
3
3
|
specs:
|
4
|
-
artoo-raspi (0.
|
4
|
+
artoo-raspi (0.7.0)
|
5
5
|
artoo (>= 1.6.0)
|
6
6
|
artoo-gpio
|
7
7
|
artoo-i2c
|
@@ -9,27 +9,29 @@ PATH
|
|
9
9
|
GEM
|
10
10
|
remote: http://rubygems.org/
|
11
11
|
specs:
|
12
|
-
artoo (1.
|
13
|
-
celluloid (~> 0.
|
14
|
-
celluloid-io (~> 0.
|
15
|
-
|
16
|
-
|
12
|
+
artoo (1.8.1)
|
13
|
+
celluloid (~> 0.16.0)
|
14
|
+
celluloid-io (~> 0.16.0)
|
15
|
+
http (~> 0.6.1)
|
16
|
+
multi_json (~> 1.10.1)
|
17
|
+
pry (~> 0.9.0)
|
17
18
|
rake
|
18
|
-
reel (~> 0.
|
19
|
-
robeaux (
|
20
|
-
thor (~> 0.
|
19
|
+
reel (~> 0.5.0)
|
20
|
+
robeaux (= 0.4.1)
|
21
|
+
thor (~> 0.19.1)
|
21
22
|
artoo-gpio (0.4.0)
|
22
23
|
artoo (>= 1.6.0)
|
23
24
|
artoo-i2c (0.5.0)
|
24
25
|
artoo (>= 1.6.0)
|
25
|
-
celluloid (0.
|
26
|
-
timers (~>
|
27
|
-
celluloid-io (0.
|
28
|
-
celluloid (>= 0.
|
29
|
-
nio4r (>=
|
26
|
+
celluloid (0.16.0)
|
27
|
+
timers (~> 4.0.0)
|
28
|
+
celluloid-io (0.16.2)
|
29
|
+
celluloid (>= 0.16.0)
|
30
|
+
nio4r (>= 1.1.0)
|
30
31
|
coderay (1.1.0)
|
31
|
-
|
32
|
-
|
32
|
+
hitimes (1.2.3)
|
33
|
+
http (0.6.4)
|
34
|
+
http_parser.rb (~> 0.6.0)
|
33
35
|
http_parser.rb (0.6.0)
|
34
36
|
metaclass (0.0.1)
|
35
37
|
method_source (0.8.2)
|
@@ -37,23 +39,24 @@ GEM
|
|
37
39
|
minitest-happy (1.0.0)
|
38
40
|
mocha (0.14.0)
|
39
41
|
metaclass (~> 0.0.1)
|
40
|
-
multi_json (1.
|
41
|
-
nio4r (1.
|
42
|
+
multi_json (1.10.1)
|
43
|
+
nio4r (1.2.1)
|
42
44
|
pry (0.9.12.6)
|
43
45
|
coderay (~> 1.0)
|
44
46
|
method_source (~> 0.8)
|
45
47
|
slop (~> 3.4)
|
46
48
|
rake (10.1.1)
|
47
|
-
reel (0.
|
49
|
+
reel (0.5.0)
|
48
50
|
celluloid (>= 0.15.1)
|
49
51
|
celluloid-io (>= 0.15.0)
|
50
|
-
http (>= 0.
|
51
|
-
http_parser.rb (>= 0.6.0
|
52
|
-
websocket_parser (>= 0.1.
|
53
|
-
robeaux (0.
|
52
|
+
http (>= 0.6.0.pre)
|
53
|
+
http_parser.rb (>= 0.6.0)
|
54
|
+
websocket_parser (>= 0.1.6)
|
55
|
+
robeaux (0.4.1)
|
54
56
|
slop (3.4.7)
|
55
|
-
thor (0.
|
56
|
-
timers (
|
57
|
+
thor (0.19.1)
|
58
|
+
timers (4.0.4)
|
59
|
+
hitimes
|
57
60
|
websocket_parser (0.1.6)
|
58
61
|
|
59
62
|
PLATFORMS
|
data/README.md
CHANGED
data/lib/artoo-raspi/version.rb
CHANGED
data/lib/artoo/adaptors/raspi.rb
CHANGED
@@ -46,6 +46,8 @@ module Artoo
|
|
46
46
|
def disconnect
|
47
47
|
puts "Disconnecting all PWM pins..."
|
48
48
|
release_all_pwm_pins
|
49
|
+
puts "Disconnecting all Raspi pins..."
|
50
|
+
close_all_raspi_pins
|
49
51
|
super
|
50
52
|
end
|
51
53
|
|
@@ -103,6 +105,10 @@ module Artoo
|
|
103
105
|
pwm_pins.each_value { |pwm_pin| pwm_pin.release }
|
104
106
|
end
|
105
107
|
|
108
|
+
def close_all_raspi_pins
|
109
|
+
pins.each_value { |pin| pin.close }
|
110
|
+
end
|
111
|
+
|
106
112
|
# Uses method missing to call device actions
|
107
113
|
# @see device documentation
|
108
114
|
def method_missing(method_name, *arguments, &block)
|
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
|
+
version: 0.7.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:
|
13
|
+
date: 2016-02-15 00:00:00.000000000 Z
|
14
14
|
dependencies:
|
15
15
|
- !ruby/object:Gem::Dependency
|
16
16
|
name: artoo
|