acts_as_account 3.1.2 → 3.2.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.gitignore +9 -0
- data/.travis.yml +3 -12
- data/Gemfile +3 -12
- data/LICENSE +0 -0
- data/README.rdoc +2 -0
- data/Rakefile +32 -30
- data/VERSION +1 -1
- data/acts_as_account.gemspec +43 -77
- data/cucumber.yml +0 -0
- data/features/account/account_creation.feature +0 -0
- data/{db → features/db}/database.yml +1 -2
- data/{db → features/db}/schema.rb +0 -0
- data/features/step_definitions/account_steps.rb +0 -0
- data/features/support/cheque.rb +0 -0
- data/features/support/env.rb +11 -2
- data/features/support/user.rb +0 -0
- data/features/transfer/journal_creation.feature +0 -0
- data/features/transfer/transfer.feature +0 -0
- data/lib/acts_as_account.rb +5 -7
- data/lib/acts_as_account/account.rb +6 -24
- data/lib/acts_as_account/active_record_extensions.rb +0 -0
- data/lib/acts_as_account/global_account.rb +0 -0
- data/lib/acts_as_account/journal.rb +0 -0
- data/lib/acts_as_account/manually_created_account.rb +0 -0
- data/lib/acts_as_account/posting.rb +0 -0
- data/lib/acts_as_account/rails.rb +3 -0
- data/lib/acts_as_account/transfer.rb +0 -0
- data/lib/acts_as_account/version.rb +8 -0
- metadata +94 -40
- data/.specification +0 -57
- data/Gemfile.lock +0 -114
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: b705a667091596f33080e44a576596290391e8c6
|
4
|
+
data.tar.gz: b6d4dc031e53a8bc5b75051906aff81fb68081b6
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 9c1eeb4b0f460d5f53293e5a90bd0d06c088a8cddb9dbc2a077a470b70748bf9269ff7a76700e0b9ffa999c19ab119e823ec669f09046eb83226e6c36c058820
|
7
|
+
data.tar.gz: 2a029a58a6e83a79a2101eb17c845b7d1fd59b68cb7b1cdcacff279b3ebbfd97c2de75a5b864572cbf696fb87a6df6d6eb39d3840eca69907590c608f5486640
|
data/.gitignore
ADDED
data/.travis.yml
CHANGED
data/Gemfile
CHANGED
@@ -1,14 +1,5 @@
|
|
1
|
-
|
1
|
+
# vim: set filetype=ruby et sw=2 ts=2:
|
2
2
|
|
3
|
-
|
4
|
-
gem 'jeweler', '~> 2.0'
|
5
|
-
gem 'cucumber', '~> 1.3'
|
6
|
-
gem 'mysql', '~> 2.9'
|
7
|
-
gem 'rspec', '~> 3.1'
|
8
|
-
end
|
3
|
+
source 'https://rubygems.org'
|
9
4
|
|
10
|
-
|
11
|
-
gem 'activerecord', '~> 4.1'
|
12
|
-
gem 'actionpack' , '~> 4.1'
|
13
|
-
gem 'database_cleaner', '~> 1.3'
|
14
|
-
end
|
5
|
+
gemspec
|
data/LICENSE
CHANGED
File without changes
|
data/README.rdoc
CHANGED
data/Rakefile
CHANGED
@@ -1,36 +1,38 @@
|
|
1
|
-
|
2
|
-
require 'bundler'
|
3
|
-
begin
|
4
|
-
Bundler.setup(:default, :development)
|
5
|
-
Bundler.require(:default, :development)
|
6
|
-
rescue Bundler::BundlerError => e
|
7
|
-
$stderr.puts e.message
|
8
|
-
$stderr.puts "Run `bundle install` to install missing gems"
|
9
|
-
exit e.status_code
|
10
|
-
end
|
11
|
-
require 'rake'
|
1
|
+
# vim: set filetype=ruby et sw=2 ts=2:
|
12
2
|
|
13
|
-
|
14
|
-
|
15
|
-
|
16
|
-
|
17
|
-
|
18
|
-
|
19
|
-
|
20
|
-
|
21
|
-
|
22
|
-
|
23
|
-
|
24
|
-
|
25
|
-
|
26
|
-
|
3
|
+
require 'gem_hadar'
|
4
|
+
|
5
|
+
GemHadar do
|
6
|
+
name 'acts_as_account'
|
7
|
+
author [ "Thies C. Arntzen, Norman Timmler, Matthias Frick, Phillip Oertel" ]
|
8
|
+
email 'developers@betterplace.org'
|
9
|
+
homepage "http://github.com/betterplace/acts_as_account"
|
10
|
+
summary 'acts_as_account implements double entry accounting for Rails models'
|
11
|
+
description 'acts_as_account implements double entry accounting for Rails models. Your models get accounts and you can do consistent transactions between them. Since the documentation is sparse, see the transfer.feature for usage examples.'
|
12
|
+
test_dir 'tests'
|
13
|
+
ignore '.*.sw[pon]', 'pkg', 'Gemfile.lock', 'coverage', '.rvmrc',
|
14
|
+
'.AppleDouble', 'tags', '.byebug_history', '.DS_Store'
|
15
|
+
readme 'README.rdoc'
|
16
|
+
title "#{name.camelize} -- More Math in Ruby"
|
17
|
+
licenses << 'Apache-2.0'
|
18
|
+
|
19
|
+
dependency 'activerecord', '>= 4.1', '<6'
|
20
|
+
dependency 'actionpack' , '>= 4.1', '<6'
|
21
|
+
dependency 'database_cleaner', '~> 1.3'
|
22
|
+
development_dependency 'cucumber', '~> 1.3'
|
23
|
+
development_dependency 'mysql2'
|
24
|
+
development_dependency 'rspec', '~> 3.1'
|
25
|
+
development_dependency 'simplecov'
|
26
|
+
development_dependency 'complex_config'
|
27
27
|
end
|
28
28
|
|
29
29
|
def connect_database
|
30
|
-
require 'rubygems'
|
31
30
|
require 'active_record'
|
32
|
-
|
33
|
-
|
31
|
+
require 'complex_config'
|
32
|
+
config = ComplexConfig::Provider.config 'features/db/database.yml'
|
33
|
+
connection_config = config.acts_as_account.to_h
|
34
|
+
connection_config.delete(:database)
|
35
|
+
ActiveRecord::Base.establish_connection(connection_config).connection
|
34
36
|
end
|
35
37
|
|
36
38
|
namespace :features do
|
@@ -40,7 +42,7 @@ namespace :features do
|
|
40
42
|
conn.execute('DROP DATABASE IF EXISTS acts_as_account')
|
41
43
|
conn.execute('CREATE DATABASE acts_as_account')
|
42
44
|
conn.execute('USE acts_as_account')
|
43
|
-
load(File.dirname(__FILE__) + '/db/schema.rb')
|
45
|
+
load(File.dirname(__FILE__) + '/features/db/schema.rb')
|
44
46
|
end
|
45
47
|
end
|
46
48
|
|
@@ -49,4 +51,4 @@ task :features => :'features:create_database' do
|
|
49
51
|
ruby '-S', 'cucumber'
|
50
52
|
end
|
51
53
|
|
52
|
-
task :
|
54
|
+
task :test => :features
|
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
3.
|
1
|
+
3.2.0
|
data/acts_as_account.gemspec
CHANGED
@@ -1,91 +1,57 @@
|
|
1
|
-
# Generated by jeweler
|
2
|
-
# DO NOT EDIT THIS FILE DIRECTLY
|
3
|
-
# Instead, edit Jeweler::Tasks in Rakefile, and run 'rake gemspec'
|
4
1
|
# -*- encoding: utf-8 -*-
|
5
|
-
# stub: acts_as_account 3.
|
2
|
+
# stub: acts_as_account 3.2.0 ruby lib
|
6
3
|
|
7
4
|
Gem::Specification.new do |s|
|
8
|
-
s.name = "acts_as_account"
|
9
|
-
s.version = "3.
|
5
|
+
s.name = "acts_as_account".freeze
|
6
|
+
s.version = "3.2.0"
|
10
7
|
|
11
|
-
s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
|
12
|
-
s.require_paths = ["lib"]
|
13
|
-
s.authors = ["Thies C. Arntzen, Norman Timmler, Matthias Frick, Phillip Oertel"]
|
14
|
-
s.date = "
|
15
|
-
s.description = "acts_as_account implements double entry accounting for Rails models. Your models get accounts and you can do consistent transactions between them. Since the documentation is sparse, see the transfer.feature for usage examples."
|
16
|
-
s.email = "developers@betterplace.org"
|
17
|
-
s.extra_rdoc_files = [
|
18
|
-
|
19
|
-
|
20
|
-
]
|
21
|
-
s.
|
22
|
-
|
23
|
-
|
24
|
-
".specification",
|
25
|
-
".travis.yml",
|
26
|
-
"CHANGELOG.md",
|
27
|
-
"Gemfile",
|
28
|
-
"Gemfile.lock",
|
29
|
-
"LICENSE",
|
30
|
-
"README.rdoc",
|
31
|
-
"Rakefile",
|
32
|
-
"VERSION",
|
33
|
-
"acts_as_account.gemspec",
|
34
|
-
"cucumber.yml",
|
35
|
-
"db/database.yml",
|
36
|
-
"db/schema.rb",
|
37
|
-
"features/account/account_creation.feature",
|
38
|
-
"features/step_definitions/account_steps.rb",
|
39
|
-
"features/support/abstract_user.rb",
|
40
|
-
"features/support/cheque.rb",
|
41
|
-
"features/support/env.rb",
|
42
|
-
"features/support/inheriting_user.rb",
|
43
|
-
"features/support/user.rb",
|
44
|
-
"features/transfer/journal_creation.feature",
|
45
|
-
"features/transfer/transfer.feature",
|
46
|
-
"init.rb",
|
47
|
-
"lib/acts_as_account.rb",
|
48
|
-
"lib/acts_as_account/account.rb",
|
49
|
-
"lib/acts_as_account/active_record_extensions.rb",
|
50
|
-
"lib/acts_as_account/global_account.rb",
|
51
|
-
"lib/acts_as_account/journal.rb",
|
52
|
-
"lib/acts_as_account/manually_created_account.rb",
|
53
|
-
"lib/acts_as_account/posting.rb",
|
54
|
-
"lib/acts_as_account/transfer.rb"
|
55
|
-
]
|
56
|
-
s.homepage = "http://github.com/betterplace/acts_as_account"
|
57
|
-
s.licenses = ["Apache-2.0"]
|
58
|
-
s.rubygems_version = "2.2.2"
|
59
|
-
s.summary = "acts_as_account implements double entry accounting for Rails models"
|
8
|
+
s.required_rubygems_version = Gem::Requirement.new(">= 0".freeze) if s.respond_to? :required_rubygems_version=
|
9
|
+
s.require_paths = ["lib".freeze]
|
10
|
+
s.authors = ["Thies C. Arntzen, Norman Timmler, Matthias Frick, Phillip Oertel".freeze]
|
11
|
+
s.date = "2016-12-08"
|
12
|
+
s.description = "acts_as_account implements double entry accounting for Rails models. Your models get accounts and you can do consistent transactions between them. Since the documentation is sparse, see the transfer.feature for usage examples.".freeze
|
13
|
+
s.email = "developers@betterplace.org".freeze
|
14
|
+
s.extra_rdoc_files = ["README.rdoc".freeze, "lib/acts_as_account.rb".freeze, "lib/acts_as_account/account.rb".freeze, "lib/acts_as_account/active_record_extensions.rb".freeze, "lib/acts_as_account/global_account.rb".freeze, "lib/acts_as_account/journal.rb".freeze, "lib/acts_as_account/manually_created_account.rb".freeze, "lib/acts_as_account/posting.rb".freeze, "lib/acts_as_account/rails.rb".freeze, "lib/acts_as_account/transfer.rb".freeze, "lib/acts_as_account/version.rb".freeze]
|
15
|
+
s.files = [".gitignore".freeze, ".travis.yml".freeze, "CHANGELOG.md".freeze, "Gemfile".freeze, "LICENSE".freeze, "README.rdoc".freeze, "Rakefile".freeze, "VERSION".freeze, "acts_as_account.gemspec".freeze, "cucumber.yml".freeze, "features/account/account_creation.feature".freeze, "features/db/database.yml".freeze, "features/db/schema.rb".freeze, "features/step_definitions/account_steps.rb".freeze, "features/support/abstract_user.rb".freeze, "features/support/cheque.rb".freeze, "features/support/env.rb".freeze, "features/support/inheriting_user.rb".freeze, "features/support/user.rb".freeze, "features/transfer/journal_creation.feature".freeze, "features/transfer/transfer.feature".freeze, "init.rb".freeze, "lib/acts_as_account.rb".freeze, "lib/acts_as_account/account.rb".freeze, "lib/acts_as_account/active_record_extensions.rb".freeze, "lib/acts_as_account/global_account.rb".freeze, "lib/acts_as_account/journal.rb".freeze, "lib/acts_as_account/manually_created_account.rb".freeze, "lib/acts_as_account/posting.rb".freeze, "lib/acts_as_account/rails.rb".freeze, "lib/acts_as_account/transfer.rb".freeze, "lib/acts_as_account/version.rb".freeze]
|
16
|
+
s.homepage = "http://github.com/betterplace/acts_as_account".freeze
|
17
|
+
s.licenses = ["Apache-2.0".freeze]
|
18
|
+
s.rdoc_options = ["--title".freeze, "ActsAsAccount -- More Math in Ruby".freeze, "--main".freeze, "README.rdoc".freeze]
|
19
|
+
s.rubygems_version = "2.6.8".freeze
|
20
|
+
s.summary = "acts_as_account implements double entry accounting for Rails models".freeze
|
60
21
|
|
61
22
|
if s.respond_to? :specification_version then
|
62
23
|
s.specification_version = 4
|
63
24
|
|
64
25
|
if Gem::Version.new(Gem::VERSION) >= Gem::Version.new('1.2.0') then
|
65
|
-
s.
|
66
|
-
s.
|
67
|
-
s.
|
68
|
-
s.add_development_dependency(%q<
|
69
|
-
s.add_development_dependency(%q<
|
70
|
-
s.add_development_dependency(%q<
|
71
|
-
s.
|
26
|
+
s.add_development_dependency(%q<gem_hadar>.freeze, ["~> 1.9.1"])
|
27
|
+
s.add_development_dependency(%q<cucumber>.freeze, ["~> 1.3"])
|
28
|
+
s.add_development_dependency(%q<mysql2>.freeze, [">= 0"])
|
29
|
+
s.add_development_dependency(%q<rspec>.freeze, ["~> 3.1"])
|
30
|
+
s.add_development_dependency(%q<simplecov>.freeze, [">= 0"])
|
31
|
+
s.add_development_dependency(%q<complex_config>.freeze, [">= 0"])
|
32
|
+
s.add_runtime_dependency(%q<activerecord>.freeze, ["< 6", ">= 4.1"])
|
33
|
+
s.add_runtime_dependency(%q<actionpack>.freeze, ["< 6", ">= 4.1"])
|
34
|
+
s.add_runtime_dependency(%q<database_cleaner>.freeze, ["~> 1.3"])
|
72
35
|
else
|
73
|
-
s.add_dependency(%q<
|
74
|
-
s.add_dependency(%q<
|
75
|
-
s.add_dependency(%q<
|
76
|
-
s.add_dependency(%q<
|
77
|
-
s.add_dependency(%q<
|
78
|
-
s.add_dependency(%q<
|
79
|
-
s.add_dependency(%q<
|
36
|
+
s.add_dependency(%q<gem_hadar>.freeze, ["~> 1.9.1"])
|
37
|
+
s.add_dependency(%q<cucumber>.freeze, ["~> 1.3"])
|
38
|
+
s.add_dependency(%q<mysql2>.freeze, [">= 0"])
|
39
|
+
s.add_dependency(%q<rspec>.freeze, ["~> 3.1"])
|
40
|
+
s.add_dependency(%q<simplecov>.freeze, [">= 0"])
|
41
|
+
s.add_dependency(%q<complex_config>.freeze, [">= 0"])
|
42
|
+
s.add_dependency(%q<activerecord>.freeze, ["< 6", ">= 4.1"])
|
43
|
+
s.add_dependency(%q<actionpack>.freeze, ["< 6", ">= 4.1"])
|
44
|
+
s.add_dependency(%q<database_cleaner>.freeze, ["~> 1.3"])
|
80
45
|
end
|
81
46
|
else
|
82
|
-
s.add_dependency(%q<
|
83
|
-
s.add_dependency(%q<
|
84
|
-
s.add_dependency(%q<
|
85
|
-
s.add_dependency(%q<
|
86
|
-
s.add_dependency(%q<
|
87
|
-
s.add_dependency(%q<
|
88
|
-
s.add_dependency(%q<
|
47
|
+
s.add_dependency(%q<gem_hadar>.freeze, ["~> 1.9.1"])
|
48
|
+
s.add_dependency(%q<cucumber>.freeze, ["~> 1.3"])
|
49
|
+
s.add_dependency(%q<mysql2>.freeze, [">= 0"])
|
50
|
+
s.add_dependency(%q<rspec>.freeze, ["~> 3.1"])
|
51
|
+
s.add_dependency(%q<simplecov>.freeze, [">= 0"])
|
52
|
+
s.add_dependency(%q<complex_config>.freeze, [">= 0"])
|
53
|
+
s.add_dependency(%q<activerecord>.freeze, ["< 6", ">= 4.1"])
|
54
|
+
s.add_dependency(%q<actionpack>.freeze, ["< 6", ">= 4.1"])
|
55
|
+
s.add_dependency(%q<database_cleaner>.freeze, ["~> 1.3"])
|
89
56
|
end
|
90
57
|
end
|
91
|
-
|
data/cucumber.yml
CHANGED
File without changes
|
File without changes
|
File without changes
|
File without changes
|
data/features/support/cheque.rb
CHANGED
File without changes
|
data/features/support/env.rb
CHANGED
@@ -1,5 +1,14 @@
|
|
1
|
-
|
2
|
-
|
1
|
+
if ENV['START_SIMPLECOV'].to_i == 1
|
2
|
+
require 'simplecov'
|
3
|
+
SimpleCov.start do
|
4
|
+
add_filter 'features'
|
5
|
+
end
|
6
|
+
end
|
7
|
+
|
8
|
+
require 'acts_as_account'
|
9
|
+
require 'complex_config'
|
10
|
+
config =ComplexConfig::Provider.config File.dirname(__FILE__) + '/../db/database.yml'
|
11
|
+
ActiveRecord::Base.establish_connection(config.acts_as_account.to_h)
|
3
12
|
|
4
13
|
require 'database_cleaner'
|
5
14
|
require 'database_cleaner/cucumber'
|
data/features/support/user.rb
CHANGED
File without changes
|
File without changes
|
File without changes
|
data/lib/acts_as_account.rb
CHANGED
@@ -1,17 +1,15 @@
|
|
1
1
|
require 'active_record'
|
2
2
|
require 'action_controller'
|
3
3
|
|
4
|
-
|
4
|
+
module ActsAsAccount
|
5
|
+
end
|
5
6
|
|
7
|
+
require 'acts_as_account/version'
|
6
8
|
require 'acts_as_account/transfer'
|
7
9
|
require 'acts_as_account/account'
|
8
10
|
require 'acts_as_account/journal'
|
9
11
|
require 'acts_as_account/posting'
|
10
12
|
require 'acts_as_account/active_record_extensions'
|
11
|
-
|
12
|
-
ActiveRecord::Base.class_eval do
|
13
|
-
include ActsAsAccount::ActiveRecordExtension
|
14
|
-
end
|
15
|
-
|
13
|
+
require 'acts_as_account/rails'
|
16
14
|
require 'acts_as_account/global_account'
|
17
|
-
require 'acts_as_account/manually_created_account'
|
15
|
+
require 'acts_as_account/manually_created_account'
|
@@ -13,31 +13,13 @@ module ActsAsAccount
|
|
13
13
|
# validates_presence_of :holder
|
14
14
|
|
15
15
|
class << self
|
16
|
-
|
17
16
|
def recalculate_all_balances
|
18
|
-
|
19
|
-
|
20
|
-
|
21
|
-
|
22
|
-
|
23
|
-
|
24
|
-
max(valuta) as calculated_valuta
|
25
|
-
FROM
|
26
|
-
acts_as_account_postings
|
27
|
-
GROUP BY
|
28
|
-
account_id
|
29
|
-
HAVING
|
30
|
-
calculated_postings_count > 0
|
31
|
-
EOT
|
32
|
-
|
33
|
-
ActsAsAccount::Account.find_by_sql(sql).each do |account|
|
34
|
-
account.lock!
|
35
|
-
account.update_attributes(
|
36
|
-
:balance => account.calculated_balance,
|
37
|
-
:postings_count => account.calculated_postings_count,
|
38
|
-
:last_valuta => account.calculated_valuta)
|
39
|
-
|
40
|
-
puts "account:#{account.id}, balance:#{account.balance}, postings_count:#{account.postings_count}, last_valuta:#{account.last_valuta}"
|
17
|
+
find_each do |account|
|
18
|
+
account.update_columns(
|
19
|
+
balance: account.postings.sum(:amount),
|
20
|
+
postings_count: account.postings.count,
|
21
|
+
last_valuta: account.postings.maximum(:valuta)
|
22
|
+
)
|
41
23
|
end
|
42
24
|
end
|
43
25
|
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
@@ -0,0 +1,8 @@
|
|
1
|
+
module ActsAsAccount
|
2
|
+
# ActsAsAccount version
|
3
|
+
VERSION = '3.2.0'
|
4
|
+
VERSION_ARRAY = VERSION.split('.').map(&:to_i) # :nodoc:
|
5
|
+
VERSION_MAJOR = VERSION_ARRAY[0] # :nodoc:
|
6
|
+
VERSION_MINOR = VERSION_ARRAY[1] # :nodoc:
|
7
|
+
VERSION_BUILD = VERSION_ARRAY[2] # :nodoc:
|
8
|
+
end
|
metadata
CHANGED
@@ -1,113 +1,153 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: acts_as_account
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 3.
|
4
|
+
version: 3.2.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Thies C. Arntzen, Norman Timmler, Matthias Frick, Phillip Oertel
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2016-12-08 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
|
-
name:
|
14
|
+
name: gem_hadar
|
15
15
|
requirement: !ruby/object:Gem::Requirement
|
16
16
|
requirements:
|
17
17
|
- - "~>"
|
18
18
|
- !ruby/object:Gem::Version
|
19
|
-
version:
|
20
|
-
type: :
|
19
|
+
version: 1.9.1
|
20
|
+
type: :development
|
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:
|
26
|
+
version: 1.9.1
|
27
27
|
- !ruby/object:Gem::Dependency
|
28
|
-
name:
|
28
|
+
name: cucumber
|
29
29
|
requirement: !ruby/object:Gem::Requirement
|
30
30
|
requirements:
|
31
31
|
- - "~>"
|
32
32
|
- !ruby/object:Gem::Version
|
33
|
-
version: '
|
34
|
-
type: :
|
33
|
+
version: '1.3'
|
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: '
|
40
|
+
version: '1.3'
|
41
41
|
- !ruby/object:Gem::Dependency
|
42
|
-
name:
|
42
|
+
name: mysql2
|
43
43
|
requirement: !ruby/object:Gem::Requirement
|
44
44
|
requirements:
|
45
|
-
- - "
|
45
|
+
- - ">="
|
46
46
|
- !ruby/object:Gem::Version
|
47
|
-
version: '
|
48
|
-
type: :
|
47
|
+
version: '0'
|
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: '
|
54
|
+
version: '0'
|
55
55
|
- !ruby/object:Gem::Dependency
|
56
|
-
name:
|
56
|
+
name: rspec
|
57
57
|
requirement: !ruby/object:Gem::Requirement
|
58
58
|
requirements:
|
59
59
|
- - "~>"
|
60
60
|
- !ruby/object:Gem::Version
|
61
|
-
version: '
|
61
|
+
version: '3.1'
|
62
62
|
type: :development
|
63
63
|
prerelease: false
|
64
64
|
version_requirements: !ruby/object:Gem::Requirement
|
65
65
|
requirements:
|
66
66
|
- - "~>"
|
67
67
|
- !ruby/object:Gem::Version
|
68
|
-
version: '
|
68
|
+
version: '3.1'
|
69
69
|
- !ruby/object:Gem::Dependency
|
70
|
-
name:
|
70
|
+
name: simplecov
|
71
71
|
requirement: !ruby/object:Gem::Requirement
|
72
72
|
requirements:
|
73
|
-
- - "
|
73
|
+
- - ">="
|
74
74
|
- !ruby/object:Gem::Version
|
75
|
-
version: '
|
75
|
+
version: '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: '
|
82
|
+
version: '0'
|
83
83
|
- !ruby/object:Gem::Dependency
|
84
|
-
name:
|
84
|
+
name: complex_config
|
85
85
|
requirement: !ruby/object:Gem::Requirement
|
86
86
|
requirements:
|
87
|
-
- - "
|
87
|
+
- - ">="
|
88
88
|
- !ruby/object:Gem::Version
|
89
|
-
version: '
|
89
|
+
version: '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: '
|
96
|
+
version: '0'
|
97
97
|
- !ruby/object:Gem::Dependency
|
98
|
-
name:
|
98
|
+
name: activerecord
|
99
|
+
requirement: !ruby/object:Gem::Requirement
|
100
|
+
requirements:
|
101
|
+
- - ">="
|
102
|
+
- !ruby/object:Gem::Version
|
103
|
+
version: '4.1'
|
104
|
+
- - "<"
|
105
|
+
- !ruby/object:Gem::Version
|
106
|
+
version: '6'
|
107
|
+
type: :runtime
|
108
|
+
prerelease: false
|
109
|
+
version_requirements: !ruby/object:Gem::Requirement
|
110
|
+
requirements:
|
111
|
+
- - ">="
|
112
|
+
- !ruby/object:Gem::Version
|
113
|
+
version: '4.1'
|
114
|
+
- - "<"
|
115
|
+
- !ruby/object:Gem::Version
|
116
|
+
version: '6'
|
117
|
+
- !ruby/object:Gem::Dependency
|
118
|
+
name: actionpack
|
119
|
+
requirement: !ruby/object:Gem::Requirement
|
120
|
+
requirements:
|
121
|
+
- - ">="
|
122
|
+
- !ruby/object:Gem::Version
|
123
|
+
version: '4.1'
|
124
|
+
- - "<"
|
125
|
+
- !ruby/object:Gem::Version
|
126
|
+
version: '6'
|
127
|
+
type: :runtime
|
128
|
+
prerelease: false
|
129
|
+
version_requirements: !ruby/object:Gem::Requirement
|
130
|
+
requirements:
|
131
|
+
- - ">="
|
132
|
+
- !ruby/object:Gem::Version
|
133
|
+
version: '4.1'
|
134
|
+
- - "<"
|
135
|
+
- !ruby/object:Gem::Version
|
136
|
+
version: '6'
|
137
|
+
- !ruby/object:Gem::Dependency
|
138
|
+
name: database_cleaner
|
99
139
|
requirement: !ruby/object:Gem::Requirement
|
100
140
|
requirements:
|
101
141
|
- - "~>"
|
102
142
|
- !ruby/object:Gem::Version
|
103
|
-
version: '3
|
104
|
-
type: :
|
143
|
+
version: '1.3'
|
144
|
+
type: :runtime
|
105
145
|
prerelease: false
|
106
146
|
version_requirements: !ruby/object:Gem::Requirement
|
107
147
|
requirements:
|
108
148
|
- - "~>"
|
109
149
|
- !ruby/object:Gem::Version
|
110
|
-
version: '3
|
150
|
+
version: '1.3'
|
111
151
|
description: acts_as_account implements double entry accounting for Rails models.
|
112
152
|
Your models get accounts and you can do consistent transactions between them. Since
|
113
153
|
the documentation is sparse, see the transfer.feature for usage examples.
|
@@ -115,23 +155,31 @@ email: developers@betterplace.org
|
|
115
155
|
executables: []
|
116
156
|
extensions: []
|
117
157
|
extra_rdoc_files:
|
118
|
-
- LICENSE
|
119
158
|
- README.rdoc
|
159
|
+
- lib/acts_as_account.rb
|
160
|
+
- lib/acts_as_account/account.rb
|
161
|
+
- lib/acts_as_account/active_record_extensions.rb
|
162
|
+
- lib/acts_as_account/global_account.rb
|
163
|
+
- lib/acts_as_account/journal.rb
|
164
|
+
- lib/acts_as_account/manually_created_account.rb
|
165
|
+
- lib/acts_as_account/posting.rb
|
166
|
+
- lib/acts_as_account/rails.rb
|
167
|
+
- lib/acts_as_account/transfer.rb
|
168
|
+
- lib/acts_as_account/version.rb
|
120
169
|
files:
|
121
|
-
- ".
|
170
|
+
- ".gitignore"
|
122
171
|
- ".travis.yml"
|
123
172
|
- CHANGELOG.md
|
124
173
|
- Gemfile
|
125
|
-
- Gemfile.lock
|
126
174
|
- LICENSE
|
127
175
|
- README.rdoc
|
128
176
|
- Rakefile
|
129
177
|
- VERSION
|
130
178
|
- acts_as_account.gemspec
|
131
179
|
- cucumber.yml
|
132
|
-
- db/database.yml
|
133
|
-
- db/schema.rb
|
134
180
|
- features/account/account_creation.feature
|
181
|
+
- features/db/database.yml
|
182
|
+
- features/db/schema.rb
|
135
183
|
- features/step_definitions/account_steps.rb
|
136
184
|
- features/support/abstract_user.rb
|
137
185
|
- features/support/cheque.rb
|
@@ -148,13 +196,19 @@ files:
|
|
148
196
|
- lib/acts_as_account/journal.rb
|
149
197
|
- lib/acts_as_account/manually_created_account.rb
|
150
198
|
- lib/acts_as_account/posting.rb
|
199
|
+
- lib/acts_as_account/rails.rb
|
151
200
|
- lib/acts_as_account/transfer.rb
|
201
|
+
- lib/acts_as_account/version.rb
|
152
202
|
homepage: http://github.com/betterplace/acts_as_account
|
153
203
|
licenses:
|
154
204
|
- Apache-2.0
|
155
205
|
metadata: {}
|
156
206
|
post_install_message:
|
157
|
-
rdoc_options:
|
207
|
+
rdoc_options:
|
208
|
+
- "--title"
|
209
|
+
- ActsAsAccount -- More Math in Ruby
|
210
|
+
- "--main"
|
211
|
+
- README.rdoc
|
158
212
|
require_paths:
|
159
213
|
- lib
|
160
214
|
required_ruby_version: !ruby/object:Gem::Requirement
|
@@ -169,7 +223,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
169
223
|
version: '0'
|
170
224
|
requirements: []
|
171
225
|
rubyforge_project:
|
172
|
-
rubygems_version: 2.
|
226
|
+
rubygems_version: 2.6.8
|
173
227
|
signing_key:
|
174
228
|
specification_version: 4
|
175
229
|
summary: acts_as_account implements double entry accounting for Rails models
|
data/.specification
DELETED
@@ -1,57 +0,0 @@
|
|
1
|
-
--- !ruby/object:Gem::Specification
|
2
|
-
name: acts_as_account
|
3
|
-
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.0.0
|
5
|
-
platform: ruby
|
6
|
-
authors: []
|
7
|
-
|
8
|
-
autorequire:
|
9
|
-
bindir: bin
|
10
|
-
cert_chain: []
|
11
|
-
|
12
|
-
date: 2010-03-18 00:00:00 +01:00
|
13
|
-
default_executable:
|
14
|
-
dependencies: []
|
15
|
-
|
16
|
-
description:
|
17
|
-
email:
|
18
|
-
executables: []
|
19
|
-
|
20
|
-
extensions: []
|
21
|
-
|
22
|
-
extra_rdoc_files: []
|
23
|
-
|
24
|
-
files:
|
25
|
-
- lib
|
26
|
-
- lib/acts_as_account
|
27
|
-
- lib/acts_as_account.rb
|
28
|
-
has_rdoc: true
|
29
|
-
homepage:
|
30
|
-
licenses: []
|
31
|
-
|
32
|
-
post_install_message:
|
33
|
-
rdoc_options: []
|
34
|
-
|
35
|
-
require_paths:
|
36
|
-
- lib
|
37
|
-
required_ruby_version: !ruby/object:Gem::Requirement
|
38
|
-
requirements:
|
39
|
-
- - ">="
|
40
|
-
- !ruby/object:Gem::Version
|
41
|
-
version: "0"
|
42
|
-
version:
|
43
|
-
required_rubygems_version: !ruby/object:Gem::Requirement
|
44
|
-
requirements:
|
45
|
-
- - ">="
|
46
|
-
- !ruby/object:Gem::Version
|
47
|
-
version: "0"
|
48
|
-
version:
|
49
|
-
requirements: []
|
50
|
-
|
51
|
-
rubyforge_project:
|
52
|
-
rubygems_version: 1.3.5
|
53
|
-
signing_key:
|
54
|
-
specification_version: 3
|
55
|
-
summary:
|
56
|
-
test_files: []
|
57
|
-
|
data/Gemfile.lock
DELETED
@@ -1,114 +0,0 @@
|
|
1
|
-
GEM
|
2
|
-
remote: http://rubygems.org/
|
3
|
-
specs:
|
4
|
-
actionpack (4.1.6)
|
5
|
-
actionview (= 4.1.6)
|
6
|
-
activesupport (= 4.1.6)
|
7
|
-
rack (~> 1.5.2)
|
8
|
-
rack-test (~> 0.6.2)
|
9
|
-
actionview (4.1.6)
|
10
|
-
activesupport (= 4.1.6)
|
11
|
-
builder (~> 3.1)
|
12
|
-
erubis (~> 2.7.0)
|
13
|
-
activemodel (4.1.6)
|
14
|
-
activesupport (= 4.1.6)
|
15
|
-
builder (~> 3.1)
|
16
|
-
activerecord (4.1.6)
|
17
|
-
activemodel (= 4.1.6)
|
18
|
-
activesupport (= 4.1.6)
|
19
|
-
arel (~> 5.0.0)
|
20
|
-
activesupport (4.1.6)
|
21
|
-
i18n (~> 0.6, >= 0.6.9)
|
22
|
-
json (~> 1.7, >= 1.7.7)
|
23
|
-
minitest (~> 5.1)
|
24
|
-
thread_safe (~> 0.1)
|
25
|
-
tzinfo (~> 1.1)
|
26
|
-
addressable (2.3.6)
|
27
|
-
arel (5.0.1.20140414130214)
|
28
|
-
builder (3.2.2)
|
29
|
-
cucumber (1.3.17)
|
30
|
-
builder (>= 2.1.2)
|
31
|
-
diff-lcs (>= 1.1.3)
|
32
|
-
gherkin (~> 2.12)
|
33
|
-
multi_json (>= 1.7.5, < 2.0)
|
34
|
-
multi_test (>= 0.1.1)
|
35
|
-
database_cleaner (1.3.0)
|
36
|
-
descendants_tracker (0.0.4)
|
37
|
-
thread_safe (~> 0.3, >= 0.3.1)
|
38
|
-
diff-lcs (1.2.5)
|
39
|
-
erubis (2.7.0)
|
40
|
-
faraday (0.9.0)
|
41
|
-
multipart-post (>= 1.2, < 3)
|
42
|
-
gherkin (2.12.2)
|
43
|
-
multi_json (~> 1.3)
|
44
|
-
git (1.2.8)
|
45
|
-
github_api (0.12.1)
|
46
|
-
addressable (~> 2.3)
|
47
|
-
descendants_tracker (~> 0.0.4)
|
48
|
-
faraday (~> 0.8, < 0.10)
|
49
|
-
hashie (>= 3.2)
|
50
|
-
multi_json (>= 1.7.5, < 2.0)
|
51
|
-
nokogiri (~> 1.6.3)
|
52
|
-
oauth2
|
53
|
-
hashie (3.3.1)
|
54
|
-
highline (1.6.21)
|
55
|
-
i18n (0.6.11)
|
56
|
-
jeweler (2.0.1)
|
57
|
-
builder
|
58
|
-
bundler (>= 1.0)
|
59
|
-
git (>= 1.2.5)
|
60
|
-
github_api
|
61
|
-
highline (>= 1.6.15)
|
62
|
-
nokogiri (>= 1.5.10)
|
63
|
-
rake
|
64
|
-
rdoc
|
65
|
-
json (1.8.1)
|
66
|
-
jwt (1.0.0)
|
67
|
-
mini_portile (0.6.0)
|
68
|
-
minitest (5.4.1)
|
69
|
-
multi_json (1.10.1)
|
70
|
-
multi_test (0.1.1)
|
71
|
-
multi_xml (0.5.5)
|
72
|
-
multipart-post (2.0.0)
|
73
|
-
mysql (2.9.1)
|
74
|
-
nokogiri (1.6.3.1)
|
75
|
-
mini_portile (= 0.6.0)
|
76
|
-
oauth2 (1.0.0)
|
77
|
-
faraday (>= 0.8, < 0.10)
|
78
|
-
jwt (~> 1.0)
|
79
|
-
multi_json (~> 1.3)
|
80
|
-
multi_xml (~> 0.5)
|
81
|
-
rack (~> 1.2)
|
82
|
-
rack (1.5.2)
|
83
|
-
rack-test (0.6.2)
|
84
|
-
rack (>= 1.0)
|
85
|
-
rake (10.3.2)
|
86
|
-
rdoc (4.1.2)
|
87
|
-
json (~> 1.4)
|
88
|
-
rspec (3.1.0)
|
89
|
-
rspec-core (~> 3.1.0)
|
90
|
-
rspec-expectations (~> 3.1.0)
|
91
|
-
rspec-mocks (~> 3.1.0)
|
92
|
-
rspec-core (3.1.3)
|
93
|
-
rspec-support (~> 3.1.0)
|
94
|
-
rspec-expectations (3.1.1)
|
95
|
-
diff-lcs (>= 1.2.0, < 2.0)
|
96
|
-
rspec-support (~> 3.1.0)
|
97
|
-
rspec-mocks (3.1.0)
|
98
|
-
rspec-support (~> 3.1.0)
|
99
|
-
rspec-support (3.1.0)
|
100
|
-
thread_safe (0.3.4)
|
101
|
-
tzinfo (1.2.2)
|
102
|
-
thread_safe (~> 0.1)
|
103
|
-
|
104
|
-
PLATFORMS
|
105
|
-
ruby
|
106
|
-
|
107
|
-
DEPENDENCIES
|
108
|
-
actionpack (~> 4.1)
|
109
|
-
activerecord (~> 4.1)
|
110
|
-
cucumber (~> 1.3)
|
111
|
-
database_cleaner (~> 1.3)
|
112
|
-
jeweler (~> 2.0)
|
113
|
-
mysql (~> 2.9)
|
114
|
-
rspec (~> 3.1)
|