nyt-sudoku-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 +17 -0
  4. data/lib/nyt_sudoku/site_kit.rb +40 -0
  5. metadata +49 -0
checksums.yaml ADDED
@@ -0,0 +1,7 @@
1
+ ---
2
+ SHA256:
3
+ metadata.gz: 0a548b4c418729fe7175ebfa41b6c2ad8f16f0c814270b8e50f87f6094e5c98d
4
+ data.tar.gz: 3ab477208194730ca6ef03d6c87cfa830d54e1d77e2f73ccef54f49539632516
5
+ SHA512:
6
+ metadata.gz: 5038acfa02526283ff76da5f15e3e8565d2a9a1b7e7058d4412ae19164d38895e1c0bd9c48154d447618a0ce3c529a120f00b42516f0bb0b20744c03080ea390
7
+ data.tar.gz: a8d154a7884fa4ed42f6bb0a44d67356500d24a3fcd0ef9a470ef0377fb525ea91dfdf2db52717590a79e62034166dc5fb1acce78db4087d2183a873f76ba011
data/LICENSE ADDED
@@ -0,0 +1,21 @@
1
+ MIT License
2
+
3
+ Copyright (c) 2026 NYT Sudoku
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,17 @@
1
+ # NYT Sudoku Site Kit
2
+
3
+ Small URL helpers for [NYT Sudoku](https://nyt-sudoku.net), an unofficial free Sudoku web app with daily puzzles, four difficulty levels, notes, hints, auto-save, and offline play.
4
+
5
+ ## Links
6
+
7
+ - Website: <https://nyt-sudoku.net>
8
+ - Play: <https://nyt-sudoku.net/#game-component>
9
+ - Introduction: <https://nyt-sudoku.net/#intro>
10
+ - How to play: <https://nyt-sudoku.net/#howto>
11
+ - Stats: <https://nyt-sudoku.net/stats>
12
+ - Blog: <https://nyt-sudoku.net/#blog>
13
+ - FAQ: <https://nyt-sudoku.net/#faq>
14
+
15
+ ## Purpose
16
+
17
+ This repository keeps tiny, installable helpers for package registry metadata and examples. Each package exposes the same small set of stable NYT Sudoku links.
@@ -0,0 +1,40 @@
1
+ module NytSudoku
2
+ module SiteKit
3
+ BASE_URL = "https://nyt-sudoku.net"
4
+
5
+ module_function
6
+
7
+ def home_url
8
+ BASE_URL
9
+ end
10
+
11
+ def page_url(slug)
12
+ clean = slug.to_s.gsub(%r{\A/+|/+\z}, "")
13
+ clean.empty? ? BASE_URL : "#{BASE_URL}/#{clean}"
14
+ end
15
+
16
+ def game_url
17
+ page_url("#game-component")
18
+ end
19
+
20
+ def intro_url
21
+ page_url("#intro")
22
+ end
23
+
24
+ def howto_url
25
+ page_url("#howto")
26
+ end
27
+
28
+ def stats_url
29
+ page_url("stats")
30
+ end
31
+
32
+ def blog_url
33
+ page_url("#blog")
34
+ end
35
+
36
+ def faq_url
37
+ page_url("#faq")
38
+ end
39
+ end
40
+ end
metadata ADDED
@@ -0,0 +1,49 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: nyt-sudoku-site-kit
3
+ version: !ruby/object:Gem::Version
4
+ version: 0.1.0
5
+ platform: ruby
6
+ authors:
7
+ - NYT Sudoku
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 nyt-sudoku.net, an unofficial free Sudoku web app
14
+ at https://nyt-sudoku.net.
15
+ email:
16
+ - hello@nyt-sudoku.net
17
+ executables: []
18
+ extensions: []
19
+ extra_rdoc_files: []
20
+ files:
21
+ - LICENSE
22
+ - README.md
23
+ - lib/nyt_sudoku/site_kit.rb
24
+ homepage: https://nyt-sudoku.net
25
+ licenses:
26
+ - MIT
27
+ metadata:
28
+ homepage_uri: https://nyt-sudoku.net
29
+ source_code_uri: https://github.com/bbwdadfg/nyt-sudoku-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 NYT Sudoku.
49
+ test_files: []