tax_jp 1.1.8 → 1.1.9

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: dd42cdf824adc2cb4f4c91a48d794304a7601e1839190705460f8c97af1c8b4b
4
- data.tar.gz: 3ea356a73500d999f57c62c0b31d5e4f45fcf5044c842f11cea92c4303f26b65
3
+ metadata.gz: 47a5ac5b93ab04c255c9e18a67740b5e524dab79edd676a1fce60cac3b1a947b
4
+ data.tar.gz: 510bbad96ac976e8bc1c7895bf47f4a78c9aa39063fb4f3da0c6a11f49ba0d50
5
5
  SHA512:
6
- metadata.gz: c8959d38726417a0610005b5c2fd21049b0701c0609325ffca216f3052689c7666dc0c77cd602e4f75b822c4cadacef39e45ce8f30a132cdf8587750a54386f0
7
- data.tar.gz: ed2f8afa0d734d3001d715713f1f32157eacdd29d8e19dd094395897314dfd6ffcf53249e6b31e942be5e115263a3c3e9381154763cf6af166cad8e786fd911d
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
- attr_accessor :salary
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
- attr_accessor :salary
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]
@@ -69,7 +69,7 @@ module TaxJp
69
69
  end
70
70
 
71
71
  def filename_to_date(filename)
72
- title, valid_from, valid_until = File.basename(filename).split('.').first.split('-')
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')]
@@ -1,3 +1,3 @@
1
1
  module TaxJp
2
- VERSION = '1.1.8'
2
+ VERSION = '1.1.9'
3
3
  end
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.8
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-01 00:00:00.000000000 Z
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.6
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.6
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.4'
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.0.3
244
+ rubygems_version: 3.1.4
245
245
  signing_key:
246
246
  specification_version: 4
247
247
  summary: 税金計算ライブラリ