turntabler 0.3.0 → 0.3.1
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/CHANGELOG.md +4 -0
- data/examples/Gemfile.lock +1 -1
- data/lib/turntabler/event.rb +1 -1
- data/lib/turntabler/song.rb +2 -2
- data/lib/turntabler/version.rb +1 -1
- metadata +1 -1
data/CHANGELOG.md
CHANGED
data/examples/Gemfile.lock
CHANGED
data/lib/turntabler/event.rb
CHANGED
@@ -210,7 +210,7 @@ module Turntabler
|
|
210
210
|
current_song = room.current_song
|
211
211
|
|
212
212
|
# Update playlist order if it was played by the current user
|
213
|
-
current_song.
|
213
|
+
current_song.rotate_out if current_song.played_by == client.user
|
214
214
|
|
215
215
|
current_song
|
216
216
|
end
|
data/lib/turntabler/song.rb
CHANGED
@@ -252,8 +252,8 @@ module Turntabler
|
|
252
252
|
# are other songs in front of it, those will be moved to the back as well.
|
253
253
|
#
|
254
254
|
# @api private
|
255
|
-
def
|
256
|
-
playlist.songs.
|
255
|
+
def rotate_out
|
256
|
+
playlist.songs.rotate!(index + 1)
|
257
257
|
true
|
258
258
|
end
|
259
259
|
|
data/lib/turntabler/version.rb
CHANGED