next-big-sound 0.4.2 → 0.4.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.4.2
1
+ 0.4.3
data/lib/artist.rb CHANGED
@@ -18,11 +18,15 @@ module NBS
18
18
  # return a hash of urls keyed by the service.
19
19
  def profiles
20
20
  ####
21
+ puts self.to_xml
21
22
  profs = {}
22
- self.to_hash["Profiles"][0]["Profile"].each do |item|
23
- profs[item["service"].to_s]=ArtistProfile.new(self.artist_id, item["service"] ,item["url"])
23
+ begin
24
+ self.to_hash["Profiles"][0]["Profile"].each do |item|
25
+ profs[item["service"].to_s]=ArtistProfile.new(self.artist_id, item["service"] ,item["url"])
26
+ end
27
+ rescue
28
+ return profs
24
29
  end
25
- return profs
26
30
  end
27
31
  def to_xml
28
32
  self.xml ||= fetch_profiles
data/lib/search.rb CHANGED
@@ -17,7 +17,9 @@ module NBS
17
17
  self.base_url = base_url
18
18
  end
19
19
  def fetch
20
+ puts "#{NBS::NBS_CONFIG["base_url"]}search?#{self.options.to_url_params}"
20
21
  self.xml=Net::HTTP.get(URI.parse("#{NBS::NBS_CONFIG["base_url"]}search?#{self.options.to_url_params}")).to_s
22
+ #puts self.xml
21
23
  end
22
24
  def artists
23
25
  hash = Hash.from_xml(self.to_xml)
@@ -5,11 +5,11 @@
5
5
 
6
6
  Gem::Specification.new do |s|
7
7
  s.name = %q{next-big-sound}
8
- s.version = "0.4.2"
8
+ s.version = "0.4.3"
9
9
 
10
10
  s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
11
11
  s.authors = ["jeff durand"]
12
- s.date = %q{2010-04-05}
12
+ s.date = %q{2010-04-12}
13
13
  s.description = %q{A simple wrapper class for the Next Big Sound api. docs for the api can be found at api.nextbigsound.com}
14
14
  s.email = %q{jeff.durand@gmail.com}
15
15
  s.extra_rdoc_files = [
metadata CHANGED
@@ -5,8 +5,8 @@ version: !ruby/object:Gem::Version
5
5
  segments:
6
6
  - 0
7
7
  - 4
8
- - 2
9
- version: 0.4.2
8
+ - 3
9
+ version: 0.4.3
10
10
  platform: ruby
11
11
  authors:
12
12
  - jeff durand
@@ -14,7 +14,7 @@ autorequire:
14
14
  bindir: bin
15
15
  cert_chain: []
16
16
 
17
- date: 2010-04-05 00:00:00 -04:00
17
+ date: 2010-04-12 00:00:00 -04:00
18
18
  default_executable:
19
19
  dependencies:
20
20
  - !ruby/object:Gem::Dependency