doubanfm 0.0.4 → 0.0.5

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.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 018dd831b6f7ca1807a4e81723a90243353bb69d
4
- data.tar.gz: f817d7eceae4da6b6cd386f99235757f7ba316e1
3
+ metadata.gz: 965fec9930b86ddc86f1149e067670d42e410bcd
4
+ data.tar.gz: 0c6a60d2af79cfa5562f76fcd84c3fe7c6f91647
5
5
  SHA512:
6
- metadata.gz: 84ffd7bc2aa7cc3e0739e07f11ff6404a53c96b989edeb1a53f13409a837872f2239abaeeb76dc16e8be0bf721437efcfa3a9e403d8fcaec750f3e1021c4ad78
7
- data.tar.gz: 8e26dd2c80f2c69a77fbd44607bc1288d3d6f556636a0efe5913db92d6b116989fedee951c8fbbbebdc36834b68a6d49b15b031d1b031bcaa372b56cf0c62df1
6
+ metadata.gz: 457a2674954545a7e02ca6700eb9a38a4cdee9a8b2fb49bd05901d5898a2ab704508f37c832e3e8ff2a8eb24afe53011d8c82948128ea2349ed6d303f86c0327
7
+ data.tar.gz: 93b513e19b3ae89ae897b4ff91eeb4590cdaedf9d99455f44241c4b43252816137dfb25bb54cac12fb46623b1327eabf9175376de035eed02fbd764044274c3f
data/README.md CHANGED
@@ -23,12 +23,12 @@ You can use \<Tab\> to list all valid command.
23
23
 
24
24
  ## Todo
25
25
 
26
- - [ ] Allow user to throw a song into trash bin
27
- - [ ] Allow user to select specific channel
28
- - [ ] Introduce a better console interface with `curses` or something similar
29
- - [ ] Refactor all
30
- - [ ] Use a audio play gem to replace `mpg123` program
31
- - [ ] Maybe I'll use JRuby and SWT to implement GUI
26
+ 1. Allow user to throw a song into trash bin
27
+ 2. Allow user to select specific channel
28
+ 3. Introduce a better console interface with `curses` or something similar
29
+ 4. Refactor all
30
+ 5. Use a audio play gem to replace `mpg123` program
31
+ 6. Maybe I'll use JRuby and SWT to implement GUI
32
32
 
33
33
  ## Contributing
34
34
 
@@ -74,7 +74,7 @@ module DoubanFM
74
74
  @waiting = false
75
75
 
76
76
  say("Playing #{@client.current_song[:title]}")
77
- @player_pid = spawn("mpg123 #{@client.current_song[:url]} > /dev/null 2>&1")
77
+ @player_pid = fork{ exec 'mpg123', '-q', "#{@client.current_song[:url]}" }
78
78
 
79
79
  Process.wait(@player_pid)
80
80
  @waiting = true
@@ -86,7 +86,6 @@ module DoubanFM
86
86
 
87
87
  def kill_player_thread
88
88
  Process.kill('KILL', @player_pid)
89
- Process.kill('KILL', @player_pid + 1)
90
89
  end
91
90
  end
92
91
  end
@@ -1,3 +1,3 @@
1
1
  module DoubanFM
2
- VERSION = "0.0.4"
2
+ VERSION = "0.0.5"
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: doubanfm
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.4
4
+ version: 0.0.5
5
5
  platform: ruby
6
6
  authors:
7
7
  - Edgar Wang
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2013-08-14 00:00:00.000000000 Z
11
+ date: 2013-09-01 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: highline
@@ -92,7 +92,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
92
92
  version: '0'
93
93
  requirements: []
94
94
  rubyforge_project:
95
- rubygems_version: 2.0.6
95
+ rubygems_version: 2.0.7
96
96
  signing_key:
97
97
  specification_version: 4
98
98
  summary: A cmdline DoubanFM client. Need mpg123 to play songs.