runapi-infinitetalk 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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: e89cac6baa5f9d175c9fd56314131d2af51d6487c9a9367e61938f3627f003c8
4
- data.tar.gz: fb5b1c2e61201b5a9d6459cfb361c7f967d9b35cd9264b9b37eab0692acc250c
3
+ metadata.gz: 2762602bf52d1460b53903c342ecf66359040bf1c572fcf7c0cac4a4addcad70
4
+ data.tar.gz: 58acafc24918c386aead41480af5834ad4963079054a32f2b17101b3da623af6
5
5
  SHA512:
6
- metadata.gz: 7e77fd019642d0bfb19b9646134df5f273d6cc6dfde150d98d8d7fb5ea50ae3b64844031145ecfb9e9c8e3db4d78ef37795ec2c1e9db8a13cd55fb4446b0c539
7
- data.tar.gz: 53d70b3746b85b30ff80863c5c50fcc615831ad0f0dd6fca4846a0db9d2f203d26e2d8152c09f58eb21d9b29bd80b9ce0d8b70fc3b72e6c6fbb91916283fcd54
6
+ metadata.gz: e547082c34b9978a3cf8a46aceda758a44237c3a7f857fb0557334d9c3be6643313e8e2520f05649f3878a39f76bf17e14ead26bf6ae6f92b57bec3d1b538738
7
+ data.tar.gz: bfecc0081c590786e5e0c16c3e78902d51bce3f977eced48ce8dc670c6e46899c6a16d180edb14658333f89f9530f71c05665a4828f3be58a7d61be1bf1a0b54
data/README.md CHANGED
@@ -13,7 +13,7 @@ gem install runapi-infinitetalk
13
13
  ## Quick start
14
14
 
15
15
  ```ruby
16
- require "runapi-infinitetalk"
16
+ require "runapi/infinitetalk"
17
17
 
18
18
  client = RunApi::Infinitalk::Client.new
19
19
  task = client.audio_to_video.create(
@@ -18,19 +18,19 @@ module RunApi
18
18
  @http = http
19
19
  end
20
20
 
21
- def run(**params)
22
- task = create(**params)
23
- poll_until_complete { get(task.id) }
21
+ def run(options: nil, **params)
22
+ task = create(options: options, **params)
23
+ poll_until_complete { get(task.id, options: options) }
24
24
  end
25
25
 
26
- def create(**params)
26
+ def create(options: nil, **params)
27
27
  params = compact_params(params)
28
28
  validate_params!(params)
29
- request(:post, ENDPOINT, body: params)
29
+ request(:post, ENDPOINT, body: params, options: options)
30
30
  end
31
31
 
32
- def get(id)
33
- request(:get, "#{ENDPOINT}/#{id}")
32
+ def get(id, options: nil)
33
+ request(:get, "#{ENDPOINT}/#{id}", options: options)
34
34
  end
35
35
 
36
36
  private
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: runapi-infinitetalk
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.7
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.2.7
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.2.7
25
+ version: 0.3.0
26
26
  description: The InfiniteTalk Ruby SDK is the language-specific package for InfiniteTalk
27
27
  on RunAPI. Use this package for video generation, animation, and video editing workflows
28
28
  when 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.10
69
+ rubygems_version: 4.0.17
70
70
  specification_version: 4
71
71
  summary: InfiniteTalk Ruby SDK for RunAPI
72
72
  test_files: []