arduino_build_notifier 0.0.2 → 0.0.3

Sign up to get free protection for your applications and to get access to all the features.
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- arduino_build_notifier (0.0.1)
4
+ arduino_build_notifier (0.0.2)
5
5
  celluloid
6
6
  dino
7
7
  gli
@@ -1,6 +1,6 @@
1
1
  Gem::Specification.new do |s|
2
2
  s.name = 'arduino_build_notifier'
3
- s.version = '0.0.2'
3
+ s.version = '0.0.3'
4
4
  s.date = '2012-11-08'
5
5
  s.summary = "An Integration server notifier"
6
6
  s.description = "like ccmenu but with Arduino"
@@ -1,8 +1,23 @@
1
+ require 'celluloid'
2
+
1
3
  module ArduinoBuildNotifier
2
4
  module Arduino
3
5
  module Indicators
4
6
  class Building < Base
7
+ include Celluloid
8
+
9
+ def on
10
+ @timer = every 1 do
11
+ @led.on
12
+ sleep 0.5
13
+ @led.off
14
+ end
15
+ end
5
16
 
17
+ def off
18
+ @led.off
19
+ @timer.cancel if @timer
20
+ end
6
21
  end
7
22
  end
8
23
  end
@@ -1,3 +1,3 @@
1
1
  module ArduinoBuildNotifier
2
- VERSION = '0.0.2'
2
+ VERSION = '0.0.3'
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: arduino_build_notifier
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.2
4
+ version: 0.0.3
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors: