tax_jp 0.3.13 → 0.4.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
2
  SHA256:
3
- metadata.gz: debca7baecf381a9e65b3dbb8c1492608a7a93411991e50a0ca157dbfe518ca2
4
- data.tar.gz: 9122c0d880a1fc9b42f3b11dba26cd44efea5a1549ee0c131163467424d4049d
3
+ metadata.gz: dbf881d3e613400aba680b3ea46a3ca3d031d600b7ad32a9c7a64a1e2a70fa60
4
+ data.tar.gz: e58527bdf926693ae41305048daa0189b736282330458c98ad436a7d0309b9c9
5
5
  SHA512:
6
- metadata.gz: c4a5c1faddb86ab7999759d503edcfa0ac917bc0fd730bc61df3261c500c7017c219d1528a99079bb1f8778956a1bf316979db9008ff2020794f1fd0c203ce0c
7
- data.tar.gz: 0a522ff98dc715271b964b91ef51b315d9744d8677e794350a90d73b7d0548eaba798607476a960191249f17eced64e8b1317bf4225610ebc2cb805ca9a863c6
6
+ metadata.gz: abaaf2350b535e0b20ec820e3dad1b68e072e9eabb776af5ef5b1bd2f8acf75e06df69bd1c21a67c4f646e4abdcfb1ddbb66ba5086fddd0495e3590240c8e342
7
+ data.tar.gz: bb170be5795097bec656b35adb117d8e0c0f46c6ae1dcd04b4989ed1c51226ee965aee8ee6d842432408011f84396218b0de7ae6e02a312d1390f3ef43654615
data/.travis.yml CHANGED
@@ -1,11 +1,9 @@
1
1
  sudo: false
2
2
  language: ruby
3
+ cache: bundler
3
4
  rvm:
4
5
  - 2.5.0
5
6
  - 2.4.3
6
- - 2.3.6
7
- - 2.2.6
8
- before_install:
9
- gem install bundler
7
+ - 2.3.7
10
8
  script:
11
9
  - bundle exec rake close
data/HISTORY.md CHANGED
@@ -1,3 +1,15 @@
1
+ # master
2
+
3
+ # バージョン 0.4.0
4
+ リリース日: 2018-09-02
5
+
6
+ ### 追加
7
+ * 社会保険
8
+ * 平成12年10月から平成20年8月までの等級および保険料率を追加
9
+
10
+ ### 削除
11
+ * Ruby-2.1、2.2 のサポートを廃止
12
+
1
13
  # バージョン 0.3.13
2
14
  リリース日: 2018-03-15
3
15
 
@@ -1,6 +1,6 @@
1
1
  適用開始日 適用終了日 介護保険第2号被保険者に該当しない場合(%) 介護保険第2号被保険者に該当する場合(%)
2
- 2007-04-01 2007-08-31 8.2 9.43
3
- 2007-09-01 2008-02-29 8.2 9.43
4
- 2008-03-01 2008-08-31 8.2 9.33
5
- 2008-09-01 2009-02-28 8.2 9.33
2
+ 2004-04-01 2005-03-31 8.2 9.31
3
+ 2005-04-01 2006-03-31 8.2 9.45
4
+ 2006-04-01 2008-02-29 8.2 9.43
5
+ 2008-03-01 2009-02-28 8.2 9.33
6
6
  2009-03-01 2009-08-31 8.2 9.39
@@ -0,0 +1,31 @@
1
+ 等級(健康保険) 等級(厚生年金) 標準報酬月額 標準報酬日額 報酬月額(以上) 報酬月額(未満)
2
+ 0 1 98000 95000 101000
3
+ 0 2 104000 101000 107000
4
+ 0 3 110000 107000 114000
5
+ 0 4 118000 114000 122000
6
+ 0 5 126000 122000 130000
7
+ 0 6 134000 130000 138000
8
+ 0 7 142000 138000 146000
9
+ 0 8 150000 146000 155000
10
+ 0 9 160000 155000 165000
11
+ 0 10 170000 165000 175000
12
+ 0 11 180000 175000 185000
13
+ 0 12 190000 185000 195000
14
+ 0 13 200000 195000 210000
15
+ 0 14 220000 210000 230000
16
+ 0 15 240000 230000 250000
17
+ 0 16 260000 250000 270000
18
+ 0 17 280000 270000 290000
19
+ 0 18 300000 290000 310000
20
+ 0 19 320000 310000 330000
21
+ 0 20 340000 330000 350000
22
+ 0 21 360000 350000 370000
23
+ 0 22 380000 370000 395000
24
+ 0 23 410000 395000 425000
25
+ 0 24 440000 425000 455000
26
+ 0 25 470000 455000 485000
27
+ 0 26 500000 485000 515000
28
+ 0 27 530000 515000 545000
29
+ 0 28 560000 545000 575000
30
+ 0 29 590000 575000 605000
31
+ 0 30 620000 605000 -
@@ -13,7 +13,7 @@ class TaxJp::SocialInsurances::DbBuilder < TaxJp::DbBuilder
13
13
  valid_from, valid_until = filename_to_date(filename)
14
14
 
15
15
  CSV.foreach(filename, :col_sep => "\t") do |row|
16
- next if row[0].to_i == 0
16
+ next if row[0].to_i == 0 and row[1].to_i == 0
17
17
  db.execute(insert_sql_grade, [valid_from, valid_until] + row.map{|col| normalize_amount(col)})
18
18
  end
19
19
  end
@@ -1,3 +1,3 @@
1
1
  module TaxJp
2
- VERSION = '0.3.13'
2
+ VERSION = '0.4.0'
3
3
  end
data/tax_jp.gemspec CHANGED
@@ -17,13 +17,13 @@ Gem::Specification.new do |s|
17
17
  s.test_files = s.files.grep(%r{^(test|spec|features)/})
18
18
  s.require_paths = ["lib"]
19
19
 
20
- s.required_ruby_version = '~> 2.1'
20
+ s.required_ruby_version = '~> 2.3'
21
21
 
22
22
  s.add_runtime_dependency 'sqlite3', '~> 1.3'
23
23
 
24
24
  s.add_development_dependency 'bundler', '~> 1.12'
25
- s.add_development_dependency 'closer', '~> 0.3'
25
+ s.add_development_dependency 'closer', '~> 0.7'
26
26
  s.add_development_dependency 'minitest', '~> 5.10'
27
27
  s.add_development_dependency 'rake', '~> 12.0'
28
- s.add_development_dependency 'rails', '>= 4.0', '< 5.1.0'
28
+ s.add_development_dependency 'rails', '>= 4.2', '< 6'
29
29
  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: 0.3.13
4
+ version: 0.4.0
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: 2018-03-14 00:00:00.000000000 Z
12
+ date: 2018-09-02 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: sqlite3
@@ -45,14 +45,14 @@ dependencies:
45
45
  requirements:
46
46
  - - "~>"
47
47
  - !ruby/object:Gem::Version
48
- version: '0.3'
48
+ version: '0.7'
49
49
  type: :development
50
50
  prerelease: false
51
51
  version_requirements: !ruby/object:Gem::Requirement
52
52
  requirements:
53
53
  - - "~>"
54
54
  - !ruby/object:Gem::Version
55
- version: '0.3'
55
+ version: '0.7'
56
56
  - !ruby/object:Gem::Dependency
57
57
  name: minitest
58
58
  requirement: !ruby/object:Gem::Requirement
@@ -87,20 +87,20 @@ dependencies:
87
87
  requirements:
88
88
  - - ">="
89
89
  - !ruby/object:Gem::Version
90
- version: '4.0'
90
+ version: '4.2'
91
91
  - - "<"
92
92
  - !ruby/object:Gem::Version
93
- version: 5.1.0
93
+ version: '6'
94
94
  type: :development
95
95
  prerelease: false
96
96
  version_requirements: !ruby/object:Gem::Requirement
97
97
  requirements:
98
98
  - - ">="
99
99
  - !ruby/object:Gem::Version
100
- version: '4.0'
100
+ version: '4.2'
101
101
  - - "<"
102
102
  - !ruby/object:Gem::Version
103
- version: 5.1.0
103
+ version: '6'
104
104
  description: 税金計算ライブラリ
105
105
  email:
106
106
  - ichylinux@gmail.com
@@ -154,6 +154,7 @@ files:
154
154
  - data/社会保険料/健康保険-20180301-20190228.tsv
155
155
  - data/社会保険料/厚生年金.tsv
156
156
  - data/社会保険料/旧健康保険.tsv
157
+ - data/社会保険料/等級-20001001-20080831.tsv
157
158
  - data/社会保険料/等級-20080901-20160331.tsv
158
159
  - data/社会保険料/等級-20160401-20160930.tsv
159
160
  - data/社会保険料/等級-20161001-20991231.tsv
@@ -212,7 +213,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
212
213
  requirements:
213
214
  - - "~>"
214
215
  - !ruby/object:Gem::Version
215
- version: '2.1'
216
+ version: '2.3'
216
217
  required_rubygems_version: !ruby/object:Gem::Requirement
217
218
  requirements:
218
219
  - - ">="