open_lighting 0.1.1 → 0.1.2
Sign up to get free protection for your applications and to get access to all the features.
data/CHANGELOG.md
ADDED
@@ -0,0 +1,32 @@
|
|
1
|
+
## Open Lighting 0.1.1 ##
|
2
|
+
|
3
|
+
* add named points after initialization
|
4
|
+
* take care that all capabilities and points are hash keyed with symbols
|
5
|
+
|
6
|
+
## Open Lighting 0.1.0 ##
|
7
|
+
|
8
|
+
* `.set` changed to `.buffer`, deprecation warning added
|
9
|
+
* `.transition!` changed to `.begin_animation!`, deprecation warning added
|
10
|
+
|
11
|
+
## Open Lighting 0.0.3 ##
|
12
|
+
|
13
|
+
* Travis CI setup
|
14
|
+
* Use Guard to run tests
|
15
|
+
* code coverage reports with SimpleCov
|
16
|
+
* auto-increment :start_address for devices, if not supplied
|
17
|
+
* add specific DmxDevice instances for different hardware
|
18
|
+
* setup basic points for Comscan LED light
|
19
|
+
* write output to `ola_streaming_client` pipe
|
20
|
+
* separate out DmxController capabilities and points
|
21
|
+
* use `method_missing` to add named points as methods on DmxDevice and DmxController
|
22
|
+
* `.set` method can accept named points in addition to specific capability values
|
23
|
+
|
24
|
+
controller.set(:dimmer => 255)
|
25
|
+
|
26
|
+
# is the same as
|
27
|
+
|
28
|
+
controller.set(:off)
|
29
|
+
|
30
|
+
## Open Lighting 0.0.1 ##
|
31
|
+
|
32
|
+
* Initial code spike
|
@@ -18,6 +18,7 @@ module OpenLighting
|
|
18
18
|
options[:points][:strobe_random] ||= {:strobe => 247}
|
19
19
|
|
20
20
|
options[:points][:nocolor] ||= {:gobo => 0}
|
21
|
+
options[:points][:white] ||= {:gobo => 0}
|
21
22
|
options[:points][:yellow] ||= {:gobo => 8}
|
22
23
|
options[:points][:red] ||= {:gobo => 15}
|
23
24
|
options[:points][:green] ||= {:gobo => 22}
|
@@ -31,6 +31,14 @@ module OpenLighting
|
|
31
31
|
@devices
|
32
32
|
end
|
33
33
|
|
34
|
+
def [](key)
|
35
|
+
@devices[key]
|
36
|
+
end
|
37
|
+
|
38
|
+
def []=(key, val)
|
39
|
+
@devices[key] = val
|
40
|
+
end
|
41
|
+
|
34
42
|
def <<(val)
|
35
43
|
val.start_address ||= current_values.count + 1
|
36
44
|
val.controller = self
|
@@ -42,7 +50,7 @@ module OpenLighting
|
|
42
50
|
end
|
43
51
|
|
44
52
|
def buffer(options = {})
|
45
|
-
@devices.each {|device| device.buffer(options
|
53
|
+
@devices.each {|device| device.buffer(options)}
|
46
54
|
end
|
47
55
|
|
48
56
|
def write!(values=current_values)
|
@@ -95,7 +103,7 @@ module OpenLighting
|
|
95
103
|
previous = current_values
|
96
104
|
buffer(options)
|
97
105
|
|
98
|
-
block.call(
|
106
|
+
block.call(self) if block
|
99
107
|
|
100
108
|
count = ticks(options[:seconds])
|
101
109
|
count.times do |i|
|
@@ -96,6 +96,10 @@ module OpenLighting
|
|
96
96
|
@controller.to_dmx.should == "127,127,0,127,127,0"
|
97
97
|
@controller.dimmer(80)
|
98
98
|
@controller.to_dmx.should == "127,127,80,127,127,80"
|
99
|
+
@controller.pan(25)
|
100
|
+
@controller.to_dmx.should == "25,127,80,25,127,80"
|
101
|
+
@controller.center
|
102
|
+
@controller.to_dmx.should == "127,127,80,127,127,80"
|
99
103
|
end
|
100
104
|
|
101
105
|
it "should do method_missing magics" do
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: open_lighting
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.2
|
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-
|
12
|
+
date: 2012-08-04 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: json
|
@@ -134,6 +134,7 @@ files:
|
|
134
134
|
- .rbenv-version
|
135
135
|
- .rvmrc
|
136
136
|
- .travis.yml
|
137
|
+
- CHANGELOG.md
|
137
138
|
- Gemfile
|
138
139
|
- Guardfile
|
139
140
|
- LICENSE
|