runapi-luma 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/luma/resources/modify_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: 6f3a9935337054660c49221757d58ca7955e6a8bc84c22d022b49ab785e4a6db
|
|
4
|
+
data.tar.gz: 5f9beacc2172af016a55c3d3db21b9da716f090a8c85e819d0c76de7682aefb4
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 447f1f970668a50728f5ab16fc4997a5974e7190c5c3370a088b113a03cf3d4cde6e4a4b2846f63fb6828003230768a21e269712a4a4ae21ca4417b3c8091e0c
|
|
7
|
+
data.tar.gz: 64a9e4489d0e3e55e6de84c609e6e1f3773998ccd39b6b37f624f5ba67c8006cbd8ed485e1df99bea0adcfe6582eeec5378e15bbca9c08219b9e75668a31b546
|
data/README.md
CHANGED
|
@@ -20,27 +20,27 @@ module RunApi
|
|
|
20
20
|
#
|
|
21
21
|
# @param params [Hash] modification parameters
|
|
22
22
|
# @return [RunApi::Luma::Types::CompletedModifyVideoResponse] completed task with videos
|
|
23
|
-
def run(**params)
|
|
24
|
-
task = create(**params)
|
|
25
|
-
poll_until_complete { get(task.id) }
|
|
23
|
+
def run(options: nil, **params)
|
|
24
|
+
task = create(options: options, **params)
|
|
25
|
+
poll_until_complete { get(task.id, options: options) }
|
|
26
26
|
end
|
|
27
27
|
|
|
28
28
|
# Start a video modification task.
|
|
29
29
|
#
|
|
30
30
|
# @param params [Hash] modification parameters
|
|
31
31
|
# @return [RunApi::Luma::Types::ModifyVideoResponse] task creation result with id
|
|
32
|
-
def create(**params)
|
|
32
|
+
def create(options: nil, **params)
|
|
33
33
|
params = compact_params(params)
|
|
34
34
|
validate_contract!(CONTRACT["modify-video"], params)
|
|
35
|
-
request(:post, ENDPOINT, body: params)
|
|
35
|
+
request(:post, ENDPOINT, body: params, options: options)
|
|
36
36
|
end
|
|
37
37
|
|
|
38
38
|
# Get video modification task status by task ID.
|
|
39
39
|
#
|
|
40
40
|
# @param id [String] task ID
|
|
41
41
|
# @return [RunApi::Luma::Types::ModifyVideoResponse] current task status
|
|
42
|
-
def get(id)
|
|
43
|
-
request(:get, "#{ENDPOINT}/#{id}")
|
|
42
|
+
def get(id, options: nil)
|
|
43
|
+
request(:get, "#{ENDPOINT}/#{id}", options: options)
|
|
44
44
|
end
|
|
45
45
|
end
|
|
46
46
|
end
|
metadata
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: runapi-luma
|
|
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 Luma Ruby SDK is the language-specific package for Luma on RunAPI.
|
|
27
27
|
Use this package for video generation, animation, and video editing workflows when
|
|
28
28
|
your application needs request bodies, task status lookup, and consistent RunAPI
|
|
@@ -66,7 +66,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
|
66
66
|
- !ruby/object:Gem::Version
|
|
67
67
|
version: '0'
|
|
68
68
|
requirements: []
|
|
69
|
-
rubygems_version: 4.0.
|
|
69
|
+
rubygems_version: 4.0.17
|
|
70
70
|
specification_version: 4
|
|
71
71
|
summary: Luma API Ruby SDK for RunAPI
|
|
72
72
|
test_files: []
|