libledger 0.0.4 → 0.0.5
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.circle-ruby +3 -4
- data/.prospectus +2 -2
- data/.travis.yml +10 -0
- data/README.md +1 -2
- data/lib/libledger/journal.rb +5 -1
- data/libledger.gemspec +4 -4
- metadata +9 -9
- data/circle.yml +0 -7
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: d4c1251e5757f71ce2f5fb4da604bdb84e5143f572c192efad37aef61025cb53
|
4
|
+
data.tar.gz: 1498456ce69ab6b1ffc39976fca6f606e13ba5b018614715a9aec0bcb4d86cda
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 4a64125c2bc312f41f24eea920c911245585b37f10de409f680806eebedde2cb56cac04b579f76f4414deb26a2490fe2c5c1ca3e32272f252e66a98ef4f9fdbc
|
7
|
+
data.tar.gz: 8b67c9737ad5bb04697cc8084261cf956bc1a43c69a1be08f3e8d538c4be1f26cdc84ffce970eb52515f68cee7dd1224f64aa8fae78dfe955c82255882b53f45
|
data/.circle-ruby
CHANGED
@@ -1,4 +1,3 @@
|
|
1
|
-
2.5.
|
2
|
-
2.4.
|
3
|
-
2.3.
|
4
|
-
2.2.10
|
1
|
+
2.5.3
|
2
|
+
2.4.5
|
3
|
+
2.3.8
|
data/.prospectus
CHANGED
@@ -1,11 +1,11 @@
|
|
1
1
|
my_slug = 'akerl/libledger'
|
2
2
|
|
3
|
-
Prospectus.extra_dep('file', '
|
3
|
+
Prospectus.extra_dep('file', 'prospectus_travis')
|
4
4
|
Prospectus.extra_dep('file', 'prospectus_gems')
|
5
5
|
|
6
6
|
item do
|
7
7
|
noop
|
8
8
|
|
9
9
|
extend ProspectusGems::Gemspec.new
|
10
|
-
extend
|
10
|
+
extend ProspectusTravis::Build.new(my_slug)
|
11
11
|
end
|
data/.travis.yml
ADDED
@@ -0,0 +1,10 @@
|
|
1
|
+
dist: trusty
|
2
|
+
install:
|
3
|
+
- for i in $(cat .circle-ruby) ; do rvm install $i || exit 1 ; done
|
4
|
+
- for i in $(cat .circle-ruby) ; do rvm-exec $i bundle install || exit 1 ; done
|
5
|
+
script:
|
6
|
+
- for i in $(cat .circle-ruby) ; do rvm-exec $i bundle exec rake || exit 1 ; done
|
7
|
+
notifications:
|
8
|
+
email: false
|
9
|
+
slack:
|
10
|
+
secure: vFR05GBOhicnlnPoZbqSNmMYNyEs8JxD4yvWR00kVk++a4mLqHTACbskjI347B9JuflvRkwDWA3d5t7tF0CHzSF19RdCgUDKgPwVvG091Gy/8Eq0RI7vfHRUwyd6V4N5qQ4tTW50q8b+wgTbJ/Mym4LQjfwm5I2WUny7cUFbZZ7rvLxT5SzIJ6/cW19KpnlYAQPRDDG4yiQpe7cGO/P/qH4iQmKFizMZwFUIp0jC2WzjGVsbv7iOJdC+kVbpbGSVb4ou3c7NwgtBuOdECbAyakPwQBcnOUhYrxBS1xjfy4WLz/rRj3iSDgy/4Hr7X5WqS6rHFnOPXB29HnxB81SXfdCnJkmmXJomtNG15WCzawBhM9DntvTzyvm7B1LSyqmNbhZah/05adwNgH6SwSWg6PTLuqKZu84wfxl2PI+UXlRkLRkcGR7WIZ2cXVm6IOGrR47rsSFzwVpkYGFsP8I0x47sh2kiPcwP/Si9wLme3EwbIhwP6T6VUsEWz7VJc2NrpRIPGck31nFXVw+gLbikaOL5yH4Goz2Ld8OpYRTE5IRwb9rI57XPDmPzt8bAZCVDQuZ826lKtuKA5A0GA+xILRXB32DA5WZcs0j2PDM5OIXNx0sNHNvx4ngjcVN4+cgSGOe3i7dWpzpCNU/aI7M4VfCcAm8ObA63+KW1dUrg60o=
|
data/README.md
CHANGED
@@ -2,8 +2,7 @@ libledger
|
|
2
2
|
=========
|
3
3
|
|
4
4
|
[![Gem Version](https://img.shields.io/gem/v/libledger.svg)](https://rubygems.org/gems/libledger)
|
5
|
-
[![
|
6
|
-
[![Build Status](https://img.shields.io/circleci/project/akerl/libledger/master.svg)](https://circleci.com/gh/akerl/libledger)
|
5
|
+
[![Build Status](https://img.shields.io/travis/com/akerl/libledger.svg)](https://travis-ci.com/akerl/libledger)
|
7
6
|
[![Coverage Status](https://img.shields.io/codecov/c/github/akerl/libledger.svg)](https://codecov.io/github/akerl/libledger)
|
8
7
|
[![Code Quality](https://img.shields.io/codacy/e5360f4242b64246b2a70022616c9bea.svg)](https://www.codacy.com/app/akerl/libledger)
|
9
8
|
[![MIT Licensed](https://img.shields.io/badge/license-MIT-green.svg)](https://tldrlegal.com/license/mit-license)
|
data/lib/libledger/journal.rb
CHANGED
@@ -30,7 +30,11 @@ module Ledger
|
|
30
30
|
private
|
31
31
|
|
32
32
|
def text_to_entries(text)
|
33
|
-
text.split("\n\n").map
|
33
|
+
text.split("\n\n").map do |x|
|
34
|
+
next if x.start_with? ';'
|
35
|
+
|
36
|
+
Entry.from_lines(x.split("\n"))
|
37
|
+
end.compact
|
34
38
|
end
|
35
39
|
end
|
36
40
|
end
|
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.5'
|
4
4
|
s.date = Time.now.strftime('%Y-%m-%d')
|
5
5
|
|
6
6
|
s.summary = 'Library for interacting with Ledger files'
|
@@ -15,8 +15,8 @@ Gem::Specification.new do |s|
|
|
15
15
|
|
16
16
|
s.add_development_dependency 'codecov', '~> 0.1.1'
|
17
17
|
s.add_development_dependency 'fuubar', '~> 2.3.0'
|
18
|
-
s.add_development_dependency 'goodcop', '~> 0.
|
18
|
+
s.add_development_dependency 'goodcop', '~> 0.6.0'
|
19
19
|
s.add_development_dependency 'rake', '~> 12.3.0'
|
20
|
-
s.add_development_dependency 'rspec', '~> 3.
|
21
|
-
s.add_development_dependency 'rubocop', '~> 0.
|
20
|
+
s.add_development_dependency 'rspec', '~> 3.8.0'
|
21
|
+
s.add_development_dependency 'rubocop', '~> 0.59.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.5
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Les Aker
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2018-
|
11
|
+
date: 2018-10-20 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: codecov
|
@@ -44,14 +44,14 @@ dependencies:
|
|
44
44
|
requirements:
|
45
45
|
- - "~>"
|
46
46
|
- !ruby/object:Gem::Version
|
47
|
-
version: 0.
|
47
|
+
version: 0.6.0
|
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.
|
54
|
+
version: 0.6.0
|
55
55
|
- !ruby/object:Gem::Dependency
|
56
56
|
name: rake
|
57
57
|
requirement: !ruby/object:Gem::Requirement
|
@@ -72,28 +72,28 @@ dependencies:
|
|
72
72
|
requirements:
|
73
73
|
- - "~>"
|
74
74
|
- !ruby/object:Gem::Version
|
75
|
-
version: 3.
|
75
|
+
version: 3.8.0
|
76
76
|
type: :development
|
77
77
|
prerelease: false
|
78
78
|
version_requirements: !ruby/object:Gem::Requirement
|
79
79
|
requirements:
|
80
80
|
- - "~>"
|
81
81
|
- !ruby/object:Gem::Version
|
82
|
-
version: 3.
|
82
|
+
version: 3.8.0
|
83
83
|
- !ruby/object:Gem::Dependency
|
84
84
|
name: rubocop
|
85
85
|
requirement: !ruby/object:Gem::Requirement
|
86
86
|
requirements:
|
87
87
|
- - "~>"
|
88
88
|
- !ruby/object:Gem::Version
|
89
|
-
version: 0.
|
89
|
+
version: 0.59.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.59.0
|
97
97
|
description: Library for interacting with Ledger files
|
98
98
|
email: me@lesaker.org
|
99
99
|
executables: []
|
@@ -105,11 +105,11 @@ files:
|
|
105
105
|
- ".prospectus"
|
106
106
|
- ".rspec"
|
107
107
|
- ".rubocop.yml"
|
108
|
+
- ".travis.yml"
|
108
109
|
- Gemfile
|
109
110
|
- LICENSE
|
110
111
|
- README.md
|
111
112
|
- Rakefile
|
112
|
-
- circle.yml
|
113
113
|
- lib/libledger.rb
|
114
114
|
- lib/libledger/entry.rb
|
115
115
|
- lib/libledger/journal.rb
|
data/circle.yml
DELETED
@@ -1,7 +0,0 @@
|
|
1
|
-
dependencies:
|
2
|
-
override:
|
3
|
-
- 'for i in $(cat .circle-ruby) ; do rvm-exec $i gem update --system --no-doc || exit 1 ; done'
|
4
|
-
- 'for i in $(cat .circle-ruby) ; do rvm-exec $i bundle install || exit 1 ; done'
|
5
|
-
test:
|
6
|
-
override:
|
7
|
-
- 'for i in $(cat .circle-ruby) ; do rvm-exec $i bundle exec rake || exit 1 ; done'
|