ehbrs-tools 0.29.0 → 0.30.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/Gemfile.lock +69 -54
- data/lib/ehbrs/tools/runner/fs/selected.rb +1 -1
- data/lib/ehbrs/tools/runner/music/selected.rb +2 -2
- data/lib/ehbrs/tools/runner/music/spread.rb +40 -0
- data/lib/ehbrs/tools/version.rb +1 -1
- data/lib/ehbrs/videos/unsupported/profiles/samsung.rb +2 -2
- metadata +3 -3
- data/lib/ehbrs/music/album.rb +0 -44
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 8a57cd0b9c5ca0fae7bbca76c6f6028c2c9e6ce68ab25553fb53a991c36970c2
|
4
|
+
data.tar.gz: 5b8000ce1927a55dbd90f70792bc1790f2e14bf4b67032258186ccd6eeeb8d91
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 238fa86906bac564e751df073a24b7e43b740ccbe9bb782b5a93b424f236b2988fc315f9f012f5dd2636a6732bd8ab31366b73d8fb5afdbbe021da8ebfa563f3
|
7
|
+
data.tar.gz: 9eebc156592ae81a254491959f762cdeedb2d5f6d01c9c7d4f90cdeb2c73eb36c30a442d5f1b8564069a6729beed2f8a89c42a19815e1c67c740355992ce5052
|
data/Gemfile.lock
CHANGED
@@ -7,7 +7,7 @@ GIT
|
|
7
7
|
PATH
|
8
8
|
remote: .
|
9
9
|
specs:
|
10
|
-
ehbrs-tools (0.
|
10
|
+
ehbrs-tools (0.30.0)
|
11
11
|
avm-tools (~> 0.82, >= 0.82.1)
|
12
12
|
eac_cli (~> 0.12, >= 0.12.5)
|
13
13
|
eac_ruby_utils (~> 0.71)
|
@@ -40,17 +40,17 @@ PATH
|
|
40
40
|
PATH
|
41
41
|
remote: sub/eac_cli
|
42
42
|
specs:
|
43
|
-
eac_cli (0.
|
43
|
+
eac_cli (0.26.1)
|
44
44
|
colorize (~> 0.8.1)
|
45
|
-
eac_config (~> 0.
|
46
|
-
eac_ruby_utils (~> 0.
|
45
|
+
eac_config (~> 0.8)
|
46
|
+
eac_ruby_utils (~> 0.83)
|
47
47
|
|
48
48
|
PATH
|
49
49
|
remote: sub/eac_config
|
50
50
|
specs:
|
51
|
-
eac_config (0.
|
51
|
+
eac_config (0.8.0)
|
52
52
|
addressable
|
53
|
-
eac_ruby_utils (~> 0.
|
53
|
+
eac_ruby_utils (~> 0.83)
|
54
54
|
|
55
55
|
PATH
|
56
56
|
remote: sub/eac_docker
|
@@ -62,7 +62,7 @@ PATH
|
|
62
62
|
PATH
|
63
63
|
remote: sub/eac_fs
|
64
64
|
specs:
|
65
|
-
eac_fs (0.
|
65
|
+
eac_fs (0.9.0)
|
66
66
|
content-type
|
67
67
|
eac_ruby_utils (~> 0.70)
|
68
68
|
ruby-filemagic
|
@@ -70,8 +70,8 @@ PATH
|
|
70
70
|
PATH
|
71
71
|
remote: sub/eac_ruby_base0
|
72
72
|
specs:
|
73
|
-
eac_ruby_base0 (0.
|
74
|
-
eac_cli (~> 0.
|
73
|
+
eac_ruby_base0 (0.15.0)
|
74
|
+
eac_cli (~> 0.26)
|
75
75
|
eac_fs (~> 0.3)
|
76
76
|
eac_ruby_gems_utils (~> 0.9.6, ~> 0.9)
|
77
77
|
eac_ruby_utils (~> 0.70)
|
@@ -79,15 +79,16 @@ PATH
|
|
79
79
|
PATH
|
80
80
|
remote: sub/eac_ruby_gems_utils
|
81
81
|
specs:
|
82
|
-
eac_ruby_gems_utils (0.9.
|
82
|
+
eac_ruby_gems_utils (0.9.9)
|
83
83
|
bundler
|
84
|
-
|
84
|
+
eac_fs (~> 0.8)
|
85
|
+
eac_ruby_utils (~> 0.81)
|
85
86
|
|
86
87
|
PATH
|
87
88
|
remote: sub/eac_ruby_utils
|
88
89
|
specs:
|
89
|
-
eac_ruby_utils (0.
|
90
|
-
activesupport (>= 4
|
90
|
+
eac_ruby_utils (0.85.0)
|
91
|
+
activesupport (>= 4, < 7)
|
91
92
|
addressable (~> 2.6)
|
92
93
|
filesize
|
93
94
|
net-ssh (~> 4.2)
|
@@ -95,14 +96,14 @@ PATH
|
|
95
96
|
PATH
|
96
97
|
remote: sub/eac_templates
|
97
98
|
specs:
|
98
|
-
eac_templates (0.
|
99
|
+
eac_templates (0.3.0)
|
99
100
|
eac_config (~> 0.5)
|
100
101
|
eac_ruby_utils (~> 0.64)
|
101
102
|
|
102
103
|
PATH
|
103
104
|
remote: sub/ehbrs_ruby_utils
|
104
105
|
specs:
|
105
|
-
ehbrs_ruby_utils (0.
|
106
|
+
ehbrs_ruby_utils (0.16.0)
|
106
107
|
aranha-parsers (~> 0.8, >= 0.8.5)
|
107
108
|
avm (~> 0.3, >= 0.3.2)
|
108
109
|
eac_fs (~> 0.5)
|
@@ -121,7 +122,7 @@ PATH
|
|
121
122
|
GEM
|
122
123
|
remote: https://rubygems.org/
|
123
124
|
specs:
|
124
|
-
activesupport (6.1.4.
|
125
|
+
activesupport (6.1.4.4)
|
125
126
|
concurrent-ruby (~> 1.0, >= 1.0.2)
|
126
127
|
i18n (>= 1.6, < 2)
|
127
128
|
minitest (>= 5.1)
|
@@ -129,9 +130,9 @@ GEM
|
|
129
130
|
zeitwerk (~> 2.3)
|
130
131
|
addressable (2.8.0)
|
131
132
|
public_suffix (>= 2.0.2, < 5.0)
|
132
|
-
asciidoctor (2.0.
|
133
|
+
asciidoctor (2.0.17)
|
133
134
|
ast (2.4.2)
|
134
|
-
avm (0.
|
135
|
+
avm (0.14.0)
|
135
136
|
eac_cli (~> 0.23, >= 0.23.1)
|
136
137
|
eac_docker (~> 0.3)
|
137
138
|
eac_git (~> 0.6)
|
@@ -140,19 +141,26 @@ GEM
|
|
140
141
|
filesize (~> 0.2)
|
141
142
|
htmlbeautifier (~> 1.3, >= 1.3.1)
|
142
143
|
minitar (~> 0.9)
|
143
|
-
avm-eac_asciidoctor_base0 (0.3.
|
144
|
+
avm-eac_asciidoctor_base0 (0.3.3)
|
144
145
|
asciidoctor (~> 2.0, >= 2.0.12)
|
145
|
-
avm-eac_webapp_base0 (~> 0.
|
146
|
+
avm-eac_webapp_base0 (~> 0.2)
|
146
147
|
eac_ruby_utils (~> 0.63)
|
147
148
|
os
|
148
149
|
rouge (~> 3.26)
|
149
|
-
avm-eac_generic_base0 (0.1.
|
150
|
+
avm-eac_generic_base0 (0.1.1)
|
150
151
|
avm (~> 0.10)
|
151
152
|
eac_ruby_utils (~> 0.80)
|
152
|
-
avm-
|
153
|
-
avm
|
153
|
+
avm-eac_postgresql_base0 (0.1.0)
|
154
|
+
avm (~> 0.12, >= 0.12.1)
|
155
|
+
eac_ruby_utils (~> 0.82)
|
156
|
+
avm-eac_rails_base0 (0.1.3)
|
157
|
+
avm-eac_rails_base1 (~> 0.1, >= 0.1.3)
|
158
|
+
eac_ruby_utils (~> 0.80, >= 0.80.2)
|
159
|
+
avm-eac_rails_base1 (0.1.4)
|
160
|
+
avm-eac_webapp_base0 (~> 0.2, >= 0.2.1)
|
161
|
+
eac_ruby_gems_utils (~> 0.9, >= 0.9.9)
|
154
162
|
eac_ruby_utils (~> 0.68)
|
155
|
-
avm-eac_redmine_base0 (0.3.
|
163
|
+
avm-eac_redmine_base0 (0.3.1)
|
156
164
|
avm-eac_rails_base1 (~> 0.1)
|
157
165
|
avm-eac_ubuntu_base0 (~> 0.2)
|
158
166
|
curb (~> 0.9.10)
|
@@ -163,35 +171,38 @@ GEM
|
|
163
171
|
avm-eac_generic_base0 (~> 0.1)
|
164
172
|
eac_ruby_gems_utils (~> 0.9, >= 0.9.8)
|
165
173
|
eac_ruby_utils (~> 0.80)
|
166
|
-
avm-eac_ubuntu_base0 (0.2.
|
174
|
+
avm-eac_ubuntu_base0 (0.2.1)
|
167
175
|
avm (~> 0.7)
|
168
176
|
eac_ruby_utils (~> 0.77, >= 0.77.1)
|
169
|
-
eac_templates (~> 0.
|
170
|
-
avm-eac_webapp_base0 (0.2.
|
177
|
+
eac_templates (~> 0.3)
|
178
|
+
avm-eac_webapp_base0 (0.2.1)
|
171
179
|
avm (~> 0.1)
|
172
180
|
avm-eac_generic_base0 (~> 0.1)
|
181
|
+
avm-eac_postgresql_base0 (~> 0.1)
|
182
|
+
avm-eac_ubuntu_base0 (~> 0.2.1)
|
173
183
|
eac_ruby_utils (~> 0.68)
|
174
|
-
avm-files (0.2.
|
184
|
+
avm-files (0.2.1)
|
175
185
|
avm (~> 0.6)
|
176
186
|
eac_fs (~> 0.5)
|
177
187
|
eac_ruby_utils (~> 0.76)
|
178
188
|
eac_templates (~> 0.2)
|
179
|
-
avm-git (0.3.
|
189
|
+
avm-git (0.3.1)
|
180
190
|
avm-files (~> 0.1)
|
181
|
-
eac_git (~> 0.
|
191
|
+
eac_git (~> 0.11)
|
182
192
|
eac_ruby_utils (~> 0.76)
|
183
|
-
avm-tools (0.113.
|
193
|
+
avm-tools (0.113.6)
|
184
194
|
aranha-parsers (~> 0.4)
|
185
|
-
avm (~> 0.
|
195
|
+
avm (~> 0.13)
|
186
196
|
avm-eac_asciidoctor_base0
|
197
|
+
avm-eac_rails_base0 (~> 0.1)
|
187
198
|
avm-eac_redmine_base0 (~> 0.3)
|
188
199
|
avm-eac_ruby_base1 (~> 0.1)
|
189
200
|
avm-eac_ubuntu_base0 (~> 0.2)
|
190
201
|
avm-files (~> 0.1)
|
191
|
-
avm-git (~> 0.1)
|
202
|
+
avm-git (~> 0.3, >= 0.3.1)
|
192
203
|
clipboard (~> 1.3, >= 1.3.3)
|
193
204
|
curb (~> 0.9.10)
|
194
|
-
eac_ruby_base0 (~> 0.
|
205
|
+
eac_ruby_base0 (~> 0.14)
|
195
206
|
eac_ruby_gems_utils (~> 0.6, >= 0.6.1)
|
196
207
|
git (~> 1.7)
|
197
208
|
ruby-progressbar (~> 1.10, >= 1.10.1)
|
@@ -210,76 +221,80 @@ GEM
|
|
210
221
|
curb (0.9.11)
|
211
222
|
descendants_tracker (0.0.4)
|
212
223
|
thread_safe (~> 0.3, >= 0.3.1)
|
213
|
-
diff-lcs (1.
|
224
|
+
diff-lcs (1.5.0)
|
214
225
|
dry-inflector (0.2.1)
|
215
|
-
eac_git (0.
|
216
|
-
eac_ruby_utils (~> 0.
|
226
|
+
eac_git (0.11.0)
|
227
|
+
eac_ruby_utils (~> 0.83)
|
217
228
|
parseconfig (~> 1.0, >= 1.0.8)
|
218
|
-
eac_ruby_gem_support (0.
|
229
|
+
eac_ruby_gem_support (0.5.0)
|
219
230
|
eac_ruby_utils (~> 0.74)
|
220
231
|
rspec (~> 3.9)
|
221
232
|
rubocop (~> 0.80.1)
|
222
233
|
rubocop-rails (~> 2.4.2)
|
223
234
|
rubocop-rspec (~> 1.38.1)
|
224
|
-
faraday (1.
|
235
|
+
faraday (1.9.3)
|
225
236
|
faraday-em_http (~> 1.0)
|
226
237
|
faraday-em_synchrony (~> 1.0)
|
227
238
|
faraday-excon (~> 1.1)
|
228
|
-
faraday-httpclient (~> 1.0
|
239
|
+
faraday-httpclient (~> 1.0)
|
240
|
+
faraday-multipart (~> 1.0)
|
229
241
|
faraday-net_http (~> 1.0)
|
230
|
-
faraday-net_http_persistent (~> 1.
|
242
|
+
faraday-net_http_persistent (~> 1.0)
|
231
243
|
faraday-patron (~> 1.0)
|
232
244
|
faraday-rack (~> 1.0)
|
233
|
-
|
245
|
+
faraday-retry (~> 1.0)
|
234
246
|
ruby2_keywords (>= 0.0.4)
|
235
247
|
faraday-em_http (1.0.0)
|
236
248
|
faraday-em_synchrony (1.0.0)
|
237
249
|
faraday-excon (1.1.0)
|
238
250
|
faraday-httpclient (1.0.1)
|
251
|
+
faraday-multipart (1.0.3)
|
252
|
+
multipart-post (>= 1.2, < 3)
|
239
253
|
faraday-net_http (1.0.1)
|
240
254
|
faraday-net_http_persistent (1.2.0)
|
241
255
|
faraday-patron (1.0.0)
|
242
256
|
faraday-rack (1.0.0)
|
257
|
+
faraday-retry (1.0.3)
|
243
258
|
faraday_middleware (1.2.0)
|
244
259
|
faraday (~> 1.0)
|
245
260
|
filesize (0.2.0)
|
246
|
-
git (1.
|
261
|
+
git (1.10.2)
|
247
262
|
rchardet (~> 1.8)
|
248
263
|
hpricot (0.8.6)
|
249
|
-
htmlbeautifier (1.4.
|
264
|
+
htmlbeautifier (1.4.1)
|
250
265
|
i18n (1.8.11)
|
251
266
|
concurrent-ruby (~> 1.0)
|
252
267
|
ice_nine (0.11.2)
|
253
268
|
inifile (3.0.0)
|
254
269
|
jaro_winkler (1.5.4)
|
255
270
|
minitar (0.9)
|
256
|
-
minitest (5.
|
271
|
+
minitest (5.15.0)
|
257
272
|
multipart-post (2.1.1)
|
258
273
|
net-ssh (4.2.0)
|
259
|
-
nokogiri (1.
|
274
|
+
nokogiri (1.13.1-x86_64-linux)
|
260
275
|
racc (~> 1.4)
|
261
276
|
ofx-parser (1.1.0)
|
262
277
|
hpricot (>= 0.6)
|
263
278
|
os (1.1.4)
|
264
279
|
parallel (1.21.0)
|
265
280
|
parseconfig (1.1.2)
|
266
|
-
parser (3.0.
|
281
|
+
parser (3.1.0.0)
|
267
282
|
ast (~> 2.4.1)
|
268
283
|
parslet (1.8.2)
|
269
284
|
public_suffix (4.0.6)
|
270
285
|
racc (1.6.0)
|
271
286
|
rack (2.2.3)
|
272
|
-
rainbow (3.
|
287
|
+
rainbow (3.1.1)
|
273
288
|
rchardet (1.8.0)
|
274
289
|
rexml (3.2.5)
|
275
|
-
rouge (3.
|
290
|
+
rouge (3.27.0)
|
276
291
|
rspec (3.10.0)
|
277
292
|
rspec-core (~> 3.10.0)
|
278
293
|
rspec-expectations (~> 3.10.0)
|
279
294
|
rspec-mocks (~> 3.10.0)
|
280
295
|
rspec-core (3.10.1)
|
281
296
|
rspec-support (~> 3.10.0)
|
282
|
-
rspec-expectations (3.10.
|
297
|
+
rspec-expectations (3.10.2)
|
283
298
|
diff-lcs (>= 1.2.0, < 2.0)
|
284
299
|
rspec-support (~> 3.10.0)
|
285
300
|
rspec-mocks (3.10.2)
|
@@ -299,7 +314,7 @@ GEM
|
|
299
314
|
rubocop (>= 0.72.0)
|
300
315
|
rubocop-rspec (1.38.1)
|
301
316
|
rubocop (>= 0.68.1)
|
302
|
-
ruby-filemagic (0.7.
|
317
|
+
ruby-filemagic (0.7.3)
|
303
318
|
ruby-progressbar (1.11.0)
|
304
319
|
ruby2_keywords (0.0.5)
|
305
320
|
rubyzip (2.3.2)
|
@@ -307,9 +322,9 @@ GEM
|
|
307
322
|
childprocess (>= 0.5, < 4.0)
|
308
323
|
rubyzip (>= 1.2.2)
|
309
324
|
taglib-ruby (1.1.0)
|
310
|
-
telegram-bot-ruby (0.
|
325
|
+
telegram-bot-ruby (0.17.0)
|
311
326
|
dry-inflector
|
312
|
-
faraday
|
327
|
+
faraday (~> 1.0)
|
313
328
|
virtus (~> 2.0)
|
314
329
|
thread_safe (0.3.6)
|
315
330
|
tzinfo (2.0.4)
|
@@ -319,7 +334,7 @@ GEM
|
|
319
334
|
axiom-types (~> 0.1)
|
320
335
|
coercible (~> 1.0)
|
321
336
|
descendants_tracker (~> 0.0, >= 0.0.3)
|
322
|
-
zeitwerk (2.5.
|
337
|
+
zeitwerk (2.5.3)
|
323
338
|
|
324
339
|
PLATFORMS
|
325
340
|
x86_64-linux
|
@@ -1,6 +1,6 @@
|
|
1
1
|
# frozen_string_literal: true
|
2
2
|
|
3
|
-
require '
|
3
|
+
require 'ehbrs_ruby_utils/music/ous/album'
|
4
4
|
require 'ehbrs/tools/runner/fs/selected'
|
5
5
|
|
6
6
|
module Ehbrs
|
@@ -19,7 +19,7 @@ module Ehbrs
|
|
19
19
|
end
|
20
20
|
|
21
21
|
def path_to_album(path)
|
22
|
-
::
|
22
|
+
::EhbrsRubyUtils::Music::Ous::Album.new(path)
|
23
23
|
end
|
24
24
|
end
|
25
25
|
end
|
@@ -0,0 +1,40 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
3
|
+
require 'ehbrs_ruby_utils/music/ous/album'
|
4
|
+
require 'ehbrs_ruby_utils/spreader_t1'
|
5
|
+
require 'ehbrs/tools/runner/fs/selected'
|
6
|
+
|
7
|
+
module Ehbrs
|
8
|
+
module Tools
|
9
|
+
class Runner
|
10
|
+
class Music
|
11
|
+
class Spread
|
12
|
+
runner_with :help do
|
13
|
+
bool_opt '-i', '--ids', 'Escreve IDs em STDOUT no lugar de labels em STDERR.'
|
14
|
+
pos_arg :albums, repeat: true
|
15
|
+
end
|
16
|
+
|
17
|
+
def run
|
18
|
+
spreader.result.each do |album|
|
19
|
+
if parsed.ids?
|
20
|
+
out("#{album.id}\n")
|
21
|
+
else
|
22
|
+
puts album.to_label
|
23
|
+
end
|
24
|
+
end
|
25
|
+
end
|
26
|
+
|
27
|
+
def spreader_uncached
|
28
|
+
::EhbrsRubyUtils::SpreaderT1.new(albums)
|
29
|
+
end
|
30
|
+
|
31
|
+
def albums
|
32
|
+
parsed.albums.map do |path|
|
33
|
+
::EhbrsRubyUtils::Music::Ous::Album.new(path)
|
34
|
+
end
|
35
|
+
end
|
36
|
+
end
|
37
|
+
end
|
38
|
+
end
|
39
|
+
end
|
40
|
+
end
|
data/lib/ehbrs/tools/version.rb
CHANGED
@@ -8,8 +8,8 @@ module Ehbrs
|
|
8
8
|
module Unsupported
|
9
9
|
module Profiles
|
10
10
|
class Samsung < ::Ehbrs::Videos::Unsupported::Profiles::Base
|
11
|
-
AUDIO_SUPPORTED_CODECS = %w[aac ac3
|
12
|
-
AUDIO_UNSUPPORTED_CODECS = %w[].freeze
|
11
|
+
AUDIO_SUPPORTED_CODECS = %w[aac ac3 eac3 mp3 vorbis].freeze
|
12
|
+
AUDIO_UNSUPPORTED_CODECS = %w[dts].freeze
|
13
13
|
|
14
14
|
VIDEO_SUPPORTED_CODECS = %w[h264 mpeg4 hevc].freeze
|
15
15
|
VIDEO_UNSUPPORTED_CODECS = %w[].freeze
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: ehbrs-tools
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.30.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Esquilo Azul Company
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2022-01-23 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: avm-tools
|
@@ -184,7 +184,6 @@ files:
|
|
184
184
|
- lib/ehbrs/google/translate.rb
|
185
185
|
- lib/ehbrs/google/translate/session.rb
|
186
186
|
- lib/ehbrs/music.rb
|
187
|
-
- lib/ehbrs/music/album.rb
|
188
187
|
- lib/ehbrs/observers.rb
|
189
188
|
- lib/ehbrs/observers/base.rb
|
190
189
|
- lib/ehbrs/observers/with_persistence.rb
|
@@ -213,6 +212,7 @@ files:
|
|
213
212
|
- lib/ehbrs/tools/runner/music/lyrics.rb
|
214
213
|
- lib/ehbrs/tools/runner/music/lyrics_book.rb
|
215
214
|
- lib/ehbrs/tools/runner/music/selected.rb
|
215
|
+
- lib/ehbrs/tools/runner/music/spread.rb
|
216
216
|
- lib/ehbrs/tools/runner/self.rb
|
217
217
|
- lib/ehbrs/tools/runner/self/test.rb
|
218
218
|
- lib/ehbrs/tools/runner/telegram.rb
|
data/lib/ehbrs/music/album.rb
DELETED
@@ -1,44 +0,0 @@
|
|
1
|
-
# frozen_string_literal: true
|
2
|
-
|
3
|
-
require 'eac_ruby_utils/core_ext'
|
4
|
-
|
5
|
-
module Ehbrs
|
6
|
-
module Music
|
7
|
-
class Album
|
8
|
-
include ::Comparable
|
9
|
-
common_constructor :path do
|
10
|
-
self.path = path.to_pathname.expand_path
|
11
|
-
end
|
12
|
-
|
13
|
-
def <=>(other)
|
14
|
-
to_a <=> other.to_a
|
15
|
-
end
|
16
|
-
|
17
|
-
def to_a
|
18
|
-
[category, artist, name]
|
19
|
-
end
|
20
|
-
|
21
|
-
def to_label
|
22
|
-
(to_a + [id]).map(&:light_white).join(' | '.blue)
|
23
|
-
end
|
24
|
-
|
25
|
-
delegate :to_path, to: :path
|
26
|
-
|
27
|
-
def id
|
28
|
-
[artist, name].join('_').variableize
|
29
|
-
end
|
30
|
-
|
31
|
-
def name
|
32
|
-
path.basename.to_s
|
33
|
-
end
|
34
|
-
|
35
|
-
def artist
|
36
|
-
path.parent.basename.to_s
|
37
|
-
end
|
38
|
-
|
39
|
-
def category
|
40
|
-
path.parent.parent.basename.to_s
|
41
|
-
end
|
42
|
-
end
|
43
|
-
end
|
44
|
-
end
|