keepr 0.3.1 → 0.7.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (58) hide show
  1. checksums.yaml +5 -5
  2. data/.travis.yml +14 -10
  3. data/Gemfile +2 -0
  4. data/LICENSE.txt +1 -1
  5. data/README.md +4 -4
  6. data/Rakefile +3 -1
  7. data/ci/Gemfile-rails-4-2 +5 -5
  8. data/ci/Gemfile-rails-5-0 +5 -5
  9. data/ci/Gemfile-rails-5-1 +12 -0
  10. data/ci/Gemfile-rails-5-2 +12 -0
  11. data/ci/Gemfile-rails-6-0 +12 -0
  12. data/keepr.gemspec +15 -14
  13. data/lib/generators/keepr/migration/migration_generator.rb +5 -3
  14. data/lib/generators/keepr/migration/templates/migration.rb +27 -25
  15. data/lib/keepr.rb +8 -0
  16. data/lib/keepr/account.rb +66 -61
  17. data/lib/keepr/account_export.rb +10 -14
  18. data/lib/keepr/active_record_extension.rb +10 -8
  19. data/lib/keepr/contact_export.rb +6 -7
  20. data/lib/keepr/cost_center.rb +3 -1
  21. data/lib/keepr/group.rb +25 -16
  22. data/lib/keepr/groups_creator.rb +27 -14
  23. data/lib/keepr/groups_creator/{asset.txt → de/asset.txt} +0 -0
  24. data/lib/keepr/groups_creator/{liability.txt → de/liability.txt} +0 -0
  25. data/lib/keepr/groups_creator/{profit_and_loss.txt → de/profit_and_loss.txt} +0 -0
  26. data/lib/keepr/groups_creator/en/asset.txt +36 -0
  27. data/lib/keepr/groups_creator/en/liability.txt +28 -0
  28. data/lib/keepr/groups_creator/en/profit_and_loss.txt +31 -0
  29. data/lib/keepr/groups_creator/es/asset.txt +36 -0
  30. data/lib/keepr/groups_creator/es/liability.txt +28 -0
  31. data/lib/keepr/groups_creator/es/profit_and_loss.txt +31 -0
  32. data/lib/keepr/journal.rb +19 -16
  33. data/lib/keepr/journal_export.rb +10 -7
  34. data/lib/keepr/posting.rb +26 -21
  35. data/lib/keepr/tax.rb +4 -2
  36. data/lib/keepr/version.rb +3 -1
  37. data/spec/factories/account.rb +6 -4
  38. data/spec/factories/cost_center.rb +5 -3
  39. data/spec/factories/group.rb +5 -3
  40. data/spec/factories/tax.rb +7 -5
  41. data/spec/keepr/account_export_spec.rb +22 -19
  42. data/spec/keepr/account_spec.rb +92 -87
  43. data/spec/keepr/active_record_extension_spec.rb +38 -36
  44. data/spec/keepr/contact_export_spec.rb +17 -14
  45. data/spec/keepr/cost_center_spec.rb +9 -7
  46. data/spec/keepr/group_spec.rb +53 -49
  47. data/spec/keepr/groups_creator_spec.rb +13 -10
  48. data/spec/keepr/journal_export_spec.rb +54 -53
  49. data/spec/keepr/journal_spec.rb +48 -46
  50. data/spec/keepr/posting_spec.rb +25 -23
  51. data/spec/keepr/tax_spec.rb +21 -14
  52. data/spec/spec_helper.rb +13 -11
  53. data/spec/support/contact.rb +2 -0
  54. data/spec/support/document.rb +2 -0
  55. data/spec/support/ledger.rb +2 -0
  56. data/spec/support/spec_migration.rb +3 -1
  57. metadata +35 -28
  58. data/ci/Gemfile-rails-4-1 +0 -12
@@ -1,27 +1,29 @@
1
+ # frozen_string_literal: true
2
+
1
3
  require 'spec_helper'
2
4
 
3
5
  describe Keepr::Journal do
4
- let!(:account_1000) { FactoryGirl.create(:account, :number => 1000, :kind => :asset) }
5
- let!(:account_1200) { FactoryGirl.create(:account, :number => 1200, :kind => :asset) }
6
- let!(:account_1210) { FactoryGirl.create(:account, :number => 1210, :kind => :asset) }
7
- let!(:account_4910) { FactoryGirl.create(:account, :number => 4910, :kind => :expense) }
8
- let!(:account_4920) { FactoryGirl.create(:account, :number => 4920, :kind => :expense) }
9
- let!(:account_1576) { FactoryGirl.create(:account, :number => 1576, :kind => :asset) }
10
- let!(:account_1600) { FactoryGirl.create(:account, :number => 1600, :kind => :liability) }
6
+ let!(:account_1000) { FactoryBot.create(:account, number: 1000, kind: :asset) }
7
+ let!(:account_1200) { FactoryBot.create(:account, number: 1200, kind: :asset) }
8
+ let!(:account_1210) { FactoryBot.create(:account, number: 1210, kind: :asset) }
9
+ let!(:account_4910) { FactoryBot.create(:account, number: 4910, kind: :expense) }
10
+ let!(:account_4920) { FactoryBot.create(:account, number: 4920, kind: :expense) }
11
+ let!(:account_1576) { FactoryBot.create(:account, number: 1576, kind: :asset) }
12
+ let!(:account_1600) { FactoryBot.create(:account, number: 1600, kind: :liability) }
11
13
 
12
14
  let :simple_journal do
13
- Keepr::Journal.create :keepr_postings_attributes => [
14
- { :keepr_account => account_1000, :amount => 100.99, :side => 'debit' },
15
- { :keepr_account => account_1200, :amount => 100.99, :side => 'credit' }
16
- ]
15
+ Keepr::Journal.create keepr_postings_attributes: [
16
+ { keepr_account: account_1000, amount: 100.99, side: 'debit' },
17
+ { keepr_account: account_1200, amount: 100.99, side: 'credit' }
18
+ ]
17
19
  end
18
20
 
19
21
  let :complex_journal do
20
- Keepr::Journal.create :keepr_postings_attributes => [
21
- { :keepr_account => account_4920, :amount => 8.40, :side => 'debit' },
22
- { :keepr_account => account_1576, :amount => 1.60, :side => 'debit' },
23
- { :keepr_account => account_1600, :amount => 10.00, :side => 'credit' }
24
- ]
22
+ Keepr::Journal.create keepr_postings_attributes: [
23
+ { keepr_account: account_4920, amount: 8.40, side: 'debit' },
24
+ { keepr_account: account_1576, amount: 1.60, side: 'debit' },
25
+ { keepr_account: account_1600, amount: 10.00, side: 'credit' }
26
+ ]
25
27
  end
26
28
 
27
29
  describe :initialization do
@@ -33,8 +35,8 @@ describe Keepr::Journal do
33
35
 
34
36
  context 'with date given' do
35
37
  it 'should not modify the date' do
36
- old_date = Date.new(2013,10,1)
37
- expect(Keepr::Journal.new(:date => old_date).date).to eq(old_date)
38
+ old_date = Date.new(2013, 10, 1)
39
+ expect(Keepr::Journal.new(date: old_date).date).to eq(old_date)
38
40
  end
39
41
  end
40
42
  end
@@ -47,60 +49,60 @@ describe Keepr::Journal do
47
49
 
48
50
  it 'should accept journal with postings marked for destruction' do
49
51
  complex_journal.keepr_postings.first.mark_for_destruction
50
- complex_journal.keepr_postings.build :keepr_account => account_4910, :amount => 8.4, :side => 'debit'
52
+ complex_journal.keepr_postings.build keepr_account: account_4910, amount: 8.4, side: 'debit'
51
53
 
52
54
  expect(complex_journal).to be_valid
53
55
  end
54
56
 
55
57
  it 'should fail for journal with only one posting' do
56
- journal = Keepr::Journal.create :keepr_postings_attributes => [
57
- { :keepr_account => account_4920, :amount => 8.40, :side => 'debit' }
58
- ]
58
+ journal = Keepr::Journal.create keepr_postings_attributes: [
59
+ { keepr_account: account_4920, amount: 8.40, side: 'debit' }
60
+ ]
59
61
  expect(journal).not_to be_valid
60
- expect(journal.errors.added? :base, :account_missing).to eq(true)
62
+ expect(journal.errors.added?(:base, :account_missing)).to eq(true)
61
63
  end
62
64
 
63
65
  it 'should fail for booking the same account twice' do
64
- journal = Keepr::Journal.create :keepr_postings_attributes => [
65
- { :keepr_account => account_1000, :amount => 10, :side => 'debit' },
66
- { :keepr_account => account_1000, :amount => 10, :side => 'credit' }
67
- ]
66
+ journal = Keepr::Journal.create keepr_postings_attributes: [
67
+ { keepr_account: account_1000, amount: 10, side: 'debit' },
68
+ { keepr_account: account_1000, amount: 10, side: 'credit' }
69
+ ]
68
70
  expect(journal).not_to be_valid
69
- expect(journal.errors.added? :base, :account_missing).to eq(true)
71
+ expect(journal.errors.added?(:base, :account_missing)).to eq(true)
70
72
  end
71
73
 
72
74
  it 'should fail for unbalanced journal' do
73
- journal = Keepr::Journal.create :keepr_postings_attributes => [
74
- { :keepr_account => account_1000, :amount => 10, :side => 'debit' },
75
- { :keepr_account => account_1200, :amount => 10, :side => 'debit' }
76
- ]
75
+ journal = Keepr::Journal.create keepr_postings_attributes: [
76
+ { keepr_account: account_1000, amount: 10, side: 'debit' },
77
+ { keepr_account: account_1200, amount: 10, side: 'debit' }
78
+ ]
77
79
  expect(journal).not_to be_valid
78
- expect(journal.errors.added? :base, :amount_mismatch).to eq(true)
80
+ expect(journal.errors.added?(:base, :amount_mismatch)).to eq(true)
79
81
  end
80
82
 
81
83
  it 'should fail for nil amount' do
82
- journal = Keepr::Journal.create :keepr_postings_attributes => [
83
- { :keepr_account => account_1000, :amount => 10, :side => 'debit' },
84
- { :keepr_account => account_1200, :amount => nil, :side => 'credit' }
85
- ]
84
+ journal = Keepr::Journal.create keepr_postings_attributes: [
85
+ { keepr_account: account_1000, amount: 10, side: 'debit' },
86
+ { keepr_account: account_1200, amount: nil, side: 'credit' }
87
+ ]
86
88
  expect(journal).not_to be_valid
87
- expect(journal.errors.added? :base, :amount_mismatch).to eq(true)
89
+ expect(journal.errors.added?(:base, :amount_mismatch)).to eq(true)
88
90
  end
89
91
  end
90
92
 
91
93
  describe :permanent do
92
94
  before :each do
93
- simple_journal.update_attributes! :permanent => true
95
+ simple_journal.update! permanent: true
94
96
  end
95
97
 
96
- it "should not allow update" do
97
- expect(simple_journal.update_attributes :subject => 'foo').to eq(false)
98
- expect(simple_journal.errors.added? :base, :changes_not_allowed).to eq(true)
98
+ it 'should not allow update' do
99
+ expect(simple_journal.update(subject: 'foo')).to eq(false)
100
+ expect(simple_journal.errors.added?(:base, :changes_not_allowed)).to eq(true)
99
101
  end
100
102
 
101
- it "should not allow destroy" do
103
+ it 'should not allow destroy' do
102
104
  expect(simple_journal.destroy).to eq(false)
103
- expect(simple_journal.errors.added? :base, :changes_not_allowed).to eq(true)
105
+ expect(simple_journal.errors.added?(:base, :changes_not_allowed)).to eq(true)
104
106
  end
105
107
  end
106
108
 
@@ -111,8 +113,8 @@ describe Keepr::Journal do
111
113
  end
112
114
 
113
115
  it 'should order postings' do
114
- expect(simple_journal.keepr_postings.map(&:side)).to eq(['debit','credit'])
115
- expect(complex_journal.keepr_postings.map(&:side)).to eq(['debit','debit','credit'])
116
+ expect(simple_journal.keepr_postings.map(&:side)).to eq(%w[debit credit])
117
+ expect(complex_journal.keepr_postings.map(&:side)).to eq(%w[debit debit credit])
116
118
  end
117
119
  end
118
120
 
@@ -1,7 +1,9 @@
1
+ # frozen_string_literal: true
2
+
1
3
  require 'spec_helper'
2
4
 
3
5
  describe Keepr::Posting do
4
- let!(:account_1000) { FactoryGirl.create(:account, :number => 1000, :kind => :asset) }
6
+ let!(:account_1000) { FactoryBot.create(:account, number: 1000, kind: :asset) }
5
7
 
6
8
  describe 'side/amount' do
7
9
  it 'should handle empty object' do
@@ -11,7 +13,7 @@ describe Keepr::Posting do
11
13
  end
12
14
 
13
15
  it 'should set credit amount' do
14
- posting = Keepr::Posting.new :amount => 10, :side => 'credit'
16
+ posting = Keepr::Posting.new amount: 10, side: 'credit'
15
17
 
16
18
  expect(posting).to be_credit
17
19
  expect(posting.amount).to eq(10)
@@ -19,7 +21,7 @@ describe Keepr::Posting do
19
21
  end
20
22
 
21
23
  it 'should set debit amount' do
22
- posting = Keepr::Posting.new :amount => 10, :side => 'debit'
24
+ posting = Keepr::Posting.new amount: 10, side: 'debit'
23
25
 
24
26
  expect(posting).to be_debit
25
27
  expect(posting.amount).to eq(10)
@@ -39,7 +41,7 @@ describe Keepr::Posting do
39
41
  end
40
42
 
41
43
  it 'should change to credit' do
42
- posting = Keepr::Posting.new :amount => 10, :side => 'debit'
44
+ posting = Keepr::Posting.new amount: 10, side: 'debit'
43
45
  posting.side = 'credit'
44
46
 
45
47
  expect(posting).to be_credit
@@ -47,7 +49,7 @@ describe Keepr::Posting do
47
49
  end
48
50
 
49
51
  it 'should change to debit' do
50
- posting = Keepr::Posting.new :amount => 10, :side => 'credit'
52
+ posting = Keepr::Posting.new amount: 10, side: 'credit'
51
53
  posting.side = 'debit'
52
54
 
53
55
  expect(posting).to be_debit
@@ -55,21 +57,21 @@ describe Keepr::Posting do
55
57
  end
56
58
 
57
59
  it 'should default to debit' do
58
- posting = Keepr::Posting.new :amount => 10
60
+ posting = Keepr::Posting.new amount: 10
59
61
 
60
62
  expect(posting).to be_debit
61
63
  expect(posting.amount).to eq(10)
62
64
  end
63
65
 
64
66
  it 'should handle string amount' do
65
- posting = Keepr::Posting.new :amount => '0.5'
67
+ posting = Keepr::Posting.new amount: '0.5'
66
68
 
67
69
  expect(posting).to be_debit
68
70
  expect(posting.amount).to eq(0.5)
69
71
  end
70
72
 
71
73
  it 'should recognized saved debit posting' do
72
- posting = Keepr::Posting.create!(:amount => 10, :side => 'debit', :keepr_account => account_1000, :keepr_journal_id => 42)
74
+ posting = Keepr::Posting.create!(amount: 10, side: 'debit', keepr_account: account_1000, keepr_journal_id: 42)
73
75
  posting.reload
74
76
 
75
77
  expect(posting).to be_debit
@@ -77,7 +79,7 @@ describe Keepr::Posting do
77
79
  end
78
80
 
79
81
  it 'should recognized saved credit posting' do
80
- posting = Keepr::Posting.create!(:amount => 10, :side => 'credit', :keepr_account => account_1000, :keepr_journal_id => 42)
82
+ posting = Keepr::Posting.create!(amount: 10, side: 'credit', keepr_account: account_1000, keepr_journal_id: 42)
81
83
  posting.reload
82
84
 
83
85
  expect(posting).to be_credit
@@ -85,21 +87,21 @@ describe Keepr::Posting do
85
87
  end
86
88
 
87
89
  it 'should fail for negative amount' do
88
- expect {
89
- Keepr::Posting.new(:amount => -10)
90
- }.to raise_error(ArgumentError)
90
+ expect do
91
+ Keepr::Posting.new(amount: -10)
92
+ end.to raise_error(ArgumentError)
91
93
  end
92
94
 
93
95
  it 'should fail for unknown side' do
94
- expect {
95
- Keepr::Posting.new(:side => 'foo')
96
- }.to raise_error(ArgumentError)
96
+ expect do
97
+ Keepr::Posting.new(side: 'foo')
98
+ end.to raise_error(ArgumentError)
97
99
  end
98
100
  end
99
101
 
100
102
  describe 'scopes' do
101
- let!(:debit_posting) { Keepr::Posting.create!(:amount => 10, :side => 'debit', :keepr_account => account_1000, :keepr_journal_id => 42) }
102
- let!(:credit_posting) { Keepr::Posting.create!(:amount => 10, :side => 'credit', :keepr_account => account_1000, :keepr_journal_id => 42) }
103
+ let!(:debit_posting) { Keepr::Posting.create!(amount: 10, side: 'debit', keepr_account: account_1000, keepr_journal_id: 42) }
104
+ let!(:credit_posting) { Keepr::Posting.create!(amount: 10, side: 'credit', keepr_account: account_1000, keepr_journal_id: 42) }
103
105
 
104
106
  it 'should filter' do
105
107
  expect(account_1000.keepr_postings.debits).to eq([debit_posting])
@@ -108,16 +110,16 @@ describe Keepr::Posting do
108
110
  end
109
111
 
110
112
  describe 'cost_center handling' do
111
- let!(:cost_center) { FactoryGirl.create(:cost_center) }
112
- let!(:account_8400) { FactoryGirl.create(:account, :number => 8400, :kind => :revenue) }
113
+ let!(:cost_center) { FactoryBot.create(:cost_center) }
114
+ let!(:account_8400) { FactoryBot.create(:account, number: 8400, kind: :revenue) }
113
115
 
114
- it "should allow cost_center" do
115
- posting = Keepr::Posting.new :keepr_account => account_8400, :amount => 100, :keepr_cost_center => cost_center
116
+ it 'should allow cost_center' do
117
+ posting = Keepr::Posting.new keepr_account: account_8400, amount: 100, keepr_cost_center: cost_center
116
118
  expect(posting).to be_valid
117
119
  end
118
120
 
119
- it "should not allow cost_center" do
120
- posting = Keepr::Posting.new :keepr_account => account_1000, :amount => 100, :keepr_cost_center => cost_center
121
+ it 'should not allow cost_center' do
122
+ posting = Keepr::Posting.new keepr_account: account_1000, amount: 100, keepr_cost_center: cost_center
121
123
  expect(posting).to_not be_valid
122
124
  end
123
125
  end
@@ -1,20 +1,27 @@
1
- # encoding: utf-8
1
+ # frozen_string_literal: true
2
+
2
3
  require 'spec_helper'
3
4
 
4
5
  describe Keepr::Tax do
5
- let!(:tax_account) { Keepr::Account.create! :number => 1776,
6
- :name => 'Umsatzsteuer 19%',
7
- :kind => :asset }
6
+ let!(:tax_account) do
7
+ Keepr::Account.create! number: 1776,
8
+ name: 'Umsatzsteuer 19%',
9
+ kind: :asset
10
+ end
8
11
 
9
- let!(:tax) { Keepr::Tax.create! :name => 'USt19',
10
- :description => 'Umsatzsteuer 19%',
11
- :value => 19.0,
12
- :keepr_account => tax_account }
12
+ let!(:tax) do
13
+ Keepr::Tax.create! name: 'USt19',
14
+ description: 'Umsatzsteuer 19%',
15
+ value: 19.0,
16
+ keepr_account: tax_account
17
+ end
13
18
 
14
- let!(:account) { Keepr::Account.create! :number => 8400,
15
- :name => 'Erlöse 19% USt',
16
- :kind => :revenue,
17
- :keepr_tax => tax }
19
+ let!(:account) do
20
+ Keepr::Account.create! number: 8400,
21
+ name: 'Erlöse 19% USt',
22
+ kind: :revenue,
23
+ keepr_tax: tax
24
+ end
18
25
 
19
26
  it 'should be direct linked from account' do
20
27
  expect(tax.keepr_accounts).to eq([account])
@@ -22,12 +29,12 @@ describe Keepr::Tax do
22
29
  expect(tax_account.keepr_tax).to eq(nil)
23
30
  end
24
31
 
25
- it "should be reverse found from account" do
32
+ it 'should be reverse found from account' do
26
33
  expect(tax_account.keepr_taxes).to eq([tax])
27
34
  expect(account.keepr_taxes).to eq([])
28
35
  end
29
36
 
30
- it "should avoid circular reference" do
37
+ it 'should avoid circular reference' do
31
38
  tax.keepr_account = account
32
39
  expect(tax).to be_invalid
33
40
  expect(tax.errors[:keepr_account_id]).to be_present
@@ -1,28 +1,35 @@
1
+ # frozen_string_literal: true
2
+
1
3
  require 'simplecov'
2
4
  require 'coveralls'
3
5
 
4
6
  SimpleCov.formatter = SimpleCov::Formatter::MultiFormatter.new([
5
- SimpleCov::Formatter::HTMLFormatter,
6
- Coveralls::SimpleCov::Formatter
7
- ])
7
+ SimpleCov::Formatter::HTMLFormatter,
8
+ Coveralls::SimpleCov::Formatter
9
+ ])
8
10
  SimpleCov.start do
9
11
  add_filter '/spec/'
10
12
  end
11
13
 
12
14
  require 'active_record'
15
+ puts "Testing with ActiveRecord #{ActiveRecord::VERSION::STRING}"
16
+ ActiveRecord::Base.configurations = YAML.load_file(File.expand_path('database.yml', File.dirname(__FILE__)))
17
+ ActiveRecord::Base.establish_connection(:sqlite)
18
+ ActiveRecord::Migration.verbose = false
19
+
13
20
  require 'database_cleaner'
14
21
  require 'keepr'
15
22
  require 'generators/keepr/migration/templates/migration.rb'
16
23
 
17
- require 'factory_girl'
18
- FactoryGirl.find_definitions
24
+ require 'factory_bot'
25
+ FactoryBot.find_definitions
19
26
 
20
27
  # Avoid warning message
21
28
  I18n.enforce_available_locales = false
22
29
 
23
30
  # Requires supporting ruby files with custom matchers and macros, etc,
24
31
  # in spec/support/ and its subdirectories.
25
- Dir[File.expand_path(File.join(File.dirname(__FILE__),'support','**','*.rb'))].each {|f| require f}
32
+ Dir[File.expand_path(File.join(File.dirname(__FILE__), 'support', '**', '*.rb'))].each { |f| require f }
26
33
 
27
34
  # This file was generated by the `rspec --init` command. Conventionally, all
28
35
  # specs live under a `spec` directory, which RSpec adds to the `$LOAD_PATH`.
@@ -58,8 +65,3 @@ RSpec.configure do |config|
58
65
  DatabaseCleaner.clean
59
66
  end
60
67
  end
61
-
62
- puts "Testing with ActiveRecord #{ActiveRecord::VERSION::STRING}"
63
- ActiveRecord::Base.configurations = YAML.load_file(File.expand_path('database.yml', File.dirname(__FILE__)))
64
- ActiveRecord::Base.establish_connection(:sqlite)
65
- ActiveRecord::Migration.verbose = false
@@ -1,3 +1,5 @@
1
+ # frozen_string_literal: true
2
+
1
3
  class Contact < ActiveRecord::Base
2
4
  has_many_keepr_accounts
3
5
  end
@@ -1,3 +1,5 @@
1
+ # frozen_string_literal: true
2
+
1
3
  class Document < ActiveRecord::Base
2
4
  has_keepr_journals
3
5
  has_keepr_postings
@@ -1,3 +1,5 @@
1
+ # frozen_string_literal: true
2
+
1
3
  class Ledger < ActiveRecord::Base
2
4
  has_one_keepr_account
3
5
  end
@@ -1,4 +1,6 @@
1
- class SpecMigration < ActiveRecord::Migration
1
+ # frozen_string_literal: true
2
+
3
+ class SpecMigration < Keepr::MIGRATION_BASE_CLASS
2
4
  def self.up
3
5
  create_table Contact, force: true do |t|
4
6
  t.string :name
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.1
4
+ version: 0.7.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Georg Ledermann
8
- autorequire:
8
+ autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2016-09-05 00:00:00.000000000 Z
11
+ date: 2020-10-09 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: activerecord
@@ -16,28 +16,28 @@ dependencies:
16
16
  requirements:
17
17
  - - ">="
18
18
  - !ruby/object:Gem::Version
19
- version: '4.1'
19
+ version: '4.2'
20
20
  type: :runtime
21
21
  prerelease: false
22
22
  version_requirements: !ruby/object:Gem::Requirement
23
23
  requirements:
24
24
  - - ">="
25
25
  - !ruby/object:Gem::Version
26
- version: '4.1'
26
+ version: '4.2'
27
27
  - !ruby/object:Gem::Dependency
28
28
  name: ancestry
29
29
  requirement: !ruby/object:Gem::Requirement
30
30
  requirements:
31
31
  - - ">="
32
32
  - !ruby/object:Gem::Version
33
- version: '0'
33
+ version: 3.1.0
34
34
  type: :runtime
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: '0'
40
+ version: 3.1.0
41
41
  - !ruby/object:Gem::Dependency
42
42
  name: datev
43
43
  requirement: !ruby/object:Gem::Requirement
@@ -67,21 +67,21 @@ dependencies:
67
67
  - !ruby/object:Gem::Version
68
68
  version: '0'
69
69
  - !ruby/object:Gem::Dependency
70
- name: rake
70
+ name: coveralls
71
71
  requirement: !ruby/object:Gem::Requirement
72
72
  requirements:
73
- - - ">="
73
+ - - "~>"
74
74
  - !ruby/object:Gem::Version
75
- version: '0'
75
+ version: '0.8'
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: '0'
82
+ version: '0.8'
83
83
  - !ruby/object:Gem::Dependency
84
- name: sqlite3
84
+ name: database_cleaner
85
85
  requirement: !ruby/object:Gem::Requirement
86
86
  requirements:
87
87
  - - ">="
@@ -95,7 +95,7 @@ dependencies:
95
95
  - !ruby/object:Gem::Version
96
96
  version: '0'
97
97
  - !ruby/object:Gem::Dependency
98
- name: rspec
98
+ name: factory_bot
99
99
  requirement: !ruby/object:Gem::Requirement
100
100
  requirements:
101
101
  - - ">="
@@ -109,7 +109,7 @@ dependencies:
109
109
  - !ruby/object:Gem::Version
110
110
  version: '0'
111
111
  - !ruby/object:Gem::Dependency
112
- name: database_cleaner
112
+ name: rake
113
113
  requirement: !ruby/object:Gem::Requirement
114
114
  requirements:
115
115
  - - ">="
@@ -123,7 +123,7 @@ dependencies:
123
123
  - !ruby/object:Gem::Version
124
124
  version: '0'
125
125
  - !ruby/object:Gem::Dependency
126
- name: factory_girl
126
+ name: rspec
127
127
  requirement: !ruby/object:Gem::Requirement
128
128
  requirements:
129
129
  - - ">="
@@ -137,7 +137,7 @@ dependencies:
137
137
  - !ruby/object:Gem::Version
138
138
  version: '0'
139
139
  - !ruby/object:Gem::Dependency
140
- name: coveralls
140
+ name: simplecov
141
141
  requirement: !ruby/object:Gem::Requirement
142
142
  requirements:
143
143
  - - ">="
@@ -151,7 +151,7 @@ dependencies:
151
151
  - !ruby/object:Gem::Version
152
152
  version: '0'
153
153
  - !ruby/object:Gem::Dependency
154
- name: simplecov
154
+ name: sqlite3
155
155
  requirement: !ruby/object:Gem::Requirement
156
156
  requirements:
157
157
  - - ">="
@@ -165,7 +165,7 @@ dependencies:
165
165
  - !ruby/object:Gem::Version
166
166
  version: '0'
167
167
  description: Double entry bookkeeping with Rails
168
- email: mail@georg-ledermann.de
168
+ email: georg@ledermann.dev
169
169
  executables: []
170
170
  extensions: []
171
171
  extra_rdoc_files: []
@@ -176,9 +176,11 @@ files:
176
176
  - LICENSE.txt
177
177
  - README.md
178
178
  - Rakefile
179
- - ci/Gemfile-rails-4-1
180
179
  - ci/Gemfile-rails-4-2
181
180
  - ci/Gemfile-rails-5-0
181
+ - ci/Gemfile-rails-5-1
182
+ - ci/Gemfile-rails-5-2
183
+ - ci/Gemfile-rails-6-0
182
184
  - keepr.gemspec
183
185
  - lib/generators/keepr/migration/migration_generator.rb
184
186
  - lib/generators/keepr/migration/templates/migration.rb
@@ -190,9 +192,15 @@ files:
190
192
  - lib/keepr/cost_center.rb
191
193
  - lib/keepr/group.rb
192
194
  - lib/keepr/groups_creator.rb
193
- - lib/keepr/groups_creator/asset.txt
194
- - lib/keepr/groups_creator/liability.txt
195
- - lib/keepr/groups_creator/profit_and_loss.txt
195
+ - lib/keepr/groups_creator/de/asset.txt
196
+ - lib/keepr/groups_creator/de/liability.txt
197
+ - lib/keepr/groups_creator/de/profit_and_loss.txt
198
+ - lib/keepr/groups_creator/en/asset.txt
199
+ - lib/keepr/groups_creator/en/liability.txt
200
+ - lib/keepr/groups_creator/en/profit_and_loss.txt
201
+ - lib/keepr/groups_creator/es/asset.txt
202
+ - lib/keepr/groups_creator/es/liability.txt
203
+ - lib/keepr/groups_creator/es/profit_and_loss.txt
196
204
  - lib/keepr/journal.rb
197
205
  - lib/keepr/journal_export.rb
198
206
  - lib/keepr/posting.rb
@@ -223,7 +231,7 @@ homepage: https://github.com/ledermann/keepr
223
231
  licenses:
224
232
  - MIT
225
233
  metadata: {}
226
- post_install_message:
234
+ post_install_message:
227
235
  rdoc_options: []
228
236
  require_paths:
229
237
  - lib
@@ -231,16 +239,15 @@ required_ruby_version: !ruby/object:Gem::Requirement
231
239
  requirements:
232
240
  - - ">="
233
241
  - !ruby/object:Gem::Version
234
- version: 2.0.0
242
+ version: '2.5'
235
243
  required_rubygems_version: !ruby/object:Gem::Requirement
236
244
  requirements:
237
245
  - - ">="
238
246
  - !ruby/object:Gem::Version
239
247
  version: '0'
240
248
  requirements: []
241
- rubyforge_project:
242
- rubygems_version: 2.6.6
243
- signing_key:
249
+ rubygems_version: 3.1.4
250
+ signing_key:
244
251
  specification_version: 4
245
252
  summary: Some basic ActiveRecord models to build a double entry bookkeeping application
246
253
  test_files: