titanous-scrobbler 0.2.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/History.txt +3 -0
 - data/MIT-LICENSE +19 -0
 - data/Manifest +67 -0
 - data/README.rdoc +107 -0
 - data/Rakefile +36 -0
 - data/examples/album.rb +17 -0
 - data/examples/artist.rb +13 -0
 - data/examples/scrobble.rb +31 -0
 - data/examples/tag.rb +11 -0
 - data/examples/track.rb +6 -0
 - data/examples/user.rb +14 -0
 - data/lib/scrobbler/album.rb +143 -0
 - data/lib/scrobbler/artist.rb +127 -0
 - data/lib/scrobbler/base.rb +29 -0
 - data/lib/scrobbler/chart.rb +31 -0
 - data/lib/scrobbler/playing.rb +49 -0
 - data/lib/scrobbler/rest.rb +47 -0
 - data/lib/scrobbler/scrobble.rb +66 -0
 - data/lib/scrobbler/simpleauth.rb +59 -0
 - data/lib/scrobbler/tag.rb +104 -0
 - data/lib/scrobbler/track.rb +96 -0
 - data/lib/scrobbler/user.rb +192 -0
 - data/lib/scrobbler/version.rb +3 -0
 - data/lib/scrobbler.rb +20 -0
 - data/scrobbler.gemspec +41 -0
 - data/setup.rb +1585 -0
 - data/test/fixtures/xml/album/info.xml +70 -0
 - data/test/fixtures/xml/artist/fans.xml +18 -0
 - data/test/fixtures/xml/artist/similar.xml +39 -0
 - data/test/fixtures/xml/artist/topalbums.xml +36 -0
 - data/test/fixtures/xml/artist/toptags.xml +18 -0
 - data/test/fixtures/xml/artist/toptracks.xml +27 -0
 - data/test/fixtures/xml/tag/topalbums.xml +39 -0
 - data/test/fixtures/xml/tag/topartists.xml +39 -0
 - data/test/fixtures/xml/tag/toptags.xml +252 -0
 - data/test/fixtures/xml/tag/toptracks.xml +30 -0
 - data/test/fixtures/xml/track/fans.xml +28 -0
 - data/test/fixtures/xml/track/toptags.xml +33 -0
 - data/test/fixtures/xml/user/friends.xml +21 -0
 - data/test/fixtures/xml/user/neighbours.xml +18 -0
 - data/test/fixtures/xml/user/profile.xml +12 -0
 - data/test/fixtures/xml/user/recentbannedtracks.xml +24 -0
 - data/test/fixtures/xml/user/recentlovedtracks.xml +24 -0
 - data/test/fixtures/xml/user/recenttracks.xml +27 -0
 - data/test/fixtures/xml/user/systemrecs.xml +18 -0
 - data/test/fixtures/xml/user/topalbums.xml +42 -0
 - data/test/fixtures/xml/user/topartists.xml +30 -0
 - data/test/fixtures/xml/user/toptags.xml +18 -0
 - data/test/fixtures/xml/user/toptracks.xml +27 -0
 - data/test/fixtures/xml/user/weeklyalbumchart.xml +35 -0
 - data/test/fixtures/xml/user/weeklyalbumchart_from_1138536002_to_1139140802.xml +35 -0
 - data/test/fixtures/xml/user/weeklyartistchart.xml +38 -0
 - data/test/fixtures/xml/user/weeklyartistchart_from_1138536002_to_1139140802.xml +59 -0
 - data/test/fixtures/xml/user/weeklychartlist.xml +74 -0
 - data/test/fixtures/xml/user/weeklytrackchart.xml +35 -0
 - data/test/fixtures/xml/user/weeklytrackchart_from_1138536002_to_1139140802.xml +35 -0
 - data/test/mocks/rest.rb +50 -0
 - data/test/test_helper.rb +17 -0
 - data/test/unit/album_test.rb +86 -0
 - data/test/unit/artist_test.rb +82 -0
 - data/test/unit/chart_test.rb +34 -0
 - data/test/unit/playing_test.rb +53 -0
 - data/test/unit/scrobble_test.rb +69 -0
 - data/test/unit/simpleauth_test.rb +45 -0
 - data/test/unit/tag_test.rb +65 -0
 - data/test/unit/track_test.rb +42 -0
 - data/test/unit/user_test.rb +291 -0
 - metadata +172 -0
 
    
        data/scrobbler.gemspec
    ADDED
    
    | 
         @@ -0,0 +1,41 @@ 
     | 
|
| 
      
 1 
     | 
    
         
            +
            # -*- encoding: utf-8 -*-
         
     | 
| 
      
 2 
     | 
    
         
            +
             
     | 
| 
      
 3 
     | 
    
         
            +
            Gem::Specification.new do |s|
         
     | 
| 
      
 4 
     | 
    
         
            +
              s.name = %q{scrobbler}
         
     | 
| 
      
 5 
     | 
    
         
            +
              s.version = "0.2.2"
         
     | 
| 
      
 6 
     | 
    
         
            +
             
     | 
| 
      
 7 
     | 
    
         
            +
              s.required_rubygems_version = Gem::Requirement.new(">= 1.2") if s.respond_to? :required_rubygems_version=
         
     | 
| 
      
 8 
     | 
    
         
            +
              s.authors = ["John Nunemaker, Jonathan Rudenberg"]
         
     | 
| 
      
 9 
     | 
    
         
            +
              s.date = %q{2008-12-23}
         
     | 
| 
      
 10 
     | 
    
         
            +
              s.description = %q{wrapper for audioscrobbler (last.fm) web services}
         
     | 
| 
      
 11 
     | 
    
         
            +
              s.email = %q{nunemaker@gmail.com}
         
     | 
| 
      
 12 
     | 
    
         
            +
              s.extra_rdoc_files = ["lib/scrobbler/album.rb", "lib/scrobbler/artist.rb", "lib/scrobbler/base.rb", "lib/scrobbler/chart.rb", "lib/scrobbler/playing.rb", "lib/scrobbler/rest.rb", "lib/scrobbler/scrobble.rb", "lib/scrobbler/simpleauth.rb", "lib/scrobbler/tag.rb", "lib/scrobbler/track.rb", "lib/scrobbler/user.rb", "lib/scrobbler/version.rb", "lib/scrobbler.rb", "README.rdoc"]
         
     | 
| 
      
 13 
     | 
    
         
            +
              s.files = ["examples/album.rb", "examples/artist.rb", "examples/scrobble.rb", "examples/tag.rb", "examples/track.rb", "examples/user.rb", "History.txt", "lib/scrobbler/album.rb", "lib/scrobbler/artist.rb", "lib/scrobbler/base.rb", "lib/scrobbler/chart.rb", "lib/scrobbler/playing.rb", "lib/scrobbler/rest.rb", "lib/scrobbler/scrobble.rb", "lib/scrobbler/simpleauth.rb", "lib/scrobbler/tag.rb", "lib/scrobbler/track.rb", "lib/scrobbler/user.rb", "lib/scrobbler/version.rb", "lib/scrobbler.rb", "Manifest", "MIT-LICENSE", "Rakefile", "README.rdoc", "scrobbler.gemspec", "setup.rb", "test/fixtures/xml/album/info.xml", "test/fixtures/xml/artist/fans.xml", "test/fixtures/xml/artist/similar.xml", "test/fixtures/xml/artist/topalbums.xml", "test/fixtures/xml/artist/toptags.xml", "test/fixtures/xml/artist/toptracks.xml", "test/fixtures/xml/tag/topalbums.xml", "test/fixtures/xml/tag/topartists.xml", "test/fixtures/xml/tag/toptags.xml", "test/fixtures/xml/tag/toptracks.xml", "test/fixtures/xml/track/fans.xml", "test/fixtures/xml/track/toptags.xml", "test/fixtures/xml/user/friends.xml", "test/fixtures/xml/user/neighbours.xml", "test/fixtures/xml/user/profile.xml", "test/fixtures/xml/user/recentbannedtracks.xml", "test/fixtures/xml/user/recentlovedtracks.xml", "test/fixtures/xml/user/recenttracks.xml", "test/fixtures/xml/user/systemrecs.xml", "test/fixtures/xml/user/topalbums.xml", "test/fixtures/xml/user/topartists.xml", "test/fixtures/xml/user/toptags.xml", "test/fixtures/xml/user/toptracks.xml", "test/fixtures/xml/user/weeklyalbumchart.xml", "test/fixtures/xml/user/weeklyalbumchart_from_1138536002_to_1139140802.xml", "test/fixtures/xml/user/weeklyartistchart.xml", "test/fixtures/xml/user/weeklyartistchart_from_1138536002_to_1139140802.xml", "test/fixtures/xml/user/weeklychartlist.xml", "test/fixtures/xml/user/weeklytrackchart.xml", "test/fixtures/xml/user/weeklytrackchart_from_1138536002_to_1139140802.xml", "test/mocks/rest.rb", "test/test_helper.rb", "test/unit/album_test.rb", "test/unit/artist_test.rb", "test/unit/chart_test.rb", "test/unit/playing_test.rb", "test/unit/scrobble_test.rb", "test/unit/simpleauth_test.rb", "test/unit/tag_test.rb", "test/unit/track_test.rb", "test/unit/user_test.rb"]
         
     | 
| 
      
 14 
     | 
    
         
            +
              s.has_rdoc = true
         
     | 
| 
      
 15 
     | 
    
         
            +
              s.homepage = %q{http://scrobbler.rubyforge.org}
         
     | 
| 
      
 16 
     | 
    
         
            +
              s.rdoc_options = ["--line-numbers", "--inline-source", "--title", "Scrobbler", "--main", "README.rdoc"]
         
     | 
| 
      
 17 
     | 
    
         
            +
              s.require_paths = ["lib"]
         
     | 
| 
      
 18 
     | 
    
         
            +
              s.rubyforge_project = %q{scrobbler}
         
     | 
| 
      
 19 
     | 
    
         
            +
              s.rubygems_version = %q{1.3.1}
         
     | 
| 
      
 20 
     | 
    
         
            +
              s.summary = %q{wrapper for audioscrobbler (last.fm) web services}
         
     | 
| 
      
 21 
     | 
    
         
            +
              s.test_files = ["test/test_helper.rb", "test/unit/album_test.rb", "test/unit/artist_test.rb", "test/unit/chart_test.rb", "test/unit/playing_test.rb", "test/unit/scrobble_test.rb", "test/unit/simpleauth_test.rb", "test/unit/tag_test.rb", "test/unit/track_test.rb", "test/unit/user_test.rb"]
         
     | 
| 
      
 22 
     | 
    
         
            +
             
     | 
| 
      
 23 
     | 
    
         
            +
              if s.respond_to? :specification_version then
         
     | 
| 
      
 24 
     | 
    
         
            +
                current_version = Gem::Specification::CURRENT_SPECIFICATION_VERSION
         
     | 
| 
      
 25 
     | 
    
         
            +
                s.specification_version = 2
         
     | 
| 
      
 26 
     | 
    
         
            +
             
     | 
| 
      
 27 
     | 
    
         
            +
                if Gem::Version.new(Gem::RubyGemsVersion) >= Gem::Version.new('1.2.0') then
         
     | 
| 
      
 28 
     | 
    
         
            +
                  s.add_runtime_dependency(%q<hpricot>, [">= 0.4.86"])
         
     | 
| 
      
 29 
     | 
    
         
            +
                  s.add_runtime_dependency(%q<activesupport>, [">= 1.4.2"])
         
     | 
| 
      
 30 
     | 
    
         
            +
                  s.add_development_dependency(%q<echoe>, [">= 0"])
         
     | 
| 
      
 31 
     | 
    
         
            +
                else
         
     | 
| 
      
 32 
     | 
    
         
            +
                  s.add_dependency(%q<hpricot>, [">= 0.4.86"])
         
     | 
| 
      
 33 
     | 
    
         
            +
                  s.add_dependency(%q<activesupport>, [">= 1.4.2"])
         
     | 
| 
      
 34 
     | 
    
         
            +
                  s.add_dependency(%q<echoe>, [">= 0"])
         
     | 
| 
      
 35 
     | 
    
         
            +
                end
         
     | 
| 
      
 36 
     | 
    
         
            +
              else
         
     | 
| 
      
 37 
     | 
    
         
            +
                s.add_dependency(%q<hpricot>, [">= 0.4.86"])
         
     | 
| 
      
 38 
     | 
    
         
            +
                s.add_dependency(%q<activesupport>, [">= 1.4.2"])
         
     | 
| 
      
 39 
     | 
    
         
            +
                s.add_dependency(%q<echoe>, [">= 0"])
         
     | 
| 
      
 40 
     | 
    
         
            +
              end
         
     | 
| 
      
 41 
     | 
    
         
            +
            end
         
     |