sandro-rlastfm 0.0.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 +5 -0
 - data/README.txt +63 -0
 - data/Rakefile +35 -0
 - data/init.rb +1 -0
 - data/lib/core_extensions.rb +30 -0
 - data/lib/rlastfm.rb +83 -0
 - data/lib/rlastfm/album.rb +42 -0
 - data/lib/rlastfm/artist.rb +67 -0
 - data/lib/rlastfm/helpers/remote_accessor.rb +50 -0
 - data/lib/rlastfm/helpers/scraper.rb +38 -0
 - data/lib/rlastfm/track.rb +10 -0
 - data/lib/rlastfm/venue.rb +23 -0
 - data/rlastfm.gemspec +31 -0
 - data/script/console +10 -0
 - data/spec/rlastfm/album_spec.rb +20 -0
 - data/spec/rlastfm/artist_spec.rb +70 -0
 - data/spec/rlastfm/track_spec.rb +29 -0
 - data/spec/rlastfm/venue_spec.rb +14 -0
 - data/spec/site/charts.artist.html +7809 -0
 - data/spec/site/the_decemberists.getinfo.xml +68 -0
 - data/spec/site/the_decemberists.gettopalbums.xml +715 -0
 - data/spec/site/the_decemberists.the_crane_wife.html +1841 -0
 - data/spec/site/venue.8953935.html +907 -0
 - data/spec/spec_helper.rb +20 -0
 - metadata +78 -0
 
    
        data/spec/spec_helper.rb
    ADDED
    
    | 
         @@ -0,0 +1,20 @@ 
     | 
|
| 
      
 1 
     | 
    
         
            +
            require 'rubygems'
         
     | 
| 
      
 2 
     | 
    
         
            +
            require 'fake_web'
         
     | 
| 
      
 3 
     | 
    
         
            +
            require File.expand_path(File.join(File.dirname(__FILE__), %w[.. lib rlastfm]))
         
     | 
| 
      
 4 
     | 
    
         
            +
             
     | 
| 
      
 5 
     | 
    
         
            +
            def site_file(filename)
         
     | 
| 
      
 6 
     | 
    
         
            +
              @site_file = File.join(File.dirname(__FILE__), %W[site #{filename}])
         
     | 
| 
      
 7 
     | 
    
         
            +
            end
         
     | 
| 
      
 8 
     | 
    
         
            +
             
     | 
| 
      
 9 
     | 
    
         
            +
            Spec::Runner.configure do |config|
         
     | 
| 
      
 10 
     | 
    
         
            +
              # == Mock Framework
         
     | 
| 
      
 11 
     | 
    
         
            +
              #
         
     | 
| 
      
 12 
     | 
    
         
            +
              # RSpec uses it's own mocking framework by default. If you prefer to
         
     | 
| 
      
 13 
     | 
    
         
            +
              # use mocha, flexmock or RR, uncomment the appropriate line:
         
     | 
| 
      
 14 
     | 
    
         
            +
              #
         
     | 
| 
      
 15 
     | 
    
         
            +
              # config.mock_with :mocha
         
     | 
| 
      
 16 
     | 
    
         
            +
              # config.mock_with :flexmock
         
     | 
| 
      
 17 
     | 
    
         
            +
              # config.mock_with :rr
         
     | 
| 
      
 18 
     | 
    
         
            +
            end
         
     | 
| 
      
 19 
     | 
    
         
            +
             
     | 
| 
      
 20 
     | 
    
         
            +
            # EOF
         
     | 
    
        metadata
    ADDED
    
    | 
         @@ -0,0 +1,78 @@ 
     | 
|
| 
      
 1 
     | 
    
         
            +
            --- !ruby/object:Gem::Specification 
         
     | 
| 
      
 2 
     | 
    
         
            +
            name: sandro-rlastfm
         
     | 
| 
      
 3 
     | 
    
         
            +
            version: !ruby/object:Gem::Version 
         
     | 
| 
      
 4 
     | 
    
         
            +
              version: 0.0.2
         
     | 
| 
      
 5 
     | 
    
         
            +
            platform: ruby
         
     | 
| 
      
 6 
     | 
    
         
            +
            authors: 
         
     | 
| 
      
 7 
     | 
    
         
            +
            - Sandro Turriate
         
     | 
| 
      
 8 
     | 
    
         
            +
            autorequire: 
         
     | 
| 
      
 9 
     | 
    
         
            +
            bindir: bin
         
     | 
| 
      
 10 
     | 
    
         
            +
            cert_chain: []
         
     | 
| 
      
 11 
     | 
    
         
            +
             
     | 
| 
      
 12 
     | 
    
         
            +
            date: 2009-03-10 00:00:00 -07:00
         
     | 
| 
      
 13 
     | 
    
         
            +
            default_executable: 
         
     | 
| 
      
 14 
     | 
    
         
            +
            dependencies: []
         
     | 
| 
      
 15 
     | 
    
         
            +
             
     | 
| 
      
 16 
     | 
    
         
            +
            description: minimal Last.fm wrapper. This wrapper allows you to lookup an Artist by name, get their albums, and the tracks for each album.
         
     | 
| 
      
 17 
     | 
    
         
            +
            email: sandro.turriate@gmail.com
         
     | 
| 
      
 18 
     | 
    
         
            +
            executables: []
         
     | 
| 
      
 19 
     | 
    
         
            +
             
     | 
| 
      
 20 
     | 
    
         
            +
            extensions: []
         
     | 
| 
      
 21 
     | 
    
         
            +
             
     | 
| 
      
 22 
     | 
    
         
            +
            extra_rdoc_files: 
         
     | 
| 
      
 23 
     | 
    
         
            +
            - History.txt
         
     | 
| 
      
 24 
     | 
    
         
            +
            - README.txt
         
     | 
| 
      
 25 
     | 
    
         
            +
            files: 
         
     | 
| 
      
 26 
     | 
    
         
            +
            - History.txt
         
     | 
| 
      
 27 
     | 
    
         
            +
            - README.txt
         
     | 
| 
      
 28 
     | 
    
         
            +
            - Rakefile
         
     | 
| 
      
 29 
     | 
    
         
            +
            - init.rb
         
     | 
| 
      
 30 
     | 
    
         
            +
            - lib/core_extensions.rb
         
     | 
| 
      
 31 
     | 
    
         
            +
            - lib/rlastfm.rb
         
     | 
| 
      
 32 
     | 
    
         
            +
            - lib/rlastfm/album.rb
         
     | 
| 
      
 33 
     | 
    
         
            +
            - lib/rlastfm/artist.rb
         
     | 
| 
      
 34 
     | 
    
         
            +
            - lib/rlastfm/helpers/remote_accessor.rb
         
     | 
| 
      
 35 
     | 
    
         
            +
            - lib/rlastfm/helpers/scraper.rb
         
     | 
| 
      
 36 
     | 
    
         
            +
            - lib/rlastfm/track.rb
         
     | 
| 
      
 37 
     | 
    
         
            +
            - lib/rlastfm/venue.rb
         
     | 
| 
      
 38 
     | 
    
         
            +
            - rlastfm.gemspec
         
     | 
| 
      
 39 
     | 
    
         
            +
            - script/console
         
     | 
| 
      
 40 
     | 
    
         
            +
            - spec/rlastfm/album_spec.rb
         
     | 
| 
      
 41 
     | 
    
         
            +
            - spec/rlastfm/artist_spec.rb
         
     | 
| 
      
 42 
     | 
    
         
            +
            - spec/rlastfm/track_spec.rb
         
     | 
| 
      
 43 
     | 
    
         
            +
            - spec/rlastfm/venue_spec.rb
         
     | 
| 
      
 44 
     | 
    
         
            +
            - spec/site/charts.artist.html
         
     | 
| 
      
 45 
     | 
    
         
            +
            - spec/site/the_decemberists.getinfo.xml
         
     | 
| 
      
 46 
     | 
    
         
            +
            - spec/site/the_decemberists.gettopalbums.xml
         
     | 
| 
      
 47 
     | 
    
         
            +
            - spec/site/the_decemberists.the_crane_wife.html
         
     | 
| 
      
 48 
     | 
    
         
            +
            - spec/site/venue.8953935.html
         
     | 
| 
      
 49 
     | 
    
         
            +
            - spec/spec_helper.rb
         
     | 
| 
      
 50 
     | 
    
         
            +
            has_rdoc: true
         
     | 
| 
      
 51 
     | 
    
         
            +
            homepage: http://turriate.com
         
     | 
| 
      
 52 
     | 
    
         
            +
            post_install_message: 
         
     | 
| 
      
 53 
     | 
    
         
            +
            rdoc_options: 
         
     | 
| 
      
 54 
     | 
    
         
            +
            - --main
         
     | 
| 
      
 55 
     | 
    
         
            +
            - README.txt
         
     | 
| 
      
 56 
     | 
    
         
            +
            require_paths: 
         
     | 
| 
      
 57 
     | 
    
         
            +
            - lib
         
     | 
| 
      
 58 
     | 
    
         
            +
            required_ruby_version: !ruby/object:Gem::Requirement 
         
     | 
| 
      
 59 
     | 
    
         
            +
              requirements: 
         
     | 
| 
      
 60 
     | 
    
         
            +
              - - ">="
         
     | 
| 
      
 61 
     | 
    
         
            +
                - !ruby/object:Gem::Version 
         
     | 
| 
      
 62 
     | 
    
         
            +
                  version: "0"
         
     | 
| 
      
 63 
     | 
    
         
            +
              version: 
         
     | 
| 
      
 64 
     | 
    
         
            +
            required_rubygems_version: !ruby/object:Gem::Requirement 
         
     | 
| 
      
 65 
     | 
    
         
            +
              requirements: 
         
     | 
| 
      
 66 
     | 
    
         
            +
              - - ">="
         
     | 
| 
      
 67 
     | 
    
         
            +
                - !ruby/object:Gem::Version 
         
     | 
| 
      
 68 
     | 
    
         
            +
                  version: "0"
         
     | 
| 
      
 69 
     | 
    
         
            +
              version: 
         
     | 
| 
      
 70 
     | 
    
         
            +
            requirements: []
         
     | 
| 
      
 71 
     | 
    
         
            +
             
     | 
| 
      
 72 
     | 
    
         
            +
            rubyforge_project: rlastfm
         
     | 
| 
      
 73 
     | 
    
         
            +
            rubygems_version: 1.2.0
         
     | 
| 
      
 74 
     | 
    
         
            +
            signing_key: 
         
     | 
| 
      
 75 
     | 
    
         
            +
            specification_version: 2
         
     | 
| 
      
 76 
     | 
    
         
            +
            summary: minimal Last.fm wrapper.
         
     | 
| 
      
 77 
     | 
    
         
            +
            test_files: []
         
     | 
| 
      
 78 
     | 
    
         
            +
             
     |