kirico 1.0.5 → 1.1.0

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
- SHA1:
3
- metadata.gz: b032116ad8c9f2d4855e50dd82fd02660f8dfce3
4
- data.tar.gz: 40cbf3b7fe3232fb3a505b4029f004b06d211abd
2
+ SHA256:
3
+ metadata.gz: 39a0665f3959b70d31d3dee0fe8aa0edf98962fb47d17b536fabb52b5173c284
4
+ data.tar.gz: 4b0cc45c40cd008370558a6d3daf4351ed90aeab6706404badb80741c30d9b1c
5
5
  SHA512:
6
- metadata.gz: 800ba09cda1c0b96563bee84256087597ec6e7ae733d903f34c857f40a45deb374d39dc4e63a4b70e4abcaa29b5f3733ee0da8af0002bb78c0bf7156a29648eb
7
- data.tar.gz: 1fbae68e0d12f7fd80024df54bd341c7f77815e38afb0498ca6d4131883a34e7236141309c0009f4fdc3516ddab217e65334fc5aaf28458fbc82bbb1dd0d4a38
6
+ metadata.gz: c1f17e3f94c9bac9d46f00ae4a0072da5fbacbb2a2805ad677572009532eb1eb5d5244ab981f9901fd0e2525d0ca92714ba1f1c58f739528bed6f52bfbe7d15e
7
+ data.tar.gz: e8f5bd2821e9100faeeb90dd72528bd57564c9e616a088b2da58c76904e7ec8cbdde809df7e097ff12736d56c4d625c6f192ef50c7b621dc9954d75731269529
@@ -0,0 +1,37 @@
1
+ # This is a comment.
2
+ # Each line is a file pattern followed by one or more owners.
3
+
4
+ # These owners will be the default owners for everything in
5
+ # the repo. Unless a later match takes precedence,
6
+ # @global-owner1 and @global-owner2 will be requested for
7
+ # review when someone opens a pull request.
8
+ * @kufu/group-dev-oss
9
+
10
+ # Order is important; the last matching pattern takes the most
11
+ # precedence. When someone opens a pull request that only
12
+ # modifies JS files, only @js-owner and not the global
13
+ # owner(s) will be requested for a review.
14
+ # *.js @js-owner
15
+
16
+ # You can also use email addresses if you prefer. They'll be
17
+ # used to look up users just like we do for commit author
18
+ # emails.
19
+ # *.go docs@example.com
20
+
21
+ # In this example, @doctocat owns any files in the build/logs
22
+ # directory at the root of the repository and any of its
23
+ # subdirectories.
24
+ # /build/logs/ @doctocat
25
+
26
+ # The `docs/*` pattern will match files like
27
+ # `docs/getting-started.md` but not further nested files like
28
+ # `docs/build-app/troubleshooting.md`.
29
+ # docs/* docs@example.com
30
+
31
+ # In this example, @octocat owns any file in an apps directory
32
+ # anywhere in your repository.
33
+ # apps/ @octocat
34
+
35
+ # In this example, @doctocat owns any file in the `/docs`
36
+ # directory in the root of your repository.
37
+ # /docs/ @doctocat
@@ -0,0 +1,39 @@
1
+ name: Test
2
+
3
+ on:
4
+ push:
5
+ branches:
6
+ - master
7
+ pull_request:
8
+
9
+ jobs:
10
+ rubocop:
11
+ runs-on: ubuntu-latest
12
+ steps:
13
+ - name: Checkout
14
+ uses: actions/checkout@v4
15
+ - name: Setup Ruby
16
+ uses: ruby/setup-ruby@v1
17
+ with:
18
+ ruby-version: '3.0'
19
+ bundler-cache: true
20
+ - run: bundle exec rubocop
21
+ test:
22
+ runs-on: ubuntu-latest
23
+ strategy:
24
+ fail-fast: false
25
+ matrix:
26
+ ruby-version:
27
+ - '3.0'
28
+ - '3.1'
29
+ - '3.2'
30
+ - '3.3'
31
+ steps:
32
+ - name: Checkout
33
+ uses: actions/checkout@v4
34
+ - name: Setup Ruby
35
+ uses: ruby/setup-ruby@v1
36
+ with:
37
+ ruby-version: ${{ matrix.ruby-version }}
38
+ bundler-cache: true
39
+ - run: bundle exec rspec
data/.gitignore CHANGED
@@ -1,6 +1,5 @@
1
1
  /.bundle/
2
2
  /.yardoc
3
- /Gemfile.lock
4
3
  /_yardoc/
5
4
  /coverage/
6
5
  /doc/
data/.rubocop.yml CHANGED
@@ -1,5 +1,8 @@
1
1
  inherit_from: '.rubocop_todo.yml'
2
2
 
3
+ AllCops:
4
+ TargetRubyVersion: 3.0
5
+
3
6
  Style/AsciiComments:
4
7
  Enabled: false
5
8
 
@@ -12,12 +15,18 @@ Style/Documentation:
12
15
  Style/DoubleNegation:
13
16
  Enabled: false
14
17
 
18
+ Style/FormatStringToken:
19
+ Enabled: false
20
+
15
21
  Style/FrozenStringLiteralComment:
16
22
  Enabled: true
17
23
 
18
24
  Style/MutableConstant:
19
25
  Enabled: false
20
26
 
27
+ Naming/MethodParameterName:
28
+ MinNameLength: 2
29
+
21
30
  Metrics/AbcSize:
22
31
  Max: 50
23
32
 
data/.rubocop_todo.yml CHANGED
@@ -1,21 +1,56 @@
1
1
  # This configuration was generated by
2
2
  # `rubocop --auto-gen-config`
3
- # on 2016-12-23 20:27:11 +0900 using RuboCop version 0.46.0.
3
+ # on 2022-05-09 08:50:05 UTC using RuboCop version 1.29.0.
4
4
  # The point is for the user to remove these configuration records
5
5
  # one by one as the offenses are removed from the code base.
6
6
  # Note that changes in the inspected code, or installation of new
7
7
  # versions of RuboCop, may require this file to be generated again.
8
8
 
9
- Style/Documentation:
9
+ # Offense count: 3
10
+ # Configuration parameters: AllowedMethods.
11
+ # AllowedMethods: enums
12
+ Lint/ConstantDefinitionInBlock:
10
13
  Exclude:
11
- - 'spec/**/*'
12
- - 'test/**/*'
13
- - 'lib/kirico.rb'
14
-
15
- # Offense count: 9
16
- # Cop supports --auto-correct.
17
- # Configuration parameters: EnforcedStyle, SupportedStyles.
18
- # SupportedStyles: when_needed, always
14
+ - 'spec/kirico/models/helper_spec.rb'
15
+
16
+ # Offense count: 5
17
+ Lint/MissingSuper:
18
+ Exclude:
19
+ - 'lib/kirico/models/data_record22187041.rb'
20
+ - 'lib/kirico/models/data_record2221700.rb'
21
+ - 'lib/kirico/models/data_record2225700.rb'
22
+ - 'lib/kirico/models/data_record22257041.rb'
23
+ - 'lib/kirico/models/data_record2265700.rb'
24
+
25
+ # Offense count: 1
26
+ # Configuration parameters: IgnoredMethods.
27
+ Metrics/CyclomaticComplexity:
28
+ Max: 9
29
+
30
+ # Offense count: 1
31
+ # Configuration parameters: IgnoredMethods.
32
+ Metrics/PerceivedComplexity:
33
+ Max: 9
34
+
35
+ # Offense count: 38
36
+ # Configuration parameters: EnforcedStyle, CheckMethodNames, CheckSymbols, AllowedIdentifiers, AllowedPatterns.
37
+ # SupportedStyles: snake_case, normalcase, non_integer
38
+ # AllowedIdentifiers: capture3, iso8601, rfc1123_date, rfc822, rfc2822, rfc3339
39
+ Naming/VariableNumber:
40
+ Exclude:
41
+ - 'lib/kirico/models/data_record2221700.rb'
42
+ - 'lib/kirico/models/data_record2225700.rb'
43
+ - 'lib/kirico/models/data_record22257041.rb'
44
+ - 'spec/factories/data_record2221700.rb'
45
+ - 'spec/factories/data_record2225700.rb'
46
+ - 'spec/factories/data_record22257041.rb'
47
+ - 'spec/kirico/models/data_record2225700_spec.rb'
48
+ - 'spec/kirico/models/data_record22257041_spec.rb'
49
+
50
+ # Offense count: 5
51
+ # This cop supports safe auto-correction (--auto-correct).
52
+ # Configuration parameters: EnforcedStyle.
53
+ # SupportedStyles: always, always_true, never
19
54
  Style/FrozenStringLiteralComment:
20
55
  Exclude:
21
56
  - 'Gemfile'
@@ -25,23 +60,15 @@ Style/FrozenStringLiteralComment:
25
60
  - 'kirico.gemspec'
26
61
 
27
62
  # Offense count: 1
28
- # Configuration parameters: MinBodyLength.
63
+ # Configuration parameters: MinBodyLength, AllowConsecutiveConditionals.
29
64
  Style/GuardClause:
30
65
  Exclude:
31
66
  - 'kirico.gemspec'
32
67
 
33
68
  # Offense count: 1
34
- # Cop supports --auto-correct.
35
- # Configuration parameters: EnforcedStyle, SupportedStyles.
69
+ # This cop supports safe auto-correction (--auto-correct).
70
+ # Configuration parameters: EnforcedStyle.
36
71
  # SupportedStyles: only_raise, only_fail, semantic
37
72
  Style/SignalException:
38
73
  Exclude:
39
74
  - 'kirico.gemspec'
40
-
41
- # Offense count: 1
42
- # Cop supports --auto-correct.
43
- # Configuration parameters: EnforcedStyle, SupportedStyles, ConsistentQuotesInMultiline.
44
- # SupportedStyles: single_quotes, double_quotes
45
- Style/StringLiterals:
46
- Exclude:
47
- - 'kirico.gemspec'
@@ -0,0 +1,86 @@
1
+ # コントリビューター行動規範
2
+
3
+ ## 私たちの約束
4
+ メンバー、コントリビューター、およびリーダーとして、年齢、体の大きさ、目に見えるまたは目に見えない障害、民族性、性別、
5
+ 性同一性、表現、経験のレベル、教育、社会経済的地位、国籍、人格、人種、宗教、または性的同一性と指向に関係なく、
6
+ コミュニティへの参加をハラスメントのない体験にすることを誓います。
7
+
8
+ 私たちは、オープンで親しみやすく、多様で包括的で健全なコミュニティに貢献する方法で行動し、交流することを誓います。
9
+
10
+ ## 私たちの標準
11
+
12
+ 前向きな環境を作り上げることに貢献する行動の例:
13
+
14
+ * 他人への共感と優しさを示す
15
+
16
+ * 異なる意見、視点、経験を尊重する
17
+
18
+ * 建設的なフィードバックを与え、優雅に受け入れる
19
+
20
+ * 私たちの過ちの影響を受けた人々に責任を受け入れ、謝罪し、そしてその経験から学ぶ
21
+
22
+ * 個人としてだけでなく、コミュニティ全体にとっても最善であることに焦点を当てる
23
+
24
+ 許容できない行動の例は次のとおりです。
25
+
26
+ * 性的な言葉や画像の使用、および性的な注意またはその他あらゆる種類の問題行為
27
+
28
+ * トローリング、侮辱的または中傷的なコメント、個人的または政治的攻撃
29
+
30
+ * 公的またはプライベートの嫌がらせ
31
+
32
+ * 明示的な許可なしに、住所や電子メールアドレスなど、他者の個人情報を公開する
33
+
34
+ * 職業上不適切と合理的に考えられるその他の行為
35
+
36
+ ## 執行責任
37
+
38
+ コミュニティリーダーは、許容される行動の基準を明確にし、実施する責任があり、不適切、脅迫的、攻撃的、または有害と見なされる行動に応じて、適切で公正な是正措置を講じます。
39
+
40
+ コミュニティリーダーは、コメント、コミット、コード、wikiの編集、問題、およびこの行動規範に沿っていないその他の貢献を削除、編集、または拒否する権利と責任を持ち、適切な場合はモデレーションの決定の理由を伝えます。
41
+
42
+ ## 適用範囲
43
+
44
+ この行動規範は、すべてのコミュニティスペース内で適用され、個人がパブリックスペースでコミュニティを公式に代表している場合にも適用されます。
45
+ 私たちのコミュニティを代表する例には、公式の電子メールアドレスの使用、公式のソーシャルメディアアカウントを介した投稿、オンラインまたはオフラインのイベントでの指定代理人としての行動などがあります。
46
+
47
+ ## 執行
48
+
49
+ 虐待的、嫌がらせ、またはその他の許容できない行動の事例は、執行を担当するコミュニティリーダーに対して `oss@smarthr.co.jp` で報告される場合があります。
50
+ すべての苦情は迅速かつ公正にレビューおよび調査されます。
51
+
52
+ すべてのコミュニティリーダーは、問題の報告者のプライバシーとセキュリティを尊重する義務があります。
53
+
54
+ ## 執行ガイドライン
55
+
56
+ コミュニティリーダーは、この行動規範に違反していると見なした行動への帰結を判断する際に、これらのコミュニティガイドラインに従います。
57
+
58
+ ### 1. 更生
59
+
60
+ **コミュニティへの影響**: コミュニティで専門家にふさわしくない、または歓迎されないと思われる不適切な言葉の使用やその他の不適切な行動をすること。
61
+
62
+ **帰結**: コミュニティリーダーからの非公開の書面による警告。違反の理由を明確にし、行動が不適切だった理由を説明します。 公の謝罪が要求される場合があります。
63
+
64
+ ### 2. 警告
65
+
66
+ **コミュニティへの影響**: 単一の出来事または一連の動作による違反。
67
+
68
+ **帰結**: 持続的な行動の結果を伴う警告。 指定された期間、行動規範の実施者との一方的な対話を含め、関係者との対話はありません。 これには、コミュニティスペースやソーシャルメディアなどの外部チャネルでの相互作用の回避が含まれます。 これらの条件に違反すると、一時的または永続的に禁止される場合があります。
69
+
70
+ ### 3. 一時的な禁止
71
+ **コミュニティへの影響**: 持続的で不適切な行動を含む、コミュニティ標準の重大な違反。
72
+
73
+ **帰結**: 指定された期間のコミュニティとのあらゆる種類の相互関係または公的なコミュニケーションの一時的な禁止。 この期間中、行動規範を実施する人々との一方的な対話を含め、関係する人々との公的または私的な対話は許可されません。
74
+ これらの条件に違反すると、永久的に禁止される場合があります。
75
+ ### 4. 永久的な禁止
76
+ **コミュニティへの影響**: 連続的な不適切な行動、個人への嫌がらせ、または個人の集団に対する攻撃または名誉毀損を含む、コミュニティの標準への違反のパターンを示す。
77
+
78
+ **帰結**: コミュニティ内でのあらゆる種類の公的な相互関係の永久的な禁止。
79
+
80
+ ## 帰属
81
+ この行動規範は、https://www.contributor-covenant.org/version/2/0/code_of_conduct.html で利用可能な [Contributor Covenant][homepage] バージョン2.0を基に作成されています。
82
+
83
+ コミュニティへの影響ガイドラインは[Mozilla's code of conduct enforcement ladder](https://github.com/mozilla/diversity)に適合しています。
84
+
85
+ [homepage]: https://www.contributor-covenant.org
86
+ この行動規範に関する一般的な質問への回答については、https://www.contributor-covenant.org/faq のFAQを参照してください。翻訳はhttps://www.contributor-covenant.org/translations で入手できます。
data/Gemfile.lock ADDED
@@ -0,0 +1,105 @@
1
+ PATH
2
+ remote: .
3
+ specs:
4
+ kirico (1.1.0)
5
+ activemodel (>= 5.2)
6
+ activesupport (>= 5.2)
7
+ era_ja
8
+ validates_timeliness
9
+ virtus
10
+
11
+ GEM
12
+ remote: https://rubygems.org/
13
+ specs:
14
+ activemodel (7.0.4.1)
15
+ activesupport (= 7.0.4.1)
16
+ activesupport (7.0.4.1)
17
+ concurrent-ruby (~> 1.0, >= 1.0.2)
18
+ i18n (>= 1.6, < 2)
19
+ minitest (>= 5.1)
20
+ tzinfo (~> 2.0)
21
+ ast (2.4.2)
22
+ axiom-types (0.1.1)
23
+ descendants_tracker (~> 0.0.4)
24
+ ice_nine (~> 0.11.0)
25
+ thread_safe (~> 0.3, >= 0.3.1)
26
+ coercible (1.0.0)
27
+ descendants_tracker (~> 0.0.1)
28
+ concurrent-ruby (1.1.10)
29
+ descendants_tracker (0.0.4)
30
+ thread_safe (~> 0.3, >= 0.3.1)
31
+ diff-lcs (1.3)
32
+ equalizer (0.0.11)
33
+ era_ja (1.1.0)
34
+ factory_bot (6.2.1)
35
+ activesupport (>= 5.0.0)
36
+ i18n (1.12.0)
37
+ concurrent-ruby (~> 1.0)
38
+ ice_nine (0.11.2)
39
+ json (2.7.2)
40
+ language_server-protocol (3.17.0.3)
41
+ minitest (5.17.0)
42
+ parallel (1.25.1)
43
+ parser (3.3.3.0)
44
+ ast (~> 2.4.1)
45
+ racc
46
+ racc (1.8.0)
47
+ rainbow (3.1.1)
48
+ rake (13.0.1)
49
+ regexp_parser (2.9.2)
50
+ rexml (3.3.1)
51
+ strscan
52
+ rspec (3.9.0)
53
+ rspec-core (~> 3.9.0)
54
+ rspec-expectations (~> 3.9.0)
55
+ rspec-mocks (~> 3.9.0)
56
+ rspec-core (3.9.0)
57
+ rspec-support (~> 3.9.0)
58
+ rspec-expectations (3.9.0)
59
+ diff-lcs (>= 1.2.0, < 2.0)
60
+ rspec-support (~> 3.9.0)
61
+ rspec-mocks (3.9.0)
62
+ diff-lcs (>= 1.2.0, < 2.0)
63
+ rspec-support (~> 3.9.0)
64
+ rspec-support (3.9.0)
65
+ rubocop (1.64.1)
66
+ json (~> 2.3)
67
+ language_server-protocol (>= 3.17.0)
68
+ parallel (~> 1.10)
69
+ parser (>= 3.3.0.2)
70
+ rainbow (>= 2.2.2, < 4.0)
71
+ regexp_parser (>= 1.8, < 3.0)
72
+ rexml (>= 3.2.5, < 4.0)
73
+ rubocop-ast (>= 1.31.1, < 2.0)
74
+ ruby-progressbar (~> 1.7)
75
+ unicode-display_width (>= 2.4.0, < 3.0)
76
+ rubocop-ast (1.31.3)
77
+ parser (>= 3.3.1.0)
78
+ ruby-progressbar (1.13.0)
79
+ strscan (3.1.0)
80
+ thread_safe (0.3.6)
81
+ timeliness (0.4.3)
82
+ tzinfo (2.0.5)
83
+ concurrent-ruby (~> 1.0)
84
+ unicode-display_width (2.5.0)
85
+ validates_timeliness (4.1.1)
86
+ timeliness (>= 0.3.10, < 1)
87
+ virtus (1.0.5)
88
+ axiom-types (~> 0.1)
89
+ coercible (~> 1.0)
90
+ descendants_tracker (~> 0.0, >= 0.0.3)
91
+ equalizer (~> 0.0, >= 0.0.9)
92
+
93
+ PLATFORMS
94
+ ruby
95
+
96
+ DEPENDENCIES
97
+ bundler (>= 2.2.13)
98
+ factory_bot
99
+ kirico!
100
+ rake (~> 13.0)
101
+ rspec
102
+ rubocop
103
+
104
+ BUNDLED WITH
105
+ 2.3.8
data/LICENSE.md CHANGED
@@ -1,7 +1,7 @@
1
- Copyright (c) 2017 Kensuke NAITO and SmartHR, Inc.
1
+ Copyright 2023 SmartHR, Inc.
2
2
 
3
- 以下に定める条件に従い、本ソフトウェアおよび関連文書のファイル(以下「ソフトウェア」)の複製を取得するすべての人に対し、ソフトウェアを無制限に扱うことを無償で許可します。これには、ソフトウェアの複製を使用、複写、変更、結合、掲載、頒布、サブライセンス、および/または販売する権利、およびソフトウェアを提供する相手に同じことを許可する権利も無制限に含まれます。
3
+ Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
4
4
 
5
- 上記の著作権表示および本許諾表示を、ソフトウェアのすべての複製または重要な部分に記載するものとします。
5
+ The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
6
6
 
7
- ソフトウェアは「現状のまま」で、明示であるか暗黙であるかを問わず、何らの保証もなく提供されます。ここでいう保証とは、商品性、特定の目的への適合性、および権利非侵害についての保証も含みますが、それに限定されるものではありません。 作者または著作権者は、契約行為、不法行為、またはそれ以外であろうと、ソフトウェアに起因または関連し、あるいはソフトウェアの使用またはその他の扱いによって生じる一切の請求、損害、その他の義務について何らの責任も負わないものとします。
7
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
data/README.md CHANGED
@@ -1,6 +1,6 @@
1
1
  <img width="300" alt="kirico-logo" src="https://cloud.githubusercontent.com/assets/2214179/22500174/267fa8a8-e8a6-11e6-905f-fc79a049afab.png">
2
2
 
3
- # kirico
3
+ # kirico [ ![](https://img.shields.io/gem/v/kirico.svg)](https://rubygems.org/gems/kirico) [ ![](https://img.shields.io/gem/dt/kirico.svg)](https://rubygems.org/gems/kirico)
4
4
 
5
5
  [![CircleCI](https://circleci.com/gh/kufu/kirico.svg?style=svg)](https://circleci.com/gh/kufu/kirico)
6
6
 
@@ -8,14 +8,14 @@ A Ruby implementation of 届書作成プログラム
8
8
 
9
9
  ## 理念
10
10
 
11
- 2008 年より[電子政府(e-Gov)のウェブサイト](http://www.e-gov.go.jp/shinsei/index.html)上で社会保険・労働保険関連手続きの電子申請の受付が開始されました。
12
- 2010 年には e-Gov の使い勝手の向上を図り、一括申請機能の提供が開始されました。
13
- そして 2014 年 10 月、さらなる利便性の向上を目的に、外部連携 API 仕様が公開されました。
11
+ 2008 年より[電子政府(e-Gov)のウェブサイト](https://shinsei.e-gov.go.jp/)上で社会保険・労働保険関連手続きの電子申請の受付が開始されました。
12
+ 2010 年には e-Gov の使い勝手の向上を図り、一括申請機能の提供が開始されました。
13
+ そして 2014 年 10 月、さらなる利便性の向上を目的に、外部連携 API 仕様が公開されました。
14
14
 
15
- これまで様々な取組が行われてきた一方で、確定申告などで利用される国税の電子申告(e-Tax)と比べるとまだまだ普及度が低いのが実情です。
16
- また、一部の電子申請では年金機構の公開する「届書作成プログラム」を利用して CSV ファイルを生成する必要があり、一般利用者、ソフトウェア開発者共に負担となるものでした。
15
+ これまで様々な取組が行われてきた一方で、確定申告などで利用される国税の電子申告(e-Tax)と比べるとまだまだ普及度が低いのが実情です。
16
+ また、一部の電子申請では年金機構の公開する「届書作成プログラム」を利用して CSV ファイルを生成する必要があり、一般利用者、ソフトウェア開発者共に負担となるものでした。
17
17
 
18
- わたしたちは kirico の開発・公開によって CSV 形式の電子申請への対応を容易にすることで e-Gov 外部連携 API に対応したソフトウェアが増えることを期待します。
18
+ わたしたちは kirico の開発・公開によって CSV 形式の電子申請への対応を容易にすることで e-Gov 外部連携 API に対応したソフトウェアが増えることを期待します。
19
19
  そして、電子政府の認知度の向上、利用率の向上、及び利用の拡大に貢献し、もってユーザの利便性の向上を目指します。
20
20
 
21
21
 
@@ -56,6 +56,7 @@ I18n.locale = :ja
56
56
 
57
57
  # FD 管理レコード
58
58
  fd = Kirico::FDManagementRecord.new do |rec|
59
+ rec.prefecture_code = '21'
59
60
  rec.area_code = '03'
60
61
  rec.office_code = 'キリコ'
61
62
  rec.fd_seq_number = '001'
@@ -78,6 +79,7 @@ I18n.locale = :ja
78
79
 
79
80
  # 事業所情報
80
81
  company = Kirico::Company.new do |rec|
82
+ rec.prefecture_code = '21'
81
83
  rec.area_code = '03'
82
84
  rec.office_code = 'キリコ'
83
85
  rec.office_number = '1234'
@@ -86,7 +88,9 @@ company = Kirico::Company.new do |rec|
86
88
  rec.address = '東京都世田谷区上馬0-0-0'
87
89
  rec.name = '株式会社印度カレー'
88
90
  rec.owner_name = '内藤 キリコ'
89
- rec.tel_number = '03-0000-0000'
91
+ rec.tel_area_code = '03'
92
+ rec.tel_city_code = '0000'
93
+ rec.tel_subscriber_number = '0000'
90
94
  end
91
95
 
92
96
  company.valid? #=> true
@@ -165,13 +169,13 @@ end
165
169
 
166
170
  ## 生成した CSV の検証
167
171
 
168
- 日本年金機構の公開している検証プログラムで生成した CSV ファイルを検証することもできます。
172
+ 日本年金機構の公開している検証プログラムで生成した CSV ファイルを検証することもできます。
169
173
  ※動作には Windows 環境が必要となります
170
174
 
171
175
  <img width="400" alt="kirico-logo" src="https://cloud.githubusercontent.com/assets/2214179/23650706/609ed1e6-0366-11e7-92d9-625354982b9f.png">
172
176
 
173
- 検証プログラムのダウンロードはこちらから。
174
- [届出システムを自社開発または市販ソフトを使用する場合|日本年金機構](https://www.nenkin.go.jp/denshibenri/setsumei/20150415.html)
177
+ 検証プログラムのダウンロードはこちらから。
178
+ [電子申請を利用中の方へ|日本年金機構](https://www.nenkin.go.jp/denshibenri/program/download.html)
175
179
 
176
180
 
177
181
  ## 対応手続き
@@ -181,9 +185,9 @@ end
181
185
  | 資格取得届データレコード | Kirico::DataRecord22007041 | △ |
182
186
  | 資格喪失届データレコード | Kirico::DataRecord22017041 | △ |
183
187
  | 住所変更届データレコード | Kirico::DataRecord22187041 | ◯ |
184
- | 算定基礎届データレコード | Kirico::DataRecord22257041 | ◯ |
185
- | 月額変更届データレコード | Kirico::DataRecord22217041 | |
186
- | 賞与支払届データレコード | Kirico::DataRecord22657041 | |
188
+ | 算定基礎届データレコード | Kirico::DataRecord2225700 | ◯ |
189
+ | 月額変更届データレコード | Kirico::DataRecord2221700 | |
190
+ | 賞与支払届データレコード | Kirico::DataRecord2265700 | |
187
191
  | 被扶養者(異動)届データレコード | Kirico::DataRecord22027051 | △ |
188
192
  | 3号関係届(資格取得)データレコード | Kirico::DataRecord52805011 | △ |
189
193
  | 3号関係届(資格喪失)データレコード | Kirico::DataRecord52805021 | △ |
@@ -198,7 +202,7 @@ end
198
202
 
199
203
  ## 参考リンク
200
204
 
201
- - [届出システムを自社開発または市販ソフトを使用する場合|日本年金機構](https://www.nenkin.go.jp/denshibenri/setsumei/20150415.html)
205
+ - [電子申請を利用中の方へ|日本年金機構](https://www.nenkin.go.jp/denshibenri/program/download.html)
202
206
  届書作成プログラム仕様について
203
207
 
204
208
  ## Contributing
@@ -209,10 +213,14 @@ end
209
213
  4. Push to the branch (`git push origin my-new-feature`)
210
214
  5. Create a new Pull Request
211
215
 
216
+ ## Code of Conduct
217
+
218
+ Everyone interacting in the kirico project’s codebases, issue trackers, chat rooms and mailing lists is expected to follow the [code of conduct](https://github.com/kufu/kirico/blob/master/CODE_OF_CONDUCT.md).
219
+
212
220
 
213
221
  ## Copyright
214
222
 
215
- Copyright (c) 2017 Kensuke NAITO and SmartHR, Inc.
223
+ Copyright (c) 2023 SmartHR, Inc.
216
224
  ライセンスはこちら: [kirico/LICENSE.md](https://github.com/kufu/kirico/blob/master/LICENSE.md)
217
225
 
218
226
 
@@ -220,18 +228,18 @@ Copyright (c) 2017 Kensuke NAITO and SmartHR, Inc.
220
228
 
221
229
  <img src="https://user-images.githubusercontent.com/2214179/30309095-3fb58b08-97c4-11e7-939b-b4b97414bb1d.png" width="300">
222
230
 
223
- kirico は株式会社 SmartHR によってメンテナンス、開発が行われています。
224
- わたしたちは OSS の力を信じています。
231
+ kirico は株式会社 SmartHR によってメンテナンス、開発が行われています。
232
+ わたしたちは OSS の力を信じています。
225
233
 
226
- SmartHR では OSS 活動に積極的なエンジニアを募集しています!
234
+ SmartHR では OSS 活動に積極的なエンジニアを募集しています!
227
235
 
228
236
  [「雇用」×「国のAPI」をハックする Ruby エンジニア募集!](https://www.wantedly.com/projects/3788)
229
237
 
230
238
 
231
239
  # kirico について
232
240
 
233
- 切子(kirico)とは江戸時代末期より生産されている伝統的なガラス細工です。
234
- 中でも薩摩切子は薩摩藩御用達の工芸品であり、多くの大名に珍重されてきました。
235
- 色付きの厚いガラスを被せ文様を彫るため、薄く繊細な江戸切子と比較すると、重厚な印象が特徴的です。
236
- 幕末の動乱の中で生産設備に壊滅的な被害を受け、その技術は一時途絶えていましたが、
241
+ 切子(kirico)とは江戸時代末期より生産されている伝統的なガラス細工です。
242
+ 中でも薩摩切子は薩摩藩御用達の工芸品であり、多くの大名に珍重されてきました。
243
+ 色付きの厚いガラスを被せ文様を彫るため、薄く繊細な江戸切子と比較すると、重厚な印象が特徴的です。
244
+ 幕末の動乱の中で生産設備に壊滅的な被害を受け、その技術は一時途絶えていましたが、
237
245
  近年、各地の職人の努力により復刻に成功しました。
data/kirico.gemspec CHANGED
@@ -1,6 +1,4 @@
1
- # coding: utf-8
2
-
3
- lib = File.expand_path('../lib', __FILE__)
1
+ lib = File.expand_path('lib', __dir__)
4
2
  $LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
5
3
  require 'kirico/version'
6
4
 
@@ -28,23 +26,17 @@ Gem::Specification.new do |spec|
28
26
  spec.executables = spec.files.grep(%r{^exe/}) { |f| File.basename(f) }
29
27
  spec.require_paths = ['lib']
30
28
 
31
- spec.required_ruby_version = '>= 2.3.1'
29
+ spec.required_ruby_version = '>= 3.0'
32
30
 
33
- spec.add_dependency 'activesupport'
34
- spec.add_dependency 'activemodel'
31
+ spec.add_dependency 'activemodel', '>= 5.2'
32
+ spec.add_dependency 'activesupport', '>= 5.2'
35
33
  spec.add_dependency 'era_ja'
36
34
  spec.add_dependency 'validates_timeliness'
37
35
  spec.add_dependency 'virtus'
38
36
 
39
- spec.add_development_dependency 'bundler', '~> 1.10'
40
- spec.add_development_dependency 'rake', '~> 10.0'
37
+ spec.add_development_dependency 'bundler', '>= 2.2.13'
38
+ spec.add_development_dependency 'factory_bot'
39
+ spec.add_development_dependency 'rake', '~> 13.0'
41
40
  spec.add_development_dependency 'rspec'
42
- spec.add_development_dependency 'factory_girl'
43
- spec.add_development_dependency 'guard'
44
- spec.add_development_dependency 'guard-rspec'
45
- spec.add_development_dependency 'guard-bundler'
46
- spec.add_development_dependency 'guard-rubocop'
47
- spec.add_development_dependency 'pry'
48
- spec.add_development_dependency 'pry-byebug'
49
- spec.add_development_dependency 'shoulda-matchers'
41
+ spec.add_development_dependency 'rubocop'
50
42
  end