keepr 0.3.0 → 0.3.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/keepr.gemspec +1 -1
- data/lib/keepr/version.rb +1 -1
- data/spec/keepr/account_export_spec.rb +8 -8
- data/spec/keepr/contact_export_spec.rb +3 -3
- data/spec/keepr/journal_export_spec.rb +22 -22
- metadata +4 -4
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 6939306095b85a2adcb973912222080ca16a6819
|
4
|
+
data.tar.gz: 0300cc5a158f99c95f9ce0685500cb3a4690c5d7
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 1ddbc32cc11e4005ba21ddc8fc95fdd2617d199d559c03ea0bf26c6ee5e319ff9e5a19518bee0365e415c564595b26ef69c7ecf9fb96abb7bc2fe16250f8898b
|
7
|
+
data.tar.gz: a064b44c2a03afc6ff936e081d81b20ce427089a78aa5dd75006e3e8b3b9cc8a60d4c9e507a443eeecf4e607a1877a9645ea6489d83da0776c1a34ed1ab77da0
|
data/keepr.gemspec
CHANGED
@@ -21,7 +21,7 @@ Gem::Specification.new do |spec|
|
|
21
21
|
|
22
22
|
spec.add_dependency 'activerecord', '>= 4.1'
|
23
23
|
spec.add_dependency 'ancestry'
|
24
|
-
spec.add_dependency 'datev', '>= 0.
|
24
|
+
spec.add_dependency 'datev', '>= 0.5.0'
|
25
25
|
|
26
26
|
spec.add_development_dependency 'bundler'
|
27
27
|
spec.add_development_dependency 'rake'
|
data/lib/keepr/version.rb
CHANGED
@@ -36,31 +36,31 @@ describe Keepr::AccountExport do
|
|
36
36
|
it "should include header data" do
|
37
37
|
expect(subject.lines[0]).to include('1234567;')
|
38
38
|
expect(subject.lines[0]).to include('78901;')
|
39
|
-
expect(subject.lines[0]).to include('Keepr-Konten;')
|
39
|
+
expect(subject.lines[0]).to include('"Keepr-Konten";')
|
40
40
|
end
|
41
41
|
|
42
42
|
it "should include all accounts except debtor/creditor" do
|
43
43
|
expect(account_lines.count).to eq(5)
|
44
44
|
|
45
45
|
expect(account_lines[0]).to include('1000;')
|
46
|
-
expect(account_lines[0]).to include('Kasse;')
|
46
|
+
expect(account_lines[0]).to include('"Kasse";')
|
47
47
|
|
48
48
|
expect(account_lines[1]).to include('1776;')
|
49
|
-
expect(account_lines[1]).to include('Umsatzsteuer 19
|
49
|
+
expect(account_lines[1]).to include('"Umsatzsteuer 19 %";')
|
50
50
|
|
51
51
|
expect(account_lines[2]).to include('4920;')
|
52
|
-
expect(account_lines[2]).to include('Telefon;')
|
52
|
+
expect(account_lines[2]).to include('"Telefon";')
|
53
53
|
|
54
54
|
expect(account_lines[3]).to include('8400;')
|
55
|
-
expect(account_lines[3]).to include('Erlöse 19
|
55
|
+
expect(account_lines[3]).to include('"Erlöse 19 %";')
|
56
56
|
|
57
57
|
expect(account_lines[4]).to include('9000;')
|
58
|
-
expect(account_lines[4]).to include('Saldenvorträge Sachkonten;')
|
58
|
+
expect(account_lines[4]).to include('"Saldenvorträge Sachkonten";')
|
59
59
|
end
|
60
60
|
|
61
61
|
it "should include data from block" do
|
62
|
-
expect(account_lines[0]).to include(';de-DE')
|
63
|
-
expect(account_lines[1]).to include(';de-DE')
|
62
|
+
expect(account_lines[0]).to include(';"de-DE"')
|
63
|
+
expect(account_lines[1]).to include(';"de-DE"')
|
64
64
|
end
|
65
65
|
end
|
66
66
|
|
@@ -32,7 +32,7 @@ describe Keepr::ContactExport do
|
|
32
32
|
it "should include header data" do
|
33
33
|
expect(subject.lines[0]).to include('1234567;')
|
34
34
|
expect(subject.lines[0]).to include('78901;')
|
35
|
-
expect(subject.lines[0]).to include('Keepr-Kontakte;')
|
35
|
+
expect(subject.lines[0]).to include('"Keepr-Kontakte";')
|
36
36
|
end
|
37
37
|
|
38
38
|
it "should include debtor/creditor accounts only" do
|
@@ -43,8 +43,8 @@ describe Keepr::ContactExport do
|
|
43
43
|
end
|
44
44
|
|
45
45
|
it "should include data from block" do
|
46
|
-
expect(account_lines[0]).to include('Meyer GmbH;')
|
47
|
-
expect(account_lines[1]).to include('Schulze AG;')
|
46
|
+
expect(account_lines[0]).to include('"Meyer GmbH";')
|
47
|
+
expect(account_lines[1]).to include('"Schulze AG";')
|
48
48
|
end
|
49
49
|
end
|
50
50
|
|
@@ -46,7 +46,7 @@ describe Keepr::JournalExport do
|
|
46
46
|
expect(subject.lines[0]).to include('1234567;')
|
47
47
|
expect(subject.lines[0]).to include('78901;')
|
48
48
|
expect(subject.lines[0]).to include('20160601;20160630;')
|
49
|
-
expect(subject.lines[0]).to include('Keepr-Buchungen;')
|
49
|
+
expect(subject.lines[0]).to include('"Keepr-Buchungen";')
|
50
50
|
end
|
51
51
|
|
52
52
|
context "Journal without tax" do
|
@@ -63,12 +63,12 @@ describe Keepr::JournalExport do
|
|
63
63
|
it "should include data" do
|
64
64
|
expect(booking_lines.count).to eq(1)
|
65
65
|
|
66
|
-
expect(booking_lines[0]).to include('Geldautomat;')
|
66
|
+
expect(booking_lines[0]).to include('"Geldautomat";')
|
67
67
|
expect(booking_lines[0]).to include('1000;1200;')
|
68
68
|
expect(booking_lines[0]).to include('105,00;')
|
69
|
-
expect(booking_lines[0]).to include(';S;')
|
69
|
+
expect(booking_lines[0]).to include(';"S";')
|
70
70
|
expect(booking_lines[0]).to include('2306;')
|
71
|
-
expect(booking_lines[0]).to include('BELEG-1;')
|
71
|
+
expect(booking_lines[0]).to include('"BELEG-1";')
|
72
72
|
expect(booking_lines[0]).to include(';0;')
|
73
73
|
end
|
74
74
|
end
|
@@ -88,20 +88,20 @@ describe Keepr::JournalExport do
|
|
88
88
|
it "should include data" do
|
89
89
|
expect(booking_lines.count).to eq(2)
|
90
90
|
|
91
|
-
expect(booking_lines[0]).to include('Telefonrechnung;')
|
91
|
+
expect(booking_lines[0]).to include('"Telefonrechnung";')
|
92
92
|
expect(booking_lines[0]).to include('4920;1600;')
|
93
93
|
expect(booking_lines[0]).to include('8,40;')
|
94
|
-
expect(booking_lines[0]).to include(';S;')
|
94
|
+
expect(booking_lines[0]).to include(';"S";')
|
95
95
|
expect(booking_lines[0]).to include('2406;')
|
96
|
-
expect(booking_lines[0]).to include('BELEG-2;')
|
96
|
+
expect(booking_lines[0]).to include('"BELEG-2";')
|
97
97
|
expect(booking_lines[0]).to include(';0;')
|
98
98
|
|
99
|
-
expect(booking_lines[1]).to include('Telefonrechnung;')
|
99
|
+
expect(booking_lines[1]).to include('"Telefonrechnung";')
|
100
100
|
expect(booking_lines[1]).to include('1576;1600;')
|
101
101
|
expect(booking_lines[1]).to include('1,60;')
|
102
|
-
expect(booking_lines[1]).to include(';S;')
|
102
|
+
expect(booking_lines[1]).to include(';"S";')
|
103
103
|
expect(booking_lines[1]).to include('2406;')
|
104
|
-
expect(booking_lines[1]).to include('BELEG-2;')
|
104
|
+
expect(booking_lines[1]).to include('"BELEG-2";')
|
105
105
|
expect(booking_lines[1]).to include(';0;')
|
106
106
|
end
|
107
107
|
end
|
@@ -124,36 +124,36 @@ describe Keepr::JournalExport do
|
|
124
124
|
it "should include data" do
|
125
125
|
expect(booking_lines.count).to eq(4)
|
126
126
|
|
127
|
-
expect(booking_lines[0]).to include('Warenverkauf mit Anzahlung;')
|
127
|
+
expect(booking_lines[0]).to include('"Warenverkauf mit Anzahlung";')
|
128
128
|
expect(booking_lines[0]).to include('10000;8400;')
|
129
129
|
expect(booking_lines[0]).to include('5000,00;')
|
130
|
-
expect(booking_lines[0]).to include(';S;')
|
130
|
+
expect(booking_lines[0]).to include(';"S";')
|
131
131
|
expect(booking_lines[0]).to include('2506;')
|
132
|
-
expect(booking_lines[0]).to include('BELEG-3;')
|
132
|
+
expect(booking_lines[0]).to include('"BELEG-3";')
|
133
133
|
expect(booking_lines[0]).to include(';0;')
|
134
134
|
|
135
|
-
expect(booking_lines[1]).to include('Warenverkauf mit Anzahlung;')
|
135
|
+
expect(booking_lines[1]).to include('"Warenverkauf mit Anzahlung";')
|
136
136
|
expect(booking_lines[1]).to include('10000;1776;')
|
137
137
|
expect(booking_lines[1]).to include('950,00;')
|
138
|
-
expect(booking_lines[1]).to include(';S;')
|
138
|
+
expect(booking_lines[1]).to include(';"S";')
|
139
139
|
expect(booking_lines[1]).to include('2506;')
|
140
|
-
expect(booking_lines[1]).to include('BELEG-3;')
|
140
|
+
expect(booking_lines[1]).to include('"BELEG-3";')
|
141
141
|
expect(booking_lines[1]).to include(';0;')
|
142
142
|
|
143
|
-
expect(booking_lines[2]).to include('Warenverkauf mit Anzahlung;')
|
143
|
+
expect(booking_lines[2]).to include('"Warenverkauf mit Anzahlung";')
|
144
144
|
expect(booking_lines[2]).to include('1718;10000;')
|
145
145
|
expect(booking_lines[2]).to include('1000,00;')
|
146
|
-
expect(booking_lines[2]).to include(';S;')
|
146
|
+
expect(booking_lines[2]).to include(';"S";')
|
147
147
|
expect(booking_lines[2]).to include('2506;')
|
148
|
-
expect(booking_lines[2]).to include('BELEG-3;')
|
148
|
+
expect(booking_lines[2]).to include('"BELEG-3";')
|
149
149
|
expect(booking_lines[2]).to include(';0;')
|
150
150
|
|
151
|
-
expect(booking_lines[3]).to include('Warenverkauf mit Anzahlung;')
|
151
|
+
expect(booking_lines[3]).to include('"Warenverkauf mit Anzahlung";')
|
152
152
|
expect(booking_lines[3]).to include('1776;10000;')
|
153
153
|
expect(booking_lines[3]).to include('190,00;')
|
154
|
-
expect(booking_lines[3]).to include(';S;')
|
154
|
+
expect(booking_lines[3]).to include(';"S";')
|
155
155
|
expect(booking_lines[3]).to include('2506;')
|
156
|
-
expect(booking_lines[3]).to include('BELEG-3;')
|
156
|
+
expect(booking_lines[3]).to include('"BELEG-3";')
|
157
157
|
expect(booking_lines[3]).to include(';0;')
|
158
158
|
end
|
159
159
|
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: keepr
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.3.
|
4
|
+
version: 0.3.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Georg Ledermann
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2016-
|
11
|
+
date: 2016-09-05 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: activerecord
|
@@ -44,14 +44,14 @@ dependencies:
|
|
44
44
|
requirements:
|
45
45
|
- - ">="
|
46
46
|
- !ruby/object:Gem::Version
|
47
|
-
version: 0.
|
47
|
+
version: 0.5.0
|
48
48
|
type: :runtime
|
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.5.0
|
55
55
|
- !ruby/object:Gem::Dependency
|
56
56
|
name: bundler
|
57
57
|
requirement: !ruby/object:Gem::Requirement
|