blinky 0.0.9 → 0.0.10

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- blinky (0.0.5)
4
+ blinky (0.0.10)
5
5
  chicanery (~> 0.0.7)
6
6
  libusb (~> 0.2.2)
7
7
 
data/README.rdoc CHANGED
@@ -58,6 +58,7 @@ Not sure which light is which?
58
58
 
59
59
  === Lights/ Build Indicators
60
60
  * {ThingM blink(1)}[http://www.kickstarter.com/projects/thingm/blink1-the-usb-rgb-led]
61
+ * {Dream Cheeky Webmail Notifier}[http://www.dreamcheeky.com/webmail-notifier]
61
62
  * {Delcom Engineering USB Visual Indicator Generation I}[http://www.delcomproducts.com/products_usblmp.asp]
62
63
  * {Delcom Engineering USB Visual Indicator Generation II}[http://www.delcomproducts.com/products_usblmp.asp]
63
64
 
@@ -1,3 +1,3 @@
1
1
  module Blinky
2
- VERSION = "0.0.9"
2
+ VERSION = "0.0.10"
3
3
  end
@@ -0,0 +1,42 @@
1
+ module Blinky
2
+ module DreamCheeky
3
+ module WebmailNotifier
4
+
5
+ def success!
6
+ colour!("\x00\xFF\x00")
7
+ end
8
+
9
+ def failure!
10
+ colour!("\xFF\x00\x00")
11
+ end
12
+
13
+ def building!
14
+ colour!("\x00\x00\xFF")
15
+ end
16
+
17
+ def warning!
18
+ colour!("\xFF\x2A\x00")
19
+ end
20
+
21
+ def off!
22
+ colour!("\x00\x00\x00")
23
+ end
24
+
25
+ def init
26
+ send "\x1f\x02\x00\x2e\x00\x00\x2b\x03"
27
+ send "\x00\x02\x00\x2e\x00\x00\x2b\x04"
28
+ send "\x00\x00\x00\x2e\x00\x00\x2b\x05"
29
+ end
30
+
31
+ def colour!(colour)
32
+ send(colour + "\x00\x00\x00\x00\x05")
33
+ end
34
+
35
+ private
36
+ def send(data)
37
+ @handle.usb_control_msg(0x21, 0x09, (3 << 8) | 1, 0, data, 0)
38
+ end
39
+
40
+ end
41
+ end
42
+ end
data/lib/recipes.rb CHANGED
@@ -9,6 +9,10 @@ recipe DelcomEngineering::VisualIndicator::GenerationII, {:usb_vendor_id => 0x0
9
9
  recipe ThingM::Blink1, {:usb_vendor_id => 0x27b8,
10
10
  :usb_product_id => 0x01ed,
11
11
  :description => "ThingM Blink(1)"}
12
+
13
+ recipe DreamCheeky::WebmailNotifier, {:usb_vendor_id => 0x1d34,
14
+ :usb_product_id => 0x0004,
15
+ :description => "Dream Cheeky Webmail Notifier"}
12
16
 
13
17
 
14
18
  #TODO - use treeop to allow a syntax like this
data/lights.jpg ADDED
Binary file
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: blinky
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.9
4
+ version: 0.0.10
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: 2013-01-02 00:00:00.000000000 Z
12
+ date: 2013-01-11 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: libusb
@@ -99,9 +99,11 @@ files:
99
99
  - lib/ci_server_plugins/test_server_plugin.rb
100
100
  - lib/device_recipes/delcom_engineering/visual_indicator_gen_one.rb
101
101
  - lib/device_recipes/delcom_engineering/visual_indicator_gen_two.rb
102
+ - lib/device_recipes/dream_cheeky/webmail_notifier.rb
102
103
  - lib/device_recipes/thing_m/blink_1.rb
103
104
  - lib/plugins.rb
104
105
  - lib/recipes.rb
106
+ - lights.jpg
105
107
  - notes.txt
106
108
  - spec/acceptance_spec.rb
107
109
  - spec/blinky_spec.rb
@@ -128,12 +130,18 @@ required_ruby_version: !ruby/object:Gem::Requirement
128
130
  - - ! '>='
129
131
  - !ruby/object:Gem::Version
130
132
  version: '0'
133
+ segments:
134
+ - 0
135
+ hash: 3190631202603378538
131
136
  required_rubygems_version: !ruby/object:Gem::Requirement
132
137
  none: false
133
138
  requirements:
134
139
  - - ! '>='
135
140
  - !ruby/object:Gem::Version
136
141
  version: '0'
142
+ segments:
143
+ - 0
144
+ hash: 3190631202603378538
137
145
  requirements: []
138
146
  rubyforge_project:
139
147
  rubygems_version: 1.8.24