hyperion_http 0.3.0 → 0.5.0
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/hyperion_http.gemspec +2 -2
- data/lib/hyperion/formats.rb +1 -2
- data/lib/hyperion_test/spec_helper.rb +6 -1
- metadata +4 -4
    
        checksums.yaml
    CHANGED
    
    | @@ -1,7 +1,7 @@ | |
| 1 1 | 
             
            ---
         | 
| 2 2 | 
             
            SHA1:
         | 
| 3 | 
            -
              metadata.gz:  | 
| 4 | 
            -
              data.tar.gz:  | 
| 3 | 
            +
              metadata.gz: e3bd10bd7cea98830da2b676efba1a80adba83c9
         | 
| 4 | 
            +
              data.tar.gz: 16385d656757d9c325a2a388f89c0d1e688ed920
         | 
| 5 5 | 
             
            SHA512:
         | 
| 6 | 
            -
              metadata.gz:  | 
| 7 | 
            -
              data.tar.gz:  | 
| 6 | 
            +
              metadata.gz: e4dc321c4b89ffb9029e88e7f3393cd79162cbb07f9500c969b603cb70ea7514e4947444070292b3c686c44a766aeee83b2c8c06cb4786ce0ea67ad5f55cfa3c
         | 
| 7 | 
            +
              data.tar.gz: 8766676236d1a9eb42768df79d4c45c5d9a0eada6aec79092dcc7501eac49ce4cb84e4aa7291df4762590de5871dac3f1dccc5564c650ce4dc4506e41eb02858
         | 
    
        data/hyperion_http.gemspec
    CHANGED
    
    | @@ -4,7 +4,7 @@ $LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib) | |
| 4 4 |  | 
| 5 5 | 
             
            Gem::Specification.new do |spec|
         | 
| 6 6 | 
             
              spec.name          = 'hyperion_http'
         | 
| 7 | 
            -
              spec.version       = '0. | 
| 7 | 
            +
              spec.version       = '0.5.0'
         | 
| 8 8 | 
             
              spec.authors       = ['Indigo BioAutomation, Inc.']
         | 
| 9 9 | 
             
              spec.email         = ['pwinton@indigobio.com']
         | 
| 10 10 | 
             
              spec.summary       = 'Ruby REST client'
         | 
| @@ -27,7 +27,7 @@ Gem::Specification.new do |spec| | |
| 27 27 | 
             
              spec.add_runtime_dependency 'abstractivator', '~> 0.0'
         | 
| 28 28 | 
             
              spec.add_runtime_dependency 'activesupport'
         | 
| 29 29 | 
             
              spec.add_runtime_dependency 'immutable_struct', '~> 1.1'
         | 
| 30 | 
            -
              spec.add_runtime_dependency 'oj', '~>  | 
| 30 | 
            +
              spec.add_runtime_dependency 'oj', '~> 3.0'
         | 
| 31 31 | 
             
              spec.add_runtime_dependency 'typhoeus', '~> 0.7'
         | 
| 32 32 | 
             
              spec.add_runtime_dependency 'rack'
         | 
| 33 33 | 
             
              spec.add_runtime_dependency 'logatron'
         | 
    
        data/lib/hyperion/formats.rb
    CHANGED
    
    
| @@ -5,9 +5,14 @@ require 'hyperion_test' | |
| 5 5 | 
             
            # as an argument or as a function of the request (using the block).
         | 
| 6 6 | 
             
            #
         | 
| 7 7 | 
             
            # @param [RestRoute] route The route to handle
         | 
| 8 | 
            -
            # @param [Hash, String] return_value The data to return in response to a request
         | 
| 8 | 
            +
            # @param [Hash, String, rack_response] return_value The data to return in response to a request
         | 
| 9 9 | 
             
            # @yield [Hyperion::FakeServer::Request] Yields a request object containing the deserialized request body
         | 
| 10 10 | 
             
            # @yieldreturn [Hash, String, rack_response] The data to return in response to a request
         | 
| 11 | 
            +
            #
         | 
| 12 | 
            +
            # The structure of a rack response is specified at http://rack.github.io
         | 
| 13 | 
            +
            # Hyperion loosens these requirements a little. For instance, the headers
         | 
| 14 | 
            +
            # hash may be nil, and the body does not need to be wrapped in an array.
         | 
| 15 | 
            +
            # See kim_spec.rb for details. The massaging is done in FakeServer#massage_response.
         | 
| 11 16 | 
             
            def fake_route(route, return_value=nil, &block)
         | 
| 12 17 | 
             
              if return_value && block
         | 
| 13 18 | 
             
                fail 'cannot provide both a return_value and block'
         | 
    
        metadata
    CHANGED
    
    | @@ -1,14 +1,14 @@ | |
| 1 1 | 
             
            --- !ruby/object:Gem::Specification
         | 
| 2 2 | 
             
            name: hyperion_http
         | 
| 3 3 | 
             
            version: !ruby/object:Gem::Version
         | 
| 4 | 
            -
              version: 0. | 
| 4 | 
            +
              version: 0.5.0
         | 
| 5 5 | 
             
            platform: ruby
         | 
| 6 6 | 
             
            authors:
         | 
| 7 7 | 
             
            - Indigo BioAutomation, Inc.
         | 
| 8 8 | 
             
            autorequire: 
         | 
| 9 9 | 
             
            bindir: bin
         | 
| 10 10 | 
             
            cert_chain: []
         | 
| 11 | 
            -
            date:  | 
| 11 | 
            +
            date: 2017-05-24 00:00:00.000000000 Z
         | 
| 12 12 | 
             
            dependencies:
         | 
| 13 13 | 
             
            - !ruby/object:Gem::Dependency
         | 
| 14 14 | 
             
              name: bundler
         | 
| @@ -142,14 +142,14 @@ dependencies: | |
| 142 142 | 
             
                requirements:
         | 
| 143 143 | 
             
                - - "~>"
         | 
| 144 144 | 
             
                  - !ruby/object:Gem::Version
         | 
| 145 | 
            -
                    version: ' | 
| 145 | 
            +
                    version: '3.0'
         | 
| 146 146 | 
             
              type: :runtime
         | 
| 147 147 | 
             
              prerelease: false
         | 
| 148 148 | 
             
              version_requirements: !ruby/object:Gem::Requirement
         | 
| 149 149 | 
             
                requirements:
         | 
| 150 150 | 
             
                - - "~>"
         | 
| 151 151 | 
             
                  - !ruby/object:Gem::Version
         | 
| 152 | 
            -
                    version: ' | 
| 152 | 
            +
                    version: '3.0'
         | 
| 153 153 | 
             
            - !ruby/object:Gem::Dependency
         | 
| 154 154 | 
             
              name: typhoeus
         | 
| 155 155 | 
             
              requirement: !ruby/object:Gem::Requirement
         |