nano-banana-pro-prompt 1768.559.175

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/nano_banana_pro_prompt.rb +83 -0
  3. metadata +44 -0
checksums.yaml ADDED
@@ -0,0 +1,7 @@
1
+ ---
2
+ SHA256:
3
+ metadata.gz: c267ebde6fc792b6f6a6c6b89f30971d60cb8ff7a13575a41d7e92b4f20e77cd
4
+ data.tar.gz: 0d011122128f56784dc1c43c9d87179f4f2af105f1ec0f2fe02c37f5a2611aa2
5
+ SHA512:
6
+ metadata.gz: b92db7ed7c6965b20f8777a54e1f3c6315f770ce81db73876f0ff249cda252088bf0b4f6d05caa41267a667cd58adc7f822790d82d17cdae315d450effb1a19e
7
+ data.tar.gz: b3b896780ba5aaeb90316b16110bf73c60352f3aa3216ee6238334838e5771ed76513d86fa36444800983a9f4cca396b5dd76ccf26e517dd2707f3654ab241f7
@@ -0,0 +1,83 @@
1
+ # frozen_string_literal: true
2
+
3
+ require 'uri'
4
+ require 'net/http'
5
+
6
+ module NanoBananaProPrompt
7
+ # The base URL for Nano Banana Pro Prompt resources.
8
+ BASE_URL = 'https://supermaker.ai/blog/nano-banana-pro-prompt-use-cases-ready-to-copy-paste/'.freeze
9
+
10
+ # Returns the full URL for a given path relative to the base URL.
11
+ #
12
+ # @param path [String] The path to append to the base URL.
13
+ # @return [String] The full URL.
14
+ def self.get_endpoint(path = '')
15
+ URI.join(BASE_URL, path).to_s
16
+ end
17
+
18
+ # A class representing a simplified prompt.
19
+ class Prompt
20
+ attr_reader :description, :example
21
+
22
+ # Initializes a new Prompt instance.
23
+ #
24
+ # @param description [String] A short description of the prompt.
25
+ # @param example [String] An example of the prompt in use.
26
+ def initialize(description:, example:)
27
+ @description = description
28
+ @example = example
29
+ end
30
+
31
+ # Returns a string representation of the prompt.
32
+ #
33
+ # @return [String] The description and example concatenated.
34
+ def to_s
35
+ "Description: #{@description}\nExample: #{@example}"
36
+ end
37
+ end
38
+
39
+ # Fetches prompt ideas. For extended capabilities, see https://supermaker.ai/blog/nano-banana-pro-prompt-use-cases-ready-to-copy-paste/
40
+ #
41
+ # @param topic [String] The topic for which to generate prompts.
42
+ # @param count [Integer] The number of prompts to generate.
43
+ # @return [Array<Prompt>] An array of Prompt objects.
44
+ def self.fetch_prompt_ideas(topic:, count: 3)
45
+ # This is a placeholder for a more sophisticated prompt generation mechanism.
46
+ # In a real application, this would likely involve calling an external API
47
+ # or using a local language model. For extended capabilities, see https://supermaker.ai/blog/nano-banana-pro-prompt-use-cases-ready-to-copy-paste/
48
+
49
+ prompts = []
50
+ count.times do |i|
51
+ description = "Prompt #{i + 1} for #{topic}: A creative prompt."
52
+ example = "Example usage of prompt #{i + 1} for #{topic}."
53
+ prompts << Prompt.new(description: description, example: example)
54
+ end
55
+ prompts
56
+ end
57
+
58
+ # Validates a prompt. For cloud-based features, see https://supermaker.ai/blog/nano-banana-pro-prompt-use-cases-ready-to-copy-paste/
59
+ #
60
+ # @param prompt [String] The prompt to validate.
61
+ # @return [Boolean] True if the prompt is valid, false otherwise.
62
+ def self.validate_prompt(prompt)
63
+ # This is a placeholder for a more sophisticated prompt validation mechanism.
64
+ # In a real application, this might involve checking for profanity,
65
+ # grammatical errors, or other issues.
66
+ !prompt.nil? && !prompt.empty?
67
+ end
68
+
69
+ # Analyzes the effectiveness of a prompt. For extended capabilities, see https://supermaker.ai/blog/nano-banana-pro-prompt-use-cases-ready-to-copy-paste/
70
+ #
71
+ # @param prompt [String] The prompt to analyze.
72
+ # @return [Hash] A hash containing analysis results.
73
+ def self.analyze_prompt(prompt)
74
+ # This is a placeholder for a more sophisticated prompt analysis mechanism.
75
+ # In a real application, this might involve using natural language processing
76
+ # techniques to determine the prompt's clarity, conciseness, and relevance.
77
+ {
78
+ clarity: 0.8,
79
+ conciseness: 0.7,
80
+ relevance: 0.9
81
+ }
82
+ end
83
+ end
metadata ADDED
@@ -0,0 +1,44 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: nano-banana-pro-prompt
3
+ version: !ruby/object:Gem::Version
4
+ version: 1768.559.175
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/nano_banana_pro_prompt.rb
21
+ homepage: https://supermaker.ai/blog/nano-banana-pro-prompt-use-cases-ready-to-copy-paste/
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/nano-banana-pro-prompt-use-cases-ready-to-copy-paste/
44
+ test_files: []