webstub 1.1.2 → 1.1.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/.travis.yml +6 -0
- data/README.md +1 -1
- data/lib/webstub/stub.rb +2 -1
- data/lib/webstub/version.rb +1 -1
- data/spec/stub_spec.rb +14 -0
- data/webstub.gemspec +1 -1
- metadata +3 -3
    
        checksums.yaml
    CHANGED
    
    | @@ -1,7 +1,7 @@ | |
| 1 1 | 
             
            ---
         | 
| 2 2 | 
             
            SHA1:
         | 
| 3 | 
            -
              metadata.gz:  | 
| 4 | 
            -
              data.tar.gz:  | 
| 3 | 
            +
              metadata.gz: dab6a7224711a9b346e0e025185c193232f48544
         | 
| 4 | 
            +
              data.tar.gz: 78f95e5a74f4daac8dd0790a9c97f3ab22f2b8ae
         | 
| 5 5 | 
             
            SHA512:
         | 
| 6 | 
            -
              metadata.gz:  | 
| 7 | 
            -
              data.tar.gz:  | 
| 6 | 
            +
              metadata.gz: 0343926f70ed862ed33181cfd96c7ce9e9411935f7aea4fe7d0feb78e87dd3066dc8ec0447cecc40f69f2a1d0c5544b5e6111af161640573c0d883626c9f5e2c
         | 
| 7 | 
            +
              data.tar.gz: 5d12d87852b07ec5c21cbe9d3fba3fc48562cd7b583c185a1138371de5fea8f321a4f7cec579c17416dc87f9dba40df950b6300fe4ecaeaa9f66db223efebf0e
         | 
    
        data/.travis.yml
    CHANGED
    
    
    
        data/README.md
    CHANGED
    
    | @@ -1,4 +1,4 @@ | |
| 1 | 
            -
            WebStub [](https://codeclimate.com/github/mattgreen/webstub) [](https://codeclimate.com/github/mattgreen/webstub) [](https://travis-ci.org/nathankot/webstub) [](http://badge.fury.io/rb/webstub)
         | 
| 2 2 | 
             
            ======
         | 
| 3 3 |  | 
| 4 4 | 
             
            What if [WebMock](https://github.com/bblimke/webmock) and [NSURLProtocol](https://developer.apple.com/library/mac/#documentation/Cocoa/Reference/Foundation/Classes/NSURLProtocol_Class/Reference/Reference.html) had a baby?
         | 
    
        data/lib/webstub/stub.rb
    CHANGED
    
    
    
        data/lib/webstub/version.rb
    CHANGED
    
    
    
        data/spec/stub_spec.rb
    CHANGED
    
    | @@ -100,6 +100,20 @@ describe WebStub::Stub do | |
| 100 100 | 
             
                  end
         | 
| 101 101 | 
             
                end
         | 
| 102 102 |  | 
| 103 | 
            +
                describe "query string" do
         | 
| 104 | 
            +
                  before do
         | 
| 105 | 
            +
                    @stub = WebStub::Stub.new(:get, "http://www.yahoo.com/search?count=1")
         | 
| 106 | 
            +
                  end
         | 
| 107 | 
            +
             | 
| 108 | 
            +
                  it "returns true when the query string matches" do
         | 
| 109 | 
            +
                    @stub.matches?(:get, "http://www.yahoo.com/search?count=1").should.be.true
         | 
| 110 | 
            +
                  end
         | 
| 111 | 
            +
             | 
| 112 | 
            +
                  it "strips any trailing &" do
         | 
| 113 | 
            +
                    @stub.matches?(:get, "http://www.yahoo.com/search?count=1&").should.be.true
         | 
| 114 | 
            +
                  end
         | 
| 115 | 
            +
                end
         | 
| 116 | 
            +
             | 
| 103 117 | 
             
                describe "body" do
         | 
| 104 118 | 
             
                  describe "with a dictionary" do
         | 
| 105 119 | 
             
                    before do
         | 
    
        data/webstub.gemspec
    CHANGED
    
    | @@ -6,7 +6,7 @@ Gem::Specification.new do |gem| | |
| 6 6 | 
             
              gem.email         = ["mattgreenrocks@gmail.com"]
         | 
| 7 7 | 
             
              gem.description   = "Easily stub out HTTP responses in RubyMotion specs"
         | 
| 8 8 | 
             
              gem.summary       = "Easily stub out HTTP responses in RubyMotion specs"
         | 
| 9 | 
            -
              gem.homepage      = "https://github.com/ | 
| 9 | 
            +
              gem.homepage      = "https://github.com/nathankot/webstub"
         | 
| 10 10 |  | 
| 11 11 | 
             
              gem.files         = `git ls-files`.split($\)
         | 
| 12 12 | 
             
              gem.test_files    = gem.files.grep(%r{^(test|spec|features)/})
         | 
    
        metadata
    CHANGED
    
    | @@ -1,14 +1,14 @@ | |
| 1 1 | 
             
            --- !ruby/object:Gem::Specification
         | 
| 2 2 | 
             
            name: webstub
         | 
| 3 3 | 
             
            version: !ruby/object:Gem::Version
         | 
| 4 | 
            -
              version: 1.1. | 
| 4 | 
            +
              version: 1.1.3
         | 
| 5 5 | 
             
            platform: ruby
         | 
| 6 6 | 
             
            authors:
         | 
| 7 7 | 
             
            - Matt Green
         | 
| 8 8 | 
             
            autorequire: 
         | 
| 9 9 | 
             
            bindir: bin
         | 
| 10 10 | 
             
            cert_chain: []
         | 
| 11 | 
            -
            date:  | 
| 11 | 
            +
            date: 2015-08-21 00:00:00.000000000 Z
         | 
| 12 12 | 
             
            dependencies:
         | 
| 13 13 | 
             
            - !ruby/object:Gem::Dependency
         | 
| 14 14 | 
             
              name: rake
         | 
| @@ -74,7 +74,7 @@ files: | |
| 74 74 | 
             
            - spec/stub_spec.rb
         | 
| 75 75 | 
             
            - spec/uri_spec.rb
         | 
| 76 76 | 
             
            - webstub.gemspec
         | 
| 77 | 
            -
            homepage: https://github.com/ | 
| 77 | 
            +
            homepage: https://github.com/nathankot/webstub
         | 
| 78 78 | 
             
            licenses:
         | 
| 79 79 | 
             
            - MIT
         | 
| 80 80 | 
             
            metadata: {}
         |