kagu 3.0.0 → 3.0.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/VERSION +1 -1
- data/lib/kagu/finder.rb +5 -2
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: e38db35ecfcc74a1ddfb2eeaefbc1bb0b65e86f92b28283866dd0911d4bad043
|
4
|
+
data.tar.gz: 287405369b91607e2c654162173f7d41b71c2646d9f21726714d132fd80b04c1
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 2f7601168fb4c299931c2b15c64f8c4d96bbaa81f36af8729a8e2d52429e284a4e30667b63573fa351d25a16460131889b0be9e9e3a73eb11d777d29a47d369b
|
7
|
+
data.tar.gz: d78a686cbbd8f47cd8576ac4617734e56a4f2ed39dcb940e84dc826d30c45a2d13d4e69c2d12427bddca1f2aefca045096fb0ef82d99635a5a1d31938d24b392
|
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
3.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
|
-
|
115
|
-
|
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.
|
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-
|
11
|
+
date: 2019-12-03 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: activesupport
|