musicbrainz 0.7.7 → 0.8.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +7 -0
- data/.github/workflows/test.yml +26 -0
- data/.gitignore +2 -2
- data/Gemfile +11 -0
- data/Gemfile.lock +54 -0
- data/LICENSE +2 -2
- data/README.md +21 -10
- data/lib/musicbrainz/bindings/artist.rb +0 -1
- data/lib/musicbrainz/bindings/artist_search.rb +0 -1
- data/lib/musicbrainz/bindings/discid_releases.rb +13 -0
- data/lib/musicbrainz/bindings/recording.rb +19 -0
- data/lib/musicbrainz/bindings/{track_search.rb → recording_search.rb} +1 -2
- data/lib/musicbrainz/bindings/relations.rb +1 -2
- data/lib/musicbrainz/bindings/release_group_search.rb +0 -1
- data/lib/musicbrainz/client_modules/caching_proxy.rb +27 -13
- data/lib/musicbrainz/models/base_model.rb +12 -2
- data/lib/musicbrainz/models/recording.rb +20 -0
- data/lib/musicbrainz/models/release.rb +8 -1
- data/lib/musicbrainz/models/track.rb +0 -4
- data/lib/musicbrainz/version.rb +1 -1
- data/lib/musicbrainz.rb +4 -1
- data/musicbrainz.gemspec +3 -6
- data/spec/bindings/recording_search_spec.rb +48 -0
- data/spec/bindings/relations_spec.rb +45 -26
- data/spec/bindings/release_group_search_spec.rb +24 -6
- data/spec/bindings/release_spec.rb +94 -18
- data/spec/client_modules/cache_spec.rb +18 -17
- data/spec/deprecated/cache_config_spec.rb +4 -6
- data/spec/deprecated/proxy_config_spec.rb +4 -6
- data/spec/fixtures/artist/find_69b39eab-6577-46a4-a9f5-817839092033.xml +168 -0
- data/spec/fixtures/artist/release_groups_69b39eab-6577-46a4-a9f5-817839092033.xml +412 -0
- data/spec/fixtures/artist/search_kasabian.xml +104 -0
- data/spec/fixtures/recording/find_b3015bab-1540-4d4e-9f30-14872a1525f7.xml +8 -0
- data/spec/fixtures/recording/search_bound_for_the_floor_local_h.xml +647 -0
- data/spec/fixtures/release/find_2225dd4c-ae9a-403b-8ea0-9e05014c778f.xml +44 -0
- data/spec/fixtures/release/find_2225dd4c-ae9a-403b-8ea0-9e05014c778f_tracks.xml +151 -0
- data/spec/fixtures/release/find_b94cb547-cf7a-4357-894c-53c3bf33b093.xml +52 -0
- data/spec/fixtures/release/find_by_discid_pmzhT6ZlFiwSRCdVwV0eqire5_Y-.xml +141 -0
- data/spec/fixtures/release/list_6f33e0f0-cde2-38f9-9aee-2c60af8d1a61.xml +344 -0
- data/spec/fixtures/release_group/search_kasabian_empire_album.xml +117 -0
- data/spec/models/artist_spec.rb +77 -46
- data/spec/models/base_model_spec.rb +50 -22
- data/spec/models/recording_spec.rb +42 -0
- data/spec/models/release_group_spec.rb +61 -55
- data/spec/models/release_spec.rb +63 -28
- data/spec/models/track_spec.rb +19 -15
- data/spec/spec_helper.rb +7 -7
- data/spec/support/mock_helpers.rb +13 -0
- metadata +55 -93
- data/.rspec +0 -1
- data/.travis.yml +0 -4
- data/spec/bindings/track_search_spec.rb +0 -17
- data/spec/fixtures/artist/search.xml +0 -67
- data/spec/fixtures/kasabian.xml +0 -1
- data/spec/fixtures/release/list.xml +0 -344
- /data/spec/fixtures/release_group/{entity.xml → find_6f33e0f0-cde2-38f9-9aee-2c60af8d1a61.xml} +0 -0
- /data/spec/fixtures/release_group/{search.xml → search_kasabian_empire.xml} +0 -0
@@ -1,344 +0,0 @@
|
|
1
|
-
<?xml version="1.0" encoding="UTF-8"?>
|
2
|
-
<metadata xmlns="http://musicbrainz.org/ns/mmd-2.0#">
|
3
|
-
<release-list count="8">
|
4
|
-
<release id="123eff45-b875-4aab-b659-fb6996691db6">
|
5
|
-
<title>Empire</title>
|
6
|
-
<status>Official</status>
|
7
|
-
<quality>normal</quality>
|
8
|
-
<packaging>Jewel Case</packaging>
|
9
|
-
<text-representation>
|
10
|
-
<language>eng</language>
|
11
|
-
<script>Latn</script>
|
12
|
-
</text-representation>
|
13
|
-
<release-group type="Album" id="6f33e0f0-cde2-38f9-9aee-2c60af8d1a61">
|
14
|
-
<title>Empire</title>
|
15
|
-
<first-release-date>2006-08-28</first-release-date>
|
16
|
-
<primary-type>Album</primary-type>
|
17
|
-
</release-group>
|
18
|
-
<date>2006</date>
|
19
|
-
<country>XE</country>
|
20
|
-
<release-event-list count="1">
|
21
|
-
<release-event>
|
22
|
-
<date>2006</date>
|
23
|
-
<area id="89a675c2-3e37-3518-b83c-418bad59a85a">
|
24
|
-
<name>Europe</name>
|
25
|
-
<sort-name>Europe</sort-name>
|
26
|
-
<iso-3166-1-code-list>
|
27
|
-
<iso-3166-1-code>XE</iso-3166-1-code>
|
28
|
-
</iso-3166-1-code-list>
|
29
|
-
</area>
|
30
|
-
</release-event>
|
31
|
-
</release-event-list>
|
32
|
-
<barcode>828768934227</barcode>
|
33
|
-
<cover-art-archive>
|
34
|
-
<artwork>false</artwork>
|
35
|
-
<count>0</count>
|
36
|
-
<front>false</front>
|
37
|
-
<back>false</back>
|
38
|
-
</cover-art-archive>
|
39
|
-
<medium-list count="1">
|
40
|
-
<medium>
|
41
|
-
<position>1</position>
|
42
|
-
<format>CD</format>
|
43
|
-
<track-list count="11" />
|
44
|
-
</medium>
|
45
|
-
</medium-list>
|
46
|
-
</release>
|
47
|
-
<release id="2225dd4c-ae9a-403b-8ea0-9e05014c778f">
|
48
|
-
<title>Empire</title>
|
49
|
-
<status>Official</status>
|
50
|
-
<quality>normal</quality>
|
51
|
-
<text-representation>
|
52
|
-
<language>eng</language>
|
53
|
-
<script>Latn</script>
|
54
|
-
</text-representation>
|
55
|
-
<release-group type="Album" id="6f33e0f0-cde2-38f9-9aee-2c60af8d1a61">
|
56
|
-
<title>Empire</title>
|
57
|
-
<first-release-date>2006-08-28</first-release-date>
|
58
|
-
<primary-type>Album</primary-type>
|
59
|
-
</release-group>
|
60
|
-
<date>2006-08-28</date>
|
61
|
-
<country>GB</country>
|
62
|
-
<release-event-list count="1">
|
63
|
-
<release-event>
|
64
|
-
<date>2006-08-28</date>
|
65
|
-
<area id="8a754a16-0027-3a29-b6d7-2b40ea0481ed">
|
66
|
-
<name>United Kingdom</name>
|
67
|
-
<sort-name>United Kingdom</sort-name>
|
68
|
-
<iso-3166-1-code-list>
|
69
|
-
<iso-3166-1-code>GB</iso-3166-1-code>
|
70
|
-
</iso-3166-1-code-list>
|
71
|
-
</area>
|
72
|
-
</release-event>
|
73
|
-
</release-event-list>
|
74
|
-
<asin>B000H49P28</asin>
|
75
|
-
<cover-art-archive>
|
76
|
-
<artwork>false</artwork>
|
77
|
-
<count>0</count>
|
78
|
-
<front>false</front>
|
79
|
-
<back>false</back>
|
80
|
-
</cover-art-archive>
|
81
|
-
<medium-list count="1">
|
82
|
-
<medium>
|
83
|
-
<position>1</position>
|
84
|
-
<track-list count="11" />
|
85
|
-
</medium>
|
86
|
-
</medium-list>
|
87
|
-
</release>
|
88
|
-
<release id="2bc94ddc-b872-3b7f-b0a7-98a4fffbe5ba">
|
89
|
-
<title>Empire</title>
|
90
|
-
<status>Official</status>
|
91
|
-
<quality>normal</quality>
|
92
|
-
<text-representation>
|
93
|
-
<language>eng</language>
|
94
|
-
<script>Latn</script>
|
95
|
-
</text-representation>
|
96
|
-
<release-group type="Album" id="6f33e0f0-cde2-38f9-9aee-2c60af8d1a61">
|
97
|
-
<title>Empire</title>
|
98
|
-
<first-release-date>2006-08-28</first-release-date>
|
99
|
-
<primary-type>Album</primary-type>
|
100
|
-
</release-group>
|
101
|
-
<date>2006-09-19</date>
|
102
|
-
<country>US</country>
|
103
|
-
<release-event-list count="1">
|
104
|
-
<release-event>
|
105
|
-
<date>2006-09-19</date>
|
106
|
-
<area id="489ce91b-6658-3307-9877-795b68554c98">
|
107
|
-
<name>United States</name>
|
108
|
-
<sort-name>United States</sort-name>
|
109
|
-
<iso-3166-1-code-list>
|
110
|
-
<iso-3166-1-code>US</iso-3166-1-code>
|
111
|
-
</iso-3166-1-code-list>
|
112
|
-
</area>
|
113
|
-
</release-event>
|
114
|
-
</release-event-list>
|
115
|
-
<barcode>828768832325</barcode>
|
116
|
-
<asin>B000HEVYQS</asin>
|
117
|
-
<cover-art-archive>
|
118
|
-
<artwork>false</artwork>
|
119
|
-
<count>0</count>
|
120
|
-
<front>false</front>
|
121
|
-
<back>false</back>
|
122
|
-
</cover-art-archive>
|
123
|
-
<medium-list count="1">
|
124
|
-
<medium>
|
125
|
-
<position>1</position>
|
126
|
-
<format>CD</format>
|
127
|
-
<track-list count="11" />
|
128
|
-
</medium>
|
129
|
-
</medium-list>
|
130
|
-
</release>
|
131
|
-
<release id="2c8dcfc6-4afe-4b33-abc7-dff1bb4c5386">
|
132
|
-
<title>Empire</title>
|
133
|
-
<status>Official</status>
|
134
|
-
<quality>normal</quality>
|
135
|
-
<text-representation>
|
136
|
-
<language>eng</language>
|
137
|
-
<script>Latn</script>
|
138
|
-
</text-representation>
|
139
|
-
<release-group type="Album" id="6f33e0f0-cde2-38f9-9aee-2c60af8d1a61">
|
140
|
-
<title>Empire</title>
|
141
|
-
<first-release-date>2006-08-28</first-release-date>
|
142
|
-
<primary-type>Album</primary-type>
|
143
|
-
</release-group>
|
144
|
-
<date>2006-09-22</date>
|
145
|
-
<country>XW</country>
|
146
|
-
<release-event-list count="1">
|
147
|
-
<release-event>
|
148
|
-
<date>2006-09-22</date>
|
149
|
-
<area id="525d4e18-3d00-31b9-a58b-a146a916de8f">
|
150
|
-
<name>[Worldwide]</name>
|
151
|
-
<sort-name>[Worldwide]</sort-name>
|
152
|
-
<iso-3166-1-code-list>
|
153
|
-
<iso-3166-1-code>XW</iso-3166-1-code>
|
154
|
-
</iso-3166-1-code-list>
|
155
|
-
</area>
|
156
|
-
</release-event>
|
157
|
-
</release-event-list>
|
158
|
-
<cover-art-archive>
|
159
|
-
<artwork>false</artwork>
|
160
|
-
<count>0</count>
|
161
|
-
<front>false</front>
|
162
|
-
<back>false</back>
|
163
|
-
</cover-art-archive>
|
164
|
-
<medium-list count="1">
|
165
|
-
<medium>
|
166
|
-
<position>1</position>
|
167
|
-
<format>Digital Media</format>
|
168
|
-
<track-list count="12" />
|
169
|
-
</medium>
|
170
|
-
</medium-list>
|
171
|
-
</release>
|
172
|
-
<release id="30d5e730-ce0a-464d-93e1-7d76e4bb3e31">
|
173
|
-
<title>Empire</title>
|
174
|
-
<status>Official</status>
|
175
|
-
<quality>normal</quality>
|
176
|
-
<text-representation>
|
177
|
-
<language>eng</language>
|
178
|
-
<script>Latn</script>
|
179
|
-
</text-representation>
|
180
|
-
<release-group type="Album" id="6f33e0f0-cde2-38f9-9aee-2c60af8d1a61">
|
181
|
-
<title>Empire</title>
|
182
|
-
<first-release-date>2006-08-28</first-release-date>
|
183
|
-
<primary-type>Album</primary-type>
|
184
|
-
</release-group>
|
185
|
-
<date>2006-08-28</date>
|
186
|
-
<country>GB</country>
|
187
|
-
<release-event-list count="1">
|
188
|
-
<release-event>
|
189
|
-
<date>2006-08-28</date>
|
190
|
-
<area id="8a754a16-0027-3a29-b6d7-2b40ea0481ed">
|
191
|
-
<name>United Kingdom</name>
|
192
|
-
<sort-name>United Kingdom</sort-name>
|
193
|
-
<iso-3166-1-code-list>
|
194
|
-
<iso-3166-1-code>GB</iso-3166-1-code>
|
195
|
-
</iso-3166-1-code-list>
|
196
|
-
</area>
|
197
|
-
</release-event>
|
198
|
-
</release-event-list>
|
199
|
-
<barcode>828768849927</barcode>
|
200
|
-
<asin>B000H49P28</asin>
|
201
|
-
<cover-art-archive>
|
202
|
-
<artwork>false</artwork>
|
203
|
-
<count>0</count>
|
204
|
-
<front>false</front>
|
205
|
-
<back>false</back>
|
206
|
-
</cover-art-archive>
|
207
|
-
<medium-list count="1">
|
208
|
-
<medium>
|
209
|
-
<position>1</position>
|
210
|
-
<format>CD</format>
|
211
|
-
<track-list count="11" />
|
212
|
-
</medium>
|
213
|
-
</medium-list>
|
214
|
-
</release>
|
215
|
-
<release id="36ee86ab-0450-4d8f-a970-183c11f210c1">
|
216
|
-
<title>Empire</title>
|
217
|
-
<status>Official</status>
|
218
|
-
<quality>normal</quality>
|
219
|
-
<packaging>Jewel Case</packaging>
|
220
|
-
<text-representation>
|
221
|
-
<language>eng</language>
|
222
|
-
<script>Latn</script>
|
223
|
-
</text-representation>
|
224
|
-
<release-group type="Album" id="6f33e0f0-cde2-38f9-9aee-2c60af8d1a61">
|
225
|
-
<title>Empire</title>
|
226
|
-
<first-release-date>2006-08-28</first-release-date>
|
227
|
-
<primary-type>Album</primary-type>
|
228
|
-
</release-group>
|
229
|
-
<date>2006</date>
|
230
|
-
<country>GB</country>
|
231
|
-
<release-event-list count="1">
|
232
|
-
<release-event>
|
233
|
-
<date>2006</date>
|
234
|
-
<area id="8a754a16-0027-3a29-b6d7-2b40ea0481ed">
|
235
|
-
<name>United Kingdom</name>
|
236
|
-
<sort-name>United Kingdom</sort-name>
|
237
|
-
<iso-3166-1-code-list>
|
238
|
-
<iso-3166-1-code>GB</iso-3166-1-code>
|
239
|
-
</iso-3166-1-code-list>
|
240
|
-
</area>
|
241
|
-
</release-event>
|
242
|
-
</release-event-list>
|
243
|
-
<barcode>828768934227</barcode>
|
244
|
-
<cover-art-archive>
|
245
|
-
<artwork>false</artwork>
|
246
|
-
<count>0</count>
|
247
|
-
<front>false</front>
|
248
|
-
<back>false</back>
|
249
|
-
</cover-art-archive>
|
250
|
-
<medium-list count="1">
|
251
|
-
<medium>
|
252
|
-
<position>1</position>
|
253
|
-
<format>CD</format>
|
254
|
-
<track-list count="11" />
|
255
|
-
</medium>
|
256
|
-
</medium-list>
|
257
|
-
</release>
|
258
|
-
<release id="9f068ed6-9f69-4a60-bf5a-0931176a9aba">
|
259
|
-
<title>Empire</title>
|
260
|
-
<status>Official</status>
|
261
|
-
<quality>normal</quality>
|
262
|
-
<text-representation>
|
263
|
-
<language>eng</language>
|
264
|
-
<script>Latn</script>
|
265
|
-
</text-representation>
|
266
|
-
<release-group type="Album" id="6f33e0f0-cde2-38f9-9aee-2c60af8d1a61">
|
267
|
-
<title>Empire</title>
|
268
|
-
<first-release-date>2006-08-28</first-release-date>
|
269
|
-
<primary-type>Album</primary-type>
|
270
|
-
</release-group>
|
271
|
-
<date>2006-12-20</date>
|
272
|
-
<country>JP</country>
|
273
|
-
<release-event-list count="1">
|
274
|
-
<release-event>
|
275
|
-
<date>2006-12-20</date>
|
276
|
-
<area id="2db42837-c832-3c27-b4a3-08198f75693c">
|
277
|
-
<name>Japan</name>
|
278
|
-
<sort-name>Japan</sort-name>
|
279
|
-
<iso-3166-1-code-list>
|
280
|
-
<iso-3166-1-code>JP</iso-3166-1-code>
|
281
|
-
</iso-3166-1-code-list>
|
282
|
-
</area>
|
283
|
-
</release-event>
|
284
|
-
</release-event-list>
|
285
|
-
<barcode>4988017645901</barcode>
|
286
|
-
<asin>B000K2QL9W</asin>
|
287
|
-
<cover-art-archive>
|
288
|
-
<artwork>false</artwork>
|
289
|
-
<count>0</count>
|
290
|
-
<front>false</front>
|
291
|
-
<back>false</back>
|
292
|
-
</cover-art-archive>
|
293
|
-
<medium-list count="1">
|
294
|
-
<medium>
|
295
|
-
<position>1</position>
|
296
|
-
<format>CD</format>
|
297
|
-
<track-list count="16" />
|
298
|
-
</medium>
|
299
|
-
</medium-list>
|
300
|
-
</release>
|
301
|
-
<release id="dd34af03-37ab-460a-b20a-54629336d81a">
|
302
|
-
<title>Empire</title>
|
303
|
-
<status>Official</status>
|
304
|
-
<quality>normal</quality>
|
305
|
-
<packaging>Jewel Case</packaging>
|
306
|
-
<text-representation>
|
307
|
-
<language>eng</language>
|
308
|
-
<script>Latn</script>
|
309
|
-
</text-representation>
|
310
|
-
<release-group type="Album" id="6f33e0f0-cde2-38f9-9aee-2c60af8d1a61">
|
311
|
-
<title>Empire</title>
|
312
|
-
<first-release-date>2006-08-28</first-release-date>
|
313
|
-
<primary-type>Album</primary-type>
|
314
|
-
</release-group>
|
315
|
-
<date>2006-12-18</date>
|
316
|
-
<country>GB</country>
|
317
|
-
<release-event-list count="1">
|
318
|
-
<release-event>
|
319
|
-
<date>2006-12-18</date>
|
320
|
-
<area id="8a754a16-0027-3a29-b6d7-2b40ea0481ed">
|
321
|
-
<name>United Kingdom</name>
|
322
|
-
<sort-name>United Kingdom</sort-name>
|
323
|
-
<iso-3166-1-code-list>
|
324
|
-
<iso-3166-1-code>GB</iso-3166-1-code>
|
325
|
-
</iso-3166-1-code-list>
|
326
|
-
</area>
|
327
|
-
</release-event>
|
328
|
-
</release-event-list>
|
329
|
-
<cover-art-archive>
|
330
|
-
<artwork>true</artwork>
|
331
|
-
<count>1</count>
|
332
|
-
<front>true</front>
|
333
|
-
<back>false</back>
|
334
|
-
</cover-art-archive>
|
335
|
-
<medium-list count="1">
|
336
|
-
<medium>
|
337
|
-
<position>1</position>
|
338
|
-
<format>Digital Media</format>
|
339
|
-
<track-list count="16" />
|
340
|
-
</medium>
|
341
|
-
</medium-list>
|
342
|
-
</release>
|
343
|
-
</release-list>
|
344
|
-
</metadata>
|
/data/spec/fixtures/release_group/{entity.xml → find_6f33e0f0-cde2-38f9-9aee-2c60af8d1a61.xml}
RENAMED
File without changes
|
File without changes
|