mahjong-render 0.2.0 → 0.2.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 +4 -4
- data/CHANGELOG.md +4 -0
- data/README.ja.md +4 -4
- data/README.md +4 -4
- data/docs/adr/0002-license.md +1 -1
- data/lib/mahjong_render/asciidoctor.rb +1 -1
- data/lib/mahjong_render/parser.rb +1 -1
- data/lib/mahjong_render/renderer.rb +1 -1
- data/lib/mahjong_render/version.rb +2 -2
- data/lib/mahjong_render.rb +1 -1
- metadata +5 -5
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 9b8def8b9aad27b78db9af644359d270c88f095c2d48e6e459fd3023c4ca39ee
|
|
4
|
+
data.tar.gz: 8de5e8246e9cc2c8236c231d6a2cfa79e5ddd03bd90352d221f88454f8477f21
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 9340c3a83a8d69025b9be5dff44d808e6cda0832c67ebdca6023ad43c573658e605c926d588dbb93e52db988880b5ab1eb6da457f54b5c4f355960c892003840
|
|
7
|
+
data.tar.gz: 33b9aa0251fbdd0d8eeec5b1d16e2a2fd4c25458aad3785f7c20494409ae9a2281ff845ceb7bcb4d376bd29e6e20299ee615c168715ff72c9a71eec91bf60268
|
data/CHANGELOG.md
CHANGED
|
@@ -2,6 +2,10 @@
|
|
|
2
2
|
|
|
3
3
|
All notable changes will be recorded here. Versions follow Semantic Versioning.
|
|
4
4
|
|
|
5
|
+
## 0.2.1 — 2026-09-25
|
|
6
|
+
|
|
7
|
+
- Use the GitHub account name `kjun1` in copyright notices and RubyGems author metadata.
|
|
8
|
+
|
|
5
9
|
## 0.2.0 — 2026-09-24
|
|
6
10
|
|
|
7
11
|
- Require MRI Ruby 3.3 or newer and test 3.3, 3.4, and 4.0; Ruby 3.2 is no longer supported.
|
data/README.ja.md
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
# mahjong-render
|
|
2
2
|
|
|
3
|
-
[](https://
|
|
3
|
+
[](https://rubygems.org/gems/mahjong-render)
|
|
4
4
|
[](https://github.com/kjun1/mahjong-render/actions/workflows/ci.yml)
|
|
5
5
|
|
|
6
6
|
[English README](README.md)
|
|
@@ -27,7 +27,7 @@ gem install mahjong-render
|
|
|
27
27
|
|
|
28
28
|
```sh
|
|
29
29
|
gem build mahjong-render.gemspec
|
|
30
|
-
gem install --local ./mahjong-render-0.2.
|
|
30
|
+
gem install --local ./mahjong-render-0.2.1.gem
|
|
31
31
|
```
|
|
32
32
|
|
|
33
33
|
インストール後、次のコマンドで `hand.svg` を作成できます。
|
|
@@ -92,10 +92,10 @@ devcontainer、または保証対象の MRI Ruby・Bundler・`rsvg-convert` を
|
|
|
92
92
|
bundle install
|
|
93
93
|
bundle exec rake lint test assets:check licenses:check example:build
|
|
94
94
|
gem build mahjong-render.gemspec
|
|
95
|
-
ruby script/check_package.rb mahjong-render-0.2.
|
|
95
|
+
ruby script/check_package.rb mahjong-render-0.2.1.gem
|
|
96
96
|
```
|
|
97
97
|
|
|
98
98
|
設計の経緯は [既存ライブラリの調査](docs/research/existing-renderers.md) と [ADR](docs/adr/) に記録しています。
|
|
99
99
|
[公開手順](docs/release.md) には、タグから起動する Trusted Publishing の手順を記載しています。
|
|
100
100
|
|
|
101
|
-
Copyright 2026
|
|
101
|
+
Copyright 2026 kjun1。Ruby コードとテキスト文書には [Apache-2.0](LICENSE) を適用します。同梱の牌画像と [README のプレビュー](examples/hand.png) は CC0-1.0 です。牌画像は [FluffyStuff/riichi-mahjong-tiles](https://github.com/FluffyStuff/riichi-mahjong-tiles) から採用しました。詳細は [第三者素材の告知](THIRD_PARTY_NOTICES.md)、[素材マニフェスト](assets/manifest.json)、[CC0 のライセンス本文](LICENSES/CC0-1.0.txt) を参照してください。
|
data/README.md
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
# mahjong-render
|
|
2
2
|
|
|
3
|
-
[](https://
|
|
3
|
+
[](https://rubygems.org/gems/mahjong-render)
|
|
4
4
|
[](https://github.com/kjun1/mahjong-render/actions/workflows/ci.yml)
|
|
5
5
|
|
|
6
6
|
[日本語版 README](README.ja.md)
|
|
@@ -29,7 +29,7 @@ To install a build from a local checkout:
|
|
|
29
29
|
|
|
30
30
|
```sh
|
|
31
31
|
gem build mahjong-render.gemspec
|
|
32
|
-
gem install --local ./mahjong-render-0.2.
|
|
32
|
+
gem install --local ./mahjong-render-0.2.1.gem
|
|
33
33
|
```
|
|
34
34
|
|
|
35
35
|
Render a hand from the command line or from Ruby:
|
|
@@ -106,7 +106,7 @@ Open this repository in a devcontainer, or use a supported MRI Ruby with Bundler
|
|
|
106
106
|
bundle install
|
|
107
107
|
bundle exec rake lint test assets:check licenses:check example:build
|
|
108
108
|
gem build mahjong-render.gemspec
|
|
109
|
-
ruby script/check_package.rb mahjong-render-0.2.
|
|
109
|
+
ruby script/check_package.rb mahjong-render-0.2.1.gem
|
|
110
110
|
```
|
|
111
111
|
|
|
112
112
|
The example HTML is written to `tmp/basic.html`. The test suite rasterizes a sample SVG to confirm the embedded vector artwork renders.
|
|
@@ -120,4 +120,4 @@ ruby -Ilib -rmahjong_render -e 'print MahjongRender.render("405m456p789s12344z")
|
|
|
120
120
|
|
|
121
121
|
## Third-party components and license
|
|
122
122
|
|
|
123
|
-
Copyright 2026
|
|
123
|
+
Copyright 2026 kjun1. The project Ruby code and text documentation are licensed under [Apache-2.0](LICENSE). The bundled tile artwork and the [README preview](examples/hand.png) are CC0-1.0. The artwork comes from [FluffyStuff/riichi-mahjong-tiles](https://github.com/FluffyStuff/riichi-mahjong-tiles); see [third-party notices](THIRD_PARTY_NOTICES.md), [the asset manifest](assets/manifest.json), and [the CC0 legal text](LICENSES/CC0-1.0.txt). The gem metadata lists both licenses; each applies to the components described here.
|
data/docs/adr/0002-license.md
CHANGED
|
@@ -2,4 +2,4 @@
|
|
|
2
2
|
|
|
3
3
|
Status: accepted for v0.1.0.
|
|
4
4
|
|
|
5
|
-
Use Apache-2.0 (`SPDX-License-Identifier: Apache-2.0`) for project code and documentation, attributed to
|
|
5
|
+
Use Apache-2.0 (`SPDX-License-Identifier: Apache-2.0`) for project code and documentation, attributed to kjun1. The bundled tile SVGs and `examples/hand.png`, which is generated from those SVGs, remain independently CC0-1.0. Gem metadata lists both identifiers; `THIRD_PARTY_NOTICES.md` explains which files each covers because a license list alone cannot express component boundaries. Preserve the upstream declaration, full CC0 legal text, attribution, source revision, and file hashes. Keep optional and development dependency licenses separate from bundled content. CI fails when the Apache license copy changes or a locked dependency has no approved license metadata.
|
data/lib/mahjong_render.rb
CHANGED
metadata
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: mahjong-render
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.2.
|
|
4
|
+
version: 0.2.1
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
|
-
-
|
|
7
|
+
- kjun1
|
|
8
8
|
bindir: bin
|
|
9
9
|
cert_chain: []
|
|
10
10
|
date: 2026-09-24 00:00:00.000000000 Z
|
|
@@ -98,10 +98,10 @@ licenses:
|
|
|
98
98
|
- Apache-2.0
|
|
99
99
|
- CC0-1.0
|
|
100
100
|
metadata:
|
|
101
|
-
source_code_uri: https://github.com/kjun1/mahjong-render/tree/v0.2.
|
|
102
|
-
changelog_uri: https://github.com/kjun1/mahjong-render/blob/v0.2.
|
|
101
|
+
source_code_uri: https://github.com/kjun1/mahjong-render/tree/v0.2.1
|
|
102
|
+
changelog_uri: https://github.com/kjun1/mahjong-render/blob/v0.2.1/CHANGELOG.md
|
|
103
103
|
bug_tracker_uri: https://github.com/kjun1/mahjong-render/issues
|
|
104
|
-
documentation_uri: https://github.com/kjun1/mahjong-render/blob/v0.2.
|
|
104
|
+
documentation_uri: https://github.com/kjun1/mahjong-render/blob/v0.2.1/docs/api.md
|
|
105
105
|
rubygems_mfa_required: 'true'
|
|
106
106
|
rdoc_options: []
|
|
107
107
|
require_paths:
|