turntabler 0.3.1 → 0.3.2
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 +5 -0
- data/examples/Gemfile.lock +1 -1
- data/lib/turntabler/song.rb +3 -3
- data/lib/turntabler/version.rb +1 -1
- metadata +1 -1
data/CHANGELOG.md
CHANGED
@@ -1,5 +1,10 @@
|
|
1
1
|
# master
|
2
2
|
|
3
|
+
## 0.3.2 / 2013-02-24
|
4
|
+
|
5
|
+
* Fix songs being added to the wrong playlist when played by other djs
|
6
|
+
* Don't load song data when accessing the playlist or started_at timestamp
|
7
|
+
|
3
8
|
## 0.3.1 / 2013-02-24
|
4
9
|
|
5
10
|
* Rename Song#dequeue to #rotate_out to avoid confusion with its previous behavior
|
data/examples/Gemfile.lock
CHANGED
data/lib/turntabler/song.rb
CHANGED
@@ -51,13 +51,13 @@ module Turntabler
|
|
51
51
|
|
52
52
|
# The playlist this song is referenced from
|
53
53
|
# @return [Turntabler::Playlist]
|
54
|
-
attribute :playlist do |id|
|
54
|
+
attribute :playlist, :load => false do |id|
|
55
55
|
client.user.playlists.build(:_id => id)
|
56
56
|
end
|
57
57
|
|
58
58
|
# The time at which the song was started
|
59
59
|
# @return [Time]
|
60
|
-
attribute :started_at, :starttime
|
60
|
+
attribute :started_at, :starttime, :load => false
|
61
61
|
|
62
62
|
# The number of up votes this song has received.
|
63
63
|
# @note This is only available for the current song playing in a room
|
@@ -99,8 +99,8 @@ module Turntabler
|
|
99
99
|
@down_votes_count = 0
|
100
100
|
@votes = []
|
101
101
|
@score = 0
|
102
|
-
@playlist = client.user.playlists.build(:_id => 'default')
|
103
102
|
super
|
103
|
+
@playlist = client.user.playlists.build(:_id => 'default') if played_by != client.user
|
104
104
|
end
|
105
105
|
|
106
106
|
# The time at which this song will end playing.
|
data/lib/turntabler/version.rb
CHANGED