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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: c8d479856702cc84e796c55b0d2aaeda59e8ccd7cf3fe57a755ab1e7c0ffc9a1
4
- data.tar.gz: 006c5b66fcb248f3dbbaa31a4f11794ed34dcfdc758bb49f3e4a619a7aad82d9
3
+ metadata.gz: 0e8b5c9f2903b97249b86787c0749f1d3d5b4bf480503567d9c80f214895e7e0
4
+ data.tar.gz: e4b1cf5f27d35a796a23536d87aa45f5f52d37452586b7782cbd3ef2b6ffbc71
5
5
  SHA512:
6
- metadata.gz: 863d70a6641aa1fe0f0e443b138aa536a09c553d4b842ea8df0ec2ea2c5b22dc20e917fed19e40fae9c1be5409ba6ef36be1762a811857efff5324013aa0a5ea
7
- data.tar.gz: 0d0fff90cbc369a2118eb08ac7d9375ca40adae91ffd1ec8e2b23829c60b8502698aa0a5905d5a02609e3026955c4e9d4a7e2678f20a921a0ad359d5c2e18a5b
6
+ metadata.gz: a54b3ed27364a2d917d7a4d32495da23f932668430b6ec53bdfc4227a6b070d1d4e83c4e2100b3018f196087a970e641a6e76ebbf7e79ed77fe4c6d479056a15
7
+ data.tar.gz: a0d4e3d283566cc06be7caed08224b6d41f68df8b371a56b3a97fb3f0d7c5fdae3db8abfe3c2a4acfee70bf25f101123b3349acc34f4122ed04d1ff30f3c0755
@@ -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("\n\n").map do |x|
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"))
@@ -1,6 +1,6 @@
1
1
  Gem::Specification.new do |s|
2
2
  s.name = 'libledger'
3
- s.version = '0.0.6'
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.3.0'
18
- s.add_development_dependency 'goodcop', '~> 0.7.0'
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.67.2'
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.6
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-06-12 00:00:00.000000000 Z
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.3.0
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.3.0
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.0
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.0
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.67.2
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.67.2
96
+ version: 0.74.0
97
97
  description: Library for interacting with Ledger files
98
98
  email: me@lesaker.org
99
99
  executables: []