candelabra 1.0.2 → 1.1.0

Sign up to get free protection for your applications and to get access to all the features.
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- candelabra (1.0.1)
4
+ candelabra (1.0.2)
5
5
 
6
6
  GEM
7
7
  remote: http://rubygems.org/
data/README.md CHANGED
@@ -13,6 +13,55 @@ and the switching between them.
13
13
 
14
14
  There is a command line access to the lib as well as a ruby api.
15
15
 
16
- ## Examples: ##
16
+ ## Installation: ##
17
+
18
+ $ gem install candelabra
19
+
20
+ But before you can set the pianobar on fire.
21
+
22
+ $ candelabra install
23
+
24
+ You will be prompted for your username and password.
25
+
26
+ ## Example Usage: ##
27
+
28
+ #### Starting
29
+
30
+ $ candelabra start
31
+
32
+ #### Stopping
33
+
34
+ $ candelabra stop
35
+
36
+ #### Skipping a song
37
+
38
+ $ candelabra next
39
+
40
+ or if you would prefer
41
+
42
+ $ candelabra skip
43
+
44
+ or better yet
45
+
46
+ $ candelabra n
47
+
48
+ You get the point!
49
+
50
+ Any of the following commands are currently supported
51
+
52
+ def commands
53
+ {
54
+ :pause => 'p',
55
+ :continue => 'p',
56
+ :love => '+',
57
+ :ban => '-',
58
+ :bookmark => 'b',
59
+ :info => 'i',
60
+ :skip => 'n',
61
+ :next => 'n',
62
+ :quit => 'q',
63
+ :tired => 't',
64
+ }
65
+ end
66
+
17
67
 
18
- TODO: put the examples here.
@@ -137,10 +137,13 @@ module Candelabra
137
137
 
138
138
  def flush
139
139
  output do |io|
140
- begin
141
- io.read(1);
142
- rescue
143
- end
140
+ loop do
141
+ begin
142
+ io.read_nonblock(1);
143
+ rescue
144
+ break
145
+ end
146
+ end
144
147
  end
145
148
  end
146
149
 
@@ -1,3 +1,3 @@
1
1
  module Candelabra
2
- VERSION = "1.0.2"
2
+ VERSION = "1.1.0"
3
3
  end
metadata CHANGED
@@ -1,19 +1,19 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: candelabra
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.2
4
+ version: 1.1.0
5
5
  prerelease: !!null
6
6
  platform: ruby
7
7
  authors: []
8
8
  autorequire: !!null
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2011-02-16 00:00:00.000000000 -06:00
11
+ date: 2011-02-17 00:00:00.000000000 -06:00
12
12
  default_executable: !!null
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: bundler
16
- requirement: &2153300860 !ruby/object:Gem::Requirement
16
+ requirement: &2160466320 !ruby/object:Gem::Requirement
17
17
  none: false
18
18
  requirements:
19
19
  - - ~>
@@ -21,10 +21,10 @@ dependencies:
21
21
  version: 1.0.0
22
22
  type: :development
23
23
  prerelease: false
24
- version_requirements: *2153300860
24
+ version_requirements: *2160466320
25
25
  - !ruby/object:Gem::Dependency
26
26
  name: minitest
27
- requirement: &2153300400 !ruby/object:Gem::Requirement
27
+ requirement: &2160465860 !ruby/object:Gem::Requirement
28
28
  none: false
29
29
  requirements:
30
30
  - - ! '>='
@@ -32,7 +32,7 @@ dependencies:
32
32
  version: 2.0.2
33
33
  type: :development
34
34
  prerelease: false
35
- version_requirements: *2153300400
35
+ version_requirements: *2160465860
36
36
  description: initial wrapper for pianobar
37
37
  email: []
38
38
  executables: