kagu 0.2.1 → 0.2.2

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 1eb0f771713959afb4cdf8b85f3fb336f8ac3d92
4
- data.tar.gz: 0939af7e4a7f6878304c7c9f808012ba88bfddec
3
+ metadata.gz: 33bafbee99de5e86689338f8355f5c13a38261e1
4
+ data.tar.gz: 6f01cf5d29c37e5c6e44c05a9a6afb79ae5194eb
5
5
  SHA512:
6
- metadata.gz: 0d34928759a2cc7780fae36765ed6b09242108ff7e903f25756f6e6e0030b4608d75c9802763704c0064b4439ad5b7bfe8f94401bd70f3fa90614525555b9a68
7
- data.tar.gz: bf0fa5600d8b5aa998d77ce3247fa686a55bbdd2af78b37ba9580c7d518e9bcc6998ff3c792c8ab2e0d08c10818e15c70fef664311bceea9b3a134b2d216b87c
6
+ metadata.gz: dc791834ee2e89f7108ffbe05c6b8320b48c30d346022ea9c7a3b2090b8da738c8b202afbb722aa350ac8739ad7399b0c0c7ff9fbabf286c2710289b1e887bb9
7
+ data.tar.gz: d08fd8f78bcc5b5732a967e7f164cb3d5044bb65d2c9a3e092798318652846d8f719154cf73376d708ea77abcd8cab6349e67b4696f42dd9a0569e74971fea32
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.2.1
1
+ 0.2.2
data/lib/kagu/playlist.rb CHANGED
@@ -21,6 +21,10 @@ module Kagu
21
21
  name
22
22
  end
23
23
 
24
+ def tracks
25
+ @tracks ||= []
26
+ end
27
+
24
28
  private
25
29
 
26
30
  def add_tracks
@@ -57,6 +57,10 @@ describe Kagu::Playlist do
57
57
 
58
58
  describe '#tracks' do
59
59
 
60
+ it 'is an empty array by default' do
61
+ expect(Kagu::Playlist.new(name: 'Test').tracks).to eq([])
62
+ end
63
+
60
64
  it 'is tracks given at initialization' do
61
65
  expect(Kagu::Playlist.new(name: 'Test', tracks: tracks).tracks).to eq(tracks)
62
66
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: kagu
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.1
4
+ version: 0.2.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Alexis Toulotte