bestvid-site-kit 0.1.2
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.
- checksums.yaml +7 -0
- data/LICENSE +21 -0
- data/README.md +64 -0
- data/lib/bestvid/site_kit.rb +23 -0
- metadata +48 -0
checksums.yaml
ADDED
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
---
|
|
2
|
+
SHA256:
|
|
3
|
+
metadata.gz: 28181c19e56433f5c4ea9fe7d3cef7308053525ec675feb7f9f535f9e3be5c5d
|
|
4
|
+
data.tar.gz: 2f14eeccef0358dd966bb75c2dcc300e319fa86912a8fceeeb6d7b965a077adc
|
|
5
|
+
SHA512:
|
|
6
|
+
metadata.gz: 5a973f0e2fdc83168c05e9b4231fff8933b38947ebfb0dfea75e3046a5c17949befd8c4a3cfa9bbfb226b74c05ea1481fc9b9fc819d18fc630550b1fd81e9957
|
|
7
|
+
data.tar.gz: 89848453587cbcc3342853407a37734efdebb7bfd34be9f58d348068b7e1dce56450d3ce7d0e261aac7b8aa324fd383b0fe92a164381479fc98d0ff2d6b06be1
|
data/LICENSE
ADDED
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
MIT License
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2026 BestVid
|
|
4
|
+
|
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
7
|
+
in the Software without restriction, including without limitation the rights
|
|
8
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
9
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
10
|
+
furnished to do so, subject to the following conditions:
|
|
11
|
+
|
|
12
|
+
The above copyright notice and this permission notice shall be included in all
|
|
13
|
+
copies or substantial portions of the Software.
|
|
14
|
+
|
|
15
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
17
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
18
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
19
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
21
|
+
SOFTWARE.
|
data/README.md
ADDED
|
@@ -0,0 +1,64 @@
|
|
|
1
|
+
# BestVid Site Kit
|
|
2
|
+
|
|
3
|
+
Small Go helpers for building links to [BestVid](https://bestvid.net), an AI video and content generation website.
|
|
4
|
+
|
|
5
|
+
## Install
|
|
6
|
+
|
|
7
|
+
Go:
|
|
8
|
+
|
|
9
|
+
```sh
|
|
10
|
+
go get github.com/bbwdadfg/bestvid-site-kit
|
|
11
|
+
```
|
|
12
|
+
|
|
13
|
+
Composer:
|
|
14
|
+
|
|
15
|
+
```sh
|
|
16
|
+
composer require bbwdadfg/bestvid-site-kit
|
|
17
|
+
```
|
|
18
|
+
|
|
19
|
+
Rust:
|
|
20
|
+
|
|
21
|
+
```sh
|
|
22
|
+
cargo add bestvid-site-kit
|
|
23
|
+
```
|
|
24
|
+
|
|
25
|
+
Ruby:
|
|
26
|
+
|
|
27
|
+
```sh
|
|
28
|
+
gem install bestvid-site-kit
|
|
29
|
+
```
|
|
30
|
+
|
|
31
|
+
## Usage
|
|
32
|
+
|
|
33
|
+
Go:
|
|
34
|
+
|
|
35
|
+
```go
|
|
36
|
+
package main
|
|
37
|
+
|
|
38
|
+
import (
|
|
39
|
+
"fmt"
|
|
40
|
+
|
|
41
|
+
bestvid "github.com/bbwdadfg/bestvid-site-kit"
|
|
42
|
+
)
|
|
43
|
+
|
|
44
|
+
func main() {
|
|
45
|
+
fmt.Println(bestvid.URL("/tools/ai-video"))
|
|
46
|
+
fmt.Println(bestvid.SearchURL("ai video generator"))
|
|
47
|
+
}
|
|
48
|
+
```
|
|
49
|
+
|
|
50
|
+
Rust:
|
|
51
|
+
|
|
52
|
+
```rust
|
|
53
|
+
println!("{}", bestvid_site_kit::url("/tools/ai-video"));
|
|
54
|
+
println!("{}", bestvid_site_kit::search_url("ai video generator"));
|
|
55
|
+
```
|
|
56
|
+
|
|
57
|
+
Ruby:
|
|
58
|
+
|
|
59
|
+
```ruby
|
|
60
|
+
require "bestvid/site_kit"
|
|
61
|
+
|
|
62
|
+
puts BestVid::SiteKit.url("/tools/ai-video")
|
|
63
|
+
puts BestVid::SiteKit.search_url("ai video generator")
|
|
64
|
+
```
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
require "uri"
|
|
4
|
+
|
|
5
|
+
module BestVid
|
|
6
|
+
module SiteKit
|
|
7
|
+
SITE_URL = "https://bestvid.net"
|
|
8
|
+
SITE_NAME = "BestVid"
|
|
9
|
+
|
|
10
|
+
module_function
|
|
11
|
+
|
|
12
|
+
def url(path = "")
|
|
13
|
+
normalized = path.to_s.strip
|
|
14
|
+
return SITE_URL if normalized.empty? || normalized == "/"
|
|
15
|
+
|
|
16
|
+
"#{SITE_URL}/#{normalized.delete_prefix("/")}"
|
|
17
|
+
end
|
|
18
|
+
|
|
19
|
+
def search_url(query)
|
|
20
|
+
"#{url("/search")}?q=#{URI.encode_www_form_component(query.to_s.strip)}"
|
|
21
|
+
end
|
|
22
|
+
end
|
|
23
|
+
end
|
metadata
ADDED
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
--- !ruby/object:Gem::Specification
|
|
2
|
+
name: bestvid-site-kit
|
|
3
|
+
version: !ruby/object:Gem::Version
|
|
4
|
+
version: 0.1.2
|
|
5
|
+
platform: ruby
|
|
6
|
+
authors:
|
|
7
|
+
- BestVid
|
|
8
|
+
autorequire:
|
|
9
|
+
bindir: bin
|
|
10
|
+
cert_chain: []
|
|
11
|
+
date: 2026-05-18 00:00:00.000000000 Z
|
|
12
|
+
dependencies: []
|
|
13
|
+
description: Small URL helpers for building links to https://bestvid.net.
|
|
14
|
+
email:
|
|
15
|
+
- support@bestvid.net
|
|
16
|
+
executables: []
|
|
17
|
+
extensions: []
|
|
18
|
+
extra_rdoc_files: []
|
|
19
|
+
files:
|
|
20
|
+
- LICENSE
|
|
21
|
+
- README.md
|
|
22
|
+
- lib/bestvid/site_kit.rb
|
|
23
|
+
homepage: https://bestvid.net
|
|
24
|
+
licenses:
|
|
25
|
+
- MIT
|
|
26
|
+
metadata:
|
|
27
|
+
homepage_uri: https://bestvid.net
|
|
28
|
+
source_code_uri: https://github.com/bbwdadfg/bestvid-site-kit
|
|
29
|
+
post_install_message:
|
|
30
|
+
rdoc_options: []
|
|
31
|
+
require_paths:
|
|
32
|
+
- lib
|
|
33
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
|
34
|
+
requirements:
|
|
35
|
+
- - ">="
|
|
36
|
+
- !ruby/object:Gem::Version
|
|
37
|
+
version: '3.0'
|
|
38
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
|
39
|
+
requirements:
|
|
40
|
+
- - ">="
|
|
41
|
+
- !ruby/object:Gem::Version
|
|
42
|
+
version: '0'
|
|
43
|
+
requirements: []
|
|
44
|
+
rubygems_version: 3.0.3.1
|
|
45
|
+
signing_key:
|
|
46
|
+
specification_version: 4
|
|
47
|
+
summary: Small URL helpers for BestVid links.
|
|
48
|
+
test_files: []
|