module PaintSamplesRealS4
PaintSamples โ real formatter output for S4 plugins.
Public Instance Methods
Source
# File lib/paint_samples/register_real_s4.rb, line 16 def register_all PaintSamples.register("yt") do YtReport.format_playlist_show_reply( { title: "Favourites", id: "PLabc123" }, [{ title: "Never Gonna Give You Up", video_id: "dQw4w9WgXcQ" }] ).split("\n") end PaintSamples.register("auspost") do AuspostReport.format_status_card( { "id" => "8BPZ00119882", "status" => "In transit" }, { date: "2025-06-20T10:15:00+10:00", location: "Lidcombe NSW", description: "Item processed" } ).split("\n") end PaintSamples.register("sports") do SportsReport.build( sport: "cricket", match: { "home" => "Perth Scorchers", "away" => "Sydney Sixers", "home_score" => "142/3", "away_score" => "-", "status" => "live", "competition" => "Big Bash League" }, commentary_lines: [ "Perth Scorchers 142/3 โ Sydney Sixers -", "2nd innings (away) โ live" ] ).split("\n") end PaintSamples.register("ehc") do EhcReport.format_success( host: "challenge.example", probe_lines: ["HTTP 200 ยท text/html", "POST form /login"], ai_lines: ["Inspect hidden user_id field"], model: "gpt-5.2", duration_s: 12.3 ).split("\n") end PaintSamples.register("eh") do EhReport.build_list( items: [{ title: "APort Vault CTF", url: "https://vault.aport.io/", host: "vault.aport.io", prize_label: "$6,500", finish_at: Time.utc(2026, 3, 11, 23, 59, 0), format: "Jeopardy" }], total_open: 1, listed: 1 ).split("\n") end PaintSamples.register("radar") do RadarReport.build_report( place: "Elgin Vale", site: { product_id: "IDR082", name: "Gympie", range_km: 256 }, map_lines: ["..::"], town_summaries: ["+Jimna โ light"], observed: "11:14 AEST" ).split("\n") end PaintSamples.register("fishing") do FishingReport.build_outlook_report( query_location: "hervey bay", port: { name: "Urangan", match: :geo, matched_as: "hervey bay", distance_km: 5.5 }, ranked_days: [{ date: Date.new(2025, 6, 12), moon_phase: "Last Quarter", run: 2.2, score: 8.5, events: [{ type: :low, height: 1.60, time_local: "2025-06-12T04:16:00+10:00" }] }] ).split("\n") end PaintSamples.register("charts") do ChartsReport.build( country_name: "Australia", chart_date: "2026/06/18", entries: [ { position: 1, change: "NEW", label: "Olivia Rodrigo - stupid song" }, { position: 2, change: "+5", label: "Olivia Rodrigo - the cure" } ] ).split("\n") end end