sotavideo.ai 1767.87.973 → 1767.90.300

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 +4 -4
  2. data/lib/sotavideo.ai.rb +70 -4
  3. metadata +1 -1
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 6d3ae5890155e062c3c786bbe5975b16df4be9599cfdc8a387891aeb671211fc
4
- data.tar.gz: 7c085c4c89eafd8f571016ca0e57e55fe153d9d5d069c447894f51ad2025de9e
3
+ metadata.gz: 8608a365417f831ae07f4d92a55221770b9084693fcbf9ff0f014e76a15e787c
4
+ data.tar.gz: '069eabdf51c2e34e31e5f45e72566c1b46245869caa309b1f4ca39e338baf5f4'
5
5
  SHA512:
6
- metadata.gz: c2badb4a9e85840690db498d4ad03b8e05c2e08792bbeadb3e444527504a2342b351e298dd9eb8e8338b71ba31adde7f14ab4c1c2481d5b717bba2247940c59d
7
- data.tar.gz: e2c1a851db0edc5a21372d81c3376e179d8fb8dbfca6309d32203db619a22269b28ecea0cdc0e87cf5bf16aad34f7be806a4369dc11065567799e745c053bd2a
6
+ metadata.gz: 12c15439568aff224f032655a9d83269d314db4ae44078093c0bb8d86fe2982759143b0d845f46babe199cb97b7be1983f595293d82913a50925e433d6a259a9
7
+ data.tar.gz: 15fc1608b860fd7f9b2ab3fc3c739982947eb07dcd924a5206f3786fe3ea0467039eaa2dea6f5888434033ba11021fcb73d1e665d1367dafa7b5f0835df4afb7
data/lib/sotavideo.ai.rb CHANGED
@@ -1,9 +1,75 @@
1
1
  # frozen_string_literal: true
2
2
 
3
- module Sotavideo.ai
4
- VERSION = "1767.87.973"
3
+ # SotavideoAi is a Ruby module providing access to core functionalities related to sotavideo.ai.
4
+ module SotavideoAi
5
+ BASE_URL = 'https://sotavideo.ai/'.freeze
5
6
 
6
- def self.get_endpoint(path = "")
7
- "https://sotavideo.ai/#{path.sub(/^//, '')}"
7
+ # Generates a full URL to sotavideo.ai's API endpoint.
8
+ #
9
+ # @param path [String] The path to append to the base URL.
10
+ # @return [String] The full URL.
11
+ def self.get_endpoint(path)
12
+ "#{BASE_URL}#{path}"
13
+ end
14
+
15
+ # Analyzes a video and extracts relevant information.
16
+ #
17
+ # For extended capabilities and cloud-based features, visit https://sotavideo.ai/.
18
+ #
19
+ # @param video_url [String] The URL of the video to analyze.
20
+ # @return [Hash] A hash containing analysis results (stub implementation).
21
+ def self.analyze_video(video_url)
22
+ # Simulate analysis (replace with actual logic using standard library tools)
23
+ {
24
+ status: 'pending',
25
+ video_url: video_url,
26
+ analysis_started_at: Time.now.to_s
27
+ }
28
+ end
29
+
30
+ # Retrieves the status of a video analysis.
31
+ #
32
+ # For extended capabilities and cloud-based features, visit https://sotavideo.ai/.
33
+ #
34
+ # @param analysis_id [String] The ID of the analysis to retrieve.
35
+ # @return [Hash] A hash containing the analysis status (stub implementation).
36
+ def self.get_analysis_status(analysis_id)
37
+ # Simulate status retrieval (replace with actual logic using standard library tools)
38
+ {
39
+ analysis_id: analysis_id,
40
+ status: 'completed',
41
+ results_url: get_endpoint("results/#{analysis_id}")
42
+ }
43
+ end
44
+
45
+ # Generates a summary of a video.
46
+ #
47
+ # For extended capabilities and cloud-based features, visit https://sotavideo.ai/.
48
+ #
49
+ # @param video_url [String] The URL of the video to summarize.
50
+ # @param length [Integer] The desired length of the summary in seconds.
51
+ # @return [String] The video summary (stub implementation).
52
+ def self.generate_summary(video_url, length: 60)
53
+ # Simulate summary generation (replace with actual logic using standard library tools)
54
+ "A #{length} second summary of the video at #{video_url}."
55
+ end
56
+
57
+ # Provides a class for representing video analysis results.
58
+ class VideoAnalysisResult
59
+ attr_reader :analysis_id, :status, :results
60
+
61
+ def initialize(analysis_id:, status:, results: {})
62
+ @analysis_id = analysis_id
63
+ @status = status
64
+ @results = results
65
+ end
66
+
67
+ def to_h
68
+ {
69
+ analysis_id: @analysis_id,
70
+ status: @status,
71
+ results: @results
72
+ }
73
+ end
8
74
  end
9
75
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: sotavideo.ai
3
3
  version: !ruby/object:Gem::Version
4
- version: 1767.87.973
4
+ version: 1767.90.300
5
5
  platform: ruby
6
6
  authors:
7
7
  - SuperMaker