turntabler 0.3.1 → 0.3.2

Sign up to get free protection for your applications and to get access to all the features.
@@ -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
@@ -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.1)
20
+ turntabler (0.3.2)
21
21
  em-http-request
22
22
  em-synchrony
23
23
  faye-websocket
@@ -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.
@@ -3,7 +3,7 @@ module Turntabler
3
3
  module Version
4
4
  MAJOR = 0
5
5
  MINOR = 3
6
- PATCH = 1
6
+ PATCH = 2
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.1
4
+ version: 0.3.2
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors: