lircr 0.0.2 → 0.0.3
Sign up to get free protection for your applications and to get access to all the features.
- data/README.md +19 -2
- data/VERSION +1 -1
- data/lib/lirc.rb +2 -2
- metadata +4 -4
data/README.md
CHANGED
@@ -1,8 +1,8 @@
|
|
1
1
|
Description
|
2
2
|
===========
|
3
3
|
|
4
|
-
lircr (pronounced 'lurker') is a LIRC client library for Ruby. It
|
5
|
-
it
|
4
|
+
lircr (pronounced 'lurker') is a LIRC client library for Ruby. It is simple,
|
5
|
+
it is easy, it is fun. If you got LIRC, get lircr. I am not responsible if you
|
6
6
|
grow more hair on your index finger or thumb.
|
7
7
|
|
8
8
|
Usage
|
@@ -15,3 +15,20 @@ Usage
|
|
15
15
|
if event.name == "play"
|
16
16
|
system "xmms", "/av/music/3.mod"
|
17
17
|
end
|
18
|
+
|
19
|
+
Control your MPD:
|
20
|
+
|
21
|
+
require 'lirc'
|
22
|
+
require 'librmpd'
|
23
|
+
lirc = LIRC::Client.new
|
24
|
+
mpd = MPD.new 'localhost', 6600
|
25
|
+
lirc.each do |event|
|
26
|
+
case event.name
|
27
|
+
when "play"
|
28
|
+
mpc.play
|
29
|
+
when "pause"
|
30
|
+
mpd.pause = !mpd.pause
|
31
|
+
when "stop"
|
32
|
+
mpd.stop
|
33
|
+
end
|
34
|
+
end
|
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
0.0.
|
1
|
+
0.0.3
|
data/lib/lirc.rb
CHANGED
metadata
CHANGED
@@ -5,8 +5,8 @@ version: !ruby/object:Gem::Version
|
|
5
5
|
segments:
|
6
6
|
- 0
|
7
7
|
- 0
|
8
|
-
-
|
9
|
-
version: 0.0.
|
8
|
+
- 3
|
9
|
+
version: 0.0.3
|
10
10
|
platform: ruby
|
11
11
|
authors:
|
12
12
|
- Denis Knauf
|
@@ -15,7 +15,7 @@ autorequire:
|
|
15
15
|
bindir: bin
|
16
16
|
cert_chain: []
|
17
17
|
|
18
|
-
date: 2010-04-
|
18
|
+
date: 2010-04-11 00:00:00 +02:00
|
19
19
|
default_executable:
|
20
20
|
dependencies: []
|
21
21
|
|
@@ -36,7 +36,7 @@ files:
|
|
36
36
|
- test/test_lirc.rb
|
37
37
|
- LICENSE
|
38
38
|
has_rdoc: true
|
39
|
-
homepage: http://github.com/DenisKnauf/
|
39
|
+
homepage: http://github.com/DenisKnauf/lircr
|
40
40
|
licenses: []
|
41
41
|
|
42
42
|
post_install_message:
|