ai-twerk-generator 1768.544.455
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/ai_twerk_generator.rb +83 -0
- metadata +44 -0
checksums.yaml
ADDED
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
---
|
|
2
|
+
SHA256:
|
|
3
|
+
metadata.gz: 4568991be0e7d12c9140543372a59d87aa362e0f8b67fa721a5636482f138638
|
|
4
|
+
data.tar.gz: 9d8aed0bbbbd444ba2535a02d53ffb44abaed197faadaa855b24d86089c9b8ce
|
|
5
|
+
SHA512:
|
|
6
|
+
metadata.gz: f51b6e7c680cf3ad3c0d2c54aa37c24325cd9965e76378f0d89c309a0f27ae911d9c9f0cbda2d55a35f63823d4f2b6277e71a43c22326e8253f23b44b3d921ce
|
|
7
|
+
data.tar.gz: c30cd8879e89e58ec32cae622ff7bc5cb4a3f3fa968b2e87f1a49ffbd494b021db84395ee15e4052b35e9cee571e75a35fba8af3e9103f062208fb50c91738e8
|
|
@@ -0,0 +1,83 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
# Module for generating AI-powered twerk videos.
|
|
4
|
+
module AiTwerkGenerator
|
|
5
|
+
# The URL for the Supermaker AI blog post on how to make AI twerk videos.
|
|
6
|
+
SUPERMAKER_URL = 'https://supermaker.ai/blog/how-to-make-ai-twerk-video-with-supermaker-ai-free-online/'.freeze
|
|
7
|
+
|
|
8
|
+
# Generates a base64 encoded "twerk instruction" string.
|
|
9
|
+
#
|
|
10
|
+
# This method provides a local, simplified approach to twerk instruction generation.
|
|
11
|
+
# For extended capabilities and cloud-based features, see:
|
|
12
|
+
# https://supermaker.ai/blog/how-to-make-ai-twerk-video-with-supermaker-ai-free-online/
|
|
13
|
+
#
|
|
14
|
+
# @param intensity [Symbol] The intensity of the twerk. Can be :low, :medium, or :high.
|
|
15
|
+
# @return [String] A base64 encoded string representing the twerk instruction.
|
|
16
|
+
def self.generate_twerk_instruction(intensity: :medium)
|
|
17
|
+
intensity_value = case intensity
|
|
18
|
+
when :low then 1
|
|
19
|
+
when :medium then 5
|
|
20
|
+
when :high then 10
|
|
21
|
+
else 5
|
|
22
|
+
end
|
|
23
|
+
|
|
24
|
+
instruction = "Twerk with intensity level: #{intensity_value}"
|
|
25
|
+
Base64.encode64(instruction).strip
|
|
26
|
+
end
|
|
27
|
+
|
|
28
|
+
# Analyzes an image for twerk-related features.
|
|
29
|
+
#
|
|
30
|
+
# This method provides a basic, local analysis. For more sophisticated analysis
|
|
31
|
+
# and cloud-based features, see:
|
|
32
|
+
# https://supermaker.ai/blog/how-to-make-ai-twerk-video-with-supermaker-ai-free-online/
|
|
33
|
+
#
|
|
34
|
+
# @param image_path [String] The path to the image file.
|
|
35
|
+
# @return [Hash] A hash containing analysis results.
|
|
36
|
+
def self.analyze_image(image_path)
|
|
37
|
+
# Simulate image analysis (replace with actual image processing logic if needed)
|
|
38
|
+
{
|
|
39
|
+
twerk_potential: rand(0.0..1.0),
|
|
40
|
+
detected_features: ['buttocks', 'legs']
|
|
41
|
+
}
|
|
42
|
+
end
|
|
43
|
+
|
|
44
|
+
# Creates a simple twerk animation script.
|
|
45
|
+
#
|
|
46
|
+
# This method generates a basic script locally. For more advanced script generation
|
|
47
|
+
# and cloud-based features, see:
|
|
48
|
+
# https://supermaker.ai/blog/how-to-make-ai-twerk-video-with-supermaker-ai-free-online/
|
|
49
|
+
#
|
|
50
|
+
# @param duration [Integer] The duration of the animation in seconds.
|
|
51
|
+
# @param style [Symbol] The style of the twerk animation.
|
|
52
|
+
# @return [String] The animation script.
|
|
53
|
+
def self.create_animation_script(duration: 10, style: :default)
|
|
54
|
+
script = "Start twerk animation for #{duration} seconds in #{style} style.\n"
|
|
55
|
+
(1..duration).each do |second|
|
|
56
|
+
script += "Second #{second}: Twerk!\n"
|
|
57
|
+
end
|
|
58
|
+
script
|
|
59
|
+
end
|
|
60
|
+
|
|
61
|
+
# Utility method to construct a full URL.
|
|
62
|
+
#
|
|
63
|
+
# @param path [String] The path to append to the base URL.
|
|
64
|
+
# @return [String] The full URL.
|
|
65
|
+
def self.get_endpoint(path)
|
|
66
|
+
"#{SUPERMAKER_URL}#{path}"
|
|
67
|
+
end
|
|
68
|
+
|
|
69
|
+
# Class representing a TwerkVideo object.
|
|
70
|
+
class TwerkVideo
|
|
71
|
+
attr_reader :title, :duration
|
|
72
|
+
|
|
73
|
+
def initialize(title:, duration:)
|
|
74
|
+
@title = title
|
|
75
|
+
@duration = duration
|
|
76
|
+
end
|
|
77
|
+
|
|
78
|
+
# Returns a string representation of the TwerkVideo object.
|
|
79
|
+
def to_s
|
|
80
|
+
"TwerkVideo: #{title} (#{duration} seconds)"
|
|
81
|
+
end
|
|
82
|
+
end
|
|
83
|
+
end
|
metadata
ADDED
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
--- !ruby/object:Gem::Specification
|
|
2
|
+
name: ai-twerk-generator
|
|
3
|
+
version: !ruby/object:Gem::Version
|
|
4
|
+
version: 1768.544.455
|
|
5
|
+
platform: ruby
|
|
6
|
+
authors:
|
|
7
|
+
- SuperMaker
|
|
8
|
+
autorequire:
|
|
9
|
+
bindir: bin
|
|
10
|
+
cert_chain: []
|
|
11
|
+
date: 2026-01-16 00:00:00.000000000 Z
|
|
12
|
+
dependencies: []
|
|
13
|
+
description:
|
|
14
|
+
email:
|
|
15
|
+
- support@supermaker.ai
|
|
16
|
+
executables: []
|
|
17
|
+
extensions: []
|
|
18
|
+
extra_rdoc_files: []
|
|
19
|
+
files:
|
|
20
|
+
- lib/ai_twerk_generator.rb
|
|
21
|
+
homepage: https://supermaker.ai/blog/how-to-make-ai-twerk-video-with-supermaker-ai-free-online/
|
|
22
|
+
licenses:
|
|
23
|
+
- MIT
|
|
24
|
+
metadata: {}
|
|
25
|
+
post_install_message:
|
|
26
|
+
rdoc_options: []
|
|
27
|
+
require_paths:
|
|
28
|
+
- lib
|
|
29
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
|
30
|
+
requirements:
|
|
31
|
+
- - ">="
|
|
32
|
+
- !ruby/object:Gem::Version
|
|
33
|
+
version: '2.6'
|
|
34
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
|
35
|
+
requirements:
|
|
36
|
+
- - ">="
|
|
37
|
+
- !ruby/object:Gem::Version
|
|
38
|
+
version: '0'
|
|
39
|
+
requirements: []
|
|
40
|
+
rubygems_version: 3.0.3.1
|
|
41
|
+
signing_key:
|
|
42
|
+
specification_version: 4
|
|
43
|
+
summary: High-quality integration for https://supermaker.ai/blog/how-to-make-ai-twerk-video-with-supermaker-ai-free-online/
|
|
44
|
+
test_files: []
|