runapi-topaz 0.2.7 → 0.2.8
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/README.md +1 -1
- data/lib/runapi/topaz/resources/upscale_image.rb +7 -7
- data/lib/runapi/topaz/resources/upscale_video.rb +7 -7
- metadata +4 -4
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 2bcd3bdb46f5952a56cc20e7acb42224bf6b0bbc949300aa231a28448396ffcd
|
|
4
|
+
data.tar.gz: ca2ef1b974b83a78f8c1c090e0769aadd4614501a1867d9ab6ac6c0555d6f445
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: a520d1f67feae32349ff2283c175089ef5125c96a76f404e641b460f940958dfa70cafa48e46160aac869d2015e076a372446d4a83b5bc075c01fddc4d033452
|
|
7
|
+
data.tar.gz: 0c1db37424d3c29ecb6872044d7c43442ce8e1c631f7e381f3ceb5680b9416ec008a3c93b7217ba13b729f65fe59a92390f56b81f8e8532a2e4e19d3ddd6c619
|
data/README.md
CHANGED
|
@@ -17,19 +17,19 @@ module RunApi
|
|
|
17
17
|
@http = http
|
|
18
18
|
end
|
|
19
19
|
|
|
20
|
-
def run(**params)
|
|
21
|
-
task = create(**params)
|
|
22
|
-
poll_until_complete { get(task.id) }
|
|
20
|
+
def run(options: nil, **params)
|
|
21
|
+
task = create(options: options, **params)
|
|
22
|
+
poll_until_complete { get(task.id, options: options) }
|
|
23
23
|
end
|
|
24
24
|
|
|
25
|
-
def create(**params)
|
|
25
|
+
def create(options: nil, **params)
|
|
26
26
|
params = compact_params(params)
|
|
27
27
|
validate_contract!(CONTRACT["upscale-image"], params)
|
|
28
|
-
request(:post, ENDPOINT, body: params)
|
|
28
|
+
request(:post, ENDPOINT, body: params, options: options)
|
|
29
29
|
end
|
|
30
30
|
|
|
31
|
-
def get(id)
|
|
32
|
-
request(:get, "#{ENDPOINT}/#{id}")
|
|
31
|
+
def get(id, options: nil)
|
|
32
|
+
request(:get, "#{ENDPOINT}/#{id}", options: options)
|
|
33
33
|
end
|
|
34
34
|
end
|
|
35
35
|
end
|
|
@@ -17,19 +17,19 @@ module RunApi
|
|
|
17
17
|
@http = http
|
|
18
18
|
end
|
|
19
19
|
|
|
20
|
-
def run(**params)
|
|
21
|
-
task = create(**params)
|
|
22
|
-
poll_until_complete { get(task.id) }
|
|
20
|
+
def run(options: nil, **params)
|
|
21
|
+
task = create(options: options, **params)
|
|
22
|
+
poll_until_complete { get(task.id, options: options) }
|
|
23
23
|
end
|
|
24
24
|
|
|
25
|
-
def create(**params)
|
|
25
|
+
def create(options: nil, **params)
|
|
26
26
|
params = compact_params(params)
|
|
27
27
|
validate_contract!(CONTRACT["upscale-video"], params)
|
|
28
|
-
request(:post, ENDPOINT, body: params)
|
|
28
|
+
request(:post, ENDPOINT, body: params, options: options)
|
|
29
29
|
end
|
|
30
30
|
|
|
31
|
-
def get(id)
|
|
32
|
-
request(:get, "#{ENDPOINT}/#{id}")
|
|
31
|
+
def get(id, options: nil)
|
|
32
|
+
request(:get, "#{ENDPOINT}/#{id}", options: options)
|
|
33
33
|
end
|
|
34
34
|
end
|
|
35
35
|
end
|
metadata
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: runapi-topaz
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.2.
|
|
4
|
+
version: 0.2.8
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- RunAPI
|
|
@@ -15,14 +15,14 @@ dependencies:
|
|
|
15
15
|
requirements:
|
|
16
16
|
- - "~>"
|
|
17
17
|
- !ruby/object:Gem::Version
|
|
18
|
-
version: 0.
|
|
18
|
+
version: 0.3.0
|
|
19
19
|
type: :runtime
|
|
20
20
|
prerelease: false
|
|
21
21
|
version_requirements: !ruby/object:Gem::Requirement
|
|
22
22
|
requirements:
|
|
23
23
|
- - "~>"
|
|
24
24
|
- !ruby/object:Gem::Version
|
|
25
|
-
version: 0.
|
|
25
|
+
version: 0.3.0
|
|
26
26
|
description: The Topaz Ruby SDK is the language-specific package for Topaz on RunAPI.
|
|
27
27
|
Use this package for image upscale, video upscale, restoration, and production cleanup
|
|
28
28
|
workflows when your application needs request bodies, task status lookup, and consistent
|
|
@@ -67,7 +67,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
|
67
67
|
- !ruby/object:Gem::Version
|
|
68
68
|
version: '0'
|
|
69
69
|
requirements: []
|
|
70
|
-
rubygems_version: 4.0.
|
|
70
|
+
rubygems_version: 4.0.17
|
|
71
71
|
specification_version: 4
|
|
72
72
|
summary: Topaz Ruby SDK for RunAPI
|
|
73
73
|
test_files: []
|