rpi 0.4.7 → 0.4.8
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- checksums.yaml.gz.sig +0 -0
- data.tar.gz.sig +0 -0
- data/lib/rpi.rb +3 -1
- metadata +3 -3
- metadata.gz.sig +0 -0
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: eb7d6031104638c1cabd370e52bba0c22c8536b5
|
4
|
+
data.tar.gz: c929e5300f07086445157fad32c93e1cb3e358a6
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 571e28eb1a0509860f28a4e7ff9a27a60c430edb72ada4cb7ba796d7301802c793fe4ac616d7a10c2601636f10b9be4854566b9f8f838e10b0fe6465e7d1f816
|
7
|
+
data.tar.gz: dee6a1b72bc6084837848577f90bb14c5c43c68a3617733191fdb100ff874d89110bbfd577b4c43ceebf006563fc2f78cdbd135dadd17c3eee0ad95359a7703e
|
checksums.yaml.gz.sig
CHANGED
Binary file
|
data.tar.gz.sig
CHANGED
Binary file
|
data/lib/rpi.rb
CHANGED
@@ -109,6 +109,8 @@ class RPi
|
|
109
109
|
def initialize(x=[])
|
110
110
|
|
111
111
|
a = case x
|
112
|
+
when Integer
|
113
|
+
[x]
|
112
114
|
when Fixnum
|
113
115
|
[x]
|
114
116
|
when String
|
@@ -176,4 +178,4 @@ if __FILE__ == $0 then
|
|
176
178
|
# example
|
177
179
|
my_rpi = RPi.new %w(17 22 18 4 23 25 27) # <-- each pin connects to an LED
|
178
180
|
my_rpi.pins[ARGV.first.to_i].method(ARGV.last.to_sym).call
|
179
|
-
end
|
181
|
+
end
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: rpi
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.4.
|
4
|
+
version: 0.4.8
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- James Robertson
|
@@ -31,7 +31,7 @@ cert_chain:
|
|
31
31
|
dEqi5CounDnDNhe7rUTTIuu0MrOb34ZE6764bu+q8DVP3XqnOJ86KiUa9jkp9suF
|
32
32
|
p8w0UzQnpUtnPA==
|
33
33
|
-----END CERTIFICATE-----
|
34
|
-
date: 2016-
|
34
|
+
date: 2016-12-25 00:00:00.000000000 Z
|
35
35
|
dependencies:
|
36
36
|
- !ruby/object:Gem::Dependency
|
37
37
|
name: pi_piper
|
@@ -80,7 +80,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
80
80
|
version: '0'
|
81
81
|
requirements: []
|
82
82
|
rubyforge_project:
|
83
|
-
rubygems_version: 2.
|
83
|
+
rubygems_version: 2.5.1
|
84
84
|
signing_key:
|
85
85
|
specification_version: 4
|
86
86
|
summary: The RPi gem makes it easy to set the GPIO pins on the Raspberry Pi e.g. RPi.new([4,27]).pins.first.on
|
metadata.gz.sig
CHANGED
Binary file
|