musicbrainz 0.4.4 → 0.4.5
Sign up to get free protection for your applications and to get access to all the features.
- data/VERSION +1 -1
- data/lib/models/music_brainz/artist.rb +1 -1
- data/musicbrainz.gemspec +1 -1
- metadata +2 -2
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
0.4.
|
1
|
+
0.4.5
|
@@ -22,7 +22,7 @@ module MusicBrainz
|
|
22
22
|
def self.parse_xml xml
|
23
23
|
@artist = MusicBrainz::Artist.new
|
24
24
|
@artist.id = xml.css('artist').attr('id').value
|
25
|
-
@artist.type = xml.css('artist').attr('type').value unless xml.css('artist').
|
25
|
+
@artist.type = xml.css('artist').attr('type').value unless xml.css('artist').nil? or xml.css('artist').attr('type').nil?
|
26
26
|
@artist.name = xml.css('artist > name').text
|
27
27
|
@artist.country = xml.css('artist > country').text unless xml.css('artist > country').empty?
|
28
28
|
@artist.date_begin = xml.css('artist > life-span > begin').text unless xml.css('artist > life-span > begin').empty?
|
data/musicbrainz.gemspec
CHANGED
metadata
CHANGED
@@ -2,7 +2,7 @@
|
|
2
2
|
name: musicbrainz
|
3
3
|
version: !ruby/object:Gem::Version
|
4
4
|
prerelease:
|
5
|
-
version: 0.4.
|
5
|
+
version: 0.4.5
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
8
8
|
- Gregory Eremin
|
@@ -120,7 +120,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
120
120
|
requirements:
|
121
121
|
- - ">="
|
122
122
|
- !ruby/object:Gem::Version
|
123
|
-
hash:
|
123
|
+
hash: 653798615574738850
|
124
124
|
segments:
|
125
125
|
- 0
|
126
126
|
version: "0"
|