kagu 3.0.0 → 3.0.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (4) hide show
  1. checksums.yaml +4 -4
  2. data/VERSION +1 -1
  3. data/lib/kagu/finder.rb +5 -2
  4. metadata +2 -2
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 525d281da8b729c56214956d8fe81f699b105331c15e86976f65ffc983a0b2ea
4
- data.tar.gz: 9a5200a627a5a6224f0f1d2a6972f9262515a1957ca33e60eebdac20be4303a7
3
+ metadata.gz: e38db35ecfcc74a1ddfb2eeaefbc1bb0b65e86f92b28283866dd0911d4bad043
4
+ data.tar.gz: 287405369b91607e2c654162173f7d41b71c2646d9f21726714d132fd80b04c1
5
5
  SHA512:
6
- metadata.gz: d54df53f2489cd5d5f6f734c994c89f03ee0fe5c8834547272f8cda4d5b206f6266b9a7474a72be5f734eeae9d0095969762cb5d042b1f600946de9260628670
7
- data.tar.gz: 928913d1a8454a838ba48fc1c8bfecc992057276de00d22b904864859f66c70db3bf1bf5f2e1028600bacb21e18c5c21f850a7e18efd75fc7f52db41f7260706
6
+ metadata.gz: 2f7601168fb4c299931c2b15c64f8c4d96bbaa81f36af8729a8e2d52429e284a4e30667b63573fa351d25a16460131889b0be9e9e3a73eb11d777d29a47d369b
7
+ data.tar.gz: d78a686cbbd8f47cd8576ac4617734e56a4f2ed39dcb940e84dc826d30c45a2d13d4e69c2d12427bddca1f2aefca045096fb0ef82d99635a5a1d31938d24b392
data/VERSION CHANGED
@@ -1 +1 @@
1
- 3.0.0
1
+ 3.0.1
data/lib/kagu/finder.rb CHANGED
@@ -19,6 +19,7 @@ module Kagu
19
19
  end
20
20
 
21
21
  def initialize(options = {})
22
+ @semaphore = Mutex.new
22
23
  reload(options)
23
24
  end
24
25
 
@@ -111,8 +112,10 @@ module Kagu
111
112
 
112
113
  def tracks
113
114
  return @tracks if @tracks
114
- (@tracks = Tracks.new.to_a).tap do |tracks|
115
- Kagu.logger.debug('Kagu') { "Loaded #{tracks.size} track(s) from library" }
115
+ @semaphore.synchronize do
116
+ (@tracks = Tracks.new.to_a).tap do |tracks|
117
+ Kagu.logger.debug('Kagu') { "Loaded #{tracks.size} track(s) from library" }
118
+ end
116
119
  end
117
120
  end
118
121
 
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: kagu
3
3
  version: !ruby/object:Gem::Version
4
- version: 3.0.0
4
+ version: 3.0.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Alexis Toulotte
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2019-12-04 00:00:00.000000000 Z
11
+ date: 2019-12-03 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: activesupport