starbattle-site-kit 0.1.0

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 (5) hide show
  1. checksums.yaml +7 -0
  2. data/LICENSE +21 -0
  3. data/README.md +18 -0
  4. data/lib/star_battle/site_kit.rb +45 -0
  5. metadata +49 -0
checksums.yaml ADDED
@@ -0,0 +1,7 @@
1
+ ---
2
+ SHA256:
3
+ metadata.gz: 5d78371c1d0fb2b60c91b511ef7cd9441d505d595e0790c36f41029bb08adc56
4
+ data.tar.gz: 17282c884e5294e6d160c23c55b36904809bb8dafdae49d4c979c98015efd163
5
+ SHA512:
6
+ metadata.gz: b96ff2450df31a7db3163772ebfb1374475ea7ba6a059528c057381c2f2bd8f98e53a7ba13db89e77e44cb458007a56b5c695bcf0e06d22bec8634dc45248fcf
7
+ data.tar.gz: 0d9e3b889988eb995d0aecb1bde9e2cf6635de79a5c8b418b3abfd5b90ed27f2171639177c0ecb9131a2efc5c1109397706821127f1a80b7e4c7aba6f2f56ff2
data/LICENSE ADDED
@@ -0,0 +1,21 @@
1
+ MIT License
2
+
3
+ Copyright (c) 2026 Star Battle
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,18 @@
1
+ # Star Battle Site Kit
2
+
3
+ Small URL helpers for [Star Battle](https://starbattle.online), an online 2-star logic puzzle game with daily packs, learning pages, and strategy articles.
4
+
5
+ ## Links
6
+
7
+ - Website: <https://starbattle.online>
8
+ - Play: <https://starbattle.online/#play>
9
+ - Learn: <https://starbattle.online/learn/>
10
+ - Daily: <https://starbattle.online/daily/>
11
+ - Blog: <https://starbattle.online/blog/>
12
+ - How to Play: <https://starbattle.online/blog/how-to-play-star-battle/>
13
+ - Rules: <https://starbattle.online/blog/star-battle-rules-explained/>
14
+ - Strategy: <https://starbattle.online/blog/star-battle-strategy-for-beginners/>
15
+
16
+ ## Purpose
17
+
18
+ This repository keeps tiny, installable helpers for package registry metadata and examples. Each package exposes the same small set of stable Star Battle links.
@@ -0,0 +1,45 @@
1
+ module StarBattle
2
+ module SiteKit
3
+ BASE_URL = "https://starbattle.online"
4
+ PLAY_URL = "#{BASE_URL}/#play"
5
+
6
+ module_function
7
+
8
+ def home_url
9
+ BASE_URL
10
+ end
11
+
12
+ def page_url(slug)
13
+ clean = slug.to_s.gsub(%r{\A/+|/+\z}, "")
14
+ clean.empty? ? BASE_URL : "#{BASE_URL}/#{clean}"
15
+ end
16
+
17
+ def play_url
18
+ PLAY_URL
19
+ end
20
+
21
+ def learn_url
22
+ page_url("learn")
23
+ end
24
+
25
+ def daily_url
26
+ page_url("daily")
27
+ end
28
+
29
+ def blog_url
30
+ page_url("blog")
31
+ end
32
+
33
+ def how_to_play_url
34
+ page_url("blog/how-to-play-star-battle")
35
+ end
36
+
37
+ def rules_url
38
+ page_url("blog/star-battle-rules-explained")
39
+ end
40
+
41
+ def strategy_url
42
+ page_url("blog/star-battle-strategy-for-beginners")
43
+ end
44
+ end
45
+ end
metadata ADDED
@@ -0,0 +1,49 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: starbattle-site-kit
3
+ version: !ruby/object:Gem::Version
4
+ version: 0.1.0
5
+ platform: ruby
6
+ authors:
7
+ - Star Battle
8
+ autorequire:
9
+ bindir: bin
10
+ cert_chain: []
11
+ date: 2026-05-19 00:00:00.000000000 Z
12
+ dependencies: []
13
+ description: Small URL helpers for Star Battle, an online 2-star logic puzzle game
14
+ at https://starbattle.online.
15
+ email:
16
+ - hello@starbattle.online
17
+ executables: []
18
+ extensions: []
19
+ extra_rdoc_files: []
20
+ files:
21
+ - LICENSE
22
+ - README.md
23
+ - lib/star_battle/site_kit.rb
24
+ homepage: https://starbattle.online
25
+ licenses:
26
+ - MIT
27
+ metadata:
28
+ homepage_uri: https://starbattle.online
29
+ source_code_uri: https://github.com/bbwdadfg/starbattle-site-kit
30
+ post_install_message:
31
+ rdoc_options: []
32
+ require_paths:
33
+ - lib
34
+ required_ruby_version: !ruby/object:Gem::Requirement
35
+ requirements:
36
+ - - ">="
37
+ - !ruby/object:Gem::Version
38
+ version: '0'
39
+ required_rubygems_version: !ruby/object:Gem::Requirement
40
+ requirements:
41
+ - - ">="
42
+ - !ruby/object:Gem::Version
43
+ version: '0'
44
+ requirements: []
45
+ rubygems_version: 3.0.3.1
46
+ signing_key:
47
+ specification_version: 4
48
+ summary: Small URL helpers for Star Battle.
49
+ test_files: []