rmoriz-alexa 0.0.4.1
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/.document +5 -0
- data/.gitignore +5 -0
- data/LICENSE +20 -0
- data/README.rdoc +16 -0
- data/Rakefile +58 -0
- data/VERSION +1 -0
- data/alexa.gemspec +53 -0
- data/lib/alexa/url_info.rb +95 -0
- data/lib/alexa.rb +21 -0
- data/test/alexa_test.rb +224 -0
- data/test/fixtures/empty.xml +39 -0
- data/test/fixtures/polsl.xml +1275 -0
- data/test/fixtures/polsl_small.xml +16 -0
- data/test/test_helper.rb +17 -0
- metadata +77 -0
| @@ -0,0 +1,16 @@ | |
| 1 | 
            +
            <?xml version="1.0"?>
         | 
| 2 | 
            +
            <aws:UrlInfoResponse xmlns:aws="http://alexa.amazonaws.com/doc/2005-10-05/"><aws:Response xmlns:aws="http://awis.amazonaws.com/doc/2005-07-11"><aws:OperationRequest><aws:RequestId>ce456f7b-b273-482e-8533-9442718b8002</aws:RequestId></aws:OperationRequest><aws:UrlInfoResult><aws:Alexa>
         | 
| 3 | 
            +
              
         | 
| 4 | 
            +
              <aws:ContentData>
         | 
| 5 | 
            +
                <aws:DataUrl type="canonical">polsl.pl/</aws:DataUrl>
         | 
| 6 | 
            +
                <aws:SiteData>
         | 
| 7 | 
            +
                  <aws:Title>Silesian University of Technology</aws:Title>
         | 
| 8 | 
            +
                  <aws:Description>About the university, studies, faculties and departments, photo gallery.</aws:Description>
         | 
| 9 | 
            +
                </aws:SiteData>
         | 
| 10 | 
            +
                <aws:LinksInCount>281</aws:LinksInCount>
         | 
| 11 | 
            +
              </aws:ContentData>
         | 
| 12 | 
            +
              <aws:TrafficData>
         | 
| 13 | 
            +
                <aws:DataUrl type="canonical">polsl.pl/</aws:DataUrl>
         | 
| 14 | 
            +
                <aws:Rank>86020</aws:Rank>
         | 
| 15 | 
            +
              </aws:TrafficData>
         | 
| 16 | 
            +
            </aws:Alexa></aws:UrlInfoResult><aws:ResponseStatus xmlns:aws="http://alexa.amazonaws.com/doc/2005-10-05/"><aws:StatusCode>Success</aws:StatusCode></aws:ResponseStatus></aws:Response></aws:UrlInfoResponse>
         | 
    
        data/test/test_helper.rb
    ADDED
    
    | @@ -0,0 +1,17 @@ | |
| 1 | 
            +
            require 'rubygems'
         | 
| 2 | 
            +
            require 'test/unit'
         | 
| 3 | 
            +
            require 'shoulda'
         | 
| 4 | 
            +
             | 
| 5 | 
            +
            $LOAD_PATH.unshift(File.join(File.dirname(__FILE__), '..', 'lib'))
         | 
| 6 | 
            +
            $LOAD_PATH.unshift(File.dirname(__FILE__))
         | 
| 7 | 
            +
            require 'alexa'
         | 
| 8 | 
            +
             | 
| 9 | 
            +
            class Test::Unit::TestCase
         | 
| 10 | 
            +
            end
         | 
| 11 | 
            +
             | 
| 12 | 
            +
            def fixture_file(filename)
         | 
| 13 | 
            +
              return '' if filename == ''
         | 
| 14 | 
            +
              file_path = File.expand_path(File.dirname(__FILE__) + '/fixtures/' + filename)
         | 
| 15 | 
            +
              File.read(file_path)
         | 
| 16 | 
            +
            end
         | 
| 17 | 
            +
             | 
    
        metadata
    ADDED
    
    | @@ -0,0 +1,77 @@ | |
| 1 | 
            +
            --- !ruby/object:Gem::Specification 
         | 
| 2 | 
            +
            name: rmoriz-alexa
         | 
| 3 | 
            +
            version: !ruby/object:Gem::Version 
         | 
| 4 | 
            +
              version: 0.0.4.1
         | 
| 5 | 
            +
            platform: ruby
         | 
| 6 | 
            +
            authors: 
         | 
| 7 | 
            +
            - "Wojciech Wn\xC4\x99trzak"
         | 
| 8 | 
            +
            autorequire: 
         | 
| 9 | 
            +
            bindir: bin
         | 
| 10 | 
            +
            cert_chain: []
         | 
| 11 | 
            +
             | 
| 12 | 
            +
            date: 2009-07-07 00:00:00 -07:00
         | 
| 13 | 
            +
            default_executable: 
         | 
| 14 | 
            +
            dependencies: 
         | 
| 15 | 
            +
            - !ruby/object:Gem::Dependency 
         | 
| 16 | 
            +
              name: xml-simple
         | 
| 17 | 
            +
              type: :runtime
         | 
| 18 | 
            +
              version_requirement: 
         | 
| 19 | 
            +
              version_requirements: !ruby/object:Gem::Requirement 
         | 
| 20 | 
            +
                requirements: 
         | 
| 21 | 
            +
                - - ">="
         | 
| 22 | 
            +
                  - !ruby/object:Gem::Version 
         | 
| 23 | 
            +
                    version: "0"
         | 
| 24 | 
            +
                version: 
         | 
| 25 | 
            +
            description: 
         | 
| 26 | 
            +
            email: w.wnetrzak@gmail.com
         | 
| 27 | 
            +
            executables: []
         | 
| 28 | 
            +
             | 
| 29 | 
            +
            extensions: []
         | 
| 30 | 
            +
             | 
| 31 | 
            +
            extra_rdoc_files: 
         | 
| 32 | 
            +
            - LICENSE
         | 
| 33 | 
            +
            - README.rdoc
         | 
| 34 | 
            +
            files: 
         | 
| 35 | 
            +
            - .document
         | 
| 36 | 
            +
            - .gitignore
         | 
| 37 | 
            +
            - LICENSE
         | 
| 38 | 
            +
            - README.rdoc
         | 
| 39 | 
            +
            - Rakefile
         | 
| 40 | 
            +
            - VERSION
         | 
| 41 | 
            +
            - alexa.gemspec
         | 
| 42 | 
            +
            - lib/alexa.rb
         | 
| 43 | 
            +
            - lib/alexa/url_info.rb
         | 
| 44 | 
            +
            - test/alexa_test.rb
         | 
| 45 | 
            +
            - test/fixtures/empty.xml
         | 
| 46 | 
            +
            - test/fixtures/polsl.xml
         | 
| 47 | 
            +
            - test/fixtures/polsl_small.xml
         | 
| 48 | 
            +
            - test/test_helper.rb
         | 
| 49 | 
            +
            has_rdoc: false
         | 
| 50 | 
            +
            homepage: http://github.com/morgoth/alexa
         | 
| 51 | 
            +
            post_install_message: 
         | 
| 52 | 
            +
            rdoc_options: 
         | 
| 53 | 
            +
            - --charset=UTF-8
         | 
| 54 | 
            +
            require_paths: 
         | 
| 55 | 
            +
            - lib
         | 
| 56 | 
            +
            required_ruby_version: !ruby/object:Gem::Requirement 
         | 
| 57 | 
            +
              requirements: 
         | 
| 58 | 
            +
              - - ">="
         | 
| 59 | 
            +
                - !ruby/object:Gem::Version 
         | 
| 60 | 
            +
                  version: "0"
         | 
| 61 | 
            +
              version: 
         | 
| 62 | 
            +
            required_rubygems_version: !ruby/object:Gem::Requirement 
         | 
| 63 | 
            +
              requirements: 
         | 
| 64 | 
            +
              - - ">="
         | 
| 65 | 
            +
                - !ruby/object:Gem::Version 
         | 
| 66 | 
            +
                  version: "0"
         | 
| 67 | 
            +
              version: 
         | 
| 68 | 
            +
            requirements: []
         | 
| 69 | 
            +
             | 
| 70 | 
            +
            rubyforge_project: 
         | 
| 71 | 
            +
            rubygems_version: 1.2.0
         | 
| 72 | 
            +
            signing_key: 
         | 
| 73 | 
            +
            specification_version: 3
         | 
| 74 | 
            +
            summary: Alexa Web Information Service library
         | 
| 75 | 
            +
            test_files: 
         | 
| 76 | 
            +
            - test/alexa_test.rb
         | 
| 77 | 
            +
            - test/test_helper.rb
         |