scrobbler-ng 2.0.1 → 2.0.2

Sign up to get free protection for your applications and to get access to all the features.
Files changed (122) hide show
  1. data/VERSION.yml +2 -2
  2. data/lib/scrobbler.rb +4 -2
  3. data/lib/scrobbler/album.rb +2 -8
  4. data/lib/scrobbler/artist.rb +5 -7
  5. data/lib/scrobbler/base.rb +9 -34
  6. data/lib/scrobbler/basexml.rb +1 -0
  7. data/lib/scrobbler/basexmlinfo.rb +18 -0
  8. data/lib/scrobbler/event.rb +3 -7
  9. data/lib/scrobbler/helper/image.rb +1 -2
  10. data/lib/scrobbler/playlist.rb +2 -7
  11. data/lib/scrobbler/shout.rb +0 -2
  12. data/lib/scrobbler/tag.rb +55 -93
  13. data/lib/scrobbler/user.rb +12 -16
  14. data/lib/scrobbler/venue.rb +6 -6
  15. data/tasks/jeweler.rake +5 -6
  16. data/tasks/tests.rake +8 -6
  17. data/test/mocks/rest.rb +1 -1
  18. data/test/unit/tag_spec.rb +1 -1
  19. data/test/unit/venue_spec.rb +3 -2
  20. metadata +56 -134
  21. data/lib/scrobbler/scrobble.rb +0 -116
  22. data/test/fixtures/xml/album/info.xml +0 -43
  23. data/test/fixtures/xml/artist/fans.xml +0 -52
  24. data/test/fixtures/xml/artist/info.xml +0 -58
  25. data/test/fixtures/xml/artist/similar.xml +0 -1004
  26. data/test/fixtures/xml/artist/topalbums.xml +0 -61
  27. data/test/fixtures/xml/artist/toptags.xml +0 -19
  28. data/test/fixtures/xml/artist/toptracks.xml +0 -62
  29. data/test/fixtures/xml/auth/session.xml +0 -7
  30. data/test/fixtures/xml/auth/token.xml +0 -3
  31. data/test/fixtures/xml/event/attend.xml +0 -3
  32. data/test/fixtures/xml/event/attendees.xml +0 -53
  33. data/test/fixtures/xml/event/event.xml +0 -35
  34. data/test/fixtures/xml/event/shouts.xml +0 -35
  35. data/test/fixtures/xml/geo/events-distance-p1.xml +0 -151
  36. data/test/fixtures/xml/geo/events-lat-long.xml +0 -167
  37. data/test/fixtures/xml/geo/events-p1.xml +0 -152
  38. data/test/fixtures/xml/geo/events-p2.xml +0 -380
  39. data/test/fixtures/xml/geo/events-p3.xml +0 -427
  40. data/test/fixtures/xml/geo/top_artists-p1.xml +0 -76
  41. data/test/fixtures/xml/geo/top_tracks-p1.xml +0 -77
  42. data/test/fixtures/xml/library/albums-f30.xml +0 -454
  43. data/test/fixtures/xml/library/albums-p1.xml +0 -754
  44. data/test/fixtures/xml/library/albums-p2.xml +0 -754
  45. data/test/fixtures/xml/library/albums-p3.xml +0 -754
  46. data/test/fixtures/xml/library/albums-p4.xml +0 -739
  47. data/test/fixtures/xml/library/albums-p5.xml +0 -754
  48. data/test/fixtures/xml/library/albums-p6.xml +0 -754
  49. data/test/fixtures/xml/library/albums-p7.xml +0 -739
  50. data/test/fixtures/xml/library/albums-p8.xml +0 -724
  51. data/test/fixtures/xml/library/artists-f30.xml +0 -334
  52. data/test/fixtures/xml/library/artists-p1.xml +0 -554
  53. data/test/fixtures/xml/library/artists-p2.xml +0 -554
  54. data/test/fixtures/xml/library/artists-p3.xml +0 -554
  55. data/test/fixtures/xml/library/artists-p4.xml +0 -554
  56. data/test/fixtures/xml/library/artists-p5.xml +0 -554
  57. data/test/fixtures/xml/library/artists-p6.xml +0 -554
  58. data/test/fixtures/xml/library/artists-p7.xml +0 -444
  59. data/test/fixtures/xml/library/tracks-f30.xml +0 -472
  60. data/test/fixtures/xml/library/tracks-p1.xml +0 -789
  61. data/test/fixtures/xml/library/tracks-p10.xml +0 -771
  62. data/test/fixtures/xml/library/tracks-p11.xml +0 -792
  63. data/test/fixtures/xml/library/tracks-p12.xml +0 -777
  64. data/test/fixtures/xml/library/tracks-p13.xml +0 -762
  65. data/test/fixtures/xml/library/tracks-p14.xml +0 -759
  66. data/test/fixtures/xml/library/tracks-p15.xml +0 -762
  67. data/test/fixtures/xml/library/tracks-p16.xml +0 -756
  68. data/test/fixtures/xml/library/tracks-p17.xml +0 -780
  69. data/test/fixtures/xml/library/tracks-p18.xml +0 -756
  70. data/test/fixtures/xml/library/tracks-p19.xml +0 -774
  71. data/test/fixtures/xml/library/tracks-p2.xml +0 -765
  72. data/test/fixtures/xml/library/tracks-p20.xml +0 -777
  73. data/test/fixtures/xml/library/tracks-p21.xml +0 -777
  74. data/test/fixtures/xml/library/tracks-p22.xml +0 -771
  75. data/test/fixtures/xml/library/tracks-p23.xml +0 -765
  76. data/test/fixtures/xml/library/tracks-p24.xml +0 -783
  77. data/test/fixtures/xml/library/tracks-p25.xml +0 -777
  78. data/test/fixtures/xml/library/tracks-p26.xml +0 -777
  79. data/test/fixtures/xml/library/tracks-p27.xml +0 -756
  80. data/test/fixtures/xml/library/tracks-p28.xml +0 -771
  81. data/test/fixtures/xml/library/tracks-p29.xml +0 -753
  82. data/test/fixtures/xml/library/tracks-p3.xml +0 -771
  83. data/test/fixtures/xml/library/tracks-p30.xml +0 -780
  84. data/test/fixtures/xml/library/tracks-p31.xml +0 -753
  85. data/test/fixtures/xml/library/tracks-p32.xml +0 -771
  86. data/test/fixtures/xml/library/tracks-p33.xml +0 -762
  87. data/test/fixtures/xml/library/tracks-p34.xml +0 -538
  88. data/test/fixtures/xml/library/tracks-p4.xml +0 -792
  89. data/test/fixtures/xml/library/tracks-p5.xml +0 -780
  90. data/test/fixtures/xml/library/tracks-p6.xml +0 -789
  91. data/test/fixtures/xml/library/tracks-p7.xml +0 -789
  92. data/test/fixtures/xml/library/tracks-p8.xml +0 -780
  93. data/test/fixtures/xml/library/tracks-p9.xml +0 -774
  94. data/test/fixtures/xml/tag/similar.xml +0 -254
  95. data/test/fixtures/xml/tag/topalbums.xml +0 -805
  96. data/test/fixtures/xml/tag/topartists.xml +0 -605
  97. data/test/fixtures/xml/tag/toptags.xml +0 -1254
  98. data/test/fixtures/xml/tag/toptracks.xml +0 -852
  99. data/test/fixtures/xml/track/fans.xml +0 -34
  100. data/test/fixtures/xml/track/info.xml +0 -53
  101. data/test/fixtures/xml/track/toptags.xml +0 -504
  102. data/test/fixtures/xml/user/events.xml +0 -401
  103. data/test/fixtures/xml/user/friends.xml +0 -30
  104. data/test/fixtures/xml/user/lovedtracks.xml +0 -678
  105. data/test/fixtures/xml/user/neighbours.xml +0 -23
  106. data/test/fixtures/xml/user/playlists.xml +0 -61
  107. data/test/fixtures/xml/user/profile.xml +0 -12
  108. data/test/fixtures/xml/user/recentbannedtracks.xml +0 -24
  109. data/test/fixtures/xml/user/recentlovedtracks.xml +0 -24
  110. data/test/fixtures/xml/user/recenttracks.xml +0 -124
  111. data/test/fixtures/xml/user/systemrecs.xml +0 -18
  112. data/test/fixtures/xml/user/topalbums.xml +0 -61
  113. data/test/fixtures/xml/user/topartists.xml +0 -41
  114. data/test/fixtures/xml/user/toptags.xml +0 -44
  115. data/test/fixtures/xml/user/toptracks.xml +0 -65
  116. data/test/fixtures/xml/user/weeklyalbumchart.xml +0 -256
  117. data/test/fixtures/xml/user/weeklyartistchart.xml +0 -220
  118. data/test/fixtures/xml/user/weeklytrackchart.xml +0 -746
  119. data/test/fixtures/xml/venue/events.xml +0 -151
  120. data/test/fixtures/xml/venue/venue.xml +0 -16
  121. data/test/unit/scrobble_spec.rb +0 -55
  122. data/test/unit/scrobble_test.rb +0 -69
@@ -1,9 +1,9 @@
1
1
  # encoding: utf-8
2
2
 
3
- require File.expand_path('basexml.rb', File.dirname(__FILE__))
3
+ require File.expand_path('basexmlinfo.rb', File.dirname(__FILE__))
4
4
 
5
5
  module Scrobbler
6
- class User < BaseXml
6
+ class User < BaseXmlInfo
7
7
  # Load Helper modules
8
8
  include ImageObjectFuncs
9
9
 
@@ -56,10 +56,6 @@ module Scrobbler
56
56
  def initialize(data={})
57
57
  raise ArgumentError unless data.kind_of?(Hash)
58
58
  super(data)
59
- data = {:include_info => false}.merge(data)
60
- # Load data given as method-parameter
61
- load_info() if data.delete(:include_info)
62
- populate_data(data)
63
59
 
64
60
  raise ArgumentError, "Name is required" if @name.empty?
65
61
  end
@@ -68,12 +64,12 @@ module Scrobbler
68
64
  #
69
65
  # Supports ical, ics or rss as its format
70
66
  def events
71
- call('user.getevents', :events, :event, {:user => @name})
67
+ call('user.getevents', :events, Event, {:user => @name})
72
68
  end
73
69
 
74
70
  # Get a list of the user's friends on Last.fm.
75
71
  def friends(page=1, limit=50)
76
- call('user.getfriends', :friends, :user, {:user => @name, :page => page, :limit => limit})
72
+ call('user.getfriends', :friends, User, {:user => @name, :page => page, :limit => limit})
77
73
  end
78
74
 
79
75
  # Get information about a user profile.
@@ -84,12 +80,12 @@ module Scrobbler
84
80
 
85
81
  # Get the last 50 tracks loved by a user.
86
82
  def loved_tracks
87
- call('user.getlovedtracks', :lovedtracks, :track, {:user => @name})
83
+ call('user.getlovedtracks', :lovedtracks, Track, {:user => @name})
88
84
  end
89
85
 
90
86
  # Get a list of a user's neighbours on Last.fm.
91
87
  def neighbours
92
- call('user.getneighbours', :neighbours, :user, {:user => @name})
88
+ call('user.getneighbours', :neighbours, User, {:user => @name})
93
89
  end
94
90
 
95
91
  # Get a paginated list of all events a user has attended in the past.
@@ -100,7 +96,7 @@ module Scrobbler
100
96
 
101
97
  # Get a list of a user's playlists on Last.fm.
102
98
  def playlists
103
- call('user.getplaylists', :playlists, :playlist, {:user => @name})
99
+ call('user.getplaylists', :playlists, Playlist, {:user => @name})
104
100
  end
105
101
 
106
102
  # Get a list of the recent tracks listened to by this user. Indicates now
@@ -110,7 +106,7 @@ module Scrobbler
110
106
  # - limit: An integer used to limit the number of tracks returned.
111
107
  def recent_tracks(parameters={})
112
108
  parameters.merge!({:user => @name})
113
- call('user.getrecenttracks', :recenttracks, :track, parameters)
109
+ call('user.getrecenttracks', :recenttracks, Track, parameters)
114
110
  end
115
111
 
116
112
  # Get Last.fm artist recommendations for a user
@@ -135,24 +131,24 @@ module Scrobbler
135
131
  # Get the top albums listened to by a user. You can stipulate a time period.
136
132
  # Sends the overall chart by default.
137
133
  def top_albums(period=:overall)
138
- call('user.gettopalbums', :topalbums, :album, {:user => @name, :period => period})
134
+ call('user.gettopalbums', :topalbums, Album, {:user => @name, :period => period})
139
135
  end
140
136
 
141
137
  # Get the top artists listened to by a user. You can stipulate a time
142
138
  # period. Sends the overall chart by default.
143
139
  def top_artists(period=:overall)
144
- call('user.gettopartists', :topartists, :artist, {:user => @name, :period => period})
140
+ call('user.gettopartists', :topartists, Artist, {:user => @name, :period => period})
145
141
  end
146
142
 
147
143
  # Get the top tags used by this user.
148
144
  def top_tags
149
- call('user.gettoptags', :toptags, :tag, {:user => @name})
145
+ call('user.gettoptags', :toptags, Tag, {:user => @name})
150
146
  end
151
147
 
152
148
  # Get the top tracks listened to by a user. You can stipulate a time period.
153
149
  # Sends the overall chart by default.
154
150
  def top_tracks(period=:overall)
155
- call('user.gettoptracks', :toptracks, :track, {:user => @name, :period => period})
151
+ call('user.gettoptracks', :toptracks, Track, {:user => @name, :period => period})
156
152
  end
157
153
 
158
154
  # Setup the parameters for a *chart API call
@@ -45,8 +45,8 @@ module Scrobbler
45
45
  url[url.rindex('/')+1,url.length].to_i
46
46
  end
47
47
 
48
- def search(venue, force=false)
49
- get_response('venue.search', :venuematches, 'venuematches', 'venue', {'venue'=>venue}, force)
48
+ def search(venue)
49
+ call('venue.search', :venuematches, Venue, {:venue => venue})
50
50
  end
51
51
  end
52
52
 
@@ -56,12 +56,12 @@ module Scrobbler
56
56
  populate_data(data)
57
57
  end
58
58
 
59
- def events(force=false)
60
- get_response('venue.getevents', :events, 'events', 'event', {'venue'=>@id}, force)
59
+ def events
60
+ call('venue.getevents', :events, Event, {:venue => @id})
61
61
  end
62
62
 
63
- def past_events(force=false)
64
- get_response('venue.getpastevents', :events, 'events', 'event', {'venue'=>@id}, force)
63
+ def past_events
64
+ call('venue.getpastevents', :events, Event, {:venue => @id})
65
65
  end
66
66
  end
67
67
  end
data/tasks/jeweler.rake CHANGED
@@ -5,16 +5,15 @@ begin
5
5
  s.summary = "A ruby library for accessing the last.fm v2 webservices"
6
6
  s.email = "uwelk@xhochy.org"
7
7
  s.homepage = "http://github.com/xhochy/scrobbler"
8
- s.description = "A ruby library for accessing the last.fm v2 webservices"
8
+ s.description = "A ruby library for accessing the Last.fm 2.0 API. It is higly optimized so that " +
9
+ "it uses less memory and parses XML (through Nokogiri) than other implementations."
9
10
  s.authors = ['John Nunemaker', 'Jonathan Rudenberg', 'Uwe L. Korn']
10
11
  s.add_development_dependency "rspec", ">= 1.2.9"
11
12
  s.add_development_dependency "yard", ">= 0"
12
13
  s.add_development_dependency "fakeweb", ">= 0"
13
- #if RUBY_PLATFORM =~ /\bjava\b/
14
- # s.add_dependency 'libxml-jruby'
15
- #else
16
- # s.add_dependency 'libxml-ruby'
17
- #end
14
+ s.add_dependency 'nokogiri'
15
+
16
+ s.files.exclude 'test/**/*'
18
17
  end
19
18
  Jeweler::GemcutterTasks.new
20
19
  rescue LoadError
data/tasks/tests.rake CHANGED
@@ -1,5 +1,13 @@
1
1
  desc "Run all tests"
2
2
  Spec::Rake::SpecTask.new('test:unit') do |t|
3
+ t.rcov = false
4
+ t.spec_opts << '--format' << 'html:spec.html'
5
+ t.spec_opts << '--format' << 'progress'
6
+ t.spec_opts << '-b'
7
+ t.spec_files = FileList['test/unit/*_spec.rb']
8
+ end
9
+
10
+ Spec::Rake::SpecTask.new('test:rcov') do |t|
3
11
  begin
4
12
  require 'rcov'
5
13
  t.rcov = true
@@ -13,9 +21,3 @@ Spec::Rake::SpecTask.new('test:unit') do |t|
13
21
  t.spec_files = FileList['test/unit/*_spec.rb']
14
22
  end
15
23
 
16
- Spec::Rake::SpecTask.new(:rcov) do |spec|
17
- spec.libs << 'lib' << 'spec'
18
- spec.pattern = 'test/unit/*_spec.rb'
19
- spec.rcov = true
20
- end
21
-
data/test/mocks/rest.rb CHANGED
@@ -2,7 +2,7 @@
2
2
 
3
3
  require 'rubygems'
4
4
  require 'fakeweb'
5
- require File.expand_path('/../../lib/scrobbler/rest', File.dirname(__FILE__))
5
+ require File.expand_path('../../lib/scrobbler/rest', File.dirname(__FILE__))
6
6
 
7
7
  FIXTURES_BASE = File.join([File.dirname(__FILE__), '..', 'fixtures', 'xml'])
8
8
  WEB_BASE = 'http://ws.audioscrobbler.com:80/2.0/?'
@@ -5,7 +5,7 @@ require File.dirname(__FILE__) + '/../spec_helper.rb'
5
5
  describe Scrobbler::Tag do
6
6
 
7
7
  before(:all) do
8
- @tag = Scrobbler::Tag.new('rock')
8
+ @tag = Scrobbler::Tag.new(:name => 'rock')
9
9
  end
10
10
 
11
11
  it 'should know its name' do
@@ -2,8 +2,9 @@ require File.dirname(__FILE__) + '/../spec_helper.rb'
2
2
 
3
3
  describe Scrobbler::Venue do
4
4
  before do
5
- xml = LibXML::XML::Document.file(File.dirname(__FILE__) + '/../fixtures/xml/venue/venue.xml')
6
- @venue = Scrobbler::Venue.new_from_xml(xml.root)
5
+ f = File.read(File.dirname(__FILE__) + '/../fixtures/xml/venue/venue.xml')
6
+ doc = Nokogiri::XML(f)
7
+ @venue = Scrobbler::Venue.new_from_xml(doc.root)
7
8
  @event_ids = [875740, 950267, 1082373, 1059277]
8
9
  @event_titles = ["Kilians", "Convention of the Universe - International Depeche Mode Fan Event", "The Get Up Kids", "Philipp Poisel"]
9
10
  end
metadata CHANGED
@@ -1,12 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: scrobbler-ng
3
3
  version: !ruby/object:Gem::Version
4
+ hash: 11
4
5
  prerelease: false
5
6
  segments:
6
7
  - 2
7
8
  - 0
8
- - 1
9
- version: 2.0.1
9
+ - 2
10
+ version: 2.0.2
10
11
  platform: ruby
11
12
  authors:
12
13
  - John Nunemaker
@@ -16,16 +17,18 @@ autorequire:
16
17
  bindir: bin
17
18
  cert_chain: []
18
19
 
19
- date: 2010-05-02 00:00:00 +02:00
20
+ date: 2010-05-22 00:00:00 +02:00
20
21
  default_executable:
21
22
  dependencies:
22
23
  - !ruby/object:Gem::Dependency
23
24
  name: rspec
24
25
  prerelease: false
25
26
  requirement: &id001 !ruby/object:Gem::Requirement
27
+ none: false
26
28
  requirements:
27
29
  - - ">="
28
30
  - !ruby/object:Gem::Version
31
+ hash: 13
29
32
  segments:
30
33
  - 1
31
34
  - 2
@@ -37,9 +40,11 @@ dependencies:
37
40
  name: yard
38
41
  prerelease: false
39
42
  requirement: &id002 !ruby/object:Gem::Requirement
43
+ none: false
40
44
  requirements:
41
45
  - - ">="
42
46
  - !ruby/object:Gem::Version
47
+ hash: 3
43
48
  segments:
44
49
  - 0
45
50
  version: "0"
@@ -49,15 +54,31 @@ dependencies:
49
54
  name: fakeweb
50
55
  prerelease: false
51
56
  requirement: &id003 !ruby/object:Gem::Requirement
57
+ none: false
52
58
  requirements:
53
59
  - - ">="
54
60
  - !ruby/object:Gem::Version
61
+ hash: 3
55
62
  segments:
56
63
  - 0
57
64
  version: "0"
58
65
  type: :development
59
66
  version_requirements: *id003
60
- description: A ruby library for accessing the last.fm v2 webservices
67
+ - !ruby/object:Gem::Dependency
68
+ name: nokogiri
69
+ prerelease: false
70
+ requirement: &id004 !ruby/object:Gem::Requirement
71
+ none: false
72
+ requirements:
73
+ - - ">="
74
+ - !ruby/object:Gem::Version
75
+ hash: 3
76
+ segments:
77
+ - 0
78
+ version: "0"
79
+ type: :runtime
80
+ version_requirements: *id004
81
+ description: A ruby library for accessing the Last.fm 2.0 API. It is higly optimized so that it uses less memory and parses XML (through Nokogiri) than other implementations.
61
82
  email: uwelk@xhochy.org
62
83
  executables: []
63
84
 
@@ -83,6 +104,7 @@ files:
83
104
  - lib/scrobbler/auth.rb
84
105
  - lib/scrobbler/base.rb
85
106
  - lib/scrobbler/basexml.rb
107
+ - lib/scrobbler/basexmlinfo.rb
86
108
  - lib/scrobbler/event.rb
87
109
  - lib/scrobbler/geo.rb
88
110
  - lib/scrobbler/helper/image.rb
@@ -92,7 +114,6 @@ files:
92
114
  - lib/scrobbler/playlist.rb
93
115
  - lib/scrobbler/radio.rb
94
116
  - lib/scrobbler/rest.rb
95
- - lib/scrobbler/scrobble.rb
96
117
  - lib/scrobbler/session.rb
97
118
  - lib/scrobbler/shout.rb
98
119
  - lib/scrobbler/simpleauth.rb
@@ -107,125 +128,24 @@ files:
107
128
  - tasks/roodi.rake
108
129
  - tasks/tests.rake
109
130
  - tasks/yardoc.rake
110
- - test/fixtures/xml/album/info.xml
111
- - test/fixtures/xml/artist/fans.xml
112
- - test/fixtures/xml/artist/info.xml
113
- - test/fixtures/xml/artist/similar.xml
114
- - test/fixtures/xml/artist/topalbums.xml
115
- - test/fixtures/xml/artist/toptags.xml
116
- - test/fixtures/xml/artist/toptracks.xml
117
- - test/fixtures/xml/auth/session.xml
118
- - test/fixtures/xml/auth/token.xml
119
- - test/fixtures/xml/event/attend.xml
120
- - test/fixtures/xml/event/attendees.xml
121
- - test/fixtures/xml/event/event.xml
122
- - test/fixtures/xml/event/shouts.xml
123
- - test/fixtures/xml/geo/events-distance-p1.xml
124
- - test/fixtures/xml/geo/events-lat-long.xml
125
- - test/fixtures/xml/geo/events-p1.xml
126
- - test/fixtures/xml/geo/events-p2.xml
127
- - test/fixtures/xml/geo/events-p3.xml
128
- - test/fixtures/xml/geo/top_artists-p1.xml
129
- - test/fixtures/xml/geo/top_tracks-p1.xml
130
- - test/fixtures/xml/library/albums-f30.xml
131
- - test/fixtures/xml/library/albums-p1.xml
132
- - test/fixtures/xml/library/albums-p2.xml
133
- - test/fixtures/xml/library/albums-p3.xml
134
- - test/fixtures/xml/library/albums-p4.xml
135
- - test/fixtures/xml/library/albums-p5.xml
136
- - test/fixtures/xml/library/albums-p6.xml
137
- - test/fixtures/xml/library/albums-p7.xml
138
- - test/fixtures/xml/library/albums-p8.xml
139
- - test/fixtures/xml/library/artists-f30.xml
140
- - test/fixtures/xml/library/artists-p1.xml
141
- - test/fixtures/xml/library/artists-p2.xml
142
- - test/fixtures/xml/library/artists-p3.xml
143
- - test/fixtures/xml/library/artists-p4.xml
144
- - test/fixtures/xml/library/artists-p5.xml
145
- - test/fixtures/xml/library/artists-p6.xml
146
- - test/fixtures/xml/library/artists-p7.xml
147
- - test/fixtures/xml/library/tracks-f30.xml
148
- - test/fixtures/xml/library/tracks-p1.xml
149
- - test/fixtures/xml/library/tracks-p10.xml
150
- - test/fixtures/xml/library/tracks-p11.xml
151
- - test/fixtures/xml/library/tracks-p12.xml
152
- - test/fixtures/xml/library/tracks-p13.xml
153
- - test/fixtures/xml/library/tracks-p14.xml
154
- - test/fixtures/xml/library/tracks-p15.xml
155
- - test/fixtures/xml/library/tracks-p16.xml
156
- - test/fixtures/xml/library/tracks-p17.xml
157
- - test/fixtures/xml/library/tracks-p18.xml
158
- - test/fixtures/xml/library/tracks-p19.xml
159
- - test/fixtures/xml/library/tracks-p2.xml
160
- - test/fixtures/xml/library/tracks-p20.xml
161
- - test/fixtures/xml/library/tracks-p21.xml
162
- - test/fixtures/xml/library/tracks-p22.xml
163
- - test/fixtures/xml/library/tracks-p23.xml
164
- - test/fixtures/xml/library/tracks-p24.xml
165
- - test/fixtures/xml/library/tracks-p25.xml
166
- - test/fixtures/xml/library/tracks-p26.xml
167
- - test/fixtures/xml/library/tracks-p27.xml
168
- - test/fixtures/xml/library/tracks-p28.xml
169
- - test/fixtures/xml/library/tracks-p29.xml
170
- - test/fixtures/xml/library/tracks-p3.xml
171
- - test/fixtures/xml/library/tracks-p30.xml
172
- - test/fixtures/xml/library/tracks-p31.xml
173
- - test/fixtures/xml/library/tracks-p32.xml
174
- - test/fixtures/xml/library/tracks-p33.xml
175
- - test/fixtures/xml/library/tracks-p34.xml
176
- - test/fixtures/xml/library/tracks-p4.xml
177
- - test/fixtures/xml/library/tracks-p5.xml
178
- - test/fixtures/xml/library/tracks-p6.xml
179
- - test/fixtures/xml/library/tracks-p7.xml
180
- - test/fixtures/xml/library/tracks-p8.xml
181
- - test/fixtures/xml/library/tracks-p9.xml
182
- - test/fixtures/xml/tag/similar.xml
183
- - test/fixtures/xml/tag/topalbums.xml
184
- - test/fixtures/xml/tag/topartists.xml
185
- - test/fixtures/xml/tag/toptags.xml
186
- - test/fixtures/xml/tag/toptracks.xml
187
- - test/fixtures/xml/track/fans.xml
188
- - test/fixtures/xml/track/info.xml
189
- - test/fixtures/xml/track/toptags.xml
190
- - test/fixtures/xml/user/events.xml
191
- - test/fixtures/xml/user/friends.xml
192
- - test/fixtures/xml/user/lovedtracks.xml
193
- - test/fixtures/xml/user/neighbours.xml
194
- - test/fixtures/xml/user/playlists.xml
195
- - test/fixtures/xml/user/profile.xml
196
- - test/fixtures/xml/user/recentbannedtracks.xml
197
- - test/fixtures/xml/user/recentlovedtracks.xml
198
- - test/fixtures/xml/user/recenttracks.xml
199
- - test/fixtures/xml/user/systemrecs.xml
200
- - test/fixtures/xml/user/topalbums.xml
201
- - test/fixtures/xml/user/topartists.xml
202
- - test/fixtures/xml/user/toptags.xml
203
- - test/fixtures/xml/user/toptracks.xml
204
- - test/fixtures/xml/user/weeklyalbumchart.xml
205
- - test/fixtures/xml/user/weeklyartistchart.xml
206
- - test/fixtures/xml/user/weeklytrackchart.xml
207
- - test/fixtures/xml/venue/events.xml
208
- - test/fixtures/xml/venue/venue.xml
209
- - test/mocks/library.rb
210
- - test/mocks/rest.rb
211
131
  - test/spec_helper.rb
212
- - test/test_helper.rb
132
+ - test/unit/library_spec.rb
213
133
  - test/unit/album_spec.rb
214
- - test/unit/artist_spec.rb
215
- - test/unit/auth_spec.rb
216
- - test/unit/event_spec.rb
217
134
  - test/unit/geo_spec.rb
218
- - test/unit/library_spec.rb
219
- - test/unit/playing_test.rb
220
- - test/unit/playlist_spec.rb
221
- - test/unit/radio_spec.rb
222
- - test/unit/scrobble_spec.rb
223
- - test/unit/scrobble_test.rb
135
+ - test/unit/track_spec.rb
224
136
  - test/unit/simpleauth_test.rb
137
+ - test/unit/auth_spec.rb
225
138
  - test/unit/tag_spec.rb
226
- - test/unit/track_spec.rb
227
139
  - test/unit/user_spec.rb
140
+ - test/unit/event_spec.rb
141
+ - test/unit/radio_spec.rb
228
142
  - test/unit/venue_spec.rb
143
+ - test/unit/playlist_spec.rb
144
+ - test/unit/artist_spec.rb
145
+ - test/unit/playing_test.rb
146
+ - test/mocks/library.rb
147
+ - test/mocks/rest.rb
148
+ - test/test_helper.rb
229
149
  has_rdoc: true
230
150
  homepage: http://github.com/xhochy/scrobbler
231
151
  licenses: []
@@ -236,50 +156,52 @@ rdoc_options:
236
156
  require_paths:
237
157
  - lib
238
158
  required_ruby_version: !ruby/object:Gem::Requirement
159
+ none: false
239
160
  requirements:
240
161
  - - ">="
241
162
  - !ruby/object:Gem::Version
163
+ hash: 3
242
164
  segments:
243
165
  - 0
244
166
  version: "0"
245
167
  required_rubygems_version: !ruby/object:Gem::Requirement
168
+ none: false
246
169
  requirements:
247
170
  - - ">="
248
171
  - !ruby/object:Gem::Version
172
+ hash: 3
249
173
  segments:
250
174
  - 0
251
175
  version: "0"
252
176
  requirements: []
253
177
 
254
178
  rubyforge_project:
255
- rubygems_version: 1.3.6
179
+ rubygems_version: 1.3.7
256
180
  signing_key:
257
181
  specification_version: 3
258
182
  summary: A ruby library for accessing the last.fm v2 webservices
259
183
  test_files:
184
+ - test/spec_helper.rb
185
+ - test/unit/library_spec.rb
186
+ - test/unit/album_spec.rb
260
187
  - test/unit/geo_spec.rb
261
- - test/unit/playing_test.rb
262
- - test/unit/radio_spec.rb
263
- - test/unit/scrobble_test.rb
264
188
  - test/unit/track_spec.rb
265
- - test/unit/event_spec.rb
266
- - test/unit/album_spec.rb
267
- - test/unit/scrobble_spec.rb
268
- - test/unit/library_spec.rb
269
189
  - test/unit/simpleauth_test.rb
270
- - test/unit/user_spec.rb
190
+ - test/unit/auth_spec.rb
271
191
  - test/unit/tag_spec.rb
192
+ - test/unit/user_spec.rb
193
+ - test/unit/event_spec.rb
194
+ - test/unit/radio_spec.rb
272
195
  - test/unit/venue_spec.rb
273
- - test/unit/auth_spec.rb
274
- - test/unit/artist_spec.rb
275
196
  - test/unit/playlist_spec.rb
276
- - test/test_helper.rb
277
- - test/spec_helper.rb
278
- - test/mocks/rest.rb
197
+ - test/unit/artist_spec.rb
198
+ - test/unit/playing_test.rb
279
199
  - test/mocks/library.rb
280
- - examples/track.rb
200
+ - test/mocks/rest.rb
201
+ - test/test_helper.rb
281
202
  - examples/artist.rb
282
- - examples/scrobble.rb
203
+ - examples/tag.rb
283
204
  - examples/user.rb
205
+ - examples/track.rb
206
+ - examples/scrobble.rb
284
207
  - examples/album.rb
285
- - examples/tag.rb