hellosign-ruby-sdk 3.2.14 → 3.2.15
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
    CHANGED
    
    | 
         @@ -1,7 +1,7 @@ 
     | 
|
| 
       1 
1 
     | 
    
         
             
            ---
         
     | 
| 
       2 
2 
     | 
    
         
             
            SHA1:
         
     | 
| 
       3 
     | 
    
         
            -
              metadata.gz:  
     | 
| 
       4 
     | 
    
         
            -
              data.tar.gz:  
     | 
| 
      
 3 
     | 
    
         
            +
              metadata.gz: bc286c2e7deb343afb8db65133aeb5d89999bb6c
         
     | 
| 
      
 4 
     | 
    
         
            +
              data.tar.gz: 3256f9e3bc52d1de408767151018fd3429f18661
         
     | 
| 
       5 
5 
     | 
    
         
             
            SHA512:
         
     | 
| 
       6 
     | 
    
         
            -
              metadata.gz:  
     | 
| 
       7 
     | 
    
         
            -
              data.tar.gz:  
     | 
| 
      
 6 
     | 
    
         
            +
              metadata.gz: 4dad57320385d7ea26252bb56aafbdf22fe38184f9a89ad7c9767af50831ef77d8a29b2ae209381c09f7b7a5b5b16ffc76c8f83e3e0fe8af2daaeeb2e3977535
         
     | 
| 
      
 7 
     | 
    
         
            +
              data.tar.gz: d0fdcae57723f28d8269aaf2fd589c65ad29ddb3be0b040e5052f3a2b5b13215ecf1d4beca9caf3424f7acb941c7154795921f6cb90337cbc15e2d27c319b9fc
         
     | 
| 
         @@ -238,6 +238,7 @@ module HelloSign 
     | 
|
| 
       238 
238 
     | 
    
         
             
                  #
         
     | 
| 
       239 
239 
     | 
    
         
             
                  # Download the PDF copy of the current documents specified by the signature_request_id parameter.
         
     | 
| 
       240 
240 
     | 
    
         
             
                  # @option opts [String] file_type Either 'pdf' or 'zip' depending on the file type desired. Defaults to pdf.
         
     | 
| 
      
 241 
     | 
    
         
            +
                  # @option opts [String] get_url Boolean. If true, the response will contain a url link to the file instead. Links are only available for PDFs and have a TTL of 3 days.Either 'pdf' or 'zip' depending on the file type desired. Defaults to false.
         
     | 
| 
       241 
242 
     | 
    
         
             
                  # @option opts [String] signature_request_id The id of the SignatureRequest to retrieve.
         
     | 
| 
       242 
243 
     | 
    
         
             
                  #
         
     | 
| 
       243 
244 
     | 
    
         
             
                  # @return a PDF
         
     | 
| 
         @@ -250,6 +251,10 @@ module HelloSign 
     | 
|
| 
       250 
251 
     | 
    
         
             
                    if opts[:file_type]
         
     | 
| 
       251 
252 
     | 
    
         
             
                      path = path + "?file_type=#{opts[:file_type]}"
         
     | 
| 
       252 
253 
     | 
    
         
             
                    end
         
     | 
| 
      
 254 
     | 
    
         
            +
                    if opts[:get_url]
         
     | 
| 
      
 255 
     | 
    
         
            +
                      separator = opts[:file_type].nil? ? '?' : '&'
         
     | 
| 
      
 256 
     | 
    
         
            +
                      path = path + "#{separator}get_url=#{opts[:get_url]}"
         
     | 
| 
      
 257 
     | 
    
         
            +
                    end
         
     | 
| 
       253 
258 
     | 
    
         
             
                    get(path)
         
     | 
| 
       254 
259 
     | 
    
         
             
                  end
         
     | 
| 
       255 
260 
     | 
    
         | 
    
        data/lib/hello_sign/version.rb
    CHANGED
    
    
| 
         @@ -90,6 +90,41 @@ describe HelloSign::Api::SignatureRequest do 
     | 
|
| 
       90 
90 
     | 
    
         
             
                end
         
     | 
| 
       91 
91 
     | 
    
         
             
              end
         
     | 
| 
       92 
92 
     | 
    
         | 
| 
      
 93 
     | 
    
         
            +
              describe '#signature_request_files with options' do
         
     | 
| 
      
 94 
     | 
    
         
            +
                describe ':get_url' do
         
     | 
| 
      
 95 
     | 
    
         
            +
                  before do
         
     | 
| 
      
 96 
     | 
    
         
            +
                    stub_get('/signature_request/files/1?get_url=true', 'file')
         
     | 
| 
      
 97 
     | 
    
         
            +
                    @files = HelloSign.signature_request_files(:signature_request_id => 1, :get_url => true)
         
     | 
| 
      
 98 
     | 
    
         
            +
                  end
         
     | 
| 
      
 99 
     | 
    
         
            +
             
     | 
| 
      
 100 
     | 
    
         
            +
                  it 'should get the correct resource' do
         
     | 
| 
      
 101 
     | 
    
         
            +
                    expect(a_get('/signature_request/files/1?get_url=true')).to have_been_made
         
     | 
| 
      
 102 
     | 
    
         
            +
                  end
         
     | 
| 
      
 103 
     | 
    
         
            +
                end
         
     | 
| 
      
 104 
     | 
    
         
            +
             
     | 
| 
      
 105 
     | 
    
         
            +
                describe ':file_type' do
         
     | 
| 
      
 106 
     | 
    
         
            +
                  before do
         
     | 
| 
      
 107 
     | 
    
         
            +
                    stub_get('/signature_request/files/1?file_type=pdf', 'file')
         
     | 
| 
      
 108 
     | 
    
         
            +
                    @files = HelloSign.signature_request_files(:signature_request_id => 1, :file_type => 'pdf')
         
     | 
| 
      
 109 
     | 
    
         
            +
                  end
         
     | 
| 
      
 110 
     | 
    
         
            +
             
     | 
| 
      
 111 
     | 
    
         
            +
                  it 'should get the correct resource' do
         
     | 
| 
      
 112 
     | 
    
         
            +
                    expect(a_get('/signature_request/files/1?file_type=pdf')).to have_been_made
         
     | 
| 
      
 113 
     | 
    
         
            +
                  end
         
     | 
| 
      
 114 
     | 
    
         
            +
                end
         
     | 
| 
      
 115 
     | 
    
         
            +
             
     | 
| 
      
 116 
     | 
    
         
            +
                describe ':file_type and :get_url' do
         
     | 
| 
      
 117 
     | 
    
         
            +
                  before do
         
     | 
| 
      
 118 
     | 
    
         
            +
                    stub_get('/signature_request/files/1?file_type=pdf&get_url=true', 'file')
         
     | 
| 
      
 119 
     | 
    
         
            +
                    @files = HelloSign.signature_request_files(:signature_request_id => 1, :file_type => 'pdf', :get_url => true)
         
     | 
| 
      
 120 
     | 
    
         
            +
                  end
         
     | 
| 
      
 121 
     | 
    
         
            +
             
     | 
| 
      
 122 
     | 
    
         
            +
                  it 'should get the correct resource' do
         
     | 
| 
      
 123 
     | 
    
         
            +
                    expect(a_get('/signature_request/files/1?file_type=pdf&get_url=true')).to have_been_made
         
     | 
| 
      
 124 
     | 
    
         
            +
                  end
         
     | 
| 
      
 125 
     | 
    
         
            +
                end
         
     | 
| 
      
 126 
     | 
    
         
            +
              end
         
     | 
| 
      
 127 
     | 
    
         
            +
             
     | 
| 
       93 
128 
     | 
    
         
             
              describe '#send_signature_request_with_template' do
         
     | 
| 
       94 
129 
     | 
    
         
             
                before do
         
     | 
| 
       95 
130 
     | 
    
         
             
                  stub_post('/signature_request/send_with_template', 'signature_request')
         
     | 
    
        metadata
    CHANGED
    
    | 
         @@ -1,14 +1,14 @@ 
     | 
|
| 
       1 
1 
     | 
    
         
             
            --- !ruby/object:Gem::Specification
         
     | 
| 
       2 
2 
     | 
    
         
             
            name: hellosign-ruby-sdk
         
     | 
| 
       3 
3 
     | 
    
         
             
            version: !ruby/object:Gem::Version
         
     | 
| 
       4 
     | 
    
         
            -
              version: 3.2. 
     | 
| 
      
 4 
     | 
    
         
            +
              version: 3.2.15
         
     | 
| 
       5 
5 
     | 
    
         
             
            platform: ruby
         
     | 
| 
       6 
6 
     | 
    
         
             
            authors:
         
     | 
| 
       7 
7 
     | 
    
         
             
            - HelloSign
         
     | 
| 
       8 
8 
     | 
    
         
             
            autorequire: 
         
     | 
| 
       9 
9 
     | 
    
         
             
            bindir: bin
         
     | 
| 
       10 
10 
     | 
    
         
             
            cert_chain: []
         
     | 
| 
       11 
     | 
    
         
            -
            date: 2017- 
     | 
| 
      
 11 
     | 
    
         
            +
            date: 2017-04-26 00:00:00.000000000 Z
         
     | 
| 
       12 
12 
     | 
    
         
             
            dependencies:
         
     | 
| 
       13 
13 
     | 
    
         
             
            - !ruby/object:Gem::Dependency
         
     | 
| 
       14 
14 
     | 
    
         
             
              name: bundler
         
     | 
| 
         @@ -198,7 +198,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement 
     | 
|
| 
       198 
198 
     | 
    
         
             
                  version: '0'
         
     | 
| 
       199 
199 
     | 
    
         
             
            requirements: []
         
     | 
| 
       200 
200 
     | 
    
         
             
            rubyforge_project: 
         
     | 
| 
       201 
     | 
    
         
            -
            rubygems_version: 2. 
     | 
| 
      
 201 
     | 
    
         
            +
            rubygems_version: 2.6.11
         
     | 
| 
       202 
202 
     | 
    
         
             
            signing_key: 
         
     | 
| 
       203 
203 
     | 
    
         
             
            specification_version: 4
         
     | 
| 
       204 
204 
     | 
    
         
             
            summary: A Ruby SDK for the HelloSign API.
         
     |