luca-jp 0.16.2 → 0.16.3
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 +4 -4
- data/exe/luca-jp +7 -25
- data/lib/luca/jp/version.rb +1 -1
- metadata +4 -4
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: fa9b6007a2a529b1d17eaca40694c831f8c1be63343571c5c3d7e926b7f52949
|
4
|
+
data.tar.gz: cb198bc844cc2d905ac9aab9c6bb35693f0b16de1d57331aac58c31c5f5a2300
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: ef9754c6618cfe2eaeb27f0e14a0a6f3b302853e73f4138128a23b1e688a33a715a11cef549ac98f942e759430ea11f0af2e134875590bcea4aba497a0a23f36
|
7
|
+
data.tar.gz: 56827cd19f691db069c42503ee2175477763f164abcdfbc46dea99ae3f942cc025c47aed8abf28b9f7f546a2f7bec709e915f10bebecefbb17df7a23895093ea
|
data/exe/luca-jp
CHANGED
@@ -7,6 +7,8 @@ require 'luca_salary/jp_payreport'
|
|
7
7
|
require 'luca_cmd'
|
8
8
|
require 'luca_support/const'
|
9
9
|
|
10
|
+
EXT_CONF = 'config-lucajp.yml'
|
11
|
+
|
10
12
|
class LucaCmd
|
11
13
|
def self.syouhizei(args, params)
|
12
14
|
if params[:export]
|
@@ -56,26 +58,6 @@ class LucaCmd
|
|
56
58
|
[r[0].year, r[0].month, r[1].year, r[1].month]
|
57
59
|
end
|
58
60
|
end
|
59
|
-
|
60
|
-
def self.check_dir_jp(target)
|
61
|
-
check_dir(target) do
|
62
|
-
begin
|
63
|
-
ex_conf = YAML.safe_load(
|
64
|
-
File.read(Pathname(LucaSupport::CONST.pjdir) / 'config-lucajp.yml'),
|
65
|
-
permitted_classes: [Date]
|
66
|
-
)
|
67
|
-
if ex_conf
|
68
|
-
LucaSupport::CONST.set_config(
|
69
|
-
LucaSupport::CONST.config.merge(ex_conf)
|
70
|
-
)
|
71
|
-
end
|
72
|
-
rescue Errno::ENOENT
|
73
|
-
nil
|
74
|
-
end
|
75
|
-
|
76
|
-
yield
|
77
|
-
end
|
78
|
-
end
|
79
61
|
end
|
80
62
|
|
81
63
|
module LucaSalaryCmd
|
@@ -97,7 +79,7 @@ when 'h', /hou?jinzei/
|
|
97
79
|
opt.on('--export', 'export json') { |_v| params[:export] = true }
|
98
80
|
opt.on('--lastyear', 'report on last Financial year') { |_v| params[:lastyear] = true }
|
99
81
|
args = opt.parse!(ARGV)
|
100
|
-
LucaCmd.
|
82
|
+
LucaCmd.check_dir('journals', ext_conf: EXT_CONF) do
|
101
83
|
LucaCmd.houjinzei(args, params)
|
102
84
|
end
|
103
85
|
end
|
@@ -107,7 +89,7 @@ when 's', /s[yh]ou?hizei/
|
|
107
89
|
opt.on('--export', 'export json') { |_v| params[:export] = true }
|
108
90
|
opt.on('--lastyear', 'report on last Financial year') { |_v| params[:lastyear] = true }
|
109
91
|
args = opt.parse!(ARGV)
|
110
|
-
LucaCmd.
|
92
|
+
LucaCmd.check_dir('journals', ext_conf: EXT_CONF) do
|
111
93
|
LucaCmd.syouhizei(args, params)
|
112
94
|
end
|
113
95
|
end
|
@@ -117,7 +99,7 @@ when 'c', /chihou?zei/
|
|
117
99
|
opt.on('--export', 'export json') { |_v| params[:export] = true }
|
118
100
|
opt.on('--lastyear', 'report on last Financial year') { |_v| params[:lastyear] = true }
|
119
101
|
args = opt.parse!(ARGV)
|
120
|
-
LucaCmd.
|
102
|
+
LucaCmd.check_dir('journals', ext_conf: EXT_CONF) do
|
121
103
|
LucaCmd.chihouzei(args, params)
|
122
104
|
end
|
123
105
|
end
|
@@ -127,7 +109,7 @@ when /urikake/
|
|
127
109
|
opt.on('--total VAL', '売掛金総額') { |v| params[:total] = v&.to_i }
|
128
110
|
opt.on('--utf8', 'UTF-8でファイル生成') { |_v| params[:encode] = 'UTF-8' }
|
129
111
|
args = opt.parse!(ARGV)
|
130
|
-
LucaCmd.
|
112
|
+
LucaCmd.check_dir('invoices', ext_conf: EXT_CONF) do
|
131
113
|
LucaCmd.urikake(args, params)
|
132
114
|
end
|
133
115
|
end
|
@@ -135,7 +117,7 @@ when 'k', 'kyuyo', 'salary'
|
|
135
117
|
OptionParser.new do |opt|
|
136
118
|
opt.banner = 'Usage: luca-jp kyuyo [--export] year'
|
137
119
|
args = opt.parse(ARGV)
|
138
|
-
LucaCmd.
|
120
|
+
LucaCmd.check_dir('profiles', ext_conf: EXT_CONF) do
|
139
121
|
LucaSalaryCmd::Export.payreport(args)
|
140
122
|
end
|
141
123
|
end
|
data/lib/luca/jp/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: luca-jp
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.16.
|
4
|
+
version: 0.16.3
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Chuma Takahiro
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2024-01-
|
11
|
+
date: 2024-01-11 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: lucabook
|
@@ -44,14 +44,14 @@ dependencies:
|
|
44
44
|
requirements:
|
45
45
|
- - ">="
|
46
46
|
- !ruby/object:Gem::Version
|
47
|
-
version: 0.7.
|
47
|
+
version: 0.7.3
|
48
48
|
type: :runtime
|
49
49
|
prerelease: false
|
50
50
|
version_requirements: !ruby/object:Gem::Requirement
|
51
51
|
requirements:
|
52
52
|
- - ">="
|
53
53
|
- !ruby/object:Gem::Version
|
54
|
-
version: 0.7.
|
54
|
+
version: 0.7.3
|
55
55
|
- !ruby/object:Gem::Dependency
|
56
56
|
name: jp-national-tax
|
57
57
|
requirement: !ruby/object:Gem::Requirement
|