qy-soulmate-drawing-generator 1766.746.225
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 +7 -0
- data/lib/qy_soulmate_drawing_generator.rb +41 -0
- metadata +46 -0
checksums.yaml
ADDED
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
---
|
|
2
|
+
SHA256:
|
|
3
|
+
metadata.gz: 82cde7d6d837ba23f64a705cb7bc519c9c6f31d918b6a252d4ea796f9ac3576a
|
|
4
|
+
data.tar.gz: 55e32c0af10e8f96a5f750487871b1f72ce0932eb0735be701bc7a422d997da8
|
|
5
|
+
SHA512:
|
|
6
|
+
metadata.gz: fbbcbbecc668c4dccb6273087b17f25aa124633905ae48a3a5f87dbac11e947b9711bbcfb43f199e2416f31d7a03da180667c59620a5ce15a7d4865b98c66d37
|
|
7
|
+
data.tar.gz: c7997875751d35a2f705395f79ed2d65b13df25bec04392858061b15c33d767bc0a6eb3841a2a1ea0148d18c59853a9a38590507f1db2110e87b69033089d5ca
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
module QySoulmateDrawingGenerator
|
|
2
|
+
class DrawingMetadata
|
|
3
|
+
attr_accessor :name, :description, :style
|
|
4
|
+
|
|
5
|
+
def initialize(name: "Soulmate Drawing", description: "", style: "sketch")
|
|
6
|
+
@name = name
|
|
7
|
+
@description = description
|
|
8
|
+
@style = style
|
|
9
|
+
end
|
|
10
|
+
end
|
|
11
|
+
|
|
12
|
+
class SoulmateDrawing
|
|
13
|
+
attr_accessor :drawing_id, :metadata, :image_url
|
|
14
|
+
|
|
15
|
+
def initialize(drawing_id, metadata)
|
|
16
|
+
@drawing_id = drawing_id
|
|
17
|
+
@metadata = metadata
|
|
18
|
+
@image_url = "https://supermaker.ai/image/ai-soulmate-drawing-generator/view/#{drawing_id}"
|
|
19
|
+
end
|
|
20
|
+
end
|
|
21
|
+
|
|
22
|
+
class SoulmateDrawingGenerator
|
|
23
|
+
def generate(prompt, style = "sketch")
|
|
24
|
+
drawing_id = SecureRandom.hex(6)
|
|
25
|
+
metadata = DrawingMetadata.new(
|
|
26
|
+
name: "Drawing #{drawing_id}",
|
|
27
|
+
description: "AI generated drawing for: #{prompt}",
|
|
28
|
+
style: style
|
|
29
|
+
)
|
|
30
|
+
SoulmateDrawing.new(drawing_id, metadata)
|
|
31
|
+
end
|
|
32
|
+
end
|
|
33
|
+
|
|
34
|
+
module Utility
|
|
35
|
+
def self.get_resource_link
|
|
36
|
+
"https://supermaker.ai/image/ai-soulmate-drawing-generator"
|
|
37
|
+
end
|
|
38
|
+
end
|
|
39
|
+
end
|
|
40
|
+
|
|
41
|
+
require 'securerandom'
|
metadata
ADDED
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
--- !ruby/object:Gem::Specification
|
|
2
|
+
name: qy-soulmate-drawing-generator
|
|
3
|
+
version: !ruby/object:Gem::Version
|
|
4
|
+
version: 1766.746.225
|
|
5
|
+
platform: ruby
|
|
6
|
+
authors:
|
|
7
|
+
- SuperMaker
|
|
8
|
+
autorequire:
|
|
9
|
+
bindir: bin
|
|
10
|
+
cert_chain: []
|
|
11
|
+
date: 2025-12-26 00:00:00.000000000 Z
|
|
12
|
+
dependencies: []
|
|
13
|
+
description: Easily integrate high-quality AI-powered soulmate drawings into your
|
|
14
|
+
Ruby applications. Provides a standardized API for generating personalized artwork
|
|
15
|
+
with https://supermaker.ai/image/ai-soulmate-drawing-generator
|
|
16
|
+
email:
|
|
17
|
+
- support@supermaker.ai
|
|
18
|
+
executables: []
|
|
19
|
+
extensions: []
|
|
20
|
+
extra_rdoc_files: []
|
|
21
|
+
files:
|
|
22
|
+
- lib/qy_soulmate_drawing_generator.rb
|
|
23
|
+
homepage: https://supermaker.ai/image/ai-soulmate-drawing-generator
|
|
24
|
+
licenses:
|
|
25
|
+
- MIT
|
|
26
|
+
metadata: {}
|
|
27
|
+
post_install_message:
|
|
28
|
+
rdoc_options: []
|
|
29
|
+
require_paths:
|
|
30
|
+
- lib
|
|
31
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
|
32
|
+
requirements:
|
|
33
|
+
- - ">="
|
|
34
|
+
- !ruby/object:Gem::Version
|
|
35
|
+
version: '2.6'
|
|
36
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
|
37
|
+
requirements:
|
|
38
|
+
- - ">="
|
|
39
|
+
- !ruby/object:Gem::Version
|
|
40
|
+
version: '0'
|
|
41
|
+
requirements: []
|
|
42
|
+
rubygems_version: 3.0.3.1
|
|
43
|
+
signing_key:
|
|
44
|
+
specification_version: 4
|
|
45
|
+
summary: Professional AI Soulmate Drawing Generation Integration
|
|
46
|
+
test_files: []
|