acts_as_account 1.1.6 → 1.2.0
Sign up to get free protection for your applications and to get access to all the features.
- data/VERSION +1 -1
- data/lib/acts_as_account/account.rb +1 -1
- data/lib/acts_as_account/journal.rb +1 -1
- data/lib/acts_as_account/posting.rb +3 -3
- metadata +27 -27
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
1.
|
1
|
+
1.2.0
|
@@ -3,7 +3,7 @@ module ActsAsAccount
|
|
3
3
|
set_table_name :acts_as_account_accounts
|
4
4
|
|
5
5
|
belongs_to :holder, :polymorphic => true
|
6
|
-
has_many :postings
|
6
|
+
has_many :postings, :class_name => 'ActsAsAccount::Posting'
|
7
7
|
has_many :journals, :through => :postings
|
8
8
|
|
9
9
|
# TODO: discuss with norman:
|
@@ -2,9 +2,9 @@ module ActsAsAccount
|
|
2
2
|
class Posting < ActiveRecord::Base
|
3
3
|
set_table_name :acts_as_account_postings
|
4
4
|
|
5
|
-
belongs_to :account
|
6
|
-
belongs_to :other_account, :class_name => 'Account'
|
7
|
-
belongs_to :journal
|
5
|
+
belongs_to :account, :class_name => 'ActsAsAccount::Account'
|
6
|
+
belongs_to :other_account, :class_name => 'ActsAsAccount::Account'
|
7
|
+
belongs_to :journal, :class_name => 'ActsAsAccount::Journal'
|
8
8
|
belongs_to :reference, :polymorphic => true
|
9
9
|
|
10
10
|
named_scope :soll, :conditions => 'amount >= 0'
|
metadata
CHANGED
@@ -5,9 +5,9 @@ version: !ruby/object:Gem::Version
|
|
5
5
|
prerelease:
|
6
6
|
segments:
|
7
7
|
- 1
|
8
|
-
-
|
9
|
-
-
|
10
|
-
version: 1.
|
8
|
+
- 2
|
9
|
+
- 0
|
10
|
+
version: 1.2.0
|
11
11
|
platform: ruby
|
12
12
|
authors:
|
13
13
|
- Thies C. Arntzen, Norman Timmler, Matthias Frick, Phillip Oertel
|
@@ -15,9 +15,10 @@ autorequire:
|
|
15
15
|
bindir: bin
|
16
16
|
cert_chain: []
|
17
17
|
|
18
|
-
date: 2012-
|
18
|
+
date: 2012-07-31 00:00:00 Z
|
19
19
|
dependencies:
|
20
20
|
- !ruby/object:Gem::Dependency
|
21
|
+
name: activerecord
|
21
22
|
version_requirements: &id001 !ruby/object:Gem::Requirement
|
22
23
|
none: false
|
23
24
|
requirements:
|
@@ -29,11 +30,11 @@ dependencies:
|
|
29
30
|
- 3
|
30
31
|
- 5
|
31
32
|
version: 2.3.5
|
32
|
-
name: activerecord
|
33
|
-
prerelease: false
|
34
33
|
type: :runtime
|
35
34
|
requirement: *id001
|
35
|
+
prerelease: false
|
36
36
|
- !ruby/object:Gem::Dependency
|
37
|
+
name: actionpack
|
37
38
|
version_requirements: &id002 !ruby/object:Gem::Requirement
|
38
39
|
none: false
|
39
40
|
requirements:
|
@@ -45,11 +46,11 @@ dependencies:
|
|
45
46
|
- 3
|
46
47
|
- 5
|
47
48
|
version: 2.3.5
|
48
|
-
name: actionpack
|
49
|
-
prerelease: false
|
50
49
|
type: :runtime
|
51
50
|
requirement: *id002
|
51
|
+
prerelease: false
|
52
52
|
- !ruby/object:Gem::Dependency
|
53
|
+
name: database_cleaner
|
53
54
|
version_requirements: &id003 !ruby/object:Gem::Requirement
|
54
55
|
none: false
|
55
56
|
requirements:
|
@@ -59,11 +60,11 @@ dependencies:
|
|
59
60
|
segments:
|
60
61
|
- 0
|
61
62
|
version: "0"
|
62
|
-
name: database_cleaner
|
63
|
-
prerelease: false
|
64
63
|
type: :runtime
|
65
64
|
requirement: *id003
|
65
|
+
prerelease: false
|
66
66
|
- !ruby/object:Gem::Dependency
|
67
|
+
name: rspec
|
67
68
|
version_requirements: &id004 !ruby/object:Gem::Requirement
|
68
69
|
none: false
|
69
70
|
requirements:
|
@@ -75,11 +76,11 @@ dependencies:
|
|
75
76
|
- 3
|
76
77
|
- 0
|
77
78
|
version: 2.3.0
|
78
|
-
name: rspec
|
79
|
-
prerelease: false
|
80
79
|
type: :development
|
81
80
|
requirement: *id004
|
81
|
+
prerelease: false
|
82
82
|
- !ruby/object:Gem::Dependency
|
83
|
+
name: bundler
|
83
84
|
version_requirements: &id005 !ruby/object:Gem::Requirement
|
84
85
|
none: false
|
85
86
|
requirements:
|
@@ -91,11 +92,11 @@ dependencies:
|
|
91
92
|
- 0
|
92
93
|
- 0
|
93
94
|
version: 1.0.0
|
94
|
-
name: bundler
|
95
|
-
prerelease: false
|
96
95
|
type: :development
|
97
96
|
requirement: *id005
|
97
|
+
prerelease: false
|
98
98
|
- !ruby/object:Gem::Dependency
|
99
|
+
name: jeweler
|
99
100
|
version_requirements: &id006 !ruby/object:Gem::Requirement
|
100
101
|
none: false
|
101
102
|
requirements:
|
@@ -107,11 +108,11 @@ dependencies:
|
|
107
108
|
- 5
|
108
109
|
- 2
|
109
110
|
version: 1.5.2
|
110
|
-
name: jeweler
|
111
|
-
prerelease: false
|
112
111
|
type: :development
|
113
112
|
requirement: *id006
|
113
|
+
prerelease: false
|
114
114
|
- !ruby/object:Gem::Dependency
|
115
|
+
name: cucumber
|
115
116
|
version_requirements: &id007 !ruby/object:Gem::Requirement
|
116
117
|
none: false
|
117
118
|
requirements:
|
@@ -123,11 +124,11 @@ dependencies:
|
|
123
124
|
- 9
|
124
125
|
- 4
|
125
126
|
version: 0.9.4
|
126
|
-
name: cucumber
|
127
|
-
prerelease: false
|
128
127
|
type: :development
|
129
128
|
requirement: *id007
|
129
|
+
prerelease: false
|
130
130
|
- !ruby/object:Gem::Dependency
|
131
|
+
name: mysql
|
131
132
|
version_requirements: &id008 !ruby/object:Gem::Requirement
|
132
133
|
none: false
|
133
134
|
requirements:
|
@@ -139,11 +140,11 @@ dependencies:
|
|
139
140
|
- 7
|
140
141
|
- 0
|
141
142
|
version: 2.7.0
|
142
|
-
name: mysql
|
143
|
-
prerelease: false
|
144
143
|
type: :development
|
145
144
|
requirement: *id008
|
145
|
+
prerelease: false
|
146
146
|
- !ruby/object:Gem::Dependency
|
147
|
+
name: activerecord
|
147
148
|
version_requirements: &id009 !ruby/object:Gem::Requirement
|
148
149
|
none: false
|
149
150
|
requirements:
|
@@ -153,11 +154,11 @@ dependencies:
|
|
153
154
|
segments:
|
154
155
|
- 0
|
155
156
|
version: "0"
|
156
|
-
name: activerecord
|
157
|
-
prerelease: false
|
158
157
|
type: :runtime
|
159
158
|
requirement: *id009
|
159
|
+
prerelease: false
|
160
160
|
- !ruby/object:Gem::Dependency
|
161
|
+
name: actionpack
|
161
162
|
version_requirements: &id010 !ruby/object:Gem::Requirement
|
162
163
|
none: false
|
163
164
|
requirements:
|
@@ -167,11 +168,11 @@ dependencies:
|
|
167
168
|
segments:
|
168
169
|
- 0
|
169
170
|
version: "0"
|
170
|
-
name: actionpack
|
171
|
-
prerelease: false
|
172
171
|
type: :runtime
|
173
172
|
requirement: *id010
|
173
|
+
prerelease: false
|
174
174
|
- !ruby/object:Gem::Dependency
|
175
|
+
name: database_cleaner
|
175
176
|
version_requirements: &id011 !ruby/object:Gem::Requirement
|
176
177
|
none: false
|
177
178
|
requirements:
|
@@ -181,10 +182,9 @@ dependencies:
|
|
181
182
|
segments:
|
182
183
|
- 0
|
183
184
|
version: "0"
|
184
|
-
name: database_cleaner
|
185
|
-
prerelease: false
|
186
185
|
type: :runtime
|
187
186
|
requirement: *id011
|
187
|
+
prerelease: false
|
188
188
|
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.
|
189
189
|
email: thieso@gmail.com
|
190
190
|
executables: []
|
@@ -250,7 +250,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
250
250
|
requirements: []
|
251
251
|
|
252
252
|
rubyforge_project:
|
253
|
-
rubygems_version: 1.8.
|
253
|
+
rubygems_version: 1.8.24
|
254
254
|
signing_key:
|
255
255
|
specification_version: 3
|
256
256
|
summary: acts_as_account implements double entry accounting for Rails models
|