streamsend 1.0.0.rc9 → 1.0.0.rc11
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 +8 -8
- data/Gemfile.lock +3 -3
- data/lib/streamsend/api/base/index.rb +1 -1
- data/lib/streamsend/api/owner.rb +3 -0
- data/lib/streamsend/version.rb +1 -1
- data/spec/lib/streamsend/api/integration/owner_spec.rb +29 -5
- metadata +2 -2
    
        checksums.yaml
    CHANGED
    
    | @@ -1,15 +1,15 @@ | |
| 1 1 | 
             
            ---
         | 
| 2 2 | 
             
            !binary "U0hBMQ==":
         | 
| 3 3 | 
             
              metadata.gz: !binary |-
         | 
| 4 | 
            -
                 | 
| 4 | 
            +
                MGRjOGY2NGViMTNmZjY0YWJmMmNiMmZhZmUyNWI3ZjBjNWFiNzQ0Mw==
         | 
| 5 5 | 
             
              data.tar.gz: !binary |-
         | 
| 6 | 
            -
                 | 
| 6 | 
            +
                M2I4ZDQzMDk2NGU3MmYxYWIxYjk3MzdjYThiOWQxMzUyYjJiM2ZhMA==
         | 
| 7 7 | 
             
            SHA512:
         | 
| 8 8 | 
             
              metadata.gz: !binary |-
         | 
| 9 | 
            -
                 | 
| 10 | 
            -
                 | 
| 11 | 
            -
                 | 
| 9 | 
            +
                MDQ0MzU4Y2VkYmFmNmQ2OWYyMjVmMTVkMTBjZmJhZGU0NDVhOTU4YWJkNDA0
         | 
| 10 | 
            +
                NjVkNDUwZTE4ZTFmZDU5ZWQ1MDdjOWVmMGEwOTU1NDM1MTc5YjhjMzkwNTZk
         | 
| 11 | 
            +
                ZTNhYTY3YzVkYTAxMTViYmRhNDJjYmI2YmVkNDNkZTQwNTQ5Njc=
         | 
| 12 12 | 
             
              data.tar.gz: !binary |-
         | 
| 13 | 
            -
                 | 
| 14 | 
            -
                 | 
| 15 | 
            -
                 | 
| 13 | 
            +
                Njc5YWE0OTQ5MGY3OWJkNGNiMThlMDgwOTUzOWJjYTg1YmZkMTZhOTNmMTRh
         | 
| 14 | 
            +
                MTE3ZDM4OTFmZmY2MTY3MmFiYWY5NGQ2ZjFjODk2MzAwNmYxYzc2YTZiNmJi
         | 
| 15 | 
            +
                NjFkNzkwZmQ3NGMyNGYxZDgwMzk2ZmJhMzFlMGY5MmRlNTVmNjU=
         | 
    
        data/Gemfile.lock
    CHANGED
    
    | @@ -1,7 +1,7 @@ | |
| 1 1 | 
             
            PATH
         | 
| 2 2 | 
             
              remote: .
         | 
| 3 3 | 
             
              specs:
         | 
| 4 | 
            -
                streamsend (1.0.0. | 
| 4 | 
            +
                streamsend (1.0.0.rc11)
         | 
| 5 5 | 
             
                  activesupport (~> 3.2)
         | 
| 6 6 | 
             
                  builder
         | 
| 7 7 | 
             
                  httmultiparty
         | 
| @@ -9,7 +9,7 @@ PATH | |
| 9 9 | 
             
            GEM
         | 
| 10 10 | 
             
              remote: http://rubygems.org/
         | 
| 11 11 | 
             
              specs:
         | 
| 12 | 
            -
                activesupport (3.2. | 
| 12 | 
            +
                activesupport (3.2.15)
         | 
| 13 13 | 
             
                  i18n (~> 0.6, >= 0.6.4)
         | 
| 14 14 | 
             
                  multi_json (~> 1.0)
         | 
| 15 15 | 
             
                addressable (2.3.5)
         | 
| @@ -32,7 +32,7 @@ GEM | |
| 32 32 | 
             
                  json (~> 1.8)
         | 
| 33 33 | 
             
                  multi_xml (>= 0.5.2)
         | 
| 34 34 | 
             
                i18n (0.6.5)
         | 
| 35 | 
            -
                json (1.8. | 
| 35 | 
            +
                json (1.8.1)
         | 
| 36 36 | 
             
                multi_json (1.8.2)
         | 
| 37 37 | 
             
                multi_xml (0.5.5)
         | 
| 38 38 | 
             
                multipart-post (1.2.0)
         | 
    
        data/lib/streamsend/api/owner.rb
    CHANGED
    
    
    
        data/lib/streamsend/version.rb
    CHANGED
    
    
| @@ -25,11 +25,24 @@ module StreamSend | |
| 25 25 | 
             
                    end
         | 
| 26 26 |  | 
| 27 27 | 
             
                    describe Index do
         | 
| 28 | 
            -
                       | 
| 29 | 
            -
                         | 
| 30 | 
            -
             | 
| 31 | 
            -
             | 
| 32 | 
            -
             | 
| 28 | 
            +
                      context "with pagination" do
         | 
| 29 | 
            +
                        it "creates, display, then destroy the owner(s)" do
         | 
| 30 | 
            +
                          #create an owner
         | 
| 31 | 
            +
                          owners = StreamSend::Api::Owner::Index.new(session).execute
         | 
| 32 | 
            +
                          expect(owners.count).to be > 0
         | 
| 33 | 
            +
                          #destroy the created owner
         | 
| 34 | 
            +
                        end
         | 
| 35 | 
            +
                      end
         | 
| 36 | 
            +
             | 
| 37 | 
            +
                      context "without pagination" do
         | 
| 38 | 
            +
                        let(:per_page) { 2 }
         | 
| 39 | 
            +
             | 
| 40 | 
            +
                        it "creates, display, then destroy the owner(s)" do
         | 
| 41 | 
            +
                          #create an owner
         | 
| 42 | 
            +
                          owners = StreamSend::Api::Owner::Index.new(session).execute(:page =>1, :per_page => per_page)
         | 
| 43 | 
            +
                          expect(owners.count).to be per_page
         | 
| 44 | 
            +
                          #destroy the created owner
         | 
| 45 | 
            +
                        end
         | 
| 33 46 | 
             
                      end
         | 
| 34 47 | 
             
                    end
         | 
| 35 48 |  | 
| @@ -40,6 +53,17 @@ module StreamSend | |
| 40 53 | 
             
                        expect(owner.owner_id).to eq(franchise_code)
         | 
| 41 54 | 
             
                      end
         | 
| 42 55 | 
             
                    end
         | 
| 56 | 
            +
             | 
| 57 | 
            +
                    describe Destroy do
         | 
| 58 | 
            +
                      it "deletes an owner by owner id" do
         | 
| 59 | 
            +
                        pending
         | 
| 60 | 
            +
                        # create an owner
         | 
| 61 | 
            +
                        StreamSend::Api::Owner::Destroy.new(session).execute(franchise_code)
         | 
| 62 | 
            +
                        expect do
         | 
| 63 | 
            +
                          StreamSend::Api::Owner::Show.new(session).execute(franchise_code)
         | 
| 64 | 
            +
                        end.to raise_error(StreamSend::Api::Exception, "Could not find any owners with the specified id. (404)")
         | 
| 65 | 
            +
                      end
         | 
| 66 | 
            +
                    end
         | 
| 43 67 | 
             
                  end
         | 
| 44 68 | 
             
                end
         | 
| 45 69 | 
             
              end
         | 
    
        metadata
    CHANGED
    
    | @@ -1,14 +1,14 @@ | |
| 1 1 | 
             
            --- !ruby/object:Gem::Specification
         | 
| 2 2 | 
             
            name: streamsend
         | 
| 3 3 | 
             
            version: !ruby/object:Gem::Version
         | 
| 4 | 
            -
              version: 1.0.0. | 
| 4 | 
            +
              version: 1.0.0.rc11
         | 
| 5 5 | 
             
            platform: ruby
         | 
| 6 6 | 
             
            authors:
         | 
| 7 7 | 
             
            - Bob Yeo
         | 
| 8 8 | 
             
            autorequire: 
         | 
| 9 9 | 
             
            bindir: bin
         | 
| 10 10 | 
             
            cert_chain: []
         | 
| 11 | 
            -
            date: 2014-01- | 
| 11 | 
            +
            date: 2014-01-27 00:00:00.000000000 Z
         | 
| 12 12 | 
             
            dependencies:
         | 
| 13 13 | 
             
            - !ruby/object:Gem::Dependency
         | 
| 14 14 | 
             
              name: httmultiparty
         |