libledger 0.0.6 → 0.0.8
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/libledger/journal.rb +3 -2
- data/libledger.gemspec +4 -4
- 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: 0e8b5c9f2903b97249b86787c0749f1d3d5b4bf480503567d9c80f214895e7e0
|
4
|
+
data.tar.gz: e4b1cf5f27d35a796a23536d87aa45f5f52d37452586b7782cbd3ef2b6ffbc71
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: a54b3ed27364a2d917d7a4d32495da23f932668430b6ec53bdfc4227a6b070d1d4e83c4e2100b3018f196087a970e641a6e76ebbf7e79ed77fe4c6d479056a15
|
7
|
+
data.tar.gz: a0d4e3d283566cc06be7caed08224b6d41f68df8b371a56b3a97fb3f0d7c5fdae3db8abfe3c2a4acfee70bf25f101123b3349acc34f4122ed04d1ff30f3c0755
|
data/lib/libledger/journal.rb
CHANGED
@@ -9,7 +9,7 @@ module Ledger
|
|
9
9
|
end
|
10
10
|
|
11
11
|
def to_s
|
12
|
-
@entries.map(&:to_s).join("\n")
|
12
|
+
@entries.sort.map(&:to_s).join("\n")
|
13
13
|
end
|
14
14
|
|
15
15
|
class << self
|
@@ -30,7 +30,8 @@ module Ledger
|
|
30
30
|
private
|
31
31
|
|
32
32
|
def text_to_entries(text)
|
33
|
-
text.split(
|
33
|
+
text.split(/\n\n+/).map do |x|
|
34
|
+
x.strip!
|
34
35
|
next if x.start_with? ';'
|
35
36
|
|
36
37
|
Entry.from_lines(x.split("\n"))
|
data/libledger.gemspec
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
Gem::Specification.new do |s|
|
2
2
|
s.name = 'libledger'
|
3
|
-
s.version = '0.0.
|
3
|
+
s.version = '0.0.8'
|
4
4
|
s.date = Time.now.strftime('%Y-%m-%d')
|
5
5
|
|
6
6
|
s.summary = 'Library for interacting with Ledger files'
|
@@ -14,9 +14,9 @@ Gem::Specification.new do |s|
|
|
14
14
|
s.test_files = `git ls-files spec/*`.split
|
15
15
|
|
16
16
|
s.add_development_dependency 'codecov', '~> 0.1.1'
|
17
|
-
s.add_development_dependency 'fuubar', '~> 2.
|
18
|
-
s.add_development_dependency 'goodcop', '~> 0.7.
|
17
|
+
s.add_development_dependency 'fuubar', '~> 2.4.1'
|
18
|
+
s.add_development_dependency 'goodcop', '~> 0.7.1'
|
19
19
|
s.add_development_dependency 'rake', '~> 12.3.0'
|
20
20
|
s.add_development_dependency 'rspec', '~> 3.8.0'
|
21
|
-
s.add_development_dependency 'rubocop', '~> 0.
|
21
|
+
s.add_development_dependency 'rubocop', '~> 0.74.0'
|
22
22
|
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: libledger
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.8
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Les Aker
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2019-
|
11
|
+
date: 2019-08-27 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: codecov
|
@@ -30,28 +30,28 @@ dependencies:
|
|
30
30
|
requirements:
|
31
31
|
- - "~>"
|
32
32
|
- !ruby/object:Gem::Version
|
33
|
-
version: 2.
|
33
|
+
version: 2.4.1
|
34
34
|
type: :development
|
35
35
|
prerelease: false
|
36
36
|
version_requirements: !ruby/object:Gem::Requirement
|
37
37
|
requirements:
|
38
38
|
- - "~>"
|
39
39
|
- !ruby/object:Gem::Version
|
40
|
-
version: 2.
|
40
|
+
version: 2.4.1
|
41
41
|
- !ruby/object:Gem::Dependency
|
42
42
|
name: goodcop
|
43
43
|
requirement: !ruby/object:Gem::Requirement
|
44
44
|
requirements:
|
45
45
|
- - "~>"
|
46
46
|
- !ruby/object:Gem::Version
|
47
|
-
version: 0.7.
|
47
|
+
version: 0.7.1
|
48
48
|
type: :development
|
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.1
|
55
55
|
- !ruby/object:Gem::Dependency
|
56
56
|
name: rake
|
57
57
|
requirement: !ruby/object:Gem::Requirement
|
@@ -86,14 +86,14 @@ dependencies:
|
|
86
86
|
requirements:
|
87
87
|
- - "~>"
|
88
88
|
- !ruby/object:Gem::Version
|
89
|
-
version: 0.
|
89
|
+
version: 0.74.0
|
90
90
|
type: :development
|
91
91
|
prerelease: false
|
92
92
|
version_requirements: !ruby/object:Gem::Requirement
|
93
93
|
requirements:
|
94
94
|
- - "~>"
|
95
95
|
- !ruby/object:Gem::Version
|
96
|
-
version: 0.
|
96
|
+
version: 0.74.0
|
97
97
|
description: Library for interacting with Ledger files
|
98
98
|
email: me@lesaker.org
|
99
99
|
executables: []
|