radiodan 0.0.2 → 0.0.3

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
- radiodan (0.0.2)
4
+ radiodan (0.0.3)
5
5
  active_support (~> 3.0.0)
6
6
  em-http-request (~> 1.0.3)
7
7
  em-simple_telnet (~> 0.0.6)
data/TODO CHANGED
@@ -1,10 +1,12 @@
1
1
  * Player
2
2
  - explicitly set playlist when a new event is triggered, don't attempt to sync
3
- - #sync reads state_sync methods
4
- * #errors to determine which events to trigger
3
+ - #sync reads playlist_sync methods
4
+ + #errors to determine which events to trigger
5
+ + Know when to restart playlists that repeat
6
+ + Resume playlists from last position
5
7
  * MPD Adapter
6
8
  - Figure out a way of testing interface with playlist object
7
- * StateSync
9
+ * PlaylistSync
8
10
  - Attributes to sync:
9
11
  + Position in playlist
10
12
  + Seek position for current item in playlist
@@ -33,7 +33,7 @@ class MPD
33
33
 
34
34
  # register new playlist events
35
35
  @player.register_event :playlist do |playlist|
36
- self.playlist = playlist
36
+ EM.next_tick { self.playlist = playlist }
37
37
  end
38
38
  end
39
39
 
@@ -5,7 +5,7 @@ class Panic
5
5
  def initialize(config)
6
6
  @panic = false
7
7
  @timeout = config.delete(:duration).to_i
8
- @playlist = Playlist.new(config)
8
+ @playlist = config[:playlist]
9
9
  end
10
10
 
11
11
  def call(player)
@@ -37,7 +37,7 @@ class Panic
37
37
  @panic
38
38
  end
39
39
 
40
- def return_to_state(state)
40
+ def return_to_state(playlist)
41
41
  logger.debug "calming"
42
42
  @panic = false
43
43
  @player.playlist = playlist
@@ -1,3 +1,3 @@
1
1
  class Radiodan
2
- VERSION = "0.0.2"
2
+ VERSION = "0.0.3"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: radiodan
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.2
4
+ version: 0.0.3
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -228,7 +228,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
228
228
  version: '0'
229
229
  segments:
230
230
  - 0
231
- hash: 1572483849052610918
231
+ hash: 1823780625906972507
232
232
  required_rubygems_version: !ruby/object:Gem::Requirement
233
233
  none: false
234
234
  requirements:
@@ -237,7 +237,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
237
237
  version: '0'
238
238
  segments:
239
239
  - 0
240
- hash: 1572483849052610918
240
+ hash: 1823780625906972507
241
241
  requirements: []
242
242
  rubyforge_project:
243
243
  rubygems_version: 1.8.23