runapi-suno 0.4.0 → 0.4.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/lib/runapi/suno/validators.rb +4 -4
- metadata +3 -3
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: e65122631465baaaddd8d938753ab7d473d9000bbe7aa5e653ba770e8a676cde
|
|
4
|
+
data.tar.gz: 0ea31a10137215a5796cd12e649dee3baf763c25bd76c2c0cb674b55e391a128
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: d371b4e438bf4070ba153f146bcaf8944b7c437f1b16786c46e08621c7764e35265d817ac758df28bb998b6b6644fbd742da5e62b5d413c3e034ef1074a1ef4a
|
|
7
|
+
data.tar.gz: 6fe37a3983f612f59dba64a4a7b9b51c061d2704079a51275765a0fa57d78a947f173153510fde72e8249b12cbb1cb3cb5d8e665e990252c78ee051fa108ae79
|
|
@@ -82,9 +82,9 @@ module RunApi
|
|
|
82
82
|
end
|
|
83
83
|
|
|
84
84
|
duration = end_time - start_time
|
|
85
|
-
return if duration
|
|
85
|
+
return if duration + 1e-9 >= 10
|
|
86
86
|
|
|
87
|
-
raise Core::ValidationError, "replacement duration must be
|
|
87
|
+
raise Core::ValidationError, "replacement duration must be at least 10 seconds"
|
|
88
88
|
end
|
|
89
89
|
|
|
90
90
|
def validate_create_mashup!(params, resource)
|
|
@@ -169,9 +169,9 @@ module RunApi
|
|
|
169
169
|
|
|
170
170
|
def replace_section_time!(params, resource, key)
|
|
171
171
|
value = param(resource, params, key)
|
|
172
|
-
return value.to_f if value.is_a?(Numeric)
|
|
172
|
+
return value.to_f if value.is_a?(Numeric) && value.finite?
|
|
173
173
|
|
|
174
|
-
raise Core::ValidationError, "#{key} must be a number"
|
|
174
|
+
raise Core::ValidationError, "#{key} must be a finite number"
|
|
175
175
|
end
|
|
176
176
|
|
|
177
177
|
def require_all!(resource, params, *keys)
|
metadata
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: runapi-suno
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.4.
|
|
4
|
+
version: 0.4.1
|
|
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.3.
|
|
18
|
+
version: 0.3.5
|
|
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.3.
|
|
25
|
+
version: 0.3.5
|
|
26
26
|
description: The Suno Ruby SDK is the language-specific package for Suno on RunAPI.
|
|
27
27
|
Use this package for song generation, lyrics, vocals, extension, and audio transformation
|
|
28
28
|
workflows when your application needs request bodies, task status lookup, and consistent
|