rpi 0.4.5 → 0.4.6

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: 45f4e020f351f622d734237eba04ce03971f1baf
4
- data.tar.gz: 7382bc0f072bb16e1c281e892a80f45f666317c4
3
+ metadata.gz: 3c9dc28e91ead4d24acb32becc2760c8651169e2
4
+ data.tar.gz: d63a47fbaba95fb2346451ecf4f7e5280c77a70f
5
5
  SHA512:
6
- metadata.gz: 296530c08bff2f2471e18d77e56320fcebcf303654203580cb876c93989fde2433959dea471e2cd67074f1bf3f08982ab5d370f8c1b0501a89f52613d318e874
7
- data.tar.gz: f9a134d9075d986c47838104d3b6a338ca622bdfc970a4a7d276b675ce82ed60913241aa9cc92f984e99ac3e815bb3a74cb6fa4d11b3baf81d1cf78f3cb6b968
6
+ metadata.gz: a8a0e58408996d34cbaff0dd5da980c4eb196c233209e2e33b0d10c0f4ce115ed4758f764547d14840d393c837a2124571fb88cf56c9d230846c3e949881e9f1
7
+ data.tar.gz: d6da6f1c50c8b81411bbd3ad9b121335144a7a35238abf761d6bbb44495975444d69aa8fd06257d89c91ff508ac9826f23c20f72cdd1296ea2984432e64ca3a9
Binary file
data.tar.gz.sig CHANGED
Binary file
data/lib/rpi.rb CHANGED
@@ -101,11 +101,11 @@ class RPi
101
101
 
102
102
  def @pins.[](i)
103
103
 
104
- if i.to_i >= self.length then
104
+ if i.respond_to? :to_i and i.to_i >= self.length then
105
105
  puts "RPi warning: PinX instance #{i.inspect} not found"
106
106
  Void.new
107
107
  else
108
- self.at(i)
108
+ super(i)
109
109
  end
110
110
  end
111
111
 
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.5
4
+ version: 0.4.6
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-18 00:00:00.000000000 Z
34
+ date: 2016-02-28 00:00:00.000000000 Z
35
35
  dependencies:
36
36
  - !ruby/object:Gem::Dependency
37
37
  name: pi_piper
metadata.gz.sig CHANGED
Binary file