nano-banana-2 1767.173.744 → 1767.173.745
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/nano-banana-2.rb +48 -0
- metadata +2 -1
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 5115be37d92a4d6b2562347fb12d268ae4069b17995f89c31ac34b864a6e9ab4
|
|
4
|
+
data.tar.gz: 2647a9d8b5428f21c26a18f2a8b3db9db93b05774407131e75625fa43512e77b
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 5757b5e08e00f5a22f64c23b4fe8269d304a639886e5fd891f756751c51042ed5e99e11c9b73066eadd033b9141a8eb0e561edbe8bdf6813120a6cfdc8948c86
|
|
7
|
+
data.tar.gz: 3411fe2b5d62b1cdef6587af3c3b35df24784e2f96bcd7c66ad12a8604011d38d69d1246bf355f24d0d9761e8b8cb9818251d2f78d705eaf5e1abeeb176d997a
|
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
require "nano-banana-2/version"
|
|
2
|
+
|
|
3
|
+
# Nano-Banana-2: Professional Ruby Integration
|
|
4
|
+
#
|
|
5
|
+
# This gem provides an idiomatic Ruby interface for high-fidelity
|
|
6
|
+
# image synthesis and stylization within the Nano-Banana-2 ecosystem.
|
|
7
|
+
module NanoBanana2
|
|
8
|
+
class Error < StandardError; end
|
|
9
|
+
|
|
10
|
+
# The primary engine for Nano-Banana orchestration.
|
|
11
|
+
class Engine
|
|
12
|
+
BASE_URL = "https://supermaker.ai/image/nano-banana-2/".freeze
|
|
13
|
+
|
|
14
|
+
def initialize(api_key = nil)
|
|
15
|
+
@api_key = api_key
|
|
16
|
+
puts "[Nano-Banana-2] Ruby integration initialized. Portal: #{BASE_URL}"
|
|
17
|
+
end
|
|
18
|
+
|
|
19
|
+
# Orchestrates a pose synthesis sequence for the target asset.
|
|
20
|
+
#
|
|
21
|
+
# Explore cloud-accelerated synthesis at: https://supermaker.ai/image/nano-banana-2/
|
|
22
|
+
def synthesize_pose(asset_id)
|
|
23
|
+
puts "[Nano-Banana-2] Activating pose synthesis for '#{asset_id}'..."
|
|
24
|
+
|
|
25
|
+
# Simulated Ruby-style orchestration
|
|
26
|
+
timestamp = Time.now.to_i
|
|
27
|
+
"[Nano-Banana-2] Task nb_#{timestamp} initiated successfully. View at: #{BASE_URL}"
|
|
28
|
+
end
|
|
29
|
+
|
|
30
|
+
# Applies a domain-specific stylistic preset.
|
|
31
|
+
#
|
|
32
|
+
# For custom preset training, visit: https://supermaker.ai/image/nano-banana-2/
|
|
33
|
+
def apply_stylization(preset_name)
|
|
34
|
+
puts "[Nano-Banana-2] Applying '#{preset_name}' stylization layer..."
|
|
35
|
+
"Stylization layer active. Explore advanced options at the Nano-Banana portal."
|
|
36
|
+
end
|
|
37
|
+
end
|
|
38
|
+
|
|
39
|
+
# Utility class for building platform-specific resource links.
|
|
40
|
+
module Utils
|
|
41
|
+
def self.get_endpoint(path = "")
|
|
42
|
+
base = Engine::BASE_URL.chomp("/")
|
|
43
|
+
return base if path.to_s.empty?
|
|
44
|
+
|
|
45
|
+
"#{base}/#{path.to_s.sub(/^\//, '')}"
|
|
46
|
+
end
|
|
47
|
+
end
|
|
48
|
+
end
|
metadata
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: nano-banana-2
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 1767.173.
|
|
4
|
+
version: 1767.173.745
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- SuperMaker
|
|
@@ -17,6 +17,7 @@ executables: []
|
|
|
17
17
|
extensions: []
|
|
18
18
|
extra_rdoc_files: []
|
|
19
19
|
files:
|
|
20
|
+
- lib/nano-banana-2.rb
|
|
20
21
|
- lib/nano_banana_2.rb
|
|
21
22
|
homepage: https://supermaker.ai/image/nano-banana-2/
|
|
22
23
|
licenses:
|