sashite-hand 1.0.0 → 1.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.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 0a34e61b9b036899e230483af790988ca1ee15a47d046e75422158062a1f8688
4
- data.tar.gz: 2f40ad92442b907e0385ccae4363bfe3c3aad561b2b94264b8456f3623eda193
3
+ metadata.gz: eac13e6189d9a6dd0afa046f1006b4e995770e6fac93105b4aa43cce3d529054
4
+ data.tar.gz: 7df2d9305c61869e5fb34de71e1aa8940174961a7ed251d2313554df695468bf
5
5
  SHA512:
6
- metadata.gz: f18bec432f3ab88e64957c17400c317e7f1068b247fa04f5b26d682ca3601c4d892e647406a9c0afb90cf04bb60d67cfc72a262323335587b3629e5d7c4b2445
7
- data.tar.gz: a3891d91130f6b7fb78767d049b6e543ce4ccc6eb49fb93a4a56ec9a6eea1f4401bf3a2b86e59f7164043fe5d91c763abb7f4dce19e68ee9aa267cf33993c0ef
6
+ metadata.gz: bc94d68099e9ba77d3d260156c2e1f2252c578083920cf4228be4e83c3fd51a072aa3c59c7a7765a6f852863a3a2051004d6aea8813d17f82a505fccf0a04084
7
+ data.tar.gz: 2c8a20b522accc9ba9bcdb20ae654947b3df712f13021f84fd017017d75931c30672f81620e6cdd0656b9a0b6de675ed000c92fb72f4db4c62013290e1735bc1
data/LICENSE ADDED
@@ -0,0 +1,201 @@
1
+ Apache License
2
+ Version 2.0, January 2004
3
+ http://www.apache.org/licenses/
4
+
5
+ TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
6
+
7
+ 1. Definitions.
8
+
9
+ "License" shall mean the terms and conditions for use, reproduction,
10
+ and distribution as defined by Sections 1 through 9 of this document.
11
+
12
+ "Licensor" shall mean the copyright owner or entity authorized by
13
+ the copyright owner that is granting the License.
14
+
15
+ "Legal Entity" shall mean the union of the acting entity and all
16
+ other entities that control, are controlled by, or are under common
17
+ control with that entity. For the purposes of this definition,
18
+ "control" means (i) the power, direct or indirect, to cause the
19
+ direction or management of such entity, whether by contract or
20
+ otherwise, or (ii) ownership of fifty percent (50%) or more of the
21
+ outstanding shares, or (iii) beneficial ownership of such entity.
22
+
23
+ "You" (or "Your") shall mean an individual or Legal Entity
24
+ exercising permissions granted by this License.
25
+
26
+ "Source" form shall mean the preferred form for making modifications,
27
+ including but not limited to software source code, documentation
28
+ source, and configuration files.
29
+
30
+ "Object" form shall mean any form resulting from mechanical
31
+ transformation or translation of a Source form, including but
32
+ not limited to compiled object code, generated documentation,
33
+ and conversions to other media types.
34
+
35
+ "Work" shall mean the work of authorship, whether in Source or
36
+ Object form, made available under the License, as indicated by a
37
+ copyright notice that is included in or attached to the work
38
+ (an example is provided in the Appendix below).
39
+
40
+ "Derivative Works" shall mean any work, whether in Source or Object
41
+ form, that is based on (or derived from) the Work and for which the
42
+ editorial revisions, annotations, elaborations, or other modifications
43
+ represent, as a whole, an original work of authorship. For the purposes
44
+ of this License, Derivative Works shall not include works that remain
45
+ separable from, or merely link (or bind by name) to the interfaces of,
46
+ the Work and Derivative Works thereof.
47
+
48
+ "Contribution" shall mean any work of authorship, including
49
+ the original version of the Work and any modifications or additions
50
+ to that Work or Derivative Works thereof, that is intentionally
51
+ submitted to Licensor for inclusion in the Work by the copyright owner
52
+ or by an individual or Legal Entity authorized to submit on behalf of
53
+ the copyright owner. For the purposes of this definition, "submitted"
54
+ means any form of electronic, verbal, or written communication sent
55
+ to the Licensor or its representatives, including but not limited to
56
+ communication on electronic mailing lists, source code control systems,
57
+ and issue tracking systems that are managed by, or on behalf of, the
58
+ Licensor for the purpose of discussing and improving the Work, but
59
+ excluding communication that is conspicuously marked or otherwise
60
+ designated in writing by the copyright owner as "Not a Contribution."
61
+
62
+ "Contributor" shall mean Licensor and any individual or Legal Entity
63
+ on behalf of whom a Contribution has been received by Licensor and
64
+ subsequently incorporated within the Work.
65
+
66
+ 2. Grant of Copyright License. Subject to the terms and conditions of
67
+ this License, each Contributor hereby grants to You a perpetual,
68
+ worldwide, non-exclusive, no-charge, royalty-free, irrevocable
69
+ copyright license to reproduce, prepare Derivative Works of,
70
+ publicly display, publicly perform, sublicense, and distribute the
71
+ Work and such Derivative Works in Source or Object form.
72
+
73
+ 3. Grant of Patent License. Subject to the terms and conditions of
74
+ this License, each Contributor hereby grants to You a perpetual,
75
+ worldwide, non-exclusive, no-charge, royalty-free, irrevocable
76
+ (except as stated in this section) patent license to make, have made,
77
+ use, offer to sell, sell, import, and otherwise transfer the Work,
78
+ where such license applies only to those patent claims licensable
79
+ by such Contributor that are necessarily infringed by their
80
+ Contribution(s) alone or by combination of their Contribution(s)
81
+ with the Work to which such Contribution(s) was submitted. If You
82
+ institute patent litigation against any entity (including a
83
+ cross-claim or counterclaim in a lawsuit) alleging that the Work
84
+ or a Contribution incorporated within the Work constitutes direct
85
+ or contributory patent infringement, then any patent licenses
86
+ granted to You under this License for that Work shall terminate
87
+ as of the date such litigation is filed.
88
+
89
+ 4. Redistribution. You may reproduce and distribute copies of the
90
+ Work or Derivative Works thereof in any medium, with or without
91
+ modifications, and in Source or Object form, provided that You
92
+ meet the following conditions:
93
+
94
+ (a) You must give any other recipients of the Work or
95
+ Derivative Works a copy of this License; and
96
+
97
+ (b) You must cause any modified files to carry prominent notices
98
+ stating that You changed the files; and
99
+
100
+ (c) You must retain, in the Source form of any Derivative Works
101
+ that You distribute, all copyright, patent, trademark, and
102
+ attribution notices from the Source form of the Work,
103
+ excluding those notices that do not pertain to any part of
104
+ the Derivative Works; and
105
+
106
+ (d) If the Work includes a "NOTICE" text file as part of its
107
+ distribution, then any Derivative Works that You distribute must
108
+ include a readable copy of the attribution notices contained
109
+ within such NOTICE file, excluding those notices that do not
110
+ pertain to any part of the Derivative Works, in at least one
111
+ of the following places: within a NOTICE text file distributed
112
+ as part of the Derivative Works; within the Source form or
113
+ documentation, if provided along with the Derivative Works; or,
114
+ within a display generated by the Derivative Works, if and
115
+ wherever such third-party notices normally appear. The contents
116
+ of the NOTICE file are for informational purposes only and
117
+ do not modify the License. You may add Your own attribution
118
+ notices within Derivative Works that You distribute, alongside
119
+ or as an addendum to the NOTICE text from the Work, provided
120
+ that such additional attribution notices cannot be construed
121
+ as modifying the License.
122
+
123
+ You may add Your own copyright statement to Your modifications and
124
+ may provide additional or different license terms and conditions
125
+ for use, reproduction, or distribution of Your modifications, or
126
+ for any such Derivative Works as a whole, provided Your use,
127
+ reproduction, and distribution of the Work otherwise complies with
128
+ the conditions stated in this License.
129
+
130
+ 5. Submission of Contributions. Unless You explicitly state otherwise,
131
+ any Contribution intentionally submitted for inclusion in the Work
132
+ by You to the Licensor shall be under the terms and conditions of
133
+ this License, without any additional terms or conditions.
134
+ Notwithstanding the above, nothing herein shall supersede or modify
135
+ the terms of any separate license agreement you may have executed
136
+ with Licensor regarding such Contributions.
137
+
138
+ 6. Trademarks. This License does not grant permission to use the trade
139
+ names, trademarks, service marks, or product names of the Licensor,
140
+ except as required for reasonable and customary use in describing the
141
+ origin of the Work and reproducing the content of the NOTICE file.
142
+
143
+ 7. Disclaimer of Warranty. Unless required by applicable law or
144
+ agreed to in writing, Licensor provides the Work (and each
145
+ Contributor provides its Contributions) on an "AS IS" BASIS,
146
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
147
+ implied, including, without limitation, any warranties or conditions
148
+ of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
149
+ PARTICULAR PURPOSE. You are solely responsible for determining the
150
+ appropriateness of using or redistributing the Work and assume any
151
+ risks associated with Your exercise of permissions under this License.
152
+
153
+ 8. Limitation of Liability. In no event and under no legal theory,
154
+ whether in tort (including negligence), contract, or otherwise,
155
+ unless required by applicable law (such as deliberate and grossly
156
+ negligent acts) or agreed to in writing, shall any Contributor be
157
+ liable to You for damages, including any direct, indirect, special,
158
+ incidental, or consequential damages of any character arising as a
159
+ result of this License or out of the use or inability to use the
160
+ Work (including but not limited to damages for loss of goodwill,
161
+ work stoppage, computer failure or malfunction, or any and all
162
+ other commercial damages or losses), even if such Contributor
163
+ has been advised of the possibility of such damages.
164
+
165
+ 9. Accepting Warranty or Additional Liability. While redistributing
166
+ the Work or Derivative Works thereof, You may choose to offer,
167
+ and charge a fee for, acceptance of support, warranty, indemnity,
168
+ or other liability obligations and/or rights consistent with this
169
+ License. However, in accepting such obligations, You may act only
170
+ on Your own behalf and on Your sole responsibility, not on behalf
171
+ of any other Contributor, and only if You agree to indemnify,
172
+ defend, and hold each Contributor harmless for any liability
173
+ incurred by, or claims asserted against, such Contributor by reason
174
+ of your accepting any such warranty or additional liability.
175
+
176
+ END OF TERMS AND CONDITIONS
177
+
178
+ APPENDIX: How to apply the Apache License to your work.
179
+
180
+ To apply the Apache License to your work, attach the following
181
+ boilerplate notice, with the fields enclosed by brackets "[]"
182
+ replaced with your own identifying information. (Don't include
183
+ the brackets!) The text should be enclosed in the appropriate
184
+ comment syntax for the file format. We also recommend that a
185
+ file or class name and description of purpose be included on the
186
+ same "printed page" as the copyright notice for easier
187
+ identification within third-party archives.
188
+
189
+ Copyright 2025-2026 Cyril Kato
190
+
191
+ Licensed under the Apache License, Version 2.0 (the "License");
192
+ you may not use this file except in compliance with the License.
193
+ You may obtain a copy of the License at
194
+
195
+ http://www.apache.org/licenses/LICENSE-2.0
196
+
197
+ Unless required by applicable law or agreed to in writing, software
198
+ distributed under the License is distributed on an "AS IS" BASIS,
199
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
200
+ See the License for the specific language governing permissions and
201
+ limitations under the License.
data/README.md CHANGED
@@ -1,17 +1,15 @@
1
- # Hand.rb
1
+ # hand.rb
2
2
 
3
3
  [![Version](https://img.shields.io/github/v/tag/sashite/hand.rb?label=Version&logo=github)](https://github.com/sashite/hand.rb/tags)
4
4
  [![Yard documentation](https://img.shields.io/badge/Yard-documentation-blue.svg?logo=github)](https://rubydoc.info/github/sashite/hand.rb/main)
5
- ![Ruby](https://github.com/sashite/hand.rb/actions/workflows/main.yml/badge.svg?branch=main)
6
- [![License](https://img.shields.io/github/license/sashite/hand.rb?label=License&logo=github)](https://github.com/sashite/hand.rb/raw/main/LICENSE.md)
5
+ [![CI](https://github.com/sashite/hand.rb/actions/workflows/ruby.yml/badge.svg?branch=main)](https://github.com/sashite/hand.rb/actions)
6
+ [![License](https://img.shields.io/github/license/sashite/hand.rb)](https://github.com/sashite/hand.rb/blob/main/LICENSE)
7
7
 
8
- > **HAND** (Hold And Notation Designator) implementation for the Ruby language.
8
+ > **HAND** (Hold And Notation Designator) implementation for Ruby.
9
9
 
10
- ## What is HAND?
10
+ ## Overview
11
11
 
12
- HAND (Hold And Notation Designator) is a standardized notation for representing piece reserve locations in board games where pieces can be held off-board and potentially placed. This applies to games like Shōgi, Crazyhouse, Go, and other games featuring reserve mechanics.
13
-
14
- This gem implements the [HAND Specification v1.0.0](https://sashite.dev/specs/hand/1.0.0/), providing a minimalist Ruby interface using a single character: `*` (asterisk).
12
+ This library implements the [HAND Specification v1.0.0](https://sashite.dev/specs/hand/1.0.0/).
15
13
 
16
14
  ## Installation
17
15
 
@@ -28,89 +26,108 @@ gem install sashite-hand
28
26
 
29
27
  ## Usage
30
28
 
29
+ ### Parsing (String → Symbol)
30
+
31
+ Convert a HAND string into a symbol.
32
+
31
33
  ```ruby
32
34
  require "sashite/hand"
33
35
 
34
- # Check if a location represents the reserve
35
- Sashite::Hand.reserve?("*") # => true
36
- Sashite::Hand.reserve?("a1") # => false
37
- Sashite::Hand.reserve?("**") # => false
36
+ # Standard parsing (raises on error)
37
+ Sashite::Hand.parse("*") # => :"*"
38
38
 
39
- # Get the canonical representation
40
- Sashite::Hand.to_s # => "*"
39
+ # Invalid input raises ArgumentError
40
+ Sashite::Hand.parse("e4") # => raises ArgumentError
41
+ Sashite::Hand.parse("") # => raises ArgumentError
41
42
  ```
42
43
 
43
- ### Movement Notation Examples
44
+ ### Validation
44
45
 
45
46
  ```ruby
46
- # From reserve to board
47
- source = "*"
48
- destination = "e4"
49
- puts "#{source} → #{destination}" # => "* → e4"
50
-
51
- # Shōgi piece drop
52
- puts "Dropping piece from reserve to 5e" if Sashite::Hand.reserve?("*")
53
-
54
- # Go stone placement
55
- supply = "*"
56
- puts "Placing stone from supply to dd" if Sashite::Hand.reserve?(supply)
47
+ # Boolean check
48
+ Sashite::Hand.valid?("*") # => true
49
+ Sashite::Hand.valid?("e4") # => false
50
+ Sashite::Hand.valid?("") # => false
57
51
  ```
58
52
 
59
- ## Integration with CELL
60
-
61
- HAND complements the [CELL specification](https://sashite.dev/specs/cell/) for complete location coverage:
53
+ ### Using the Notation Constant
62
54
 
63
55
  ```ruby
64
- def valid_location?(location)
65
- Sashite::Cell.valid?(location) || Sashite::Hand.reserve?(location)
66
- end
56
+ # Access the HAND notation symbol
57
+ Sashite::Hand::NOTATION # => :"*"
67
58
 
68
- valid_location?("*") # => true (reserve)
69
- valid_location?("a1") # => true (board position)
59
+ # Convert to string when needed
60
+ Sashite::Hand::NOTATION.to_s # => "*"
70
61
  ```
71
62
 
72
63
  ## API Reference
73
64
 
74
- ### Methods
75
-
76
- - `Sashite::Hand.reserve?(location)` - Check if location represents the reserve
77
- - `Sashite::Hand.to_s` - Get the canonical HAND representation (`"*"`)
78
-
79
65
  ### Constants
80
66
 
81
- - `Sashite::Hand::RESERVE` - The reserve location character (`"*"`)
67
+ ```ruby
68
+ Sashite::Hand::NOTATION # => :"*"
69
+ ```
82
70
 
83
- ## Properties
71
+ ### Parsing
84
72
 
85
- * **Minimalist**: Single character (`*`) for all reserve operations
86
- * **Universal**: Works across different board game systems
87
- * **Rule-agnostic**: Independent of specific reserve mechanics
88
- * **Complementary**: Designed to work with CELL coordinates
73
+ ```ruby
74
+ # Parses a HAND string into a symbol.
75
+ # Raises ArgumentError if the string is not valid.
76
+ #
77
+ # @param input [String] HAND notation string
78
+ # @return [Symbol] the :"*" symbol
79
+ # @raise [ArgumentError] if invalid
80
+ def Sashite::Hand.parse(input)
81
+ ```
89
82
 
90
- ## Protocol Mapping
83
+ ### Validation
91
84
 
92
- Following the [Game Protocol](https://sashite.dev/game-protocol/):
85
+ ```ruby
86
+ # Validates a HAND string.
87
+ # Raises ArgumentError with descriptive message if invalid.
88
+ #
89
+ # @param input [String] HAND notation string
90
+ # @return [nil]
91
+ # @raise [ArgumentError] if invalid
92
+ def Sashite::Hand.validate(input)
93
+
94
+ # Reports whether string is a valid HAND notation.
95
+ #
96
+ # @param input [String] HAND notation string
97
+ # @return [Boolean]
98
+ def Sashite::Hand.valid?(input)
99
+ ```
93
100
 
94
- | Protocol Attribute | HAND Encoding | Meaning |
95
- |-------------------|---------------|---------|
96
- | **Location** | `*` | Any off-board reserve area |
101
+ ### Errors
97
102
 
98
- ## Related Specifications
103
+ All parsing and validation errors raise `ArgumentError` with descriptive messages:
99
104
 
100
- - [CELL](https://sashite.dev/specs/cell/) - Board position coordinates
101
- - [GGN](https://sashite.dev/specs/ggn/) - Movement possibility rules
102
- - [PMN](https://sashite.dev/specs/pmn/) - Portable Move Notation
105
+ | Message | Cause |
106
+ |---------|-------|
107
+ | `"invalid hand notation"` | Input is not exactly `*` |
103
108
 
104
- ## Documentation
109
+ ```ruby
110
+ begin
111
+ Sashite::Hand.parse("**")
112
+ rescue ArgumentError => e
113
+ puts e.message # => "invalid hand notation"
114
+ end
115
+ ```
105
116
 
106
- - [Official HAND Specification v1.0.0](https://sashite.dev/specs/hand/1.0.0/)
107
- - [Game Protocol Foundation](https://sashite.dev/game-protocol/)
108
- - [API Documentation](https://rubydoc.info/github/sashite/hand.rb/main)
117
+ ## Design Principles
109
118
 
110
- ## License
119
+ - **Symbol-based**: Notation represented as Ruby symbol for identity semantics
120
+ - **Minimal**: Single constant and three methods
121
+ - **Ruby idioms**: `valid?` predicate, `parse` conversion
122
+ - **Strict validation**: Only the `*` character is accepted
123
+ - **No dependencies**: Pure Ruby standard library only
111
124
 
112
- Available as open source under the [MIT License](https://opensource.org/licenses/MIT).
125
+ ## Related Specifications
113
126
 
114
- ## About
127
+ - [Game Protocol](https://sashite.dev/game-protocol/) — Conceptual foundation
128
+ - [HAND Specification](https://sashite.dev/specs/hand/1.0.0/) — Official specification
129
+ - [CELL Specification](https://sashite.dev/specs/cell/1.0.0/) — Complementary notation for Board squares
130
+
131
+ ## License
115
132
 
116
- Maintained by [Sashité](https://sashite.com/) — promoting chess variants and sharing the beauty of board game cultures.
133
+ Available as open source under the [Apache License 2.0](https://opensource.org/licenses/Apache-2.0).
data/lib/sashite/hand.rb CHANGED
@@ -1,44 +1,63 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Sashite
4
- # HAND (Hold And Notation Designator) implementation
4
+ # HAND (Hold And Notation Designator) implementation.
5
5
  #
6
- # HAND defines a simple, standardized notation for piece reserve locations
7
- # in board games where pieces can be held off-board and potentially placed.
6
+ # Provides parsing and validation of HAND notation for off-board
7
+ # reserve locations in board games.
8
8
  #
9
- # @see https://sashite.dev/specs/hand/1.0.0/
10
- # @author Sashité
9
+ # @example Parsing a notation
10
+ # Sashite::Hand.parse("*") # => :"*"
11
+ #
12
+ # @example Validation
13
+ # Sashite::Hand.valid?("*") # => true
14
+ # Sashite::Hand.valid?("e4") # => false
11
15
  #
12
- # @example Basic usage
13
- # Sashite::Hand.reserve?("*") # => true
14
- # Sashite::Hand.reserve?("a1") # => false
15
- # Sashite::Hand.to_s # => "*"
16
+ # @see https://sashite.dev/specs/hand/1.0.0/
16
17
  module Hand
17
- # The reserve location character
18
- RESERVE = "*"
18
+ # The HAND notation symbol representing an off-board reserve location.
19
+ NOTATION = :"*"
20
+
21
+ # Error message for invalid input.
22
+ ERROR_MESSAGE = "invalid hand notation"
23
+
24
+ # Parses a HAND string into a symbol.
25
+ #
26
+ # @param input [String] HAND notation string
27
+ # @return [Symbol] the :"*" symbol
28
+ # @raise [ArgumentError] if the string is not valid HAND notation
29
+ #
30
+ # @example
31
+ # Sashite::Hand.parse("*") # => :"*"
32
+ # Sashite::Hand.parse("e4") # => raises ArgumentError
33
+ def self.parse(input)
34
+ validate(input)
35
+ NOTATION
36
+ end
19
37
 
20
- # Check if a string represents the reserve location
38
+ # Validates a HAND string.
21
39
  #
22
- # @param string [String] the string to check
23
- # @return [Boolean] true if the string is the reserve location
40
+ # @param input [String] HAND notation string
41
+ # @return [nil]
42
+ # @raise [ArgumentError] if the string is not valid HAND notation
24
43
  #
25
44
  # @example
26
- # Sashite::Hand.reserve?("*") # => true
27
- # Sashite::Hand.reserve?("a1") # => false
28
- # Sashite::Hand.reserve?("**") # => false
29
- # Sashite::Hand.reserve?("") # => false
30
- def self.reserve?(string)
31
- RESERVE.eql?(string)
45
+ # Sashite::Hand.validate("*") # => nil
46
+ # Sashite::Hand.validate("**") # => raises ArgumentError
47
+ def self.validate(input)
48
+ raise ::ArgumentError, ERROR_MESSAGE unless valid?(input)
32
49
  end
33
50
 
34
- # Get the canonical HAND representation
51
+ # Reports whether string is a valid HAND notation.
35
52
  #
36
- # @return [String] the reserve location character
53
+ # @param input [String] HAND notation string
54
+ # @return [Boolean] true if valid, false otherwise
37
55
  #
38
56
  # @example
39
- # Sashite::Hand.to_s # => "*"
40
- def self.to_s
41
- RESERVE
57
+ # Sashite::Hand.valid?("*") # => true
58
+ # Sashite::Hand.valid?("e4") # => false
59
+ def self.valid?(input)
60
+ input == NOTATION.to_s
42
61
  end
43
62
  end
44
63
  end
data/lib/sashite-hand.rb CHANGED
@@ -1,9 +1,3 @@
1
1
  # frozen_string_literal: true
2
2
 
3
- # Sashité namespace
4
- module Sashite
5
- # @see https://sashite.dev/documents/hand/1.0.0/ HAND Specification v1.0.0
6
- # @author Sashité
7
- end
8
-
9
3
  require_relative "sashite/hand"
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: sashite-hand
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.0
4
+ version: 1.1.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Cyril Kato
@@ -17,19 +17,21 @@ executables: []
17
17
  extensions: []
18
18
  extra_rdoc_files: []
19
19
  files:
20
- - LICENSE.md
20
+ - LICENSE
21
21
  - README.md
22
22
  - lib/sashite-hand.rb
23
23
  - lib/sashite/hand.rb
24
24
  homepage: https://github.com/sashite/hand.rb
25
25
  licenses:
26
- - MIT
26
+ - Apache-2.0
27
27
  metadata:
28
28
  bug_tracker_uri: https://github.com/sashite/hand.rb/issues
29
29
  documentation_uri: https://rubydoc.info/github/sashite/hand.rb/main
30
30
  homepage_uri: https://github.com/sashite/hand.rb
31
31
  source_code_uri: https://github.com/sashite/hand.rb
32
32
  specification_uri: https://sashite.dev/specs/hand/1.0.0/
33
+ wiki_uri: https://sashite.dev/specs/hand/1.0.0/examples/
34
+ funding_uri: https://github.com/sponsors/sashite
33
35
  rubygems_mfa_required: 'true'
34
36
  rdoc_options: []
35
37
  require_paths:
@@ -45,7 +47,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
45
47
  - !ruby/object:Gem::Version
46
48
  version: '0'
47
49
  requirements: []
48
- rubygems_version: 3.6.9
50
+ rubygems_version: 4.0.3
49
51
  specification_version: 4
50
52
  summary: HAND (Hold And Notation Designator) implementation for Ruby
51
53
  test_files: []
data/LICENSE.md DELETED
@@ -1,22 +0,0 @@
1
- Copyright (c) 2025 Sashite
2
-
3
- MIT License
4
-
5
- Permission is hereby granted, free of charge, to any person obtaining
6
- a copy of this software and associated documentation files (the
7
- "Software"), to deal in the Software without restriction, including
8
- without limitation the rights to use, copy, modify, merge, publish,
9
- distribute, sublicense, and/or sell copies of the Software, and to
10
- permit persons to whom the Software is furnished to do so, subject to
11
- the following conditions:
12
-
13
- The above copyright notice and this permission notice shall be
14
- included in all copies or substantial portions of the Software.
15
-
16
- THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
17
- EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
18
- MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
19
- NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
20
- LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
21
- OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
22
- WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.