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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 76b839fcf54da81b0e89dbde7baf90c7fe3f8d3f
4
- data.tar.gz: 686e899dde81c9007a913ac984deabafa08ba997
3
+ metadata.gz: eb7d6031104638c1cabd370e52bba0c22c8536b5
4
+ data.tar.gz: c929e5300f07086445157fad32c93e1cb3e358a6
5
5
  SHA512:
6
- metadata.gz: c5ac67b4d436d205192703250c64d22d6a73d46f6525827e0202ade519ab8d04bb880d41db8c9caae13f7b086d6cdfa9a502809e709beef9d9e28edc2f0539b9
7
- data.tar.gz: 9fe559f58641b5c42cdfb80b195f3dfca4e03b05debfda27d1c2ed1c0266b96b6fb9564efaef7d16202c3989ee20bc7923943f87eeb9b6c385bb6ad4af638901
6
+ metadata.gz: 571e28eb1a0509860f28a4e7ff9a27a60c430edb72ada4cb7ba796d7301802c793fe4ac616d7a10c2601636f10b9be4854566b9f8f838e10b0fe6465e7d1f816
7
+ data.tar.gz: dee6a1b72bc6084837848577f90bb14c5c43c68a3617733191fdb100ff874d89110bbfd577b4c43ceebf006563fc2f78cdbd135dadd17c3eee0ad95359a7703e
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.7
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-02-28 00:00:00.000000000 Z
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.4.8
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