radiodan 0.0.2 → 0.0.3
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.
- data/Gemfile.lock +1 -1
- data/TODO +5 -3
- data/lib/radiodan/adapter/mpd.rb +1 -1
- data/lib/radiodan/middleware/panic.rb +2 -2
- data/lib/radiodan/version.rb +1 -1
- metadata +3 -3
data/Gemfile.lock
CHANGED
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
|
4
|
-
|
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
|
-
*
|
9
|
+
* PlaylistSync
|
8
10
|
- Attributes to sync:
|
9
11
|
+ Position in playlist
|
10
12
|
+ Seek position for current item in playlist
|
data/lib/radiodan/adapter/mpd.rb
CHANGED
@@ -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 =
|
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(
|
40
|
+
def return_to_state(playlist)
|
41
41
|
logger.debug "calming"
|
42
42
|
@panic = false
|
43
43
|
@player.playlist = playlist
|
data/lib/radiodan/version.rb
CHANGED
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.
|
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:
|
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:
|
240
|
+
hash: 1823780625906972507
|
241
241
|
requirements: []
|
242
242
|
rubyforge_project:
|
243
243
|
rubygems_version: 1.8.23
|