ledger_gen 0.1.2 → 0.2.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/ledger_gen/journal.rb +2 -2
- data/lib/ledger_gen/version.rb +1 -1
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: b4fba09632d0197e1908966b5bc853020862d019
|
4
|
+
data.tar.gz: 1645c7d8f10015c54875e6931cee1659723e4e20
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: b35a1a77e119b07dc182847b2dac3b270877110b6ca2d79c049265357379a19c233e4cbf56aea527bec46356b77ec99abd644d03dcd4895f1161cbbaa73514c8
|
7
|
+
data.tar.gz: d90c0935e1310b0143ba0f35b0b3ebbe0eeae7dd0f7aa15e2024927eee8e8dc8c8b8a983aef34ad4c23a57ae32d2c5ce07509256e1050bc76abde60b34fb44e8
|
data/lib/ledger_gen/journal.rb
CHANGED
@@ -26,8 +26,8 @@ module LedgerGen
|
|
26
26
|
@transactions.map(&:to_s).join("\n\n") + "\n"
|
27
27
|
end
|
28
28
|
|
29
|
-
def pretty_print
|
30
|
-
IO.popen("ledger -f - print", mode='r+') do |io|
|
29
|
+
def pretty_print(ledger_options='')
|
30
|
+
IO.popen("ledger #{ledger_options} -f - print", mode='r+') do |io|
|
31
31
|
io.write to_s
|
32
32
|
io.close_write
|
33
33
|
io.read
|
data/lib/ledger_gen/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: ledger_gen
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.2.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Pete Keen
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2018-03-04 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|
@@ -95,7 +95,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
95
95
|
version: '0'
|
96
96
|
requirements: []
|
97
97
|
rubyforge_project:
|
98
|
-
rubygems_version: 2.6.
|
98
|
+
rubygems_version: 2.6.13
|
99
99
|
signing_key:
|
100
100
|
specification_version: 4
|
101
101
|
summary: Generate ledger-cli files from Ruby
|