dropbox-sign 1.1.1 → 1.1.2

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.
@@ -17,18 +17,16 @@ describe Dropbox::Sign::Configuration do
17
17
 
18
18
  before(:each) do
19
19
  # uncomment below to setup host and base_path
20
- # require 'URI'
21
- # uri = URI.parse("https://api.hellosign.com/v3")
22
- # Dropbox::Sign.configure do |c|
23
- # c.host = uri.host
24
- # c.base_path = uri.path
25
- # end
20
+ Dropbox::Sign.configure do |c|
21
+ c.host = "api.hellosign.com"
22
+ c.base_path = "/v3"
23
+ end
26
24
  end
27
25
 
28
26
  describe '#base_url' do
29
27
  it 'should have the default value' do
30
28
  # uncomment below to test default value of the base path
31
- # expect(config.base_url).to eq("https://api.hellosign.com/v3")
29
+ expect(config.base_url).to eq("https://api.hellosign.com/v3")
32
30
  end
33
31
 
34
32
  it 'should remove trailing slashes' do
@@ -229,7 +229,7 @@ module {{moduleName}}
229
229
  [
230
230
  {{#servers}}
231
231
  {
232
- url: "#{scheme}://#{host}/#{base_path}",
232
+ url: "#{scheme}://#{[host, base_path].join('/').gsub(/\/+/, '/')}".sub(/\/+\z/, ''),
233
233
  description: "{{{description}}}{{^description}}No description provided{{/description}}",
234
234
  {{#variables}}
235
235
  {{#-first}}
@@ -9,18 +9,16 @@ describe {{moduleName}}::Configuration do
9
9
 
10
10
  before(:each) do
11
11
  # uncomment below to setup host and base_path
12
- # require 'URI'
13
- # uri = URI.parse("{{{basePath}}}")
14
- # {{moduleName}}.configure do |c|
15
- # c.host = uri.host
16
- # c.base_path = uri.path
17
- # end
12
+ {{moduleName}}.configure do |c|
13
+ c.host = "{{host}}"
14
+ c.base_path = "{{contextPath}}"
15
+ end
18
16
  end
19
17
 
20
18
  describe '#base_url' do
21
19
  it 'should have the default value' do
22
20
  # uncomment below to test default value of the base path
23
- # expect(config.base_url).to eq("{{{basePath}}}")
21
+ expect(config.base_url).to eq("{{{basePath}}}")
24
22
  end
25
23
 
26
24
  it 'should remove trailing slashes' do
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: dropbox-sign
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.1.1
4
+ version: 1.1.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Dropbox
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2023-03-13 00:00:00.000000000 Z
11
+ date: 2023-05-17 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: typhoeus
@@ -626,16 +626,16 @@ signing_key:
626
626
  specification_version: 4
627
627
  summary: Dropbox Sign API Ruby Gem
628
628
  test_files:
629
- - spec/api/account_api_spec.rb
630
629
  - spec/api/unclaimed_draft_api_spec.rb
630
+ - spec/api/bulk_send_job_api_spec.rb
631
631
  - spec/api/signature_request_api_spec.rb
632
632
  - spec/api/template_api_spec.rb
633
- - spec/api/report_api_spec.rb
634
- - spec/api/bulk_send_job_api_spec.rb
633
+ - spec/api/team_api_spec.rb
634
+ - spec/api/embedded_api_spec.rb
635
635
  - spec/api/oauth_api_spec.rb
636
+ - spec/api/account_api_spec.rb
637
+ - spec/api/report_api_spec.rb
636
638
  - spec/api/api_app_api_spec.rb
637
- - spec/api/embedded_api_spec.rb
638
- - spec/api/team_api_spec.rb
639
639
  - spec/api_client_spec.rb
640
640
  - spec/configuration_spec.rb
641
641
  - spec/event_callback_helper_spec.rb