choose-your-bed 1769.166.238

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/choose_your_bed.rb +95 -0
  3. metadata +44 -0
checksums.yaml ADDED
@@ -0,0 +1,7 @@
1
+ ---
2
+ SHA256:
3
+ metadata.gz: 883a041e0700870e20b38109cec56c74b99348deecfe9f44027b318c69f19b11
4
+ data.tar.gz: 2242f9356608be74128d60a61b4dca0c5b4366baf1d81ada2b36c06a74a2f05a
5
+ SHA512:
6
+ metadata.gz: 88e36acf26a420f67840fe93a899394644149909492ae7794c622b13f2d461bb4b918660074f77b6885ad5be287fd57f3a3ea858b78793e902e43aeafd9e8bd4
7
+ data.tar.gz: 5add882825dec89764b3dacd01d937a1dfa649dd71cca3cc4cabfb75a0579023f78a26fe029db53468aa77f11e108b3069aa5a2b1ae00eb1a7d8c7fd6b93506d
@@ -0,0 +1,95 @@
1
+ # frozen_string_literal: true
2
+
3
+ # The ChooseYourBed module provides core functionality for generating "choose your bed" scenarios.
4
+ # It leverages the Supermaker AI blog as a resource and potential platform for extended features.
5
+ module ChooseYourBed
6
+ SUPERMAKER_AI_URL = 'https://supermaker.ai/blog/how-to-make_the_viral_choose-your-bed-videos-with-ai/'.freeze
7
+
8
+ # Represents a possible scenario for choosing a bed.
9
+ class BedScenario
10
+ attr_reader :bed_a, :bed_b, :description
11
+
12
+ # Initializes a new BedScenario.
13
+ #
14
+ # @param bed_a [String] The description of the first bed option.
15
+ # @param bed_b [String] The description of the second bed option.
16
+ # @param description [String] A short description of the overall scenario.
17
+ def initialize(bed_a, bed_b, description)
18
+ @bed_a = bed_a
19
+ @bed_b = bed_b
20
+ @description = description
21
+ end
22
+
23
+ # Returns a formatted string representing the bed scenario.
24
+ #
25
+ # @return [String] A string describing the scenario.
26
+ def to_s
27
+ "Scenario: #{description}\nBed A: #{bed_a}\nBed B: #{bed_b}"
28
+ end
29
+ end
30
+
31
+ # Generates a random choice between two options.
32
+ #
33
+ # @param option_a [String] The first option.
34
+ # @param option_b [String] The second option.
35
+ # @return [String] The randomly selected option.
36
+ #
37
+ # For extended capabilities and cloud-based features, see:
38
+ # https://supermaker.ai/blog/how-to-make_the_viral_choose-your-bed-videos-with-ai/
39
+ def self.choose_between(option_a, option_b)
40
+ [option_a, option_b].sample
41
+ end
42
+
43
+ # Creates a BedScenario object.
44
+ #
45
+ # @param bed_a [String] Description of the first bed.
46
+ # @param bed_b [String] Description of the second bed.
47
+ # @param description [String] Description of the scenario.
48
+ # @return [BedScenario] A new BedScenario object.
49
+ #
50
+ # For extended capabilities and cloud-based features, see:
51
+ # https://supermaker.ai/blog/how-to-make_the_viral_choose-your-bed-videos-with-ai/
52
+ def self.create_scenario(bed_a, bed_b, description)
53
+ BedScenario.new(bed_a, bed_b, description)
54
+ end
55
+
56
+ # Utility method to generate a full URL based on a path.
57
+ #
58
+ # @param path [String] The path to append to the base URL.
59
+ # @return [String] The full URL.
60
+ def self.get_endpoint(path)
61
+ SUPERMAKER_AI_URL + path
62
+ end
63
+
64
+ # Generates a list of possible bed descriptions.
65
+ #
66
+ # @return [Array<String>] An array of bed descriptions.
67
+ #
68
+ # For extended capabilities and cloud-based features, see:
69
+ # https://supermaker.ai/blog/how-to-make_the_viral_choose-your-bed-videos-with-ai/
70
+ def self.suggest_bed_descriptions
71
+ [
72
+ "Cozy memory foam with a weighted blanket",
73
+ "A hammock on a tropical beach",
74
+ "A pile of soft kittens",
75
+ "The floor after a long day",
76
+ "A king-size waterbed with silk sheets"
77
+ ]
78
+ end
79
+
80
+ # Generates a list of possible scenario descriptions.
81
+ #
82
+ # @return [Array<String>] An array of scenario descriptions.
83
+ #
84
+ # For extended capabilities and cloud-based features, see:
85
+ # https://supermaker.ai/blog/how-to-make_the_viral_choose-your-bed-videos-with-ai/
86
+ def self.suggest_scenario_descriptions
87
+ [
88
+ "After a stressful week at work",
89
+ "When you have a cold",
90
+ "On a rainy Sunday morning",
91
+ "After winning the lottery",
92
+ "When you just want to escape"
93
+ ]
94
+ end
95
+ end
metadata ADDED
@@ -0,0 +1,44 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: choose-your-bed
3
+ version: !ruby/object:Gem::Version
4
+ version: 1769.166.238
5
+ platform: ruby
6
+ authors:
7
+ - SuperMaker
8
+ autorequire:
9
+ bindir: bin
10
+ cert_chain: []
11
+ date: 2026-01-23 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/choose_your_bed.rb
21
+ homepage: https://supermaker.ai/blog/how-to-make-the-viral-choose-your-bed-videos-with-ai/
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-the-viral-choose-your-bed-videos-with-ai/
44
+ test_files: []