jkf 0.4.3 → 0.5.1

Sign up to get free protection for your applications and to get access to all the features.
data/lib/jkf/parser.rb CHANGED
@@ -1,13 +1,11 @@
1
1
  module Jkf
2
- # Define parser namespace
3
2
  module Parser
4
- # Parse error
5
3
  class ParseError < StandardError; end
6
4
  end
7
5
  end
8
6
 
9
- require "jkf/parser/base"
10
- require "jkf/parser/kifuable"
11
- require "jkf/parser/kif"
12
- require "jkf/parser/ki2"
13
- require "jkf/parser/csa"
7
+ require_relative 'parser/base'
8
+ require_relative 'parser/kifuable'
9
+ require_relative 'parser/kif'
10
+ require_relative 'parser/ki2'
11
+ require_relative 'parser/csa'
data/lib/jkf/version.rb CHANGED
@@ -1,4 +1,3 @@
1
1
  module Jkf
2
- # Gem version
3
- VERSION = "0.4.3".freeze
2
+ VERSION = '0.5.1'
4
3
  end
data/lib/jkf.rb CHANGED
@@ -1,7 +1,7 @@
1
- require "kconv"
2
- require "jkf/version"
3
- require "jkf/parser"
4
- require "jkf/converter"
1
+ require 'kconv'
2
+ require_relative 'jkf/version'
3
+ require_relative 'jkf/parser'
4
+ require_relative 'jkf/converter'
5
5
 
6
6
  # JSON Kifu Format
7
7
  module Jkf
@@ -14,7 +14,7 @@ module Jkf
14
14
  # @param [String] filename
15
15
  #
16
16
  # @return [String] KIF, KI2, CSA, JKF(JSON)
17
- def parse_file(filename, encoding: "Shift_JIS")
17
+ def parse_file(filename, encoding: 'Shift_JIS')
18
18
  parser = case ::File.extname(filename)
19
19
  when /kif/
20
20
  ::Jkf::Parser::Kif.new
@@ -43,7 +43,7 @@ module Jkf
43
43
  parsers.each do |parser|
44
44
  begin
45
45
  result = parser.parse(str)
46
- rescue
46
+ rescue StandardError
47
47
  next
48
48
  end
49
49
  break
data/manifest.scm ADDED
@@ -0,0 +1,143 @@
1
+ (use-modules ((guix licenses)
2
+ #:prefix license:)
3
+ (gnu packages ruby)
4
+ (guix build-system ruby)
5
+ (guix download)
6
+ (guix git)
7
+ (guix packages)
8
+ (guix git-download))
9
+
10
+ (define-public ruby-guard-rubocop
11
+ (package
12
+ (name "ruby-guard-rubocop")
13
+ (version "1.5.0")
14
+ (source (origin
15
+ (method url-fetch)
16
+ (uri (rubygems-uri "guard-rubocop" version))
17
+ (sha256
18
+ (base32
19
+ "0lb2fgfac97lvgwqvx2gbcimyvw2a0i76x6yabik3vmmvjbdfh9h"))))
20
+ (build-system ruby-build-system)
21
+ (arguments
22
+ `(#:tests? #f)) ;TODO
23
+ (propagated-inputs (list ruby-guard ruby-rubocop))
24
+ (synopsis
25
+ "Automatically checks Ruby code style with RuboCop when files are
26
+ modified")
27
+ (description
28
+ "@code{Guard::RuboCop} automatically checks Ruby code style with
29
+ RuboCop when files are modified.")
30
+ (home-page "https://github.com/rubocop/guard-rubocop")
31
+ (license license:expat)))
32
+
33
+ (define-public ruby-guard-compat
34
+ (package
35
+ (name "ruby-guard-compat")
36
+ (version "1.2.1")
37
+ (source (origin
38
+ (method url-fetch)
39
+ (uri (rubygems-uri "guard-compat" version))
40
+ (sha256
41
+ (base32
42
+ "1zj6sr1k8w59mmi27rsii0v8xyy2rnsi09nqvwpgj1q10yq1mlis"))))
43
+ (build-system ruby-build-system)
44
+ (arguments
45
+ `(#:test-target "spec"))
46
+ (native-inputs (list ruby-rspec ruby-rubocop))
47
+ (synopsis "Helps creating valid Guard plugins and testing them")
48
+ (description "guard-compat helps creating valid Guard plugins and testing them.")
49
+ (home-page "https://github.com/guard/guard-compat")
50
+ (license license:expat)))
51
+
52
+ (define-public ruby-ruby-dep
53
+ (package
54
+ (name "ruby-ruby-dep")
55
+ (version "1.5.0")
56
+ (source (origin
57
+ (method git-fetch)
58
+ (uri (git-reference
59
+ (url "https://github.com/e2/ruby_dep")
60
+ (commit "4e79416a55dff4b3ff50e73c8fbd0455de1e68b7")))
61
+ (file-name (git-file-name name version))
62
+ (sha256
63
+ (base32
64
+ "0vv2bm4lghh5pl8zi0ihp6hpbp7xlk8d5h888nhxr725in0ypy9x"))))
65
+ (build-system ruby-build-system)
66
+ (arguments
67
+ `(#:test-target "spec"
68
+ #:tests? #f ;FIXME: needs gem_isolator, but cyclic dependencies
69
+ ))
70
+ (native-inputs (list ruby-rspec))
71
+ (synopsis
72
+ "Creates a version constraint of supported Rubies, suitable for a
73
+ gemspec file")
74
+ (description
75
+ "This package creates a version constraint of supported Rubies,
76
+ suitable for a gemspec file.")
77
+ (home-page "https://github.com/e2/ruby_dep")
78
+ (license license:expat)))
79
+
80
+ (define-public ruby-gem-isolator
81
+ (package
82
+ (name "ruby-gem-isolator")
83
+ (version "0.2.3")
84
+ (source (origin
85
+ (method git-fetch)
86
+ (uri (git-reference
87
+ (url "https://github.com/e2/gem_isolator")
88
+ (commit "1ec35362d946e682089a3983e7063593231d5188")))
89
+ (file-name (git-file-name name version))
90
+ (sha256
91
+ (base32
92
+ "1kkg7y2lw2jpdcdw33f2pvz9q14rlnx29l3a2qcwc5smivd03kww"))))
93
+ (build-system ruby-build-system)
94
+ (arguments
95
+ `(#:test-target "spec"
96
+ #:tests? #f ;FIXME: uninitialized constant Pathname
97
+ ))
98
+ (native-inputs (list ruby-rspec ruby-nenv ruby-rubocop))
99
+ (propagated-inputs (list ruby-ruby-dep))
100
+ (synopsis
101
+ "Good for testing dependencies of a gem and/or different gem version
102
+ combinations")
103
+ (description
104
+ "gem_isolator is good for testing dependencies of a gem and/or
105
+ different gem version combinations.")
106
+ (home-page "https://github.com/e2/gem_isolator")
107
+ (license license:expat)))
108
+
109
+ (define-public ruby-guard-rspec
110
+ (package
111
+ (name "ruby-guard-rspec")
112
+ (version "4.7.3")
113
+ (source (origin
114
+ (method url-fetch)
115
+ (uri (rubygems-uri "guard-rspec" version))
116
+ (sha256
117
+ (base32
118
+ "1jkm5xp90gm4c5s51pmf92i9hc10gslwwic6mvk72g0yplya0yx4"))))
119
+ (build-system ruby-build-system)
120
+ (arguments
121
+ `(#:test-target "spec"
122
+ #:tests? #f ;FIXME: uninitialized constant Bundler
123
+ ))
124
+ (native-inputs (list ruby-rubocop ruby-launchy ruby-gem-isolator bundler ruby))
125
+ (propagated-inputs (list ruby-guard ruby-guard-compat ruby-rspec))
126
+ (synopsis "Automatically run your specs (much like autotest)")
127
+ (description
128
+ "@code{Guard::RSpec} automatically run your specs (much like autotest).")
129
+ (home-page "https://github.com/guard/guard-rspec")
130
+ (license license:expat)))
131
+
132
+ (packages->manifest (list ruby-rake
133
+ ruby-yard
134
+ ruby-redcarpet
135
+ ruby-rubocop
136
+ ruby-guard-rubocop
137
+ ruby-rubocop-rake
138
+ ruby-rubocop-rspec
139
+ ruby-rspec
140
+ ruby-guard-rspec
141
+ ruby-simplecov
142
+ ruby-benchmark-ips
143
+ ruby))
data/po/all.pot ADDED
@@ -0,0 +1,176 @@
1
+ # SOME DESCRIPTIVE TITLE
2
+ # Copyright (C) YEAR Free Software Foundation, Inc.
3
+ # This file is distributed under the same license as the PACKAGE package.
4
+ # FIRST AUTHOR <EMAIL@ADDRESS>, YEAR.
5
+ #
6
+ #, fuzzy
7
+ msgid ""
8
+ msgstr ""
9
+ "Project-Id-Version: PACKAGE VERSION\n"
10
+ "POT-Creation-Date: 2023-06-19 22:27+0900\n"
11
+ "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
12
+ "Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
13
+ "Language-Team: LANGUAGE <LL@li.org>\n"
14
+ "Language: ja\n"
15
+ "MIME-Version: 1.0\n"
16
+ "Content-Type: text/plain; charset=UTF-8\n"
17
+ "Content-Transfer-Encoding: 8bit\n"
18
+
19
+ #. type: Title #
20
+ #: README.md:1
21
+ #, markdown-text, no-wrap
22
+ msgid "Jkf"
23
+ msgstr ""
24
+
25
+ #. type: Plain text
26
+ #: README.md:3
27
+ #, markdown-text
28
+ msgid ""
29
+ "[![Gem "
30
+ "Version](https://badge.fury.io/rb/jkf.svg)](https://badge.fury.io/rb/jkf) "
31
+ "[![Build "
32
+ "Status](https://travis-ci.org/iyuuya/jkf.svg?branch=master)](https://travis-ci.org/iyuuya/jkf) "
33
+ "[![CI](https://github.com/iyuuya/jkf/actions/workflows/ci.yml/badge.svg)](https://github.com/iyuuya/jkf/actions/workflows/ci.yml)"
34
+ msgstr ""
35
+
36
+ #. type: Plain text
37
+ #: README.md:6
38
+ #, markdown-text
39
+ msgid ""
40
+ "jkfは[JSON棋譜フォーマット (JKF)][jkf]をRubyに移植したものです。 KIF, KI2, "
41
+ "CSAをパースしJKFへ変換、JKFからKIF, KI2, CSAへの変換に対応しています。"
42
+ msgstr ""
43
+
44
+ #. type: Plain text
45
+ #: README.md:8
46
+ #, markdown-text
47
+ msgid ""
48
+ "[jkf]: "
49
+ "https://github.com/na2hiro/Kifu-for-JS/tree/master/packages/json-kifu-format"
50
+ msgstr ""
51
+
52
+ #. type: Title ##
53
+ #: README.md:9
54
+ #, markdown-text, no-wrap
55
+ msgid "Installation"
56
+ msgstr ""
57
+
58
+ #. type: Plain text
59
+ #: README.md:12
60
+ #, markdown-text
61
+ msgid "アプリケーションにインストールする場合(bundlerを使用する場合)、Gemfileに以下のように記述してください。"
62
+ msgstr ""
63
+
64
+ #. type: Fenced code block (ruby)
65
+ #: README.md:13
66
+ #, no-wrap
67
+ msgid "gem 'jkf'\n"
68
+ msgstr ""
69
+
70
+ #. type: Plain text
71
+ #: README.md:18
72
+ #, markdown-text
73
+ msgid "さらにbundleコマンドを実行することでインストールできます。"
74
+ msgstr ""
75
+
76
+ #. type: Plain text
77
+ #: README.md:20
78
+ #, markdown-text, no-wrap
79
+ msgid " $ bundle\n"
80
+ msgstr ""
81
+
82
+ #. type: Plain text
83
+ #: README.md:22
84
+ #, markdown-text
85
+ msgid "または、gem installコマンドを使って直接インストールすることもできます。"
86
+ msgstr ""
87
+
88
+ #. type: Plain text
89
+ #: README.md:24
90
+ #, markdown-text, no-wrap
91
+ msgid " $ gem install jkf\n"
92
+ msgstr ""
93
+
94
+ #. type: Title ##
95
+ #: README.md:25
96
+ #, markdown-text, no-wrap
97
+ msgid "Usage"
98
+ msgstr ""
99
+
100
+ #. type: Plain text
101
+ #: README.md:28
102
+ #, markdown-text
103
+ msgid "KIF, KI2, CSAそれぞれParserとConverterが用意してあります。"
104
+ msgstr ""
105
+
106
+ #. type: Fenced code block (ruby)
107
+ #: README.md:29
108
+ #, no-wrap
109
+ msgid ""
110
+ "kif_parser = Jkf::Parser::Kif.new\n"
111
+ "ki2_parser = Jkf::Parser::Ki2.new\n"
112
+ "csa_parser = Jkf::Parser::Csa.new\n"
113
+ msgstr ""
114
+
115
+ #. type: Fenced code block (ruby)
116
+ #: README.md:35
117
+ #, no-wrap
118
+ msgid ""
119
+ "kif_converter = Jkf::Converter::Kif.new\n"
120
+ "ki2_converter = Jkf::Converter::Ki2.new\n"
121
+ "csa_converter = Jkf::Converter::Csa.new\n"
122
+ msgstr ""
123
+
124
+ #. type: Plain text
125
+ #: README.md:42
126
+ #, markdown-text
127
+ msgid "`parser#parse(str)`でjkfへの変換、`#convert(jkf)`でjkfから各フォーマットへ変換できます。"
128
+ msgstr ""
129
+
130
+ #. type: Fenced code block (ruby)
131
+ #: README.md:43
132
+ #, no-wrap
133
+ msgid ""
134
+ "jkf = kif_parser.parse(kif_str) #=> Hash\n"
135
+ "jkf = ki2_parser.parse(ki2_str) #=> Hash\n"
136
+ "jkf = csa_parser.parse(csa_str) #=> Hash\n"
137
+ msgstr ""
138
+
139
+ #. type: Fenced code block (ruby)
140
+ #: README.md:49
141
+ #, no-wrap
142
+ msgid ""
143
+ "kif = kif_converter.convert(jkf) #=> String\n"
144
+ "ki2 = ki2_converter.convert(jkf) #=> String\n"
145
+ "csa = csa_converter.convert(jkf) #=> String\n"
146
+ msgstr ""
147
+
148
+ #. type: Title ##
149
+ #: README.md:55
150
+ #, markdown-text, no-wrap
151
+ msgid "Contributing"
152
+ msgstr ""
153
+
154
+ #. type: Plain text
155
+ #: README.md:59
156
+ #, markdown-text
157
+ msgid "バグレポートやプルリクエストはGithubでよろしくお願いします。 https://github.com/iyuuya/jkf."
158
+ msgstr ""
159
+
160
+ #. type: Plain text
161
+ #: README.md:61
162
+ #, markdown-text
163
+ msgid "Guixで開発されている場合は`guix shell`で`rake test`によるテスト実行ができます。"
164
+ msgstr ""
165
+
166
+ #. type: Title ##
167
+ #: README.md:62
168
+ #, markdown-text, no-wrap
169
+ msgid "License"
170
+ msgstr ""
171
+
172
+ #. type: Plain text
173
+ #: README.md:66
174
+ #, markdown-text
175
+ msgid "ライセンスはMITです。 [MIT License](http://opensource.org/licenses/MIT)."
176
+ msgstr ""
data/po/en.po ADDED
@@ -0,0 +1,199 @@
1
+ # English translation of jkf gem document
2
+ # Copyright (C) 2023 gemmaro.
3
+ #
4
+ msgid ""
5
+ msgstr ""
6
+ "Project-Id-Version: jkf gem\n"
7
+ "POT-Creation-Date: 2023-06-19 22:27+0900\n"
8
+ "PO-Revision-Date: 2023-06-19 22:27+0900\n"
9
+ "Last-Translator: gemmaro <gemmaro.dev@gmail.com>\n"
10
+ "Language-Team: none\n"
11
+ "Language: en\n"
12
+ "MIME-Version: 1.0\n"
13
+ "Content-Type: text/plain; charset=UTF-8\n"
14
+ "Content-Transfer-Encoding: 8bit\n"
15
+
16
+ #. type: Title #
17
+ #: README.md:1
18
+ #, no-wrap
19
+ msgid "Jkf"
20
+ msgstr "Jkf"
21
+
22
+ #. type: Plain text
23
+ #: README.md:3
24
+ msgid ""
25
+ "[![Gem Version](https://badge.fury.io/rb/jkf.svg)](https://badge.fury.io/rb/"
26
+ "jkf) [![Build Status](https://travis-ci.org/iyuuya/jkf.svg?branch=master)]"
27
+ "(https://travis-ci.org/iyuuya/jkf) [![CI](https://github.com/iyuuya/jkf/"
28
+ "actions/workflows/ci.yml/badge.svg)](https://github.com/iyuuya/jkf/actions/"
29
+ "workflows/ci.yml)"
30
+ msgstr "[![Gem Version](https://badge.fury.io/rb/jkf.svg)](https://badge.fury.io/rb/jkf) [![Build Status](https://travis-ci.org/iyuuya/jkf.svg?branch=master)](https://travis-ci.org/iyuuya/jkf) [![CI](https://github.com/iyuuya/jkf/actions/workflows/ci.yml/badge.svg)](https://github.com/iyuuya/jkf/actions/workflows/ci.yml)"
31
+
32
+ #. type: Plain text
33
+ #: README.md:6
34
+ msgid ""
35
+ "jkfは[JSON棋譜フォーマット (JKF)][jkf]をRubyに移植したものです。 KIF, KI2, "
36
+ "CSAをパースしJKFへ変換、JKFからKIF, KI2, CSAへの変換に対応しています。"
37
+ msgstr ""
38
+ "jkf is a Ruby port of [json-kifu-format][jkf].\n"
39
+ "It supports both of the conversion from KIF, KI2, or CSA to jkf, and the one "
40
+ "from jkf to KIF, KI2, or CSA."
41
+
42
+ # TODO: insert space after colon; temp po4a limitation
43
+ #. type: Plain text
44
+ #: README.md:8
45
+ msgid ""
46
+ "[jkf]: https://github.com/na2hiro/Kifu-for-JS/tree/master/packages/json-kifu-"
47
+ "format"
48
+ msgstr ""
49
+ "[jkf]:https://github.com/na2hiro/Kifu-for-JS/tree/master/packages/json-kifu-"
50
+ "format"
51
+
52
+ #. type: Title ##
53
+ #: README.md:9
54
+ #, no-wrap
55
+ msgid "Installation"
56
+ msgstr "Installation"
57
+
58
+ #. type: Plain text
59
+ #: README.md:12
60
+ msgid ""
61
+ "アプリケーションにインストールする場合(bundlerを使用する場合)、Gemfileに以下"
62
+ "のように記述してください。"
63
+ msgstr ""
64
+ "If you install this gem to your application (with Bundler), add this to "
65
+ "Gemfile."
66
+
67
+ #. type: Fenced code block (ruby)
68
+ #: README.md:13
69
+ #, no-wrap
70
+ msgid "gem 'jkf'\n"
71
+ msgstr "gem 'jkf'\n"
72
+
73
+ #. type: Plain text
74
+ #: README.md:18
75
+ msgid "さらにbundleコマンドを実行することでインストールできます。"
76
+ msgstr "Then run bundle to install this gem."
77
+
78
+ #. type: Plain text
79
+ #: README.md:20
80
+ #, no-wrap
81
+ msgid " $ bundle\n"
82
+ msgstr " $ bundle\n"
83
+
84
+ #. type: Plain text
85
+ #: README.md:22
86
+ msgid "または、gem installコマンドを使って直接インストールすることもできます。"
87
+ msgstr "Or directly install with gem install command."
88
+
89
+ #. type: Plain text
90
+ #: README.md:24
91
+ #, no-wrap
92
+ msgid " $ gem install jkf\n"
93
+ msgstr " $ gem install jkf\n"
94
+
95
+ #. type: Title ##
96
+ #: README.md:25
97
+ #, no-wrap
98
+ msgid "Usage"
99
+ msgstr "Usage"
100
+
101
+ #. type: Plain text
102
+ #: README.md:28
103
+ msgid "KIF, KI2, CSAそれぞれParserとConverterが用意してあります。"
104
+ msgstr ""
105
+ "This gem has the Parser and the Converter for each formats: KIF, KI2, and "
106
+ "CSA."
107
+
108
+ #. type: Fenced code block (ruby)
109
+ #: README.md:29
110
+ #, no-wrap
111
+ msgid ""
112
+ "kif_parser = Jkf::Parser::Kif.new\n"
113
+ "ki2_parser = Jkf::Parser::Ki2.new\n"
114
+ "csa_parser = Jkf::Parser::Csa.new\n"
115
+ msgstr ""
116
+ "kif_parser = Jkf::Parser::Kif.new\n"
117
+ "ki2_parser = Jkf::Parser::Ki2.new\n"
118
+ "csa_parser = Jkf::Parser::Csa.new\n"
119
+
120
+ #. type: Fenced code block (ruby)
121
+ #: README.md:35
122
+ #, no-wrap
123
+ msgid ""
124
+ "kif_converter = Jkf::Converter::Kif.new\n"
125
+ "ki2_converter = Jkf::Converter::Ki2.new\n"
126
+ "csa_converter = Jkf::Converter::Csa.new\n"
127
+ msgstr ""
128
+ "kif_converter = Jkf::Converter::Kif.new\n"
129
+ "ki2_converter = Jkf::Converter::Ki2.new\n"
130
+ "csa_converter = Jkf::Converter::Csa.new\n"
131
+
132
+ #. type: Plain text
133
+ #: README.md:42
134
+ msgid ""
135
+ "`parser#parse(str)`でjkfへの変換、`#convert(jkf)`でjkfから各フォーマットへ変"
136
+ "換できます。"
137
+ msgstr ""
138
+ "`parser#parse(str)` to convert into jkf.\n"
139
+ "`#convert(jkf)` to convert into each formats from jkf."
140
+
141
+ #. type: Fenced code block (ruby)
142
+ #: README.md:43
143
+ #, no-wrap
144
+ msgid ""
145
+ "jkf = kif_parser.parse(kif_str) #=> Hash\n"
146
+ "jkf = ki2_parser.parse(ki2_str) #=> Hash\n"
147
+ "jkf = csa_parser.parse(csa_str) #=> Hash\n"
148
+ msgstr ""
149
+ "jkf = kif_parser.parse(kif_str) #=> Hash\n"
150
+ "jkf = ki2_parser.parse(ki2_str) #=> Hash\n"
151
+ "jkf = csa_parser.parse(csa_str) #=> Hash\n"
152
+
153
+ #. type: Fenced code block (ruby)
154
+ #: README.md:49
155
+ #, no-wrap
156
+ msgid ""
157
+ "kif = kif_converter.convert(jkf) #=> String\n"
158
+ "ki2 = ki2_converter.convert(jkf) #=> String\n"
159
+ "csa = csa_converter.convert(jkf) #=> String\n"
160
+ msgstr ""
161
+ "kif = kif_converter.convert(jkf) #=> String\n"
162
+ "ki2 = ki2_converter.convert(jkf) #=> String\n"
163
+ "csa = csa_converter.convert(jkf) #=> String\n"
164
+
165
+ #. type: Title ##
166
+ #: README.md:55
167
+ #, no-wrap
168
+ msgid "Contributing"
169
+ msgstr "Contributing"
170
+
171
+ #. type: Plain text
172
+ #: README.md:59
173
+ msgid ""
174
+ "バグレポートやプルリクエストはGithubでよろしくお願いします。 https://github."
175
+ "com/iyuuya/jkf."
176
+ msgstr ""
177
+ "Feel free to report bugs or send pull requests at [GitHub](https://github."
178
+ "com/iyuuya/jkf)."
179
+
180
+ #. type: Plain text
181
+ #: README.md:61
182
+ msgid ""
183
+ "Guixで開発されている場合は`guix shell`で`rake test`によるテスト実行ができま"
184
+ "す。"
185
+ msgstr "If you work on Guix, run tests by `guix shell`."
186
+
187
+ #. type: Title ##
188
+ #: README.md:62
189
+ #, no-wrap
190
+ msgid "License"
191
+ msgstr "License"
192
+
193
+ #. type: Plain text
194
+ #: README.md:66
195
+ msgid ""
196
+ "ライセンスはMITです。 [MIT License](http://opensource.org/licenses/MIT)."
197
+ msgstr ""
198
+ "This gem is licensed under the [MIT License](http://opensource.org/licenses/"
199
+ "MIT)."
data/po4a.cfg ADDED
@@ -0,0 +1,11 @@
1
+ [options] --master-charset UTF-8 \
2
+ --localized-charset UTF-8 \
3
+ --addendum-charset UTF-8 \
4
+ --master-language ja \
5
+ --option markdown \
6
+ --keep 0
7
+
8
+ [po_directory] po
9
+
10
+ [type:text] README.md \
11
+ en:README.en.md
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: jkf
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.4.3
4
+ version: 0.5.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - iyuuya
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2019-06-27 00:00:00.000000000 Z
11
+ date: 2023-06-24 00:00:00.000000000 Z
12
12
  dependencies: []
13
13
  description: converter/parser of records of shogi
14
14
  email:
@@ -17,19 +17,20 @@ executables: []
17
17
  extensions: []
18
18
  extra_rdoc_files: []
19
19
  files:
20
- - ".codeclimate.yml"
20
+ - ".github/workflows/ci.yml"
21
21
  - ".gitignore"
22
22
  - ".hound.yml"
23
23
  - ".rspec"
24
24
  - ".rubocop.yml"
25
25
  - ".rubocop_todo.yml"
26
- - ".travis.yml"
26
+ - CHANGELOG.md
27
27
  - Gemfile
28
28
  - Guardfile
29
29
  - LICENSE.txt
30
30
  - README.en.md
31
31
  - README.md
32
32
  - Rakefile
33
+ - bench.rb
33
34
  - bin/console
34
35
  - bin/setup
35
36
  - jkf.gemspec
@@ -47,10 +48,15 @@ files:
47
48
  - lib/jkf/parser/kif.rb
48
49
  - lib/jkf/parser/kifuable.rb
49
50
  - lib/jkf/version.rb
51
+ - manifest.scm
52
+ - po/all.pot
53
+ - po/en.po
54
+ - po4a.cfg
50
55
  homepage: https://github.com/iyuuya/jkf
51
56
  licenses:
52
57
  - MIT
53
- metadata: {}
58
+ metadata:
59
+ rubygems_mfa_required: 'true'
54
60
  post_install_message:
55
61
  rdoc_options: []
56
62
  require_paths:
@@ -59,14 +65,14 @@ required_ruby_version: !ruby/object:Gem::Requirement
59
65
  requirements:
60
66
  - - ">="
61
67
  - !ruby/object:Gem::Version
62
- version: '0'
68
+ version: '3.0'
63
69
  required_rubygems_version: !ruby/object:Gem::Requirement
64
70
  requirements:
65
71
  - - ">="
66
72
  - !ruby/object:Gem::Version
67
73
  version: '0'
68
74
  requirements: []
69
- rubygems_version: 3.0.3
75
+ rubygems_version: 3.1.6
70
76
  signing_key:
71
77
  specification_version: 4
72
78
  summary: jkf/csa/kif/ki2 parser and converter
data/.codeclimate.yml DELETED
@@ -1,28 +0,0 @@
1
- ---
2
- engines:
3
- duplication:
4
- enabled: true
5
- config:
6
- languages:
7
- - ruby
8
- fixme:
9
- enabled: true
10
- rubocop:
11
- enabled: true
12
- ratings:
13
- paths:
14
- - "**.rb"
15
- exclude_paths:
16
- - spec/
17
- ---
18
- engines:
19
- fixme:
20
- enabled: true
21
- rubocop:
22
- enabled: true
23
- ratings:
24
- paths:
25
- - Gemfile.lock
26
- - "**.rb"
27
- exclude_paths:
28
- - spec/**/*
data/.travis.yml DELETED
@@ -1,9 +0,0 @@
1
- language: ruby
2
- rvm:
3
- - 2.3.0
4
- before_install: gem install bundler -v 1.11.2
5
- bundler_args: --jobs 3 --retry 3
6
- cache: bundler
7
- addons:
8
- code_climate:
9
- repo_token: 196df8880b27b92c2e879846ffb08040eee02248297a0c9fd0a1e071ea031f28