idr_cloud_client 1.0.5 → 2.0.1

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: b86eadd2984214a20e5e921b803625ea8ddd613a8ff3a863fc58973008e75f71
4
- data.tar.gz: 8a2e3cf53c49dbeff654bf77c64687f31304228b39e90544dc055184711bd416
3
+ metadata.gz: 0364e9d4ae45845d3f7d96ac7a45225561f317a6114d6514d6ffcf307350c963
4
+ data.tar.gz: 8ab57ff6ad78bb6e37c03ffa88b1cb8c6125047aedb6adca58a12107e9ed062b
5
5
  SHA512:
6
- metadata.gz: 952a230decb1094979cdade0a67f85309c841d41bf9c2bece3d4270528d4f556bf69a39418a8c4acfd5e0684570585e8f9c5f5b5009d02edcdff9d22a0d6c97f
7
- data.tar.gz: 99bcac0b96d42db05a42bea8873604785d993b33841a009e6e589ffe3ca49c7e8cb0aadd73bf835fa9b223a75e51a4508bb72ccb1b8263972fd3a7b43b39d083
6
+ metadata.gz: 1abd367b05e2288f6032667ac24137d9e4a8e341d9e53fc30005f6ef003a116662c580bde3f30e8ac6c13ed793abc983fe6c387989e4f5cb0e47ec98c7c10209
7
+ data.tar.gz: 4744efe8a7e1a7a725da7fe6c80763fb66a5bd0f228714b81898e3e4727d89af70bd122e7905121d5b99c9e53a7926bfeb557a2e4e930f28c791907c37a76784
data/NOTICE.txt ADDED
@@ -0,0 +1,3 @@
1
+ IDRSolutions Ruby Client
2
+
3
+ Copyright 2020 - 2024 IDRsolutions
data/README.md CHANGED
@@ -66,7 +66,7 @@ Full usage for connecting to FormVu can be found [here](https://support.idrsolut
66
66
 
67
67
  Found a bug, or have a suggestion / improvement? Let us know through the Issues page.
68
68
 
69
- Got questions? You can contact us [here](https://idrsolutions.atlassian.net/servicedesk/customer/portal/8).
69
+ Got questions? You can contact us [here](https://idrsolutions.my.site.com/s/request).
70
70
 
71
71
  -----
72
72
 
@@ -77,7 +77,7 @@ Short version: Don't be an awful person.
77
77
  Longer version: Everyone interacting in the BuildVu Ruby Client project's codebases, issue trackers, chat rooms and mailing lists is expected to follow the [code of conduct](CODE_OF_CONDUCT.md).
78
78
 
79
79
  -----
80
- Copyright 2020 IDRsolutions
80
+ Copyright 2024 IDRsolutions
81
81
 
82
82
  Licensed under the Apache License, Version 2.0 (the "License");
83
83
  you may not use this file except in compliance with the License.
@@ -1,3 +1,3 @@
1
1
  class IDRCloudClient
2
- VERSION = "1.0.5"
2
+ VERSION = "2.0.1"
3
3
  end
@@ -1,6 +1,4 @@
1
1
  #--
2
- # Copyright 2018 IDRsolutions
3
- #
4
2
  # Licensed under the Apache License, Version 2.0 (the "License");
5
3
  # you may not use this file except in compliance with the License.
6
4
  #
@@ -15,7 +13,7 @@
15
13
  # limitations under the License.
16
14
  #++
17
15
  #
18
- # Author:: IDRsolutions (mailto:support@idrsolutions.zendesk.com)
16
+ # Author:: IDRsolutions (mailto:support@idrsolutions.com)
19
17
  # Copyright:: IDRsolutions
20
18
  # License:: Apache 2.0
21
19
 
@@ -41,9 +39,9 @@ class IDRCloudClient
41
39
  # Constructor, setup the converter details
42
40
  # Params:
43
41
  # +url+:: string, the URL of the web service.
44
- # +conversion_timeout+:: int, (optional) the time to wait (in seconds) before timing out. Set to 30 by default.
42
+ # +conversion_timeout+:: int, (optional) the time to wait (in seconds) before timing out. Values <= 0 are treated as infinite. Set to -1 by default.
45
43
  # +auth+:: array, (optional) the username and password to use for HTTP Authentication. Set to nil by default
46
- def initialize(url, conversion_timeout: 30, auth: nil)
44
+ def initialize(url, conversion_timeout: -1, auth: nil)
47
45
  @base_endpoint = url
48
46
  @endpoint = @base_endpoint
49
47
  @convert_timeout = conversion_timeout
@@ -62,8 +60,12 @@ class IDRCloudClient
62
60
  uuid = upload params
63
61
 
64
62
  response = nil
63
+ poll_limit = @convert_timeout;
64
+ if poll_limit <= 0
65
+ poll_limit = Float::INFINITY
66
+ end
65
67
  # check conversion status once every second until complete or error / timeout
66
- (0..@convert_timeout).each do |i|
68
+ (0..poll_limit).each do |i|
67
69
  sleep 1
68
70
  response = poll_status uuid
69
71
 
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: idr_cloud_client
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.5
4
+ version: 2.0.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - IDRsolutions
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2020-12-14 00:00:00.000000000 Z
11
+ date: 2024-12-17 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: faraday
@@ -28,20 +28,20 @@ dependencies:
28
28
  name: json
29
29
  requirement: !ruby/object:Gem::Requirement
30
30
  requirements:
31
- - - ">="
31
+ - - "~>"
32
32
  - !ruby/object:Gem::Version
33
33
  version: '2.1'
34
- - - "~>"
34
+ - - ">="
35
35
  - !ruby/object:Gem::Version
36
36
  version: '2.1'
37
37
  type: :runtime
38
38
  prerelease: false
39
39
  version_requirements: !ruby/object:Gem::Requirement
40
40
  requirements:
41
- - - ">="
41
+ - - "~>"
42
42
  - !ruby/object:Gem::Version
43
43
  version: '2.1'
44
- - - "~>"
44
+ - - ">="
45
45
  - !ruby/object:Gem::Version
46
46
  version: '2.1'
47
47
  description: "Convert PDF to HTML5, SVG, or image with Ruby, using the IDR Cloud Client
@@ -61,6 +61,7 @@ files:
61
61
  - CODE_OF_CONDUCT.md
62
62
  - Gemfile
63
63
  - LICENSE.txt
64
+ - NOTICE.txt
64
65
  - README.md
65
66
  - example_buildvu_usage.rb
66
67
  - example_jpedal_usage.rb
@@ -86,7 +87,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
86
87
  - !ruby/object:Gem::Version
87
88
  version: '0'
88
89
  requirements: []
89
- rubygems_version: 3.0.8
90
+ rubygems_version: 3.1.6
90
91
  signing_key:
91
92
  specification_version: 4
92
93
  summary: Ruby API for IDRSolutions Microservices