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 +4 -4
- data/NOTICE.txt +3 -0
- data/README.md +2 -2
- data/lib/idr_cloud_client/version.rb +1 -1
- data/lib/idr_cloud_client.rb +8 -6
- metadata +8 -7
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 0364e9d4ae45845d3f7d96ac7a45225561f317a6114d6514d6ffcf307350c963
|
4
|
+
data.tar.gz: 8ab57ff6ad78bb6e37c03ffa88b1cb8c6125047aedb6adca58a12107e9ed062b
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 1abd367b05e2288f6032667ac24137d9e4a8e341d9e53fc30005f6ef003a116662c580bde3f30e8ac6c13ed793abc983fe6c387989e4f5cb0e47ec98c7c10209
|
7
|
+
data.tar.gz: 4744efe8a7e1a7a725da7fe6c80763fb66a5bd0f228714b81898e3e4727d89af70bd122e7905121d5b99c9e53a7926bfeb557a2e4e930f28c791907c37a76784
|
data/NOTICE.txt
ADDED
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.
|
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
|
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.
|
data/lib/idr_cloud_client.rb
CHANGED
@@ -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.
|
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
|
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:
|
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
|
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:
|
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:
|
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.
|
90
|
+
rubygems_version: 3.1.6
|
90
91
|
signing_key:
|
91
92
|
specification_version: 4
|
92
93
|
summary: Ruby API for IDRSolutions Microservices
|