trystencil-url-tools 0.1.1

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 ADDED
@@ -0,0 +1,7 @@
1
+ ---
2
+ SHA256:
3
+ metadata.gz: 64ad0cd79858516fd0f0cf25191ffad5292a36831798d528674fdb157b69860d
4
+ data.tar.gz: d423a8eb8bb32cb55f5f5a9db5479c19214c3f386c21eb4dbeb5a735783c5362
5
+ SHA512:
6
+ metadata.gz: c46ef287cf4e2094a17faf7ca244fe8f7640222212fb560d6b28665af0514b69ee275f0b95f8ba8f9b96395ef6baf4a32f6998457cdade5a177dd63b2a1e9b0c
7
+ data.tar.gz: 4bfb71af938ae34ca529856959a836d787580eda9623496dc12ffb9978beddf475fc5d8d4d3c7e2b72c44408e580570e43c0e5996416c9d76382842b0c9c654c
data/LICENSE ADDED
@@ -0,0 +1,21 @@
1
+ MIT License
2
+
3
+ Copyright (c) 2026 bbwdadfg
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,35 @@
1
+ # trystencil-url-tools
2
+
3
+ `trystencil-url-tools` builds canonical HTTPS URLs for [TryStencil](https://trystencil.org/).
4
+
5
+ Offline URL builder for TryStencil tattoo generator, try-on, stencil, and idea pages. Not an official SDK.
6
+
7
+ The helper only concatenates known page slugs. It does not call the site, upload files, or sign in.
8
+
9
+ ## JavaScript
10
+
11
+ ```js
12
+ import { pageUrl, pageUrl, pageUrl, pageUrl } from 'trystencil-url-tools';
13
+
14
+ pageUrl('new'); // https://trystencil.org/app/new
15
+ pageUrl('generator'); // https://trystencil.org/ai-tattoo-generator
16
+ pageUrl('try_on'); // https://trystencil.org/try-on
17
+ pageUrl('pricing'); // https://trystencil.org/pricing
18
+ ```
19
+
20
+ ## Python
21
+
22
+ ```python
23
+ from trystencil_url_tools import page_url, page_url, page_url, page_url
24
+
25
+ page_url('new') # https://trystencil.org/app/new
26
+ page_url('generator') # https://trystencil.org/ai-tattoo-generator
27
+ page_url('try_on') # https://trystencil.org/try-on
28
+ page_url('pricing') # https://trystencil.org/pricing
29
+ ```
30
+
31
+ The repository also contains equivalent Rust, PHP, and Go helpers, plus a small command that prints the same URLs.
32
+
33
+ Source: https://github.com/bbwdadfg/trystencil-url-tools
34
+
35
+ License: MIT.
@@ -0,0 +1,18 @@
1
+ module TrystencilUrlTools
2
+ BASE = "https://trystencil.org"
3
+ PAGES = { "new" => "/app/new", "generator" => "/ai-tattoo-generator", "try_on" => "/try-on", "pricing" => "/pricing", "font" => "/tattoo-font-generator", "stencil" => "/stencil", "artists" => "/artists", "stencil_maker" => "/tattoo-stencil-maker", "how" => "/how-it-works", "examples" => "/examples" }
4
+ def self.home_url
5
+ BASE + "/"
6
+ end
7
+
8
+ def self.page_url(name)
9
+ path = PAGES[name]
10
+ raise ArgumentError, "unknown page: #{name}" if path.nil?
11
+ BASE + path
12
+ end
13
+
14
+ def self.idea_url(slug)
15
+ raise ArgumentError, "unknown idea: #{slug}" unless slug.match?(/\A[a-z0-9]+(?:-[a-z0-9]+)*\z/)
16
+ BASE + "/ideas/" + slug
17
+ end
18
+ end
metadata ADDED
@@ -0,0 +1,44 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: trystencil-url-tools
3
+ version: !ruby/object:Gem::Version
4
+ version: 0.1.1
5
+ platform: ruby
6
+ authors:
7
+ - bbwdadfg
8
+ bindir: bin
9
+ cert_chain: []
10
+ date: 1980-01-02 00:00:00.000000000 Z
11
+ dependencies: []
12
+ description: Offline URL builder for TryStencil tattoo generator, try-on, stencil,
13
+ and idea pages. Not an official SDK.
14
+ executables: []
15
+ extensions: []
16
+ extra_rdoc_files: []
17
+ files:
18
+ - LICENSE
19
+ - README.md
20
+ - ruby/lib/trystencil_url_tools.rb
21
+ homepage: https://trystencil.org/
22
+ licenses:
23
+ - MIT
24
+ metadata:
25
+ homepage_uri: https://trystencil.org/
26
+ source_code_uri: https://github.com/wangneo276-lgtm/trystencil-url-tools
27
+ rdoc_options: []
28
+ require_paths:
29
+ - ruby/lib
30
+ required_ruby_version: !ruby/object:Gem::Requirement
31
+ requirements:
32
+ - - ">="
33
+ - !ruby/object:Gem::Version
34
+ version: '0'
35
+ required_rubygems_version: !ruby/object:Gem::Requirement
36
+ requirements:
37
+ - - ">="
38
+ - !ruby/object:Gem::Version
39
+ version: '0'
40
+ requirements: []
41
+ rubygems_version: 4.0.11
42
+ specification_version: 4
43
+ summary: Offline URL helpers for TryStencil
44
+ test_files: []