rockstar 0.6.3 → 0.6.4

Sign up to get free protection for your applications and to get access to all the features.
@@ -1,13 +1,13 @@
1
1
  module Rockstar
2
2
  class Venue < Base
3
-
3
+
4
4
  attr_accessor :vid, :name, :city, :country, :street, :postalcode, :lat, :long, :url,
5
5
  :website, :phonenumber, :images, :events
6
6
 
7
7
  class << self
8
8
  def new_from_xml(xml, doc)
9
9
  v = Venue.new(
10
- (xml).at(:id).inner_html,
10
+ (xml).at(:id).inner_html,
11
11
  (xml).at(:name).inner_html
12
12
  )
13
13
 
@@ -28,28 +28,28 @@ module Rockstar
28
28
 
29
29
  v
30
30
  end
31
+
32
+ def find(name, country = nil, limit = nil, page = nil)
33
+ get_instance("venue.search", :venues, :venue, {:venue => name, :country => country, :limit => limit, :page => page})
34
+ end
31
35
  end
32
-
36
+
33
37
  def initialize(id, name)
34
38
  raise ArgumentError, "ID is required" if id.blank?
35
39
  raise ArgumentError, "Name is required" if name.blank?
36
40
  @vid = id
37
41
  @name = name
38
42
  end
39
-
43
+
40
44
  def image(which=:medium)
41
45
  which = which.to_s
42
- raise ArgumentError unless ['small', 'medium', 'large', 'extralarge', 'mega'].include?(which)
46
+ raise ArgumentError unless ['small', 'medium', 'large', 'extralarge', 'mega'].include?(which)
43
47
  if (self.images.nil?)
44
48
  load_info
45
- end
49
+ end
46
50
  self.images[which]
47
51
  end
48
-
49
- def self.find(name, country = nil, limit = nil, page = nil)
50
- get_instance("venue.search", :venues, :venue, {:venue => name, :country => country, :limit => limit, :page => page})
51
- end
52
-
52
+
53
53
  def events
54
54
  @events ||= get_instance("venue.getEvents", :events, :event, {:venue => vid})
55
55
  end
data/rockstar.gemspec CHANGED
@@ -5,11 +5,11 @@
5
5
 
6
6
  Gem::Specification.new do |s|
7
7
  s.name = %q{rockstar}
8
- s.version = "0.6.3"
8
+ s.version = "0.6.4"
9
9
 
10
10
  s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
11
- s.authors = ["Bodo Tasche"]
12
- s.date = %q{2011-08-24}
11
+ s.authors = [%q{Bodo Tasche}]
12
+ s.date = %q{2011-11-08}
13
13
  s.description = %q{This gem is an updated version of jnunemakers scrobbler gem. Rockstar uses v2.0 of the last.fm api.}
14
14
  s.email = %q{bodo@bitboxer.de}
15
15
  s.extra_rdoc_files = [
@@ -43,13 +43,9 @@ Gem::Specification.new do |s|
43
43
  "lib/rockstar/event.rb",
44
44
  "lib/rockstar/geo.rb",
45
45
  "lib/rockstar/metro.rb",
46
- "lib/rockstar/playing.rb",
47
46
  "lib/rockstar/rest.rb",
48
- "lib/rockstar/scrobble.rb",
49
47
  "lib/rockstar/session.rb",
50
- "lib/rockstar/simpleauth.rb",
51
48
  "lib/rockstar/tag.rb",
52
- "lib/rockstar/tokenauth.rb",
53
49
  "lib/rockstar/track.rb",
54
50
  "lib/rockstar/user.rb",
55
51
  "lib/rockstar/venue.rb",
@@ -108,18 +104,15 @@ Gem::Specification.new do |s|
108
104
  "test/unit/test_artist.rb",
109
105
  "test/unit/test_chart.rb",
110
106
  "test/unit/test_geo.rb",
111
- "test/unit/test_playing.rb",
112
- "test/unit/test_scrobble.rb",
113
- "test/unit/test_simpleauth.rb",
107
+ "test/unit/test_rockstar.rb",
114
108
  "test/unit/test_tag.rb",
115
- "test/unit/test_tokenauth.rb",
116
109
  "test/unit/test_track.rb",
117
110
  "test/unit/test_user.rb",
118
111
  "test/unit/test_venue.rb"
119
112
  ]
120
113
  s.homepage = %q{http://github.com/bitboxer/rockstar}
121
- s.require_paths = ["lib"]
122
- s.rubygems_version = %q{1.6.2}
114
+ s.require_paths = [%q{lib}]
115
+ s.rubygems_version = %q{1.8.8}
123
116
  s.summary = %q{wrapper for audioscrobbler (last.fm) web services}
124
117
  s.test_files = [
125
118
  "examples/album.rb",
@@ -135,11 +128,8 @@ Gem::Specification.new do |s|
135
128
  "test/unit/test_artist.rb",
136
129
  "test/unit/test_chart.rb",
137
130
  "test/unit/test_geo.rb",
138
- "test/unit/test_playing.rb",
139
- "test/unit/test_scrobble.rb",
140
- "test/unit/test_simpleauth.rb",
131
+ "test/unit/test_rockstar.rb",
141
132
  "test/unit/test_tag.rb",
142
- "test/unit/test_tokenauth.rb",
143
133
  "test/unit/test_track.rb",
144
134
  "test/unit/test_user.rb",
145
135
  "test/unit/test_venue.rb"
data/test/mocks/rest.rb CHANGED
@@ -17,50 +17,33 @@ module Rockstar
17
17
  @now_playing_url = 'http://62.216.251.203:80/nowplaying'
18
18
  @submission_url = 'http://62.216.251.205:80/protocol_1.2'
19
19
  @session_id = '17E61E13454CDD8B68E8D7DEEEDF6170'
20
-
20
+
21
21
  if @base_url == Rockstar::API_URL + Rockstar::API_VERSION + "/"
22
22
  folder, file = resource.downcase.split(".")
23
-
23
+
24
24
  query = ""
25
25
  if args.size > 0
26
26
  query = "_" + flatten(args)
27
27
  end
28
-
28
+
29
29
  file = File.dirname(__FILE__) + "/../fixtures/xml/#{folder}/#{file}#{query}.xml"
30
-
30
+
31
31
  if (!File.exists? file)
32
32
  puts "Mock file not found : #{file}"
33
33
  else
34
34
  File.read(file)
35
35
  end
36
-
37
- elsif @base_url == Rockstar::AUTH_URL
38
- # Test Simple Auth
39
- if args[:hs] == "true" && args[:p] == Rockstar::AUTH_VER.to_s && args[:c] == 'rck' &&
40
- args[:v] == Rockstar::Version.to_s && args[:u] == 'chunky' && !args[:t].blank?
41
-
42
- "OK\n#{@session_id}\n#{@now_playing_url}\n#{@submission_url}"
43
-
44
- # Test Token Auth
45
- elsif args[:u]=="chunky" && args[:a]==Digest::MD5.hexdigest("secret#{Time.now.to_i}") && args[:v]=="0.3.0" &&
46
- args[:c]=="rck" && args[:sk]=="bacon" && args[:hs]=="true" &&
47
- args[:p]=="1.2.1" && args[:t]==Time.now.to_i.to_s
48
-
49
- "OK\n#{@session_id}\n#{@now_playing_url}\n#{@submission_url}"
50
- else
51
- puts "WRONG!!"
52
- end
53
36
  elsif @base_url == @now_playing_url
54
37
  if args[:s] == @session_id && args.length == 7 && ![args[:a], args[:t], args[:b], args[:n]].any?(&:blank?)
55
38
  'OK'
56
- end
39
+ end
57
40
  elsif @base_url == @submission_url
58
41
  if args[:s] == @session_id && args.length == 10 &&
59
42
  ![args['a[0]'], args['t[0]'], args['i[0]'], args['o[0]'], args['l[0]'], args['b[0]']].any?(&:blank?)
60
43
  'OK'
61
44
  end
62
45
  end
63
-
46
+
64
47
  end
65
48
  end
66
49
  end
@@ -0,0 +1,15 @@
1
+ require File.expand_path('../../test_helper.rb', __FILE__)
2
+
3
+ class TestRockstar < Test::Unit::TestCase
4
+ test 'should accept strings' do
5
+ Rockstar.lastfm = {"api_key" => "1234567890", "api_secret" => "0987654321"}
6
+ assert_equal(Rockstar.lastfm_api_key, "1234567890")
7
+ assert_equal(Rockstar.lastfm_api_secret, "0987654321")
8
+ end
9
+
10
+ test 'should accept symbols' do
11
+ Rockstar.lastfm = {:api_key => "1234567890", :api_secret => "0987654321"}
12
+ assert_equal(Rockstar.lastfm_api_key, "1234567890")
13
+ assert_equal(Rockstar.lastfm_api_secret, "0987654321")
14
+ end
15
+ end
@@ -5,19 +5,19 @@ class TestTrack < Test::Unit::TestCase
5
5
  def setup
6
6
  @track = Rockstar::Track.new('Carrie Underwood', 'Before He Cheats')
7
7
  end
8
-
8
+
9
9
  test 'should require the artist name' do
10
10
  assert_raises(ArgumentError) { Rockstar::Track.new('', 'Before He Cheats') }
11
11
  end
12
-
12
+
13
13
  test 'should require the track name' do
14
14
  assert_raises(ArgumentError) { Rockstar::Track.new('Carrie Underwood', '') }
15
15
  end
16
-
16
+
17
17
  test "should know the artist" do
18
18
  assert_equal('Carrie Underwood', @track.artist)
19
19
  end
20
-
20
+
21
21
  test 'should know the name' do
22
22
  assert_equal('Before He Cheats', @track.name)
23
23
  end
@@ -36,7 +36,7 @@ class TestTrack < Test::Unit::TestCase
36
36
  assert_equal('1040848', track.playcount)
37
37
  assert_match(/named the 2007 Single of the Year by the Country Music Association/, track.summary)
38
38
  end
39
-
39
+
40
40
  test 'should have albums' do
41
41
  assert_equal(1, @track.albums.size)
42
42
  assert_equal('Some Hearts', @track.albums.first.name)
@@ -51,7 +51,7 @@ class TestTrack < Test::Unit::TestCase
51
51
  assert_equal('http://userserve-ak.last.fm/serve/34/41303325.jpg', @track.fans.first.avatar)
52
52
  assert_equal('5000000', @track.fans.first.weight)
53
53
  end
54
-
54
+
55
55
  test 'should have top tags' do
56
56
  assert_equal(100, @track.tags.size)
57
57
  assert_equal('country', @track.tags.first.name)
@@ -65,9 +65,9 @@ class TestTrack < Test::Unit::TestCase
65
65
  tracks.each{|t| assert_instance_of(Rockstar::Track, t, "Returned objects should all be Track objects")}
66
66
  assert tracks.first.tags.map{|t|t.name.downcase}.include?("country"), "The first similar track should be tagged with 'country'"
67
67
  end
68
-
68
+
69
69
  test 'can love tracks' do
70
- assert_equal('ok', @track.love("tag"))
70
+ assert_equal('ok', @track.love("tag"))
71
71
  end
72
72
 
73
73
  test 'raise missing parameter error in scrobble' do
@@ -6,32 +6,32 @@ class TestUser < Test::Unit::TestCase
6
6
  def setup
7
7
  @user = Rockstar::User.new('jnunemaker')
8
8
  end
9
-
9
+
10
10
  test 'should be able to find one user' do
11
11
  assert_equal(@user.username, Rockstar::User.find('jnunemaker').username)
12
12
  end
13
-
13
+
14
14
  test 'should be able to find multiple users' do
15
15
  users = Rockstar::User.find('jnunemaker', 'oaknd1', 'wharle')
16
16
  assert_equal(%w{jnunemaker oaknd1 wharle}, users.collect(&:username))
17
17
  end
18
-
18
+
19
19
  test 'should be able to find multiple users using an array' do
20
20
  users = Rockstar::User.find(%w{jnunemaker oaknd1 wharle})
21
21
  assert_equal(%w{jnunemaker oaknd1 wharle}, users.collect(&:username))
22
22
  end
23
-
23
+
24
24
  test 'should be able to load profile while finding' do
25
25
  user = Rockstar::User.find('jnunemaker', :include_profile => true)
26
26
  assert_equal(@user.username, user.username)
27
27
  assert_equal('3017870', user.id)
28
28
  end
29
-
29
+
30
30
  test 'should be able to load profile while finding multiple users' do
31
31
  users = Rockstar::User.find('jnunemaker', 'oaknd1', 'wharle', :include_profile => true)
32
32
  assert_equal(3, users.size)
33
33
  end
34
-
34
+
35
35
  test 'should be able to include profile during initialization' do
36
36
  user = Rockstar::User.new('jnunemaker', :include_profile => true)
37
37
  assert_equal('3017870', user.id)
@@ -71,11 +71,11 @@ class TestUser < Test::Unit::TestCase
71
71
  assert_equal('http://userserve-ak.last.fm/serve/34/30883349.png', first.thumbnail)
72
72
  assert_equal('http://userserve-ak.last.fm/serve/64/30883349.png', first.image)
73
73
  end
74
-
74
+
75
75
  test "should be able to get a user's top artists for a period of time" do
76
76
  last_3_month_artists = @user.top_artists( true, :period => "3month" )
77
77
  assert_equal(50, last_3_month_artists.size)
78
-
78
+
79
79
  first = @user.top_artists.first
80
80
  assert_equal('Florence + The Machine', first.name)
81
81
  assert_equal('', first.mbid)
@@ -85,7 +85,7 @@ class TestUser < Test::Unit::TestCase
85
85
  assert_equal('http://userserve-ak.last.fm/serve/34/50373889.png', first.thumbnail)
86
86
  assert_equal('http://userserve-ak.last.fm/serve/64/50373889.png', first.image)
87
87
  end
88
-
88
+
89
89
  test 'should be able to get top albums' do
90
90
  assert_equal(50, @user.top_albums.size)
91
91
  first = @user.top_albums.first
@@ -94,7 +94,7 @@ class TestUser < Test::Unit::TestCase
94
94
  assert_equal('The Very Best of Dwight Yoakam', first.name)
95
95
  assert_equal('b6a051b4-1a1e-4c33-a1e5-0ea6e920a13f', first.mbid)
96
96
  assert_equal('560', first.playcount)
97
- assert_equal('1', first.rank)
97
+ assert_equal('1', first.rank)
98
98
  assert_equal('http://www.last.fm/music/Dwight+Yoakam/The+Very+Best+of+Dwight+Yoakam', first.url)
99
99
  assert_equal('http://userserve-ak.last.fm/serve/34s/8725405.jpg', first.image(:small))
100
100
  assert_equal('http://userserve-ak.last.fm/serve/64s/8725405.jpg', first.image(:medium))
@@ -120,7 +120,7 @@ class TestUser < Test::Unit::TestCase
120
120
  assert_equal("7", first.count)
121
121
  assert_equal("http://www.last.fm/tag/country", first.url)
122
122
  end
123
-
123
+
124
124
  # not implemented
125
125
  test 'should be able to get top tags for artist' do
126
126
  end
@@ -130,7 +130,7 @@ class TestUser < Test::Unit::TestCase
130
130
  # not implemented
131
131
  test 'should be able to get top tags for track' do
132
132
  end
133
-
133
+
134
134
  test 'should have friends' do
135
135
  assert_equal(17, @user.friends.size)
136
136
  first = @user.friends.first
@@ -138,7 +138,7 @@ class TestUser < Test::Unit::TestCase
138
138
  assert_equal('http://www.last.fm/user/mayorcj', first.url)
139
139
  assert_equal('http://userserve-ak.last.fm/serve/34/37841973.jpg', first.avatar)
140
140
  end
141
-
141
+
142
142
  test 'should have neighbours' do
143
143
  assert_equal(50, @user.neighbours.size)
144
144
  first = @user.neighbours.first
@@ -173,24 +173,20 @@ class TestUser < Test::Unit::TestCase
173
173
  assert_equal('1243434966', first.date_uts)
174
174
  end
175
175
 
176
- test 'should have recommendations is deprecated' do
177
- assert_equal(0, @user.recommendations.size)
178
- end
179
-
180
176
  test 'should have artist recommendations' do
181
177
  first = @user.recommended_artists("token").first
182
178
  assert_equal('Virginia Jetzt!', first.name)
183
179
  assert_equal('433d544f-d6c6-4c79-aefd-6f4c7918e5fe', first.mbid)
184
180
  assert_equal('http://www.last.fm/music/Virginia+Jetzt%21', first.url)
185
181
  end
186
-
182
+
187
183
  test 'should have charts' do
188
184
  assert_equal(229, @user.charts.size)
189
185
  first = @user.charts.first
190
186
  assert_equal(1134302403, first.from)
191
187
  assert_equal(1134907203, first.to)
192
188
  end
193
-
189
+
194
190
  test 'should have weekly artist chart' do
195
191
  chart = @user.weekly_artist_chart
196
192
  assert_equal(3, chart.size)
@@ -201,7 +197,7 @@ class TestUser < Test::Unit::TestCase
201
197
  assert_equal('45', first.playcount)
202
198
  assert_equal('http://www.last.fm/music/Glee+Cast', first.url)
203
199
  end
204
-
200
+
205
201
  test 'should have weekly artist chart for past weeks' do
206
202
  chart = @user.weekly_artist_chart(1138536002, 1139140802)
207
203
  assert_equal(33, chart.size)
@@ -212,7 +208,7 @@ class TestUser < Test::Unit::TestCase
212
208
  assert_equal('48', first.playcount)
213
209
  assert_equal('http://www.last.fm/music/Jenny+Lewis+with+The+Watson+Twins', first.url)
214
210
  end
215
-
211
+
216
212
  test 'should have weekly album chart' do
217
213
  chart = @user.weekly_album_chart
218
214
  assert_equal(4, chart.size)
@@ -225,7 +221,7 @@ class TestUser < Test::Unit::TestCase
225
221
  assert_equal('15', first.playcount)
226
222
  assert_equal('http://www.last.fm/music/Brad+Mehldau/Highway+Rider', first.url)
227
223
  end
228
-
224
+
229
225
  test 'should have weekly album chart for past weeks' do
230
226
  chart = @user.weekly_album_chart(1138536002, 1139140802)
231
227
  assert_equal(20, chart.size)
@@ -237,8 +233,8 @@ class TestUser < Test::Unit::TestCase
237
233
  assert_equal('1', first.chartposition)
238
234
  assert_equal('13', first.playcount)
239
235
  assert_equal('http://www.last.fm/music/Jewel/0304', first.url)
240
- end
241
-
236
+ end
237
+
242
238
  test 'should have track album chart' do
243
239
  chart = @user.weekly_track_chart
244
240
  assert_equal(42, chart.size)
@@ -279,7 +275,7 @@ class TestUser < Test::Unit::TestCase
279
275
  assert_equal(Time.local(2010, 8, 20, 17, 50, 1), first.start_date)
280
276
  assert_equal(Time.local(2010, 8, 22, 17, 50, 1), first.end_date)
281
277
  assert(first.description.length >= 814)
282
- assert_equal(200, first.attendance)
278
+ assert_equal(200, first.attendance)
283
279
  assert_equal(0, first.reviews)
284
280
  assert_equal("lastfm:event=1575046", first.tag)
285
281
  assert_equal("http://www.last.fm/festival/1575046+Cityfestival+%28gamescom%29", first.url)
@@ -291,7 +287,7 @@ class TestUser < Test::Unit::TestCase
291
287
  assert_equal("http://userserve-ak.last.fm/serve/64/3608276.jpg", first.images["medium"])
292
288
  assert_equal("http://userserve-ak.last.fm/serve/126/3608276.jpg", first.images["large"])
293
289
  assert_equal("http://userserve-ak.last.fm/serve/252/3608276.jpg", first.images["extralarge"])
294
-
290
+
295
291
  assert_equal("Innenstadt", first.venue.name)
296
292
 
297
293
  assert_equal("Köln", first.venue.city.mb_chars)
@@ -308,6 +304,6 @@ class TestUser < Test::Unit::TestCase
308
304
  assert_equal("large", first.venue.images["large"])
309
305
  assert_equal("extralarge", first.venue.images["extralarge"])
310
306
 
311
- end
307
+ end
312
308
 
313
309
  end
metadata CHANGED
@@ -1,102 +1,103 @@
1
- --- !ruby/object:Gem::Specification
1
+ --- !ruby/object:Gem::Specification
2
2
  name: rockstar
3
- version: !ruby/object:Gem::Version
4
- version: 0.6.3
3
+ version: !ruby/object:Gem::Version
5
4
  prerelease:
5
+ version: 0.6.4
6
6
  platform: ruby
7
- authors:
7
+ authors:
8
8
  - Bodo Tasche
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2011-08-24 00:00:00.000000000 +02:00
13
- default_executable:
14
- dependencies:
15
- - !ruby/object:Gem::Dependency
12
+
13
+ date: 2011-11-08 00:00:00 Z
14
+ dependencies:
15
+ - !ruby/object:Gem::Dependency
16
16
  name: rake
17
- requirement: &70351974063200 !ruby/object:Gem::Requirement
17
+ requirement: &id001 !ruby/object:Gem::Requirement
18
18
  none: false
19
- requirements:
20
- - - ! '>='
21
- - !ruby/object:Gem::Version
22
- version: '0'
19
+ requirements:
20
+ - - ">="
21
+ - !ruby/object:Gem::Version
22
+ version: "0"
23
23
  type: :runtime
24
24
  prerelease: false
25
- version_requirements: *70351974063200
26
- - !ruby/object:Gem::Dependency
25
+ version_requirements: *id001
26
+ - !ruby/object:Gem::Dependency
27
27
  name: hpricot
28
- requirement: &70351974060320 !ruby/object:Gem::Requirement
28
+ requirement: &id002 !ruby/object:Gem::Requirement
29
29
  none: false
30
- requirements:
31
- - - ! '>='
32
- - !ruby/object:Gem::Version
30
+ requirements:
31
+ - - ">="
32
+ - !ruby/object:Gem::Version
33
33
  version: 0.4.86
34
34
  type: :runtime
35
35
  prerelease: false
36
- version_requirements: *70351974060320
37
- - !ruby/object:Gem::Dependency
36
+ version_requirements: *id002
37
+ - !ruby/object:Gem::Dependency
38
38
  name: i18n
39
- requirement: &70351974059800 !ruby/object:Gem::Requirement
39
+ requirement: &id003 !ruby/object:Gem::Requirement
40
40
  none: false
41
- requirements:
42
- - - ! '>='
43
- - !ruby/object:Gem::Version
44
- version: '0'
41
+ requirements:
42
+ - - ">="
43
+ - !ruby/object:Gem::Version
44
+ version: "0"
45
45
  type: :runtime
46
46
  prerelease: false
47
- version_requirements: *70351974059800
48
- - !ruby/object:Gem::Dependency
47
+ version_requirements: *id003
48
+ - !ruby/object:Gem::Dependency
49
49
  name: activesupport
50
- requirement: &70351974059220 !ruby/object:Gem::Requirement
50
+ requirement: &id004 !ruby/object:Gem::Requirement
51
51
  none: false
52
- requirements:
53
- - - ! '>='
54
- - !ruby/object:Gem::Version
52
+ requirements:
53
+ - - ">="
54
+ - !ruby/object:Gem::Version
55
55
  version: 1.4.2
56
56
  type: :runtime
57
57
  prerelease: false
58
- version_requirements: *70351974059220
59
- - !ruby/object:Gem::Dependency
58
+ version_requirements: *id004
59
+ - !ruby/object:Gem::Dependency
60
60
  name: jeweler
61
- requirement: &70351974058640 !ruby/object:Gem::Requirement
61
+ requirement: &id005 !ruby/object:Gem::Requirement
62
62
  none: false
63
- requirements:
64
- - - ! '>='
65
- - !ruby/object:Gem::Version
66
- version: '0'
63
+ requirements:
64
+ - - ">="
65
+ - !ruby/object:Gem::Version
66
+ version: "0"
67
67
  type: :development
68
68
  prerelease: false
69
- version_requirements: *70351974058640
70
- - !ruby/object:Gem::Dependency
69
+ version_requirements: *id005
70
+ - !ruby/object:Gem::Dependency
71
71
  name: hpricot
72
- requirement: &70351974058120 !ruby/object:Gem::Requirement
72
+ requirement: &id006 !ruby/object:Gem::Requirement
73
73
  none: false
74
- requirements:
75
- - - ! '>='
76
- - !ruby/object:Gem::Version
74
+ requirements:
75
+ - - ">="
76
+ - !ruby/object:Gem::Version
77
77
  version: 0.4.86
78
78
  type: :runtime
79
79
  prerelease: false
80
- version_requirements: *70351974058120
81
- - !ruby/object:Gem::Dependency
80
+ version_requirements: *id006
81
+ - !ruby/object:Gem::Dependency
82
82
  name: activesupport
83
- requirement: &70351974057580 !ruby/object:Gem::Requirement
83
+ requirement: &id007 !ruby/object:Gem::Requirement
84
84
  none: false
85
- requirements:
86
- - - ! '>='
87
- - !ruby/object:Gem::Version
85
+ requirements:
86
+ - - ">="
87
+ - !ruby/object:Gem::Version
88
88
  version: 1.4.2
89
89
  type: :runtime
90
90
  prerelease: false
91
- version_requirements: *70351974057580
92
- description: This gem is an updated version of jnunemakers scrobbler gem. Rockstar
93
- uses v2.0 of the last.fm api.
91
+ version_requirements: *id007
92
+ description: This gem is an updated version of jnunemakers scrobbler gem. Rockstar uses v2.0 of the last.fm api.
94
93
  email: bodo@bitboxer.de
95
94
  executables: []
95
+
96
96
  extensions: []
97
- extra_rdoc_files:
97
+
98
+ extra_rdoc_files:
98
99
  - README.md
99
- files:
100
+ files:
100
101
  - .travis.yml
101
102
  - Gemfile
102
103
  - Gemfile.lock
@@ -124,13 +125,9 @@ files:
124
125
  - lib/rockstar/event.rb
125
126
  - lib/rockstar/geo.rb
126
127
  - lib/rockstar/metro.rb
127
- - lib/rockstar/playing.rb
128
128
  - lib/rockstar/rest.rb
129
- - lib/rockstar/scrobble.rb
130
129
  - lib/rockstar/session.rb
131
- - lib/rockstar/simpleauth.rb
132
130
  - lib/rockstar/tag.rb
133
- - lib/rockstar/tokenauth.rb
134
131
  - lib/rockstar/track.rb
135
132
  - lib/rockstar/user.rb
136
133
  - lib/rockstar/venue.rb
@@ -189,43 +186,42 @@ files:
189
186
  - test/unit/test_artist.rb
190
187
  - test/unit/test_chart.rb
191
188
  - test/unit/test_geo.rb
192
- - test/unit/test_playing.rb
193
- - test/unit/test_scrobble.rb
194
- - test/unit/test_simpleauth.rb
189
+ - test/unit/test_rockstar.rb
195
190
  - test/unit/test_tag.rb
196
- - test/unit/test_tokenauth.rb
197
191
  - test/unit/test_track.rb
198
192
  - test/unit/test_user.rb
199
193
  - test/unit/test_venue.rb
200
- has_rdoc: true
201
194
  homepage: http://github.com/bitboxer/rockstar
202
195
  licenses: []
196
+
203
197
  post_install_message:
204
198
  rdoc_options: []
205
- require_paths:
199
+
200
+ require_paths:
206
201
  - lib
207
- required_ruby_version: !ruby/object:Gem::Requirement
202
+ required_ruby_version: !ruby/object:Gem::Requirement
208
203
  none: false
209
- requirements:
210
- - - ! '>='
211
- - !ruby/object:Gem::Version
212
- version: '0'
213
- segments:
204
+ requirements:
205
+ - - ">="
206
+ - !ruby/object:Gem::Version
207
+ hash: 1736963184813623708
208
+ segments:
214
209
  - 0
215
- hash: -434655497376683487
216
- required_rubygems_version: !ruby/object:Gem::Requirement
210
+ version: "0"
211
+ required_rubygems_version: !ruby/object:Gem::Requirement
217
212
  none: false
218
- requirements:
219
- - - ! '>='
220
- - !ruby/object:Gem::Version
221
- version: '0'
213
+ requirements:
214
+ - - ">="
215
+ - !ruby/object:Gem::Version
216
+ version: "0"
222
217
  requirements: []
218
+
223
219
  rubyforge_project:
224
- rubygems_version: 1.6.2
220
+ rubygems_version: 1.8.8
225
221
  signing_key:
226
222
  specification_version: 3
227
223
  summary: wrapper for audioscrobbler (last.fm) web services
228
- test_files:
224
+ test_files:
229
225
  - examples/album.rb
230
226
  - examples/artist.rb
231
227
  - examples/geo.rb
@@ -239,11 +235,8 @@ test_files:
239
235
  - test/unit/test_artist.rb
240
236
  - test/unit/test_chart.rb
241
237
  - test/unit/test_geo.rb
242
- - test/unit/test_playing.rb
243
- - test/unit/test_scrobble.rb
244
- - test/unit/test_simpleauth.rb
238
+ - test/unit/test_rockstar.rb
245
239
  - test/unit/test_tag.rb
246
- - test/unit/test_tokenauth.rb
247
240
  - test/unit/test_track.rb
248
241
  - test/unit/test_user.rb
249
242
  - test/unit/test_venue.rb