next-big-sound 0.8.1 → 0.8.2
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/next-big-sound/artist.rb +4 -3
- data/next-big-sound.gemspec +1 -1
- metadata +2 -2
data/VERSION
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
0.8.
|
|
1
|
+
0.8.2
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
module NBS
|
|
2
2
|
class Artist
|
|
3
|
-
|
|
3
|
+
extend NBS::MemcachedMemoize
|
|
4
4
|
attr_accessor :artist_id, :name, :xml, :options, :post_params
|
|
5
5
|
|
|
6
6
|
PROFILES = %w(all myspace lastfm ilike facebook twitter youtube reverbnation ourstage soundcloud purevolume bebo virb amiestreet jamlegend vimeo)
|
|
@@ -17,7 +17,7 @@ module NBS
|
|
|
17
17
|
end
|
|
18
18
|
end
|
|
19
19
|
|
|
20
|
-
def fetch_profiles
|
|
20
|
+
def fetch_profiles(artist,sdate,edate)
|
|
21
21
|
if self.post_params.empty?
|
|
22
22
|
puts "not doing expected action"
|
|
23
23
|
puts self.post_params
|
|
@@ -73,7 +73,7 @@ module NBS
|
|
|
73
73
|
return profs
|
|
74
74
|
end
|
|
75
75
|
def to_xml
|
|
76
|
-
self.xml ||= fetch_profiles
|
|
76
|
+
self.xml ||= fetch_profiles(self.artist_id,self.options["start_date"], self.options["end_date"])
|
|
77
77
|
end
|
|
78
78
|
def to_hash
|
|
79
79
|
Hash.from_xml(self.to_xml)
|
|
@@ -103,5 +103,6 @@ module NBS
|
|
|
103
103
|
end
|
|
104
104
|
return arr
|
|
105
105
|
end
|
|
106
|
+
remember :fetch_profiles
|
|
106
107
|
end
|
|
107
108
|
end
|
data/next-big-sound.gemspec
CHANGED