infusionsoft 1.3.4b → 1.3.5
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/infusionsoft/request.rb +6 -1
- data/lib/infusionsoft/rest/token.rb +2 -4
- data/lib/infusionsoft/version.rb +1 -1
- metadata +4 -4
    
        checksums.yaml
    CHANGED
    
    | @@ -1,7 +1,7 @@ | |
| 1 1 | 
             
            ---
         | 
| 2 2 | 
             
            SHA256:
         | 
| 3 | 
            -
              metadata.gz:  | 
| 4 | 
            -
              data.tar.gz:  | 
| 3 | 
            +
              metadata.gz: ea5036f0847c9f8d2d27b105450d9f7f244fc3c8afc82a9df65a5dd3dfd2259c
         | 
| 4 | 
            +
              data.tar.gz: 225a3bc76cd0d2dbf2834709fd515d56145bc8ebcacde1adc5cf861d79d6e90c
         | 
| 5 5 | 
             
            SHA512:
         | 
| 6 | 
            -
              metadata.gz:  | 
| 7 | 
            -
              data.tar.gz:  | 
| 6 | 
            +
              metadata.gz: 3ecd5f2ee7588c842b4e83355fe3c9abd154e38cd772f408ce32ffc269feca4c3b8640f8b8961d5f4af58400ca38c93a19e7a6766843e49d4b4fb5a6d1fe8e60
         | 
| 7 | 
            +
              data.tar.gz: fb4ee7abf586a9160c10e1d8ee1e3c7ce51454f89f0948a4dae773e754fb246904a722721490208171a762e2764e4cd142e25d65817666d6bb3ab5ced776daee
         | 
    
        data/lib/infusionsoft/request.rb
    CHANGED
    
    | @@ -21,6 +21,11 @@ module Infusionsoft | |
| 21 21 | 
             
                  request(:put, path, token, query, payload)
         | 
| 22 22 | 
             
                end
         | 
| 23 23 |  | 
| 24 | 
            +
                # Perform an HTTP PATCH request
         | 
| 25 | 
            +
                def patch(path, token, query: {}, payload: {})
         | 
| 26 | 
            +
                  request(:patch, path, token, query, payload)
         | 
| 27 | 
            +
                end
         | 
| 28 | 
            +
             | 
| 24 29 | 
             
                # Perform an HTTP DELETE request
         | 
| 25 30 | 
             
                def delete(path, token, query: {})
         | 
| 26 31 | 
             
                  request(:delete, path, token, query)
         | 
| @@ -47,7 +52,7 @@ module Infusionsoft | |
| 47 52 | 
             
                rescue RestClient::ExceptionWithResponse => err
         | 
| 48 53 | 
             
                  # log error?
         | 
| 49 54 | 
             
                else
         | 
| 50 | 
            -
                  return JSON.parse(resp.body)
         | 
| 55 | 
            +
                  return JSON.parse(resp.body) if resp.body # Some calls respond w nothing
         | 
| 51 56 | 
             
                end
         | 
| 52 57 | 
             
              end
         | 
| 53 58 | 
             
            end
         | 
| @@ -12,11 +12,9 @@ module Infusionsoft | |
| 12 12 | 
             
                    @access_token = token_params[:access_token] || token_params["access_token"]
         | 
| 13 13 | 
             
                    @refresh_token = token_params[:refresh_token] || token_params["refresh_token"]
         | 
| 14 14 | 
             
                    @expiration = token_params[:expiration] if token_params[:expiration]
         | 
| 15 | 
            -
                    expires_in = token_params[:expires_in] || token_params["expires_in"]
         | 
| 16 15 |  | 
| 17 | 
            -
                    if expires_in
         | 
| 18 | 
            -
                       | 
| 19 | 
            -
                      @expiration = Time.now + expires_in
         | 
| 16 | 
            +
                    if token_params[:expires_in] || token_params["expires_in"]
         | 
| 17 | 
            +
                      @expiration = Time.now + (token_params[:expires_in] || token_params["expires_in"])
         | 
| 20 18 | 
             
                    end
         | 
| 21 19 | 
             
                  end
         | 
| 22 20 |  | 
    
        data/lib/infusionsoft/version.rb
    CHANGED
    
    
    
        metadata
    CHANGED
    
    | @@ -1,14 +1,14 @@ | |
| 1 1 | 
             
            --- !ruby/object:Gem::Specification
         | 
| 2 2 | 
             
            name: infusionsoft
         | 
| 3 3 | 
             
            version: !ruby/object:Gem::Version
         | 
| 4 | 
            -
              version: 1.3. | 
| 4 | 
            +
              version: 1.3.5
         | 
| 5 5 | 
             
            platform: ruby
         | 
| 6 6 | 
             
            authors:
         | 
| 7 7 | 
             
            - Nathan Leavitt
         | 
| 8 8 | 
             
            autorequire: 
         | 
| 9 9 | 
             
            bindir: bin
         | 
| 10 10 | 
             
            cert_chain: []
         | 
| 11 | 
            -
            date: 2020- | 
| 11 | 
            +
            date: 2020-08-06 00:00:00.000000000 Z
         | 
| 12 12 | 
             
            dependencies:
         | 
| 13 13 | 
             
            - !ruby/object:Gem::Dependency
         | 
| 14 14 | 
             
              name: rake
         | 
| @@ -142,9 +142,9 @@ required_ruby_version: !ruby/object:Gem::Requirement | |
| 142 142 | 
             
                  version: '0'
         | 
| 143 143 | 
             
            required_rubygems_version: !ruby/object:Gem::Requirement
         | 
| 144 144 | 
             
              requirements:
         | 
| 145 | 
            -
              - - " | 
| 145 | 
            +
              - - ">="
         | 
| 146 146 | 
             
                - !ruby/object:Gem::Version
         | 
| 147 | 
            -
                  version: 1.3. | 
| 147 | 
            +
                  version: 1.3.6
         | 
| 148 148 | 
             
            requirements: []
         | 
| 149 149 | 
             
            rubygems_version: 3.1.2
         | 
| 150 150 | 
             
            signing_key: 
         |