rupi 0.2.3 → 0.2.4

Sign up to get free protection for your applications and to get access to all the features.
Files changed (3) hide show
  1. data/lib/rupi/pin.rb +5 -1
  2. data/lib/rupi/version.rb +1 -1
  3. metadata +4 -4
data/lib/rupi/pin.rb CHANGED
@@ -94,7 +94,11 @@ module Rupi
94
94
  if previous_value && previous_value != value
95
95
  handlers = value == 1 ? pin.up_handlers : pin.down_handlers
96
96
  handlers.each do |handler|
97
- handler.call(value)
97
+ begin
98
+ handler.call(value)
99
+ rescue StandardError => e
100
+ puts e
101
+ end
98
102
  end
99
103
  end
100
104
  @watched_pins[pin] = value
data/lib/rupi/version.rb CHANGED
@@ -1,4 +1,4 @@
1
1
  module Rupi
2
- VERSION = '0.2.3'
2
+ VERSION = '0.2.4'
3
3
  RUBY_VERSION = 'ruby-1.9.3-p194'
4
4
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: rupi
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.3
4
+ version: 0.2.4
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2012-10-21 00:00:00.000000000 Z
12
+ date: 2012-10-22 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: wiringpi
@@ -90,7 +90,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
90
90
  version: '0'
91
91
  segments:
92
92
  - 0
93
- hash: 3664424623779642478
93
+ hash: 1382266704318263339
94
94
  required_rubygems_version: !ruby/object:Gem::Requirement
95
95
  none: false
96
96
  requirements:
@@ -99,7 +99,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
99
99
  version: '0'
100
100
  segments:
101
101
  - 0
102
- hash: 3664424623779642478
102
+ hash: 1382266704318263339
103
103
  requirements: []
104
104
  rubyforge_project:
105
105
  rubygems_version: 1.8.24