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 CHANGED
@@ -1,5 +1,9 @@
1
1
  # master
2
2
 
3
+ ## 0.3.1 / 2013-02-24
4
+
5
+ * Rename Song#dequeue to #rotate_out to avoid confusion with its previous behavior
6
+
3
7
  ## 0.3.0 / 2013-02-23
4
8
 
5
9
  * Fix playlist order not being maintained properly in process
@@ -17,7 +17,7 @@ GEM
17
17
  faye-websocket (0.4.6)
18
18
  eventmachine (>= 0.12.0)
19
19
  http_parser.rb (0.5.3)
20
- turntabler (0.3.0)
20
+ turntabler (0.3.1)
21
21
  em-http-request
22
22
  em-synchrony
23
23
  faye-websocket
@@ -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.dequeue if current_song.played_by == client.user
213
+ current_song.rotate_out if current_song.played_by == client.user
214
214
 
215
215
  current_song
216
216
  end
@@ -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 dequeue
256
- playlist.songs.concat(playlist.songs.slice!(0, index + 1))
255
+ def rotate_out
256
+ playlist.songs.rotate!(index + 1)
257
257
  true
258
258
  end
259
259
 
@@ -3,7 +3,7 @@ module Turntabler
3
3
  module Version
4
4
  MAJOR = 0
5
5
  MINOR = 3
6
- PATCH = 0
6
+ PATCH = 1
7
7
  STRING = [MAJOR, MINOR, PATCH].join(".")
8
8
  end
9
9
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: turntabler
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.3.0
4
+ version: 0.3.1
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors: