pulseaudio 0.0.1 → 0.0.2
Sign up to get free protection for your applications and to get access to all the features.
- data/VERSION +1 -1
- data/bin/pulseaudio_volume.rb +21 -0
- data/pulseaudio.gemspec +69 -0
- metadata +7 -5
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
0.0.
|
1
|
+
0.0.2
|
@@ -0,0 +1,21 @@
|
|
1
|
+
#!/usr/bin/env ruby1.9
|
2
|
+
|
3
|
+
require "rubygems"
|
4
|
+
require "pulseaudio"
|
5
|
+
|
6
|
+
sinks = PulseAudio::Sink.list
|
7
|
+
|
8
|
+
if ARGV[0] == "up"
|
9
|
+
next_vol = "-- +5%"
|
10
|
+
sinks.each do |sink|
|
11
|
+
sink.vol_incr if sink.active?
|
12
|
+
end
|
13
|
+
elsif ARGV[0] == "down"
|
14
|
+
sinks.each do |sink|
|
15
|
+
sink.vol_decr if sink.active?
|
16
|
+
end
|
17
|
+
elsif ARGV[0] == "mute"
|
18
|
+
sinks.each do |sink|
|
19
|
+
sink.mute_toggle if sink.active?
|
20
|
+
end
|
21
|
+
end
|
data/pulseaudio.gemspec
ADDED
@@ -0,0 +1,69 @@
|
|
1
|
+
# Generated by jeweler
|
2
|
+
# DO NOT EDIT THIS FILE DIRECTLY
|
3
|
+
# Instead, edit Jeweler::Tasks in Rakefile, and run 'rake gemspec'
|
4
|
+
# -*- encoding: utf-8 -*-
|
5
|
+
|
6
|
+
Gem::Specification.new do |s|
|
7
|
+
s.name = %q{pulseaudio}
|
8
|
+
s.version = "0.0.2"
|
9
|
+
|
10
|
+
s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
|
11
|
+
s.authors = ["Kasper Johansen"]
|
12
|
+
s.date = %q{2012-05-21}
|
13
|
+
s.default_executable = %q{pulseaudio_volume.rb}
|
14
|
+
s.description = %q{Ruby-library for controlling PulseAudio via 'pactl'.}
|
15
|
+
s.email = %q{k@spernj.org}
|
16
|
+
s.executables = ["pulseaudio_volume.rb"]
|
17
|
+
s.extra_rdoc_files = [
|
18
|
+
"LICENSE.txt",
|
19
|
+
"README.rdoc"
|
20
|
+
]
|
21
|
+
s.files = [
|
22
|
+
".document",
|
23
|
+
".rspec",
|
24
|
+
"Gemfile",
|
25
|
+
"Gemfile.lock",
|
26
|
+
"LICENSE.txt",
|
27
|
+
"README.rdoc",
|
28
|
+
"Rakefile",
|
29
|
+
"VERSION",
|
30
|
+
"bin/pulseaudio_volume.rb",
|
31
|
+
"lib/pulseaudio.rb",
|
32
|
+
"pulseaudio.gemspec",
|
33
|
+
"spec/pulseaudio_spec.rb",
|
34
|
+
"spec/spec_helper.rb"
|
35
|
+
]
|
36
|
+
s.homepage = %q{http://github.com/kaspernj/pulseaudio}
|
37
|
+
s.licenses = ["MIT"]
|
38
|
+
s.require_paths = ["lib"]
|
39
|
+
s.rubygems_version = %q{1.6.2}
|
40
|
+
s.summary = %q{Ruby-library for controlling PulseAudio.}
|
41
|
+
|
42
|
+
if s.respond_to? :specification_version then
|
43
|
+
s.specification_version = 3
|
44
|
+
|
45
|
+
if Gem::Version.new(Gem::VERSION) >= Gem::Version.new('1.2.0') then
|
46
|
+
s.add_runtime_dependency(%q<wref>, [">= 0"])
|
47
|
+
s.add_development_dependency(%q<rspec>, ["~> 2.8.0"])
|
48
|
+
s.add_development_dependency(%q<rdoc>, ["~> 3.12"])
|
49
|
+
s.add_development_dependency(%q<bundler>, [">= 1.0.0"])
|
50
|
+
s.add_development_dependency(%q<jeweler>, ["~> 1.8.3"])
|
51
|
+
s.add_development_dependency(%q<rcov>, [">= 0"])
|
52
|
+
else
|
53
|
+
s.add_dependency(%q<wref>, [">= 0"])
|
54
|
+
s.add_dependency(%q<rspec>, ["~> 2.8.0"])
|
55
|
+
s.add_dependency(%q<rdoc>, ["~> 3.12"])
|
56
|
+
s.add_dependency(%q<bundler>, [">= 1.0.0"])
|
57
|
+
s.add_dependency(%q<jeweler>, ["~> 1.8.3"])
|
58
|
+
s.add_dependency(%q<rcov>, [">= 0"])
|
59
|
+
end
|
60
|
+
else
|
61
|
+
s.add_dependency(%q<wref>, [">= 0"])
|
62
|
+
s.add_dependency(%q<rspec>, ["~> 2.8.0"])
|
63
|
+
s.add_dependency(%q<rdoc>, ["~> 3.12"])
|
64
|
+
s.add_dependency(%q<bundler>, [">= 1.0.0"])
|
65
|
+
s.add_dependency(%q<jeweler>, ["~> 1.8.3"])
|
66
|
+
s.add_dependency(%q<rcov>, [">= 0"])
|
67
|
+
end
|
68
|
+
end
|
69
|
+
|
metadata
CHANGED
@@ -2,7 +2,7 @@
|
|
2
2
|
name: pulseaudio
|
3
3
|
version: !ruby/object:Gem::Version
|
4
4
|
prerelease:
|
5
|
-
version: 0.0.
|
5
|
+
version: 0.0.2
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
8
8
|
- Kasper Johansen
|
@@ -11,7 +11,7 @@ bindir: bin
|
|
11
11
|
cert_chain: []
|
12
12
|
|
13
13
|
date: 2012-05-21 00:00:00 +02:00
|
14
|
-
default_executable:
|
14
|
+
default_executable: pulseaudio_volume.rb
|
15
15
|
dependencies:
|
16
16
|
- !ruby/object:Gem::Dependency
|
17
17
|
name: wref
|
@@ -81,8 +81,8 @@ dependencies:
|
|
81
81
|
version_requirements: *id006
|
82
82
|
description: Ruby-library for controlling PulseAudio via 'pactl'.
|
83
83
|
email: k@spernj.org
|
84
|
-
executables:
|
85
|
-
|
84
|
+
executables:
|
85
|
+
- pulseaudio_volume.rb
|
86
86
|
extensions: []
|
87
87
|
|
88
88
|
extra_rdoc_files:
|
@@ -97,7 +97,9 @@ files:
|
|
97
97
|
- README.rdoc
|
98
98
|
- Rakefile
|
99
99
|
- VERSION
|
100
|
+
- bin/pulseaudio_volume.rb
|
100
101
|
- lib/pulseaudio.rb
|
102
|
+
- pulseaudio.gemspec
|
101
103
|
- spec/pulseaudio_spec.rb
|
102
104
|
- spec/spec_helper.rb
|
103
105
|
has_rdoc: true
|
@@ -114,7 +116,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
114
116
|
requirements:
|
115
117
|
- - ">="
|
116
118
|
- !ruby/object:Gem::Version
|
117
|
-
hash:
|
119
|
+
hash: -253030965202706745
|
118
120
|
segments:
|
119
121
|
- 0
|
120
122
|
version: "0"
|