convert_api 1.2.1 → 1.3.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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: ea28c6a952160cc868c1cb6096caaf70b5abc1a6fb0c3f70dbac395e51c1007a
4
- data.tar.gz: ac977fc1f46e0a73a1f0f8ae4f3ca8e8b86fccd1e9233eee9c86848d56639385
3
+ metadata.gz: 9824a625f3ec5b42ce47ea1730fca1ee3b7c93328b80dfffb14837c66462e881
4
+ data.tar.gz: 3202cc2beb89b94779bf1db6b10208c9b49a3882060139d7f3c6cdd11bce7616
5
5
  SHA512:
6
- metadata.gz: d21d85dea222a35c40f42fcc8a215b55de8c02df961820e77b2b010f25f1f4899ee68e105ec3684fa0aa499f74db551c1f33056c4e5f96c9c3543ac70ba02ec6
7
- data.tar.gz: '0893b1517f36116d60631e1707f6af23cdc838167754c9864e6997bcd0d7c418487916191eedd144a9d53a2e5ae98348eb43acfcffb84f45c15a3fc2eb5b08e4'
6
+ metadata.gz: 5029ec5772731a0fc7c738a0eb7be491c7edae9d8599380b1ca24a71e3106d793b5d2d45c2a73102cd2bbb2fafb755b0caba5a30bf88901c11cecb59a97336af
7
+ data.tar.gz: '09038006737a8e5ad3e47da2e818623de96ac0e42ffb208bbc5e74434258f213c52b7c143daa4c88011e16c1a8126fd889d268666a24eba3b9be1fbe3254000b'
@@ -13,10 +13,9 @@ module ConvertApi
13
13
  @base_uri = URI('https://v2.convertapi.com/')
14
14
  @connect_timeout = 5
15
15
  @read_timeout = 60
16
- @conversion_timeout = 180
17
16
  @conversion_timeout_delta = 10
18
- @upload_timeout = 600
19
- @download_timeout = 600
17
+ @upload_timeout = 1800
18
+ @download_timeout = 1800
20
19
  end
21
20
  end
22
21
  end
@@ -14,13 +14,13 @@ module ConvertApi
14
14
  )
15
15
 
16
16
  from_format = @from_format || detect_format(params)
17
- read_timeout = @conversion_timeout + config.conversion_timeout_delta
17
+ read_timeout = @conversion_timeout + config.conversion_timeout_delta if @conversion_timeout
18
18
  converter = params[:converter] ? "/converter/#{params[:converter]}" : ''
19
19
 
20
20
  response = ConvertApi.client.post(
21
21
  "convert/#{from_format}/to/#{@to_format}#{converter}",
22
22
  params,
23
- read_timeout: read_timeout
23
+ read_timeout: read_timeout,
24
24
  )
25
25
 
26
26
  Result.new(response)
@@ -73,4 +73,4 @@ module ConvertApi
73
73
  ConvertApi.config
74
74
  end
75
75
  end
76
- end
76
+ end
@@ -1,3 +1,3 @@
1
1
  module ConvertApi
2
- VERSION = '1.2.1'
2
+ VERSION = '1.3.0'
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: convert_api
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.2.1
4
+ version: 1.3.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Tomas Rutkauskas
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2020-08-23 00:00:00.000000000 Z
11
+ date: 2020-08-30 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler