runapi-midjourney 0.3.2 → 0.4.0

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: 77a8e2fb557ea2d45b0f32d27579d3f794490c961f3f855cac78bbb14d69185b
4
- data.tar.gz: e3aebc3ede878a496e61bf80f3865dd8467b819a7a240d4e62e5042864c179c7
3
+ metadata.gz: 6f707698f339954864ee5c8686e693b010f1157cd76d4bf3441a00c1d1296e3d
4
+ data.tar.gz: 4684242173bed806c235e86906de58d5bb8cde9870fb5e211586140eeba1ef66
5
5
  SHA512:
6
- metadata.gz: 50b78de8807d0ba7788c892c86035e06a47d4a69cab78418840b2849aed096e5c3b5d4a4e5e4293b42db648be51f3c2b48c3bcb14cc2f920e4b57ade3b29bda3
7
- data.tar.gz: 6cc287d45341f7ff08819bc4008868a57d47033121b6ba5f16f99e11484c11b89f9577f383df956939736c615ea2425d9ce152e0d9d427f9a16105937822505e
6
+ metadata.gz: 3b1c3949876aeed53bc97e8a98e824cec3a20a2f3de7ab6f950e5a2741cbd675ae9f88675a3d8be85e7bae1589097d2fff813e28244e71bbb55b61a3abb65805
7
+ data.tar.gz: 6d8b735ec710035f7bfeb62f9966377c7ee360b0f603d1f61b294d73ceab1e6cb78511974e300dd039032c4205c63e55caa0b1638c0c52f4d7010e65f939cb09
@@ -15,7 +15,13 @@ module RunApi
15
15
  def run(options: nil, **params)
16
16
  params = compact_params(params)
17
17
  validate_contract!(CONTRACT["get-seed"], params)
18
- request(:post, ENDPOINT, body: params, options: options)
18
+ run_hybrid(ENDPOINT, body: params, options: options, response_class: RESPONSE_CLASS)
19
+ end
20
+
21
+ def subscribe(options: nil, **params)
22
+ params = compact_params(params)
23
+ validate_contract!(CONTRACT["get-seed"], params)
24
+ subscribe_hybrid(ENDPOINT, body: params, options: options, response_class: RESPONSE_CLASS)
19
25
  end
20
26
  end
21
27
  end
@@ -15,7 +15,13 @@ module RunApi
15
15
  def run(options: nil, **params)
16
16
  params = compact_params(params)
17
17
  validate_contract!(CONTRACT["image-to-prompt"], params)
18
- request(:post, ENDPOINT, body: params, options: options)
18
+ run_hybrid(ENDPOINT, body: params, options: options, response_class: RESPONSE_CLASS)
19
+ end
20
+
21
+ def subscribe(options: nil, **params)
22
+ params = compact_params(params)
23
+ validate_contract!(CONTRACT["image-to-prompt"], params)
24
+ subscribe_hybrid(ENDPOINT, body: params, options: options, response_class: RESPONSE_CLASS)
19
25
  end
20
26
  end
21
27
  end
@@ -15,7 +15,13 @@ module RunApi
15
15
  def run(options: nil, **params)
16
16
  params = compact_params(params)
17
17
  validate_contract!(CONTRACT["shorten-prompt"], params)
18
- request(:post, ENDPOINT, body: params, options: options)
18
+ run_hybrid(ENDPOINT, body: params, options: options, response_class: RESPONSE_CLASS)
19
+ end
20
+
21
+ def subscribe(options: nil, **params)
22
+ params = compact_params(params)
23
+ validate_contract!(CONTRACT["shorten-prompt"], params)
24
+ subscribe_hybrid(ENDPOINT, body: params, options: options, response_class: RESPONSE_CLASS)
19
25
  end
20
26
  end
21
27
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: runapi-midjourney
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.3.2
4
+ version: 0.4.0
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.4.0
18
+ version: 0.5.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.4.0
25
+ version: 0.5.0
26
26
  description: Use `runapi-midjourney` for Midjourney image generation, editing, image-to-video,
27
27
  first-video extension, image-to-prompt, prompt shortening, and seed lookup in Ruby
28
28
  applications and workers.
@@ -71,7 +71,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
71
71
  - !ruby/object:Gem::Version
72
72
  version: '0'
73
73
  requirements: []
74
- rubygems_version: 4.0.10
74
+ rubygems_version: 4.0.17
75
75
  specification_version: 4
76
76
  summary: Midjourney Ruby SDK for RunAPI
77
77
  test_files: []