assonnato 0.2 → 0.3
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.
- checksums.yaml +4 -4
- data/lib/assonnato/type/episode.rb +1 -9
- data/lib/assonnato/version.rb +1 -1
- data/spec/episode_spec.rb +0 -14
- metadata +2 -2
    
        checksums.yaml
    CHANGED
    
    | @@ -1,7 +1,7 @@ | |
| 1 1 | 
             
            ---
         | 
| 2 2 | 
             
            SHA1:
         | 
| 3 | 
            -
              metadata.gz:  | 
| 4 | 
            -
              data.tar.gz:  | 
| 3 | 
            +
              metadata.gz: 7bf0c9bace1cba740c2d2baf731eb83a29d06448
         | 
| 4 | 
            +
              data.tar.gz: 8d82815b08a39fb20f06e5507804c97a9d9fb781
         | 
| 5 5 | 
             
            SHA512:
         | 
| 6 | 
            -
              metadata.gz:  | 
| 7 | 
            -
              data.tar.gz:  | 
| 6 | 
            +
              metadata.gz: abfd1ad2037dd4ea1eaf410e77ecf5e6262c5291f796cbc5bfd489f48ff96829977ee9cb78324871adcc87cb70d70fea3bedfff132784efd80b226b598e326c6
         | 
| 7 | 
            +
              data.tar.gz: 7d8778facdc126d5a7da4d373274c1a3d4e9b2eaf3690c340458db6d8f1b612c63aaf69a1c0a8fd93b484ab6536d2b9a57eb1dc38095557548ee64fa32b4a654
         | 
| @@ -11,15 +11,7 @@ | |
| 11 11 | 
             
            module Assonnato
         | 
| 12 12 | 
             
              class Episode < Show
         | 
| 13 13 | 
             
                def all!(show)
         | 
| 14 | 
            -
                  parse get(@host, "/shows/get/#{URI.escape show}/episodes/ | 
| 15 | 
            -
                end
         | 
| 16 | 
            -
             | 
| 17 | 
            -
                def search!(keyword)
         | 
| 18 | 
            -
                  raise NotImplementedError, 'you can search only the shows'
         | 
| 19 | 
            -
                end
         | 
| 20 | 
            -
             | 
| 21 | 
            -
                def get!(show, episode)
         | 
| 22 | 
            -
                  parse get(@host, "/shows/get/#{URI.escape show}/episodes/get/#{episode}")
         | 
| 14 | 
            +
                  parse get(@host, "/shows/get/#{URI.escape show}/episodes/all")
         | 
| 23 15 | 
             
                end
         | 
| 24 16 | 
             
              end
         | 
| 25 17 | 
             
            end
         | 
    
        data/lib/assonnato/version.rb
    CHANGED
    
    
    
        data/spec/episode_spec.rb
    CHANGED
    
    | @@ -13,18 +13,4 @@ describe 'Assonnato' do | |
| 13 13 | 
             
                res.first.should             be_kind_of(Struct)
         | 
| 14 14 | 
             
                res.first.episode.should     eql(1)
         | 
| 15 15 | 
             
              end
         | 
| 16 | 
            -
             | 
| 17 | 
            -
              it 'can\'t search episodes' do
         | 
| 18 | 
            -
                expect {
         | 
| 19 | 
            -
                  @episode.search!('monogatari')
         | 
| 20 | 
            -
                }.to raise_error(NotImplementedError)
         | 
| 21 | 
            -
              end
         | 
| 22 | 
            -
             | 
| 23 | 
            -
              it 'returns a specific episode of the given show' do
         | 
| 24 | 
            -
                res = @episode.get! 'Monogatari Second Series', 1
         | 
| 25 | 
            -
                res.should                   be_kind_of(Array)
         | 
| 26 | 
            -
                res.should_not               be_empty
         | 
| 27 | 
            -
                res.first.should             be_kind_of(Struct)
         | 
| 28 | 
            -
                res.first.episode.should     eql(1)
         | 
| 29 | 
            -
              end
         | 
| 30 16 | 
             
            end
         | 
    
        metadata
    CHANGED
    
    | @@ -1,14 +1,14 @@ | |
| 1 1 | 
             
            --- !ruby/object:Gem::Specification
         | 
| 2 2 | 
             
            name: assonnato
         | 
| 3 3 | 
             
            version: !ruby/object:Gem::Version
         | 
| 4 | 
            -
              version: '0. | 
| 4 | 
            +
              version: '0.3'
         | 
| 5 5 | 
             
            platform: ruby
         | 
| 6 6 | 
             
            authors:
         | 
| 7 7 | 
             
            - Giovanni Capuano
         | 
| 8 8 | 
             
            autorequire: 
         | 
| 9 9 | 
             
            bindir: bin
         | 
| 10 10 | 
             
            cert_chain: []
         | 
| 11 | 
            -
            date:  | 
| 11 | 
            +
            date: 2014-01-01 00:00:00.000000000 Z
         | 
| 12 12 | 
             
            dependencies:
         | 
| 13 13 | 
             
            - !ruby/object:Gem::Dependency
         | 
| 14 14 | 
             
              name: json
         |