keepr 0.3.2 → 0.4.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +5 -5
- data/.travis.yml +11 -15
- data/LICENSE.txt +1 -1
- data/README.md +3 -3
- data/Rakefile +1 -1
- data/ci/Gemfile-rails-4-1 +1 -1
- data/ci/Gemfile-rails-4-2 +1 -1
- data/ci/Gemfile-rails-5-0 +1 -1
- data/ci/Gemfile-rails-5-1 +1 -1
- data/ci/Gemfile-rails-5-2 +12 -0
- data/keepr.gemspec +2 -2
- data/lib/generators/keepr/migration/templates/migration.rb +24 -24
- data/lib/keepr/account.rb +42 -37
- data/lib/keepr/active_record_extension.rb +6 -6
- data/lib/keepr/cost_center.rb +1 -1
- data/lib/keepr/group.rb +13 -7
- data/lib/keepr/groups_creator.rb +4 -4
- data/lib/keepr/journal.rb +6 -6
- data/lib/keepr/journal_export.rb +1 -1
- data/lib/keepr/posting.rb +8 -8
- data/lib/keepr/tax.rb +2 -2
- data/lib/keepr/version.rb +1 -1
- data/spec/factories/account.rb +1 -1
- data/spec/factories/cost_center.rb +1 -1
- data/spec/factories/group.rb +1 -1
- data/spec/factories/tax.rb +2 -2
- data/spec/keepr/account_export_spec.rb +7 -7
- data/spec/keepr/account_spec.rb +55 -55
- data/spec/keepr/active_record_extension_spec.rb +30 -30
- data/spec/keepr/contact_export_spec.rb +3 -3
- data/spec/keepr/cost_center_spec.rb +7 -7
- data/spec/keepr/group_spec.rb +25 -25
- data/spec/keepr/journal_export_spec.rb +34 -34
- data/spec/keepr/journal_spec.rb +29 -29
- data/spec/keepr/posting_spec.rb +17 -17
- data/spec/keepr/tax_spec.rb +11 -11
- data/spec/spec_helper.rb +2 -2
- metadata +6 -5
data/spec/keepr/tax_spec.rb
CHANGED
@@ -2,19 +2,19 @@
|
|
2
2
|
require 'spec_helper'
|
3
3
|
|
4
4
|
describe Keepr::Tax do
|
5
|
-
let!(:tax_account) { Keepr::Account.create! :
|
6
|
-
:
|
7
|
-
:
|
5
|
+
let!(:tax_account) { Keepr::Account.create! number: 1776,
|
6
|
+
name: 'Umsatzsteuer 19%',
|
7
|
+
kind: :asset }
|
8
8
|
|
9
|
-
let!(:tax) { Keepr::Tax.create! :
|
10
|
-
:
|
11
|
-
:
|
12
|
-
:
|
9
|
+
let!(:tax) { Keepr::Tax.create! name: 'USt19',
|
10
|
+
description: 'Umsatzsteuer 19%',
|
11
|
+
value: 19.0,
|
12
|
+
keepr_account: tax_account }
|
13
13
|
|
14
|
-
let!(:account) { Keepr::Account.create! :
|
15
|
-
:
|
16
|
-
:
|
17
|
-
:
|
14
|
+
let!(:account) { Keepr::Account.create! number: 8400,
|
15
|
+
name: 'Erlöse 19% USt',
|
16
|
+
kind: :revenue,
|
17
|
+
keepr_tax: tax }
|
18
18
|
|
19
19
|
it 'should be direct linked from account' do
|
20
20
|
expect(tax.keepr_accounts).to eq([account])
|
data/spec/spec_helper.rb
CHANGED
@@ -19,8 +19,8 @@ require 'database_cleaner'
|
|
19
19
|
require 'keepr'
|
20
20
|
require 'generators/keepr/migration/templates/migration.rb'
|
21
21
|
|
22
|
-
require '
|
23
|
-
|
22
|
+
require 'factory_bot'
|
23
|
+
FactoryBot.find_definitions
|
24
24
|
|
25
25
|
# Avoid warning message
|
26
26
|
I18n.enforce_available_locales = false
|
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.
|
4
|
+
version: 0.4.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Georg Ledermann
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2018-04-24 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: activerecord
|
@@ -123,7 +123,7 @@ dependencies:
|
|
123
123
|
- !ruby/object:Gem::Version
|
124
124
|
version: '0'
|
125
125
|
- !ruby/object:Gem::Dependency
|
126
|
-
name:
|
126
|
+
name: factory_bot
|
127
127
|
requirement: !ruby/object:Gem::Requirement
|
128
128
|
requirements:
|
129
129
|
- - ">="
|
@@ -180,6 +180,7 @@ files:
|
|
180
180
|
- ci/Gemfile-rails-4-2
|
181
181
|
- ci/Gemfile-rails-5-0
|
182
182
|
- ci/Gemfile-rails-5-1
|
183
|
+
- ci/Gemfile-rails-5-2
|
183
184
|
- keepr.gemspec
|
184
185
|
- lib/generators/keepr/migration/migration_generator.rb
|
185
186
|
- lib/generators/keepr/migration/templates/migration.rb
|
@@ -232,7 +233,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
232
233
|
requirements:
|
233
234
|
- - ">="
|
234
235
|
- !ruby/object:Gem::Version
|
235
|
-
version: 2.
|
236
|
+
version: 2.2.2
|
236
237
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
237
238
|
requirements:
|
238
239
|
- - ">="
|
@@ -240,7 +241,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
240
241
|
version: '0'
|
241
242
|
requirements: []
|
242
243
|
rubyforge_project:
|
243
|
-
rubygems_version: 2.6
|
244
|
+
rubygems_version: 2.7.6
|
244
245
|
signing_key:
|
245
246
|
specification_version: 4
|
246
247
|
summary: Some basic ActiveRecord models to build a double entry bookkeeping application
|