next-big-sound 0.4.4 → 0.5.0
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 +1 -1
- data/lib/artist.rb +1 -1
- data/lib/artist_profile.rb +1 -1
- data/lib/metric.rb +1 -1
- data/lib/next-big-sound.rb +1 -1
- data/lib/search.rb +2 -7
- data/next-big-sound.gemspec +2 -2
- metadata +4 -4
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
0.
|
1
|
+
0.5.0
|
data/lib/artist.rb
CHANGED
@@ -22,7 +22,7 @@ module NBS
|
|
22
22
|
profs = {}
|
23
23
|
begin
|
24
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"])
|
25
|
+
profs[item["service"].to_s]=NBS::ArtistProfile.new(self.artist_id, item["service"] ,item["url"])
|
26
26
|
end
|
27
27
|
rescue
|
28
28
|
end
|
data/lib/artist_profile.rb
CHANGED
@@ -18,7 +18,7 @@ module NBS
|
|
18
18
|
def load_metrics(sdate,edate)
|
19
19
|
metrics ={}
|
20
20
|
METRICS.each do |metric_string|
|
21
|
-
metrics[metric_string.to_s] = Metric.new(self.artist_id,self.service_type,metric_string.to_s,sdate,edate)
|
21
|
+
metrics[metric_string.to_s] = NBS::Metric.new(self.artist_id,self.service_type,metric_string.to_s,sdate,edate)
|
22
22
|
end
|
23
23
|
return metrics
|
24
24
|
end
|
data/lib/metric.rb
CHANGED
data/lib/next-big-sound.rb
CHANGED
@@ -33,7 +33,7 @@ module NBS
|
|
33
33
|
# if you prefer to just use the xml simply type to_xml
|
34
34
|
# this method with actually fetch the result
|
35
35
|
def search(query, options={} )
|
36
|
-
search = Search.new(query,options)
|
36
|
+
search = NBS::Search.new(query,options)
|
37
37
|
search.fetch
|
38
38
|
return search
|
39
39
|
end
|
data/lib/search.rb
CHANGED
@@ -4,10 +4,7 @@ module NBS
|
|
4
4
|
require 'uri'
|
5
5
|
|
6
6
|
class Search
|
7
|
-
|
8
|
-
#extend NBS::MemcachedMemoize
|
9
|
-
|
10
|
-
|
7
|
+
|
11
8
|
attr_accessor :options, :query, :api_key,:base_url, :xml
|
12
9
|
|
13
10
|
def initialize(query, options={})
|
@@ -26,7 +23,7 @@ module NBS
|
|
26
23
|
a = []
|
27
24
|
begin
|
28
25
|
hash["Results"][0]["Result"].each do |item|
|
29
|
-
a << Artist.new(item["NBSArtistID"][0],item["NBSArtistName"][0])
|
26
|
+
a << NBS::Artist.new(item["NBSArtistID"][0],item["NBSArtistName"][0])
|
30
27
|
end
|
31
28
|
rescue
|
32
29
|
end
|
@@ -35,7 +32,5 @@ module NBS
|
|
35
32
|
def to_xml
|
36
33
|
self.xml ||=fetch
|
37
34
|
end
|
38
|
-
|
39
|
-
#remember :fetch
|
40
35
|
end
|
41
36
|
end
|
data/next-big-sound.gemspec
CHANGED
@@ -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.
|
8
|
+
s.version = "0.5.0"
|
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-
|
12
|
+
s.date = %q{2010-04-16}
|
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
@@ -4,9 +4,9 @@ version: !ruby/object:Gem::Version
|
|
4
4
|
prerelease: false
|
5
5
|
segments:
|
6
6
|
- 0
|
7
|
-
-
|
8
|
-
-
|
9
|
-
version: 0.
|
7
|
+
- 5
|
8
|
+
- 0
|
9
|
+
version: 0.5.0
|
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-
|
17
|
+
date: 2010-04-16 00:00:00 -04:00
|
18
18
|
default_executable:
|
19
19
|
dependencies:
|
20
20
|
- !ruby/object:Gem::Dependency
|