musicbrainz 0.4.3 → 0.4.4

Sign up to get free protection for your applications and to get access to all the features.
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.4.3
1
+ 0.4.4
@@ -2,7 +2,7 @@ module MusicBrainz
2
2
  @@last_query_time = 0
3
3
  @@query_interval = 1.5 # Min: 1.0 Safe: 1.5
4
4
 
5
- def self.query_interval sec
5
+ def self.query_interval= sec
6
6
  @@query_interval = sec.to_f
7
7
  end
8
8
 
@@ -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
25
+ @artist.type = xml.css('artist').attr('type').value unless xml.css('artist').empty? or xml.css('artist').attr('type').empty?
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
@@ -5,11 +5,11 @@
5
5
 
6
6
  Gem::Specification.new do |s|
7
7
  s.name = %q{musicbrainz}
8
- s.version = "0.4.3"
8
+ s.version = "0.4.4"
9
9
 
10
10
  s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
11
11
  s.authors = ["Gregory Eremin"]
12
- s.date = %q{2011-09-14}
12
+ s.date = %q{2011-09-18}
13
13
  s.description = %q{MusicBrainz Web Service wrapper with ActiveRecord-style models}
14
14
  s.email = %q{magnolia_fan@me.com}
15
15
  s.extra_rdoc_files = [
metadata CHANGED
@@ -1,13 +1,8 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: musicbrainz
3
3
  version: !ruby/object:Gem::Version
4
- hash: 9
5
4
  prerelease:
6
- segments:
7
- - 0
8
- - 4
9
- - 3
10
- version: 0.4.3
5
+ version: 0.4.4
11
6
  platform: ruby
12
7
  authors:
13
8
  - Gregory Eremin
@@ -15,96 +10,74 @@ autorequire:
15
10
  bindir: bin
16
11
  cert_chain: []
17
12
 
18
- date: 2011-09-14 00:00:00 +04:00
13
+ date: 2011-09-18 00:00:00 +04:00
19
14
  default_executable:
20
15
  dependencies:
21
16
  - !ruby/object:Gem::Dependency
22
- prerelease: false
23
- type: :runtime
17
+ name: nokogiri
24
18
  requirement: &id001 !ruby/object:Gem::Requirement
25
19
  none: false
26
20
  requirements:
27
21
  - - ">="
28
22
  - !ruby/object:Gem::Version
29
- hash: 3
30
- segments:
31
- - 0
32
23
  version: "0"
33
- name: nokogiri
24
+ type: :runtime
25
+ prerelease: false
34
26
  version_requirements: *id001
35
27
  - !ruby/object:Gem::Dependency
36
- prerelease: false
37
- type: :development
28
+ name: shoulda
38
29
  requirement: &id002 !ruby/object:Gem::Requirement
39
30
  none: false
40
31
  requirements:
41
32
  - - ">="
42
33
  - !ruby/object:Gem::Version
43
- hash: 3
44
- segments:
45
- - 0
46
34
  version: "0"
47
- name: shoulda
35
+ type: :development
36
+ prerelease: false
48
37
  version_requirements: *id002
49
38
  - !ruby/object:Gem::Dependency
50
- prerelease: false
51
- type: :development
39
+ name: bundler
52
40
  requirement: &id003 !ruby/object:Gem::Requirement
53
41
  none: false
54
42
  requirements:
55
43
  - - ~>
56
44
  - !ruby/object:Gem::Version
57
- hash: 23
58
- segments:
59
- - 1
60
- - 0
61
- - 0
62
45
  version: 1.0.0
63
- name: bundler
46
+ type: :development
47
+ prerelease: false
64
48
  version_requirements: *id003
65
49
  - !ruby/object:Gem::Dependency
66
- prerelease: false
67
- type: :development
50
+ name: jeweler
68
51
  requirement: &id004 !ruby/object:Gem::Requirement
69
52
  none: false
70
53
  requirements:
71
54
  - - ~>
72
55
  - !ruby/object:Gem::Version
73
- hash: 7
74
- segments:
75
- - 1
76
- - 6
77
- - 4
78
56
  version: 1.6.4
79
- name: jeweler
57
+ type: :development
58
+ prerelease: false
80
59
  version_requirements: *id004
81
60
  - !ruby/object:Gem::Dependency
82
- prerelease: false
83
- type: :development
61
+ name: rcov
84
62
  requirement: &id005 !ruby/object:Gem::Requirement
85
63
  none: false
86
64
  requirements:
87
65
  - - ">="
88
66
  - !ruby/object:Gem::Version
89
- hash: 3
90
- segments:
91
- - 0
92
67
  version: "0"
93
- name: rcov
68
+ type: :development
69
+ prerelease: false
94
70
  version_requirements: *id005
95
71
  - !ruby/object:Gem::Dependency
96
- prerelease: false
97
- type: :development
72
+ name: rdoc
98
73
  requirement: &id006 !ruby/object:Gem::Requirement
99
74
  none: false
100
75
  requirements:
101
76
  - - ">="
102
77
  - !ruby/object:Gem::Version
103
- hash: 3
104
- segments:
105
- - 0
106
78
  version: "0"
107
- name: rdoc
79
+ type: :development
80
+ prerelease: false
108
81
  version_requirements: *id006
109
82
  description: MusicBrainz Web Service wrapper with ActiveRecord-style models
110
83
  email: magnolia_fan@me.com
@@ -147,7 +120,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
147
120
  requirements:
148
121
  - - ">="
149
122
  - !ruby/object:Gem::Version
150
- hash: 3
123
+ hash: -2779724924169557544
151
124
  segments:
152
125
  - 0
153
126
  version: "0"
@@ -156,9 +129,6 @@ required_rubygems_version: !ruby/object:Gem::Requirement
156
129
  requirements:
157
130
  - - ">="
158
131
  - !ruby/object:Gem::Version
159
- hash: 3
160
- segments:
161
- - 0
162
132
  version: "0"
163
133
  requirements: []
164
134