portable_move_notation 0.1.0 → 0.2.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 +4 -4
- data/{LICENSE.txt → LICENSE.md} +1 -1
- data/README.md +23 -17
- metadata +38 -50
- data/.DS_Store +0 -0
- data/.gitignore +0 -11
- data/.rspec +0 -3
- data/.rubocop.yml +0 -1
- data/.rubocop_todo.yml +0 -41
- data/.ruby-version +0 -1
- data/.travis.yml +0 -7
- data/CODE_OF_CONDUCT.md +0 -74
- data/Gemfile +0 -7
- data/Gemfile.lock +0 -56
- data/Rakefile +0 -29
- data/VERSION.semver +0 -1
- data/bin/console +0 -15
- data/bin/setup +0 -9
- data/portable_move_notation.gemspec +0 -28
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 6b589b978146bc86d24e4190c46e89c055d22ad75c3ae50605b64159e8e6908c
|
4
|
+
data.tar.gz: 9b7391b895988cf11771ccd79e6827f09e26215ca2393a0cd45b50c2c7ae2385
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 8db07cc1f4b394860a4b169ea8c66dfe3a49b9dc386c4d822a9b581d30b9bc9c42893f857e82cb88a2323f0bd6e9314356bb48da41192cea81e8c0b48a768e70
|
7
|
+
data.tar.gz: 41fe5971834d95f244d62daaa26a53fb57b34f6f1ab6730c76fd1696b3ce5a8d70daa9c783222d13e5c874624716cb30c5dcc07dd01432331e4ba57842cb4894
|
data/{LICENSE.txt → LICENSE.md}
RENAMED
data/README.md
CHANGED
@@ -27,17 +27,17 @@ require 'portable_move_notation'
|
|
27
27
|
|
28
28
|
# Parse a PMN string
|
29
29
|
|
30
|
-
PortableMoveNotation.load('52,36,
|
30
|
+
PortableMoveNotation.load('52,36,C:P.12,28,c:p.53,37,C:P') # => [[[52, 36, 'C:P', nil]], [[12, 28, 'c:p', nil]], [[53, 37, 'C:P', nil]]]
|
31
31
|
|
32
32
|
# Emit some PMN
|
33
33
|
|
34
34
|
some_moves = [
|
35
|
-
[[52, 36, '
|
36
|
-
[[12, 28, '
|
37
|
-
[[53, 37, '
|
35
|
+
[[52, 36, 'C:P', nil]],
|
36
|
+
[[12, 28, 'c:p', nil]],
|
37
|
+
[[53, 37, 'C:P', nil]]
|
38
38
|
]
|
39
39
|
|
40
|
-
PortableMoveNotation.dump(*some_moves) # => '52,36,
|
40
|
+
PortableMoveNotation.dump(*some_moves) # => '52,36,C:P.12,28,c:p.53,37,C:P'
|
41
41
|
```
|
42
42
|
|
43
43
|
### Other examples
|
@@ -45,41 +45,41 @@ PortableMoveNotation.dump(*some_moves) # => '52,36,W:P.12,28,w:p.53,37,W:P'
|
|
45
45
|
#### Castling on kingside
|
46
46
|
|
47
47
|
```ruby
|
48
|
-
PortableMoveNotation.
|
49
|
-
PortableMoveNotation.
|
48
|
+
PortableMoveNotation.load('60,62,C:-K;63,61,C:R') # => [[[60, 62, 'C:-K', nil], [63, 61, 'C:R', nil]]]
|
49
|
+
PortableMoveNotation.dump(*[[[60, 62, 'C:-K', nil], [63, 61, 'C:R', nil]]]) # => '60,62,C:-K;63,61,C:R'
|
50
50
|
```
|
51
51
|
|
52
52
|
#### Promoting a chess pawn into a knight
|
53
53
|
|
54
54
|
```ruby
|
55
|
-
PortableMoveNotation.
|
56
|
-
PortableMoveNotation.
|
55
|
+
PortableMoveNotation.load('12,4,C:P,C:N') # => [[[12, 4, 'C:P', 'C:N']]]
|
56
|
+
PortableMoveNotation.dump(*[[[12, 4, 'C:P', 'C:N']]]) # => '12,4,C:P,C:N'
|
57
57
|
```
|
58
58
|
|
59
59
|
#### Promoting a shogi pawn
|
60
60
|
|
61
61
|
```ruby
|
62
|
-
PortableMoveNotation.
|
63
|
-
PortableMoveNotation.
|
62
|
+
PortableMoveNotation.load('33,24,S:P,S:+P') # => [[[33, 24, 'S:P', 'S:+P']]]
|
63
|
+
PortableMoveNotation.dump(*[[[33, 24, 'S:P', 'S:+P']]]) # => '33,24,S:P,S:+P'
|
64
64
|
```
|
65
65
|
|
66
66
|
#### Dropping a shogi pawn
|
67
67
|
|
68
68
|
```ruby
|
69
|
-
PortableMoveNotation.
|
70
|
-
PortableMoveNotation.
|
69
|
+
PortableMoveNotation.load('*,42,S:P') # => [[[nil, 42, 'S:P', nil]]]
|
70
|
+
PortableMoveNotation.dump(*[[[nil, 42, 'S:P', nil]]]) # => '*,42,S:P'
|
71
71
|
```
|
72
72
|
|
73
73
|
#### Capturing a white chess pawn en passant
|
74
74
|
|
75
75
|
```ruby
|
76
|
-
PortableMoveNotation.
|
77
|
-
PortableMoveNotation.
|
76
|
+
PortableMoveNotation.load('48,32,C:P.33,32,c:p;32,40,c:p') # => [[[48, 32, 'C:P', nil]], [[33, 32, 'c:p', nil], [32, 40, 'c:p', nil]]]
|
77
|
+
PortableMoveNotation.dump(*[[[48, 32, 'C:P', nil]], [[33, 32, 'c:p', nil], [32, 40, 'c:p', nil]]]) # => '48,32,C:P.33,32,c:p;32,40,c:p'
|
78
78
|
```
|
79
79
|
|
80
80
|
## Contributing
|
81
81
|
|
82
|
-
Bug reports and pull requests are welcome on GitHub at https://github.com/sashite/portable_move_notation.rb. This project is intended to be a safe, welcoming space for collaboration, and contributors are expected to adhere to the [Contributor Covenant](
|
82
|
+
Bug reports and pull requests are welcome on GitHub at https://github.com/sashite/portable_move_notation.rb. This project is intended to be a safe, welcoming space for collaboration, and contributors are expected to adhere to the [Contributor Covenant](https://www.contributor-covenant.org/) code of conduct.
|
83
83
|
|
84
84
|
## License
|
85
85
|
|
@@ -87,4 +87,10 @@ The gem is available as open source under the terms of the [MIT License](https:/
|
|
87
87
|
|
88
88
|
## Code of Conduct
|
89
89
|
|
90
|
-
Everyone interacting in the PortableMoveNotation project
|
90
|
+
Everyone interacting in the PortableMoveNotation project's codebases, issue trackers, chat rooms and mailing lists is expected to follow the [code of conduct](https://github.com/sashite/portable_move_notation.rb/blob/master/CODE_OF_CONDUCT.md).
|
91
|
+
|
92
|
+
## About Sashite
|
93
|
+
|
94
|
+
The `portable_move_notation` gem is maintained by [Sashite](https://sashite.com/).
|
95
|
+
|
96
|
+
With some [lines of code](https://github.com/sashite/), let's share the beauty of Chinese, Japanese and Western cultures through the game of chess!
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: portable_move_notation
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.2.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Cyril Kato
|
8
8
|
autorequire:
|
9
|
-
bindir:
|
9
|
+
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2020-05-14 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: awesome_print
|
@@ -28,16 +28,16 @@ dependencies:
|
|
28
28
|
name: bundler
|
29
29
|
requirement: !ruby/object:Gem::Requirement
|
30
30
|
requirements:
|
31
|
-
- - "
|
31
|
+
- - ">="
|
32
32
|
- !ruby/object:Gem::Version
|
33
|
-
version: '
|
33
|
+
version: '0'
|
34
34
|
type: :development
|
35
35
|
prerelease: false
|
36
36
|
version_requirements: !ruby/object:Gem::Requirement
|
37
37
|
requirements:
|
38
|
-
- - "
|
38
|
+
- - ">="
|
39
39
|
- !ruby/object:Gem::Version
|
40
|
-
version: '
|
40
|
+
version: '0'
|
41
41
|
- !ruby/object:Gem::Dependency
|
42
42
|
name: byebug
|
43
43
|
requirement: !ruby/object:Gem::Requirement
|
@@ -56,105 +56,93 @@ dependencies:
|
|
56
56
|
name: rake
|
57
57
|
requirement: !ruby/object:Gem::Requirement
|
58
58
|
requirements:
|
59
|
-
- - "
|
59
|
+
- - ">="
|
60
60
|
- !ruby/object:Gem::Version
|
61
|
-
version: '
|
61
|
+
version: '0'
|
62
62
|
type: :development
|
63
63
|
prerelease: false
|
64
64
|
version_requirements: !ruby/object:Gem::Requirement
|
65
65
|
requirements:
|
66
|
-
- - "
|
66
|
+
- - ">="
|
67
67
|
- !ruby/object:Gem::Version
|
68
|
-
version: '
|
68
|
+
version: '0'
|
69
69
|
- !ruby/object:Gem::Dependency
|
70
|
-
name: rubocop
|
70
|
+
name: rubocop-performance
|
71
71
|
requirement: !ruby/object:Gem::Requirement
|
72
72
|
requirements:
|
73
|
-
- - "
|
73
|
+
- - ">="
|
74
74
|
- !ruby/object:Gem::Version
|
75
|
-
version: '0
|
75
|
+
version: '0'
|
76
76
|
type: :development
|
77
77
|
prerelease: false
|
78
78
|
version_requirements: !ruby/object:Gem::Requirement
|
79
79
|
requirements:
|
80
|
-
- - "
|
80
|
+
- - ">="
|
81
81
|
- !ruby/object:Gem::Version
|
82
|
-
version: '0
|
82
|
+
version: '0'
|
83
83
|
- !ruby/object:Gem::Dependency
|
84
|
-
name: rubocop-
|
84
|
+
name: rubocop-thread_safety
|
85
85
|
requirement: !ruby/object:Gem::Requirement
|
86
86
|
requirements:
|
87
|
-
- - "
|
87
|
+
- - ">="
|
88
88
|
- !ruby/object:Gem::Version
|
89
|
-
version: '
|
89
|
+
version: '0'
|
90
90
|
type: :development
|
91
91
|
prerelease: false
|
92
92
|
version_requirements: !ruby/object:Gem::Requirement
|
93
93
|
requirements:
|
94
|
-
- - "
|
94
|
+
- - ">="
|
95
95
|
- !ruby/object:Gem::Version
|
96
|
-
version: '
|
96
|
+
version: '0'
|
97
97
|
- !ruby/object:Gem::Dependency
|
98
98
|
name: simplecov
|
99
99
|
requirement: !ruby/object:Gem::Requirement
|
100
100
|
requirements:
|
101
|
-
- - "
|
101
|
+
- - ">="
|
102
102
|
- !ruby/object:Gem::Version
|
103
|
-
version: '0
|
103
|
+
version: '0'
|
104
104
|
type: :development
|
105
105
|
prerelease: false
|
106
106
|
version_requirements: !ruby/object:Gem::Requirement
|
107
107
|
requirements:
|
108
|
-
- - "
|
108
|
+
- - ">="
|
109
109
|
- !ruby/object:Gem::Version
|
110
|
-
version: '0
|
110
|
+
version: '0'
|
111
111
|
- !ruby/object:Gem::Dependency
|
112
112
|
name: yard
|
113
113
|
requirement: !ruby/object:Gem::Requirement
|
114
114
|
requirements:
|
115
|
-
- - "
|
115
|
+
- - ">="
|
116
116
|
- !ruby/object:Gem::Version
|
117
|
-
version: '0
|
117
|
+
version: '0'
|
118
118
|
type: :development
|
119
119
|
prerelease: false
|
120
120
|
version_requirements: !ruby/object:Gem::Requirement
|
121
121
|
requirements:
|
122
|
-
- - "
|
122
|
+
- - ">="
|
123
123
|
- !ruby/object:Gem::Version
|
124
|
-
version: '0
|
124
|
+
version: '0'
|
125
125
|
description: A Ruby interface for data serialization in PMN format.
|
126
|
-
email:
|
127
|
-
- contact@cyril.email
|
126
|
+
email: contact@cyril.email
|
128
127
|
executables: []
|
129
128
|
extensions: []
|
130
129
|
extra_rdoc_files: []
|
131
130
|
files:
|
132
|
-
-
|
133
|
-
- ".gitignore"
|
134
|
-
- ".rspec"
|
135
|
-
- ".rubocop.yml"
|
136
|
-
- ".rubocop_todo.yml"
|
137
|
-
- ".ruby-version"
|
138
|
-
- ".travis.yml"
|
139
|
-
- CODE_OF_CONDUCT.md
|
140
|
-
- Gemfile
|
141
|
-
- Gemfile.lock
|
142
|
-
- LICENSE.txt
|
131
|
+
- LICENSE.md
|
143
132
|
- README.md
|
144
|
-
- Rakefile
|
145
|
-
- VERSION.semver
|
146
|
-
- bin/console
|
147
|
-
- bin/setup
|
148
133
|
- lib/portable_move_notation.rb
|
149
134
|
- lib/portable_move_notation/action/dump.rb
|
150
135
|
- lib/portable_move_notation/action/load.rb
|
151
136
|
- lib/portable_move_notation/dump.rb
|
152
137
|
- lib/portable_move_notation/load.rb
|
153
|
-
|
154
|
-
homepage: https://github.com/sashite/portable_move_notation.rb
|
138
|
+
homepage: https://developer.sashite.com/specs/portable-move-notation
|
155
139
|
licenses:
|
156
140
|
- MIT
|
157
|
-
metadata:
|
141
|
+
metadata:
|
142
|
+
bug_tracker_uri: https://github.com/sashite/portable_move_notation.rb/issues
|
143
|
+
documentation_uri: https://rubydoc.info/gems/portable_move_notation/index
|
144
|
+
source_code_uri: https://github.com/sashite/portable_move_notation.rb
|
145
|
+
wiki_uri: https://github.com/sashite/portable_move_notation.rb/wiki
|
158
146
|
post_install_message:
|
159
147
|
rdoc_options: []
|
160
148
|
require_paths:
|
@@ -170,7 +158,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
170
158
|
- !ruby/object:Gem::Version
|
171
159
|
version: '0'
|
172
160
|
requirements: []
|
173
|
-
rubygems_version: 3.
|
161
|
+
rubygems_version: 3.1.2
|
174
162
|
signing_key:
|
175
163
|
specification_version: 4
|
176
164
|
summary: Data serialization in PMN format.
|
data/.DS_Store
DELETED
Binary file
|
data/.gitignore
DELETED
data/.rspec
DELETED
data/.rubocop.yml
DELETED
@@ -1 +0,0 @@
|
|
1
|
-
inherit_from: .rubocop_todo.yml
|
data/.rubocop_todo.yml
DELETED
@@ -1,41 +0,0 @@
|
|
1
|
-
# This configuration was generated by
|
2
|
-
# `rubocop --auto-gen-config`
|
3
|
-
# on 2019-08-05 16:17:14 +0200 using RuboCop version 0.74.0.
|
4
|
-
# The point is for the user to remove these configuration records
|
5
|
-
# one by one as the offenses are removed from the code base.
|
6
|
-
# Note that changes in the inspected code, or installation of new
|
7
|
-
# versions of RuboCop, may require this file to be generated again.
|
8
|
-
|
9
|
-
# Offense count: 1
|
10
|
-
Metrics/AbcSize:
|
11
|
-
Max: 18
|
12
|
-
|
13
|
-
# Offense count: 1
|
14
|
-
Metrics/CyclomaticComplexity:
|
15
|
-
Max: 8
|
16
|
-
|
17
|
-
# Offense count: 1
|
18
|
-
# Configuration parameters: CountComments, ExcludedMethods.
|
19
|
-
Metrics/MethodLength:
|
20
|
-
Max: 12
|
21
|
-
|
22
|
-
# Offense count: 1
|
23
|
-
Metrics/PerceivedComplexity:
|
24
|
-
Max: 8
|
25
|
-
|
26
|
-
# Offense count: 4
|
27
|
-
Style/Documentation:
|
28
|
-
Exclude:
|
29
|
-
- 'spec/**/*'
|
30
|
-
- 'test/**/*'
|
31
|
-
- 'lib/portable_move_notation/action/dump.rb'
|
32
|
-
- 'lib/portable_move_notation/action/load.rb'
|
33
|
-
- 'lib/portable_move_notation/dump.rb'
|
34
|
-
- 'lib/portable_move_notation/load.rb'
|
35
|
-
|
36
|
-
# Offense count: 12
|
37
|
-
# Cop supports --auto-correct.
|
38
|
-
# Configuration parameters: AutoCorrect, AllowHeredoc, AllowURI, URISchemes, IgnoreCopDirectives, IgnoredPatterns.
|
39
|
-
# URISchemes: http, https
|
40
|
-
Metrics/LineLength:
|
41
|
-
Max: 490
|
data/.ruby-version
DELETED
@@ -1 +0,0 @@
|
|
1
|
-
2.6.3
|
data/.travis.yml
DELETED
data/CODE_OF_CONDUCT.md
DELETED
@@ -1,74 +0,0 @@
|
|
1
|
-
# Contributor Covenant Code of Conduct
|
2
|
-
|
3
|
-
## Our Pledge
|
4
|
-
|
5
|
-
In the interest of fostering an open and welcoming environment, we as
|
6
|
-
contributors and maintainers pledge to making participation in our project and
|
7
|
-
our community a harassment-free experience for everyone, regardless of age, body
|
8
|
-
size, disability, ethnicity, gender identity and expression, level of experience,
|
9
|
-
nationality, personal appearance, race, religion, or sexual identity and
|
10
|
-
orientation.
|
11
|
-
|
12
|
-
## Our Standards
|
13
|
-
|
14
|
-
Examples of behavior that contributes to creating a positive environment
|
15
|
-
include:
|
16
|
-
|
17
|
-
* Using welcoming and inclusive language
|
18
|
-
* Being respectful of differing viewpoints and experiences
|
19
|
-
* Gracefully accepting constructive criticism
|
20
|
-
* Focusing on what is best for the community
|
21
|
-
* Showing empathy towards other community members
|
22
|
-
|
23
|
-
Examples of unacceptable behavior by participants include:
|
24
|
-
|
25
|
-
* The use of sexualized language or imagery and unwelcome sexual attention or
|
26
|
-
advances
|
27
|
-
* Trolling, insulting/derogatory comments, and personal or political attacks
|
28
|
-
* Public or private harassment
|
29
|
-
* Publishing others' private information, such as a physical or electronic
|
30
|
-
address, without explicit permission
|
31
|
-
* Other conduct which could reasonably be considered inappropriate in a
|
32
|
-
professional setting
|
33
|
-
|
34
|
-
## Our Responsibilities
|
35
|
-
|
36
|
-
Project maintainers are responsible for clarifying the standards of acceptable
|
37
|
-
behavior and are expected to take appropriate and fair corrective action in
|
38
|
-
response to any instances of unacceptable behavior.
|
39
|
-
|
40
|
-
Project maintainers have the right and responsibility to remove, edit, or
|
41
|
-
reject comments, commits, code, wiki edits, issues, and other contributions
|
42
|
-
that are not aligned to this Code of Conduct, or to ban temporarily or
|
43
|
-
permanently any contributor for other behaviors that they deem inappropriate,
|
44
|
-
threatening, offensive, or harmful.
|
45
|
-
|
46
|
-
## Scope
|
47
|
-
|
48
|
-
This Code of Conduct applies both within project spaces and in public spaces
|
49
|
-
when an individual is representing the project or its community. Examples of
|
50
|
-
representing a project or community include using an official project e-mail
|
51
|
-
address, posting via an official social media account, or acting as an appointed
|
52
|
-
representative at an online or offline event. Representation of a project may be
|
53
|
-
further defined and clarified by project maintainers.
|
54
|
-
|
55
|
-
## Enforcement
|
56
|
-
|
57
|
-
Instances of abusive, harassing, or otherwise unacceptable behavior may be
|
58
|
-
reported by contacting the project team at contact@cyril.email. All
|
59
|
-
complaints will be reviewed and investigated and will result in a response that
|
60
|
-
is deemed necessary and appropriate to the circumstances. The project team is
|
61
|
-
obligated to maintain confidentiality with regard to the reporter of an incident.
|
62
|
-
Further details of specific enforcement policies may be posted separately.
|
63
|
-
|
64
|
-
Project maintainers who do not follow or enforce the Code of Conduct in good
|
65
|
-
faith may face temporary or permanent repercussions as determined by other
|
66
|
-
members of the project's leadership.
|
67
|
-
|
68
|
-
## Attribution
|
69
|
-
|
70
|
-
This Code of Conduct is adapted from the [Contributor Covenant][homepage], version 1.4,
|
71
|
-
available at [http://contributor-covenant.org/version/1/4][version]
|
72
|
-
|
73
|
-
[homepage]: http://contributor-covenant.org
|
74
|
-
[version]: http://contributor-covenant.org/version/1/4/
|
data/Gemfile
DELETED
data/Gemfile.lock
DELETED
@@ -1,56 +0,0 @@
|
|
1
|
-
PATH
|
2
|
-
remote: .
|
3
|
-
specs:
|
4
|
-
portable_move_notation (0.1.0)
|
5
|
-
|
6
|
-
GEM
|
7
|
-
remote: https://rubygems.org/
|
8
|
-
specs:
|
9
|
-
ast (2.4.0)
|
10
|
-
awesome_print (1.8.0)
|
11
|
-
byebug (11.0.1)
|
12
|
-
docile (1.3.2)
|
13
|
-
jaro_winkler (1.5.3)
|
14
|
-
json (2.2.0)
|
15
|
-
parallel (1.17.0)
|
16
|
-
parser (2.6.3.0)
|
17
|
-
ast (~> 2.4.0)
|
18
|
-
rainbow (3.0.0)
|
19
|
-
rake (12.3.3)
|
20
|
-
rubocop (0.74.0)
|
21
|
-
jaro_winkler (~> 1.5.1)
|
22
|
-
parallel (~> 1.10)
|
23
|
-
parser (>= 2.6)
|
24
|
-
rainbow (>= 2.2.2, < 4.0)
|
25
|
-
ruby-progressbar (~> 1.7)
|
26
|
-
unicode-display_width (>= 1.4.0, < 1.7)
|
27
|
-
rubocop-performance (1.4.1)
|
28
|
-
rubocop (>= 0.71.0)
|
29
|
-
ruby-progressbar (1.10.1)
|
30
|
-
simplecov (0.17.0)
|
31
|
-
docile (~> 1.1)
|
32
|
-
json (>= 1.8, < 3)
|
33
|
-
simplecov-html (~> 0.10.0)
|
34
|
-
simplecov-html (0.10.2)
|
35
|
-
unicode-display_width (1.6.0)
|
36
|
-
yard (0.9.20)
|
37
|
-
|
38
|
-
PLATFORMS
|
39
|
-
ruby
|
40
|
-
|
41
|
-
DEPENDENCIES
|
42
|
-
awesome_print
|
43
|
-
bundler (~> 2.0)
|
44
|
-
byebug
|
45
|
-
portable_move_notation!
|
46
|
-
rake (~> 12.3)
|
47
|
-
rubocop (~> 0.72)
|
48
|
-
rubocop-performance (~> 1.4)
|
49
|
-
simplecov (~> 0.17)
|
50
|
-
yard (~> 0.9)
|
51
|
-
|
52
|
-
RUBY VERSION
|
53
|
-
ruby 2.6.3p62
|
54
|
-
|
55
|
-
BUNDLED WITH
|
56
|
-
2.0.1
|
data/Rakefile
DELETED
@@ -1,29 +0,0 @@
|
|
1
|
-
# frozen_string_literal: true
|
2
|
-
|
3
|
-
require 'bundler/gem_tasks'
|
4
|
-
require 'rake/testtask'
|
5
|
-
require 'rubocop/rake_task'
|
6
|
-
|
7
|
-
require 'byebug'
|
8
|
-
|
9
|
-
RuboCop::RakeTask.new do |task|
|
10
|
-
task.requires << 'rubocop-performance'
|
11
|
-
end
|
12
|
-
|
13
|
-
Rake::TestTask.new do |t|
|
14
|
-
t.pattern = 'test/**/*.rb'
|
15
|
-
t.verbose = true
|
16
|
-
t.warning = true
|
17
|
-
end
|
18
|
-
|
19
|
-
namespace :test do
|
20
|
-
task :coverage do
|
21
|
-
ENV['COVERAGE'] = 'true'
|
22
|
-
Rake::Task['test'].invoke
|
23
|
-
end
|
24
|
-
end
|
25
|
-
|
26
|
-
task(:doc_stats) { ruby '-S yard stats' }
|
27
|
-
task default: %i[test doc_stats rubocop]
|
28
|
-
|
29
|
-
Dir.glob(File.join('tasks', '**', '*.rake')).each { |r| import(r) }
|
data/VERSION.semver
DELETED
@@ -1 +0,0 @@
|
|
1
|
-
0.1.0
|
data/bin/console
DELETED
@@ -1,15 +0,0 @@
|
|
1
|
-
#!/usr/bin/env ruby
|
2
|
-
# frozen_string_literal: true
|
3
|
-
|
4
|
-
require 'bundler/setup'
|
5
|
-
require 'portable_move_notation'
|
6
|
-
|
7
|
-
# You can add fixtures and/or initialization code here to make experimenting
|
8
|
-
# with your gem easier. You can also use a different console, if you like.
|
9
|
-
|
10
|
-
# (If you use this, don't forget to add pry to your Gemfile!)
|
11
|
-
# require 'pry'
|
12
|
-
# Pry.start
|
13
|
-
|
14
|
-
require 'irb'
|
15
|
-
IRB.start(__FILE__)
|
data/bin/setup
DELETED
@@ -1,28 +0,0 @@
|
|
1
|
-
# frozen_string_literal: true
|
2
|
-
|
3
|
-
Gem::Specification.new do |spec|
|
4
|
-
spec.name = 'portable_move_notation'
|
5
|
-
spec.version = File.read('VERSION.semver')
|
6
|
-
spec.authors = ['Cyril Kato']
|
7
|
-
spec.email = ['contact@cyril.email']
|
8
|
-
spec.description = 'A Ruby interface for data serialization in PMN format.'
|
9
|
-
spec.summary = 'Data serialization in PMN format.'
|
10
|
-
spec.homepage = 'https://github.com/sashite/portable_move_notation.rb'
|
11
|
-
spec.license = 'MIT'
|
12
|
-
|
13
|
-
spec.files = `git ls-files -z`.split("\x0").reject do |f|
|
14
|
-
f.match(%r{^(test)/})
|
15
|
-
end
|
16
|
-
spec.bindir = 'exe'
|
17
|
-
spec.executables = spec.files.grep(%r{^exe/}) { |f| File.basename(f) }
|
18
|
-
spec.require_paths = ['lib']
|
19
|
-
|
20
|
-
spec.add_development_dependency 'awesome_print'
|
21
|
-
spec.add_development_dependency 'bundler', '~> 2.0'
|
22
|
-
spec.add_development_dependency 'byebug'
|
23
|
-
spec.add_development_dependency 'rake', '~> 12.3'
|
24
|
-
spec.add_development_dependency 'rubocop', '~> 0.72'
|
25
|
-
spec.add_development_dependency 'rubocop-performance', '~> 1.4'
|
26
|
-
spec.add_development_dependency 'simplecov', '~> 0.17'
|
27
|
-
spec.add_development_dependency 'yard', '~> 0.9'
|
28
|
-
end
|