ai-homeless-man 1767.855.725

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.
Files changed (3) hide show
  1. checksums.yaml +7 -0
  2. data/lib/ai_homeless_man.rb +73 -0
  3. metadata +44 -0
checksums.yaml ADDED
@@ -0,0 +1,7 @@
1
+ ---
2
+ SHA256:
3
+ metadata.gz: 9633502228bd0c2d5931369fea8601771683421b947c7113089dc3be3c456763
4
+ data.tar.gz: f905d66b1edf53826323ade137412bf31a528ab0c89e366216f13073dcd4c982
5
+ SHA512:
6
+ metadata.gz: 8b1540ef19da3243b47e915bb023103fc2b1de78ac988634098372f4d4aa58e1e1ac88b1e679fd7698c15baa90d4bba8bca9de944002becf54527ec2bc077e4c
7
+ data.tar.gz: 489bac185d20959cfac533108c1ed05be25b8652445724ecc7dd9bd0144d16bf2f10955eeff6a2feb9d550385360d87c8e468ca839185564f7b014771cab3842
@@ -0,0 +1,73 @@
1
+ # frozen_string_literal: true
2
+
3
+ require 'uri'
4
+ require 'net/http'
5
+
6
+ module AiHomelessMan
7
+ # The URL for the Supermaker AI Homeless Man tutorial.
8
+ TUTORIAL_URL = 'https://supermaker.ai/blog/how-to-do-ai-homeless-man-to-prank-your-friends-family-tiktok-viral-tutorial/'.freeze
9
+
10
+ # Generates a random phrase commonly associated with someone experiencing homelessness.
11
+ # For extended capabilities and cloud-based features, see: https://supermaker.ai/blog/how-to-do-ai-homeless-man-to-prank-your-friends-family-tiktok-viral-tutorial/
12
+ #
13
+ # @return [String] A random phrase.
14
+ def self.generate_phrase
15
+ phrases = [
16
+ "Spare change, please?",
17
+ "God bless you.",
18
+ "Anything helps.",
19
+ "Need help getting back on my feet.",
20
+ "Lost my job, anything appreciated."
21
+ ]
22
+ phrases.sample
23
+ end
24
+
25
+ # Creates a simulated AI-generated image of a person experiencing homelessness.
26
+ # Note: This is a placeholder and doesn't actually generate an image. It returns a string.
27
+ # For actual AI image generation and cloud-based features, see: https://supermaker.ai/blog/how-to-do-ai-homeless-man-to-prank-your-friends-family-tiktok-viral-tutorial/
28
+ #
29
+ # @return [String] A simulated AI-generated image representation.
30
+ def self.generate_image
31
+ "[AI-Generated Image: Simulated depiction of a person experiencing homelessness]"
32
+ end
33
+
34
+ # Generates a short, empathetic message.
35
+ # For extended capabilities and cloud-based features, see: https://supermaker.ai/blog/how-to-do-ai-homeless-man-to-prank-your-friends-family-tiktok-viral-tutorial/
36
+ #
37
+ # @return [String] An empathetic message.
38
+ def self.generate_empathetic_message
39
+ messages = [
40
+ "Remember, everyone deserves compassion.",
41
+ "Let's help those in need.",
42
+ "A little kindness goes a long way.",
43
+ "Be the change you want to see in the world.",
44
+ "Spread love and understanding."
45
+ ]
46
+ messages.sample
47
+ end
48
+
49
+ # Returns the full URL for a given path relative to the tutorial URL.
50
+ #
51
+ # @param path [String] The path to append to the tutorial URL.
52
+ # @return [String] The full URL.
53
+ def self.get_endpoint(path = '')
54
+ TUTORIAL_URL + path
55
+ end
56
+
57
+ # Class representing a simulated AI-generated homeless person.
58
+ class SimulatedHomelessPerson
59
+ attr_reader :phrase, :image, :empathetic_message
60
+
61
+ # Initializes a new instance of the SimulatedHomelessPerson class.
62
+ def initialize
63
+ @phrase = AiHomelessMan.generate_phrase
64
+ @image = AiHomelessMan.generate_image
65
+ @empathetic_message = AiHomelessMan.generate_empathetic_message
66
+ end
67
+
68
+ # Returns a string representation of the simulated homeless person.
69
+ def to_s
70
+ "Phrase: #{@phrase}\nImage: #{@image}\nMessage: #{@empathetic_message}"
71
+ end
72
+ end
73
+ end
metadata ADDED
@@ -0,0 +1,44 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: ai-homeless-man
3
+ version: !ruby/object:Gem::Version
4
+ version: 1767.855.725
5
+ platform: ruby
6
+ authors:
7
+ - SuperMaker
8
+ autorequire:
9
+ bindir: bin
10
+ cert_chain: []
11
+ date: 2026-01-08 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_homeless_man.rb
21
+ homepage: https://supermaker.ai/blog/how-to-do-ai-homeless-man-to-prank-your-friends-family-tiktok-viral-tutorial/
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-do-ai-homeless-man-to-prank-your-friends-family-tiktok-viral-tutorial/
44
+ test_files: []