tax_jp 1.2.11 → 1.2.12

Sign up to get free protection for your applications and to get access to all the features.
Files changed (22) hide show
  1. checksums.yaml +4 -4
  2. data/app/assets/config/tax_jp_manifest.js +1 -0
  3. data/app/assets/javascripts/tax_jp/application.js +0 -6
  4. data/app/assets/javascripts/tax_jp.js +0 -1
  5. data/app/assets/stylesheets/tax_jp/application.css.scss +1 -3
  6. data/app/assets/stylesheets/tax_jp.css.scss +0 -0
  7. data/app/controllers/tax_jp/bonus_withheld_taxes_controller.rb +1 -1
  8. data/app/controllers/tax_jp/social_insurances_controller.rb +1 -1
  9. data/app/controllers/tax_jp/withheld_taxes_controller.rb +1 -1
  10. data/app/models/tax_jp/finder.rb +4 -3
  11. data/app/views/layouts/tax_jp/_nav.html.erb +1 -1
  12. data/app/views/layouts/tax_jp/application.html.erb +1 -0
  13. data/app/views/tax_jp/common/_date_field.html.erb +2 -16
  14. data/data//346/272/220/346/263/211/345/276/264/345/217/216/347/250/216/346/234/210/351/241/215.db +0 -0
  15. data/data//346/272/220/346/263/211/345/276/264/345/217/216/347/250/216/350/263/236/344/270/216.db +0 -0
  16. data/lib/tax_jp/engine.rb +0 -2
  17. data/lib/tax_jp/version.rb +1 -1
  18. metadata +7 -49
  19. data/app/assets/stylesheets/tax_jp/layout,css.scss +0 -17
  20. /data/app/assets/javascripts/{tax.js → tax_jp/tax.js} +0 -0
  21. /data/data//346/272/220/346/263/211/345/276/264/345/217/216/347/250/216//346/272/220/346/263/211/345/276/264/345/217/216/347/250/216/346/234/210/351/241/{215-20200101-20241231.tsv" → 215-20200101-20251231.tsv"} +0 -0
  22. /data/data//346/272/220/346/263/211/345/276/264/345/217/216/347/250/216//346/272/220/346/263/211/345/276/264/345/217/216/347/250/216/350/263/236/344/270/{216-20200101-20241231.tsv" → 216-20200101-20251231.tsv"} +0 -0
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 6e6b4831c607a25470da1ec4d46785ba370f754fc57ce1d4689e4609d8b25091
4
- data.tar.gz: fd05da74c0187b795bfdc06adbe7fddb74f8e05481b5fdd84e0718d0ed2a9e62
3
+ metadata.gz: c25556cce1f63a7ecb67162e912d3df083fc84119581e6bd6a9ea2ebb8f62cca
4
+ data.tar.gz: 77a8c61f79abe76c560ae122999e989d15eb4ba8f2dcbdcfbaa37cd3135c9866
5
5
  SHA512:
6
- metadata.gz: 61fabfbefec0a6b44e867b2c77261989ab48132905b747f06901a74264506d9dc5c19e84c34a08e3640abcdca390c7f85d6f81219ca48f6d24b18b265e34e708
7
- data.tar.gz: 283676d087c6fa359ab6e17c386c2b4bf47de866c0e75e54c22fbaddee2510f4ab58e72b499896bc20951db6f61c316e60d4ef07da202f3c5d7831f7846f7df4
6
+ metadata.gz: 6f829f033456329bd3d2d7da04cbc87ac540312bc689b5b27e45c229a2007776e8f78a46c7cbc15a3f2b685c9c650f4058d1b68c20d864dbeaef3226f19c5c4a
7
+ data.tar.gz: 7d870a4ae3ef50d38b681f316b83cd432b8d22817714da0a436ae5e89e65ab0d79904ddc03fed26af3f282b9c07af5a5bd06747b2f6cd02c6624e7660636252d
@@ -1,2 +1,3 @@
1
+ //= link_tree ../images/tax_jp
1
2
  //= link_directory ../javascripts/tax_jp .js
2
3
  //= link_directory ../stylesheets/tax_jp .css
@@ -11,11 +11,5 @@
11
11
  // about supported directives.
12
12
  //
13
13
  //= require rails-ujs
14
- //= require activestorage
15
- //= require jquery3
16
- //= require popper
17
14
  //= require bootstrap
18
- //= require moment
19
- //= require moment/ja.js
20
- //= require tempusdominus-bootstrap-4.js
21
15
  //= require_tree .
@@ -11,5 +11,4 @@
11
11
  // about supported directives.
12
12
  //
13
13
  //= require rails-ujs
14
- //= require activestorage
15
14
  //= require_tree .
@@ -10,11 +10,9 @@
10
10
  * files in this directory. Styles in this file should be added after the last require_* statement.
11
11
  * It is generally better to create a new file per style scope.
12
12
  *
13
- *= require font-awesome
14
13
  *= require_tree .
15
14
  *= require_self
16
15
  */
17
16
 
17
+ @charset "UTF-8";
18
18
  @import "bootstrap";
19
- @import "font-awesome";
20
- @import "tempusdominus-bootstrap-4";
File without changes
@@ -12,7 +12,7 @@ module TaxJp
12
12
 
13
13
  def preload_finder
14
14
  @finder = TaxJp::Finder.new(finder_params)
15
- @finder.from ||= Date.today.strftime('%Y-%m-%d')
15
+ @finder.from ||= Date.today
16
16
  end
17
17
 
18
18
  def finder_params
@@ -14,7 +14,7 @@ module TaxJp
14
14
 
15
15
  def preload_finder
16
16
  @finder = TaxJp::Finder.new(finder_params)
17
- @finder.from ||= Date.today.strftime('%Y-%m-%d')
17
+ @finder.from ||= Date.today
18
18
  @finder.prefecture_code ||= '13' # 人口の多い東京都をデフォルトに
19
19
  end
20
20
 
@@ -12,7 +12,7 @@ module TaxJp
12
12
 
13
13
  def preload_finder
14
14
  @finder = TaxJp::Finder.new(finder_params)
15
- @finder.from ||= Date.today.strftime('%Y-%m-%d')
15
+ @finder.from ||= Date.today
16
16
  end
17
17
 
18
18
  def finder_params
@@ -1,6 +1,7 @@
1
1
  class TaxJp::Finder
2
2
  include ActiveModel::Model
3
-
4
- attr_accessor :from
5
- attr_accessor :prefecture_code
3
+ include ActiveModel::Attributes
4
+
5
+ attribute :from, :date, default: Date.today
6
+ attribute :prefecture_code, :string
6
7
  end
@@ -1,4 +1,4 @@
1
- <nav class="navbar navbar-expand-sm navbar-light bg-light fixed-top px-2">
1
+ <nav class="navbar navbar-expand-sm navbar-light bg-light px-2">
2
2
  <span class="navbar-brand">TaxJP</span>
3
3
  <ul class="navbar-nav me-auto">
4
4
  <li class="nav-item <%= 'active' if controller_name == 'withheld_taxes' %>">
@@ -2,6 +2,7 @@
2
2
  <html>
3
3
  <head>
4
4
  <title>TaxJp</title>
5
+ <meta name="viewport" content="width=device-width, initial-scale=1" />
5
6
  <%= csrf_meta_tags %>
6
7
  <%= csp_meta_tag %>
7
8
 
@@ -1,18 +1,4 @@
1
- <div class="input-group date" id="datetimepicker4" data-target-input="nearest">
1
+ <div class="input-group">
2
2
  <label for="finder_from" class="col-form-label me-2">年月日</label>
3
- <%= f.text_field method, class: 'form-control datetimepicker-input', data: {target: '#datetimepicker4'} %>
4
- <div class="input-group-text" data-target="#datetimepicker4" data-toggle="datetimepicker">
5
- <i class="fa fa-calendar"></i>
6
- </div>
7
- <script>
8
- $(function () {
9
- $('#datetimepicker4').datetimepicker({
10
- format: 'YYYY-MM-DD',
11
- locale: 'ja',
12
- buttons: {
13
- showClose: true
14
- }
15
- });
16
- });
17
- </script>
3
+ <%= f.date_field method, class: 'form-control' %>
18
4
  </div>
data/lib/tax_jp/engine.rb CHANGED
@@ -1,5 +1,3 @@
1
- require 'bootstrap4-datetime-picker-rails'
2
- require 'font-awesome-rails'
3
1
  require_relative 'form_builder'
4
2
 
5
3
  module TaxJp
@@ -1,3 +1,3 @@
1
1
  module TaxJp
2
- VERSION = '1.2.11'
2
+ VERSION = '1.2.12'
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.2.11
4
+ version: 1.2.12
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: 2024-03-19 00:00:00.000000000 Z
12
+ date: 2024-12-31 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: bootstrap
@@ -25,48 +25,6 @@ dependencies:
25
25
  - - "~>"
26
26
  - !ruby/object:Gem::Version
27
27
  version: '5.0'
28
- - !ruby/object:Gem::Dependency
29
- name: bootstrap4-datetime-picker-rails
30
- requirement: !ruby/object:Gem::Requirement
31
- requirements:
32
- - - ">="
33
- - !ruby/object:Gem::Version
34
- version: '0'
35
- type: :runtime
36
- prerelease: false
37
- version_requirements: !ruby/object:Gem::Requirement
38
- requirements:
39
- - - ">="
40
- - !ruby/object:Gem::Version
41
- version: '0'
42
- - !ruby/object:Gem::Dependency
43
- name: font-awesome-rails
44
- requirement: !ruby/object:Gem::Requirement
45
- requirements:
46
- - - ">="
47
- - !ruby/object:Gem::Version
48
- version: '0'
49
- type: :runtime
50
- prerelease: false
51
- version_requirements: !ruby/object:Gem::Requirement
52
- requirements:
53
- - - ">="
54
- - !ruby/object:Gem::Version
55
- version: '0'
56
- - !ruby/object:Gem::Dependency
57
- name: jquery-rails
58
- requirement: !ruby/object:Gem::Requirement
59
- requirements:
60
- - - "~>"
61
- - !ruby/object:Gem::Version
62
- version: '4.4'
63
- type: :runtime
64
- prerelease: false
65
- version_requirements: !ruby/object:Gem::Requirement
66
- requirements:
67
- - - "~>"
68
- - !ruby/object:Gem::Version
69
- version: '4.4'
70
28
  - !ruby/object:Gem::Dependency
71
29
  name: rails
72
30
  requirement: !ruby/object:Gem::Requirement
@@ -118,11 +76,11 @@ files:
118
76
  - README.md
119
77
  - Rakefile
120
78
  - app/assets/config/tax_jp_manifest.js
121
- - app/assets/javascripts/tax.js
122
79
  - app/assets/javascripts/tax_jp.js
123
80
  - app/assets/javascripts/tax_jp/application.js
81
+ - app/assets/javascripts/tax_jp/tax.js
82
+ - app/assets/stylesheets/tax_jp.css.scss
124
83
  - app/assets/stylesheets/tax_jp/application.css.scss
125
- - app/assets/stylesheets/tax_jp/layout,css.scss
126
84
  - app/controllers/tax_jp/application_controller.rb
127
85
  - app/controllers/tax_jp/bonus_withheld_taxes_controller.rb
128
86
  - app/controllers/tax_jp/consumption_taxes_controller.rb
@@ -167,9 +125,9 @@ files:
167
125
  - data/源泉徴収税/源泉徴収税月額-20130101-20151231.tsv
168
126
  - data/源泉徴収税/源泉徴収税月額-20160101-20161231.tsv
169
127
  - data/源泉徴収税/源泉徴収税月額-20170101-20191231.tsv
170
- - data/源泉徴収税/源泉徴収税月額-20200101-20241231.tsv
128
+ - data/源泉徴収税/源泉徴収税月額-20200101-20251231.tsv
171
129
  - data/源泉徴収税/源泉徴収税賞与-20180101-20191231.tsv
172
- - data/源泉徴収税/源泉徴収税賞与-20200101-20241231.tsv
130
+ - data/源泉徴収税/源泉徴収税賞与-20200101-20251231.tsv
173
131
  - data/源泉徴収税月額.db
174
132
  - data/源泉徴収税賞与.db
175
133
  - data/社会保険料.db
@@ -251,7 +209,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
251
209
  - !ruby/object:Gem::Version
252
210
  version: '0'
253
211
  requirements: []
254
- rubygems_version: 3.1.6
212
+ rubygems_version: 3.3.26
255
213
  signing_key:
256
214
  specification_version: 4
257
215
  summary: 税金計算ライブラリ
@@ -1,17 +0,0 @@
1
- html {
2
- font-size: 87.5%;
3
- }
4
-
5
- .taxjp {
6
- main {
7
- padding: 4rem 0;
8
- }
9
-
10
- .table-hover tbody tr:hover td, .table-hover tbody tr:hover th {
11
- background-color: #D7EEFF;
12
- }
13
-
14
- .bootstrap-datetimepicker-widget {
15
- margin-left: 48px;
16
- }
17
- }
File without changes