lucabook 0.4.1 → 0.4.4
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-book +6 -1
- data/lib/luca_book/import.rb +1 -1
- data/lib/luca_book/state.rb +1 -1
- data/lib/luca_book/version.rb +1 -1
- metadata +8 -8
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 210dddde58c2e020242fb4faf8643045b0c46862b050f27dd16c8108baee94d8
|
|
4
|
+
data.tar.gz: 95e39bcc78e77c3191e622e64d0b8f3c07738833aeccfadb030348297a38efa8
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 18caa0109f726e8b94d911e39c1f4c5b6d19bbbc7393f1c07f3baadfb197d6b760f8286d13be4fc2ceb393c37690902bd96405031bfa89aa8696f3933f17e55b
|
|
7
|
+
data.tar.gz: 15fbecd2cf597ae95d33a6af114fe32ca181bb039fb8d442737303c53ead969c2075a034bfd0ac077bae21587cfc1f623f23108f32fda2e89b542d20bf15d8ae
|
data/exe/luca-book
CHANGED
|
@@ -137,7 +137,12 @@ class LucaCmd
|
|
|
137
137
|
when 'json'
|
|
138
138
|
puts JSON.dump(dat)
|
|
139
139
|
when 'nu'
|
|
140
|
-
|
|
140
|
+
if dat.length == 1 and dat.first['balance'] == 0
|
|
141
|
+
puts 'ⓘ Initial balance & records empty in the specified term.'
|
|
142
|
+
else
|
|
143
|
+
column_ord = %w(date diff balance counter_code note code id no)
|
|
144
|
+
LucaSupport::View.nushell(dat, column_ord)
|
|
145
|
+
end
|
|
141
146
|
else
|
|
142
147
|
puts YAML.dump(dat)
|
|
143
148
|
end
|
data/lib/luca_book/import.rb
CHANGED
data/lib/luca_book/state.rb
CHANGED
|
@@ -246,7 +246,7 @@ module LucaBook
|
|
|
246
246
|
@xbrl_entries = @bs_data.map{ |k, v| xbrl_line(k, v, prior_bs[k]) }.compact.join("\n")
|
|
247
247
|
@xbrl_entries += @pl_data.map{ |k, v| xbrl_line(k, v) }.compact.join("\n")
|
|
248
248
|
@xbrl_entries += equity_change.join("\n")
|
|
249
|
-
@filename = filename || @issue_date
|
|
249
|
+
@filename = filename || "statement-#{@issue_date}"
|
|
250
250
|
|
|
251
251
|
File.open("#{@filename}.xbrl", 'w') { |f| f.write render_erb(search_template("base-#{country_suffix}.xbrl.erb")) }
|
|
252
252
|
File.open("#{@filename}.xsd", 'w') { |f| f.write render_erb(search_template("base-#{country_suffix}.xsd.erb")) }
|
data/lib/luca_book/version.rb
CHANGED
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: lucabook
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.4.
|
|
4
|
+
version: 0.4.4
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Chuma Takahiro
|
|
8
|
-
autorequire:
|
|
8
|
+
autorequire:
|
|
9
9
|
bindir: exe
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date:
|
|
11
|
+
date: 2023-04-11 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: lucarecord
|
|
@@ -16,14 +16,14 @@ dependencies:
|
|
|
16
16
|
requirements:
|
|
17
17
|
- - ">="
|
|
18
18
|
- !ruby/object:Gem::Version
|
|
19
|
-
version:
|
|
19
|
+
version: 0.5.4
|
|
20
20
|
type: :runtime
|
|
21
21
|
prerelease: false
|
|
22
22
|
version_requirements: !ruby/object:Gem::Requirement
|
|
23
23
|
requirements:
|
|
24
24
|
- - ">="
|
|
25
25
|
- !ruby/object:Gem::Version
|
|
26
|
-
version:
|
|
26
|
+
version: 0.5.4
|
|
27
27
|
- !ruby/object:Gem::Dependency
|
|
28
28
|
name: bundler
|
|
29
29
|
requirement: !ruby/object:Gem::Requirement
|
|
@@ -108,7 +108,7 @@ licenses:
|
|
|
108
108
|
metadata:
|
|
109
109
|
homepage_uri: https://github.com/chumaltd/luca/tree/master/lucabook
|
|
110
110
|
source_code_uri: https://github.com/chumaltd/luca/tree/master/lucabook
|
|
111
|
-
post_install_message:
|
|
111
|
+
post_install_message:
|
|
112
112
|
rdoc_options: []
|
|
113
113
|
require_paths:
|
|
114
114
|
- lib
|
|
@@ -123,8 +123,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
|
123
123
|
- !ruby/object:Gem::Version
|
|
124
124
|
version: '0'
|
|
125
125
|
requirements: []
|
|
126
|
-
rubygems_version: 3.
|
|
127
|
-
signing_key:
|
|
126
|
+
rubygems_version: 3.3.5
|
|
127
|
+
signing_key:
|
|
128
128
|
specification_version: 4
|
|
129
129
|
summary: Book keep
|
|
130
130
|
test_files: []
|