tax_jp 1.1.8 → 1.1.9
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
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 47a5ac5b93ab04c255c9e18a67740b5e524dab79edd676a1fce60cac3b1a947b
|
4
|
+
data.tar.gz: 510bbad96ac976e8bc1c7895bf47f4a78c9aa39063fb4f3da0c6a11f49ba0d50
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 3c271ae83acc20fb8a4999cb40a0f3ef5f1f24c971d8999582778f8d0eb90212e2864a1bd817375b91cb5892981e2813f87709948423187268e3316023950b10
|
7
|
+
data.tar.gz: 9d4cbbcbdc5253f8bd8c04536f0a9e4784504695fedfc1f1dc7fca98ba777e5cfa30332f204306412e041773c802d59f74c2987793a4f33010d8451d3c64ee61
|
@@ -6,9 +6,11 @@ class TaxJp::SocialInsurances::HealthInsurance
|
|
6
6
|
attr_reader :general, :care
|
7
7
|
attr_reader :particular, :basic
|
8
8
|
|
9
|
-
|
9
|
+
attr_writer :salary
|
10
10
|
|
11
11
|
def initialize(attrs)
|
12
|
+
@salary = nil
|
13
|
+
|
12
14
|
if attrs.is_a?(Hash)
|
13
15
|
@grade = attrs[:grade]
|
14
16
|
@valid_from = attrs[:valid_from]
|
@@ -5,9 +5,11 @@ class TaxJp::SocialInsurances::WelfarePension
|
|
5
5
|
attr_reader :child_support
|
6
6
|
|
7
7
|
attr_accessor :grade
|
8
|
-
|
8
|
+
attr_writer :salary
|
9
9
|
|
10
10
|
def initialize(attrs)
|
11
|
+
@salary = nil
|
12
|
+
|
11
13
|
if attrs.is_a?(Hash)
|
12
14
|
@grade = attrs[:grade]
|
13
15
|
@valid_from = attrs[:valid_from]
|
data/lib/tax_jp/utils.rb
CHANGED
@@ -69,7 +69,7 @@ module TaxJp
|
|
69
69
|
end
|
70
70
|
|
71
71
|
def filename_to_date(filename)
|
72
|
-
|
72
|
+
_, valid_from, valid_until = File.basename(filename).split('.').first.split('-')
|
73
73
|
valid_from = Date.strptime(valid_from, '%Y%m%d')
|
74
74
|
valid_until = Date.strptime(valid_until, '%Y%m%d')
|
75
75
|
[valid_from.strftime('%Y-%m-%d'), valid_until.strftime('%Y-%m-%d')]
|
data/lib/tax_jp/version.rb
CHANGED
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: tax_jp
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.1.
|
4
|
+
version: 1.1.9
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- ichylinux
|
@@ -9,7 +9,7 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date: 2021-01-
|
12
|
+
date: 2021-01-02 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: bootstrap
|
@@ -93,14 +93,14 @@ dependencies:
|
|
93
93
|
requirements:
|
94
94
|
- - "~>"
|
95
95
|
- !ruby/object:Gem::Version
|
96
|
-
version: 1.3
|
96
|
+
version: '1.3'
|
97
97
|
type: :runtime
|
98
98
|
prerelease: false
|
99
99
|
version_requirements: !ruby/object:Gem::Requirement
|
100
100
|
requirements:
|
101
101
|
- - "~>"
|
102
102
|
- !ruby/object:Gem::Version
|
103
|
-
version: 1.3
|
103
|
+
version: '1.3'
|
104
104
|
description: 税金計算ライブラリ
|
105
105
|
email:
|
106
106
|
- ichylinux@gmail.com
|
@@ -234,14 +234,14 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
234
234
|
requirements:
|
235
235
|
- - "~>"
|
236
236
|
- !ruby/object:Gem::Version
|
237
|
-
version: '2.
|
237
|
+
version: '2.5'
|
238
238
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
239
239
|
requirements:
|
240
240
|
- - ">="
|
241
241
|
- !ruby/object:Gem::Version
|
242
242
|
version: '0'
|
243
243
|
requirements: []
|
244
|
-
rubygems_version: 3.
|
244
|
+
rubygems_version: 3.1.4
|
245
245
|
signing_key:
|
246
246
|
specification_version: 4
|
247
247
|
summary: 税金計算ライブラリ
|