plutus 0.5.2 → 0.7.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- data/README.markdown +116 -69
- data/Rakefile +7 -20
- data/app/assets/javascripts/plutus/application.js +15 -0
- data/app/assets/stylesheets/plutus/application.css +13 -0
- data/app/assets/stylesheets/plutus/main.css.scss +86 -0
- data/app/controllers/plutus/accounts_controller.rb +45 -0
- data/app/controllers/plutus/transactions_controller.rb +44 -0
- data/app/models/plutus/account.rb +60 -0
- data/app/models/plutus/amount.rb +16 -0
- data/app/models/plutus/asset.rb +83 -0
- data/app/models/plutus/credit_amount.rb +10 -0
- data/app/models/plutus/debit_amount.rb +10 -0
- data/app/models/plutus/equity.rb +84 -0
- data/app/models/plutus/expense.rb +83 -0
- data/app/models/plutus/liability.rb +78 -0
- data/app/models/plutus/revenue.rb +83 -0
- data/app/models/plutus/transaction.rb +83 -0
- data/app/views/{accounts → plutus/accounts}/index.html.erb +4 -2
- data/app/views/{accounts → plutus/accounts}/show.html.erb +8 -18
- data/app/views/plutus/transactions/index.html.erb +48 -0
- data/app/views/plutus/transactions/show.html.erb +46 -0
- data/config/database.yml +5 -0
- data/config/routes.rb +6 -0
- data/lib/generators/plutus/templates/migration.rb +17 -13
- data/lib/plutus.rb +3 -2
- data/lib/plutus/version.rb +3 -0
- data/spec/controllers/accounts_controller_spec.rb +22 -19
- data/spec/controllers/transactions_controller_spec.rb +23 -20
- data/spec/factories/account_factory.rb +30 -24
- data/spec/factories/amount_factory.rb +19 -0
- data/spec/factories/transaction_factory.rb +11 -6
- data/spec/models/account_spec.rb +61 -40
- data/spec/models/amount_spec.rb +12 -0
- data/spec/models/asset_spec.rb +46 -39
- data/spec/models/credit_amount_spec.rb +22 -0
- data/spec/models/debit_amount_spec.rb +22 -0
- data/spec/models/equity_spec.rb +51 -43
- data/spec/models/expense_spec.rb +49 -41
- data/spec/models/liability_spec.rb +48 -40
- data/spec/models/revenue_spec.rb +48 -41
- data/spec/models/transaction_spec.rb +77 -42
- data/spec/routing/accounts_routing_spec.rb +23 -20
- data/spec/routing/transactions_routing_spec.rb +23 -20
- data/spec/spec_helper.rb +3 -1
- metadata +208 -139
- data/.yardopts +0 -2
- data/VERSION.yml +0 -5
- data/app/controllers/accounts_controller.rb +0 -43
- data/app/controllers/transactions_controller.rb +0 -42
- data/app/models/account.rb +0 -57
- data/app/models/asset.rb +0 -81
- data/app/models/equity.rb +0 -82
- data/app/models/expense.rb +0 -81
- data/app/models/liability.rb +0 -76
- data/app/models/revenue.rb +0 -81
- data/app/models/transaction.rb +0 -27
- data/app/views/layouts/accounts.html.erb +0 -68
- data/app/views/layouts/transactions.html.erb +0 -68
- data/app/views/transactions/index.html.erb +0 -27
- data/app/views/transactions/show.html.erb +0 -24
- data/doc/Account.html +0 -300
- data/doc/AccountsController.html +0 -317
- data/doc/Asset.html +0 -610
- data/doc/CreatePlutusTables.html +0 -265
- data/doc/Equity.html +0 -610
- data/doc/Expense.html +0 -610
- data/doc/Liability.html +0 -588
- data/doc/Plutus.html +0 -91
- data/doc/Plutus/Engine.html +0 -100
- data/doc/PlutusGenerator.html +0 -312
- data/doc/Revenue.html +0 -610
- data/doc/Transaction.html +0 -156
- data/doc/TransactionsController.html +0 -317
- data/doc/_index.html +0 -204
- data/doc/class_list.html +0 -36
- data/doc/css/common.css +0 -1
- data/doc/css/full_list.css +0 -53
- data/doc/css/style.css +0 -310
- data/doc/file.README.html +0 -250
- data/doc/file_list.html +0 -38
- data/doc/frames.html +0 -13
- data/doc/index.html +0 -250
- data/doc/js/app.js +0 -202
- data/doc/js/full_list.js +0 -149
- data/doc/js/jquery.js +0 -154
- data/doc/method_list.html +0 -275
- data/doc/top-level-namespace.html +0 -90
- data/fixture_rails_root/.gitignore +0 -4
- data/fixture_rails_root/Gemfile +0 -38
- data/fixture_rails_root/Gemfile.lock +0 -98
- data/fixture_rails_root/README +0 -256
- data/fixture_rails_root/Rakefile +0 -7
- data/fixture_rails_root/app/controllers/application_controller.rb +0 -3
- data/fixture_rails_root/app/helpers/application_helper.rb +0 -2
- data/fixture_rails_root/app/views/layouts/application.html.erb +0 -14
- data/fixture_rails_root/config.ru +0 -4
- data/fixture_rails_root/config/application.rb +0 -42
- data/fixture_rails_root/config/boot.rb +0 -13
- data/fixture_rails_root/config/database.yml +0 -22
- data/fixture_rails_root/config/environment.rb +0 -5
- data/fixture_rails_root/config/environments/development.rb +0 -26
- data/fixture_rails_root/config/environments/production.rb +0 -49
- data/fixture_rails_root/config/environments/test.rb +0 -35
- data/fixture_rails_root/config/initializers/backtrace_silencers.rb +0 -7
- data/fixture_rails_root/config/initializers/inflections.rb +0 -10
- data/fixture_rails_root/config/initializers/mime_types.rb +0 -5
- data/fixture_rails_root/config/initializers/secret_token.rb +0 -7
- data/fixture_rails_root/config/initializers/session_store.rb +0 -8
- data/fixture_rails_root/config/locales/en.yml +0 -5
- data/fixture_rails_root/config/routes.rb +0 -58
- data/fixture_rails_root/db/migrate/20101203193439_create_plutus_tables.rb +0 -33
- data/fixture_rails_root/db/schema.rb +0 -40
- data/fixture_rails_root/db/seeds.rb +0 -7
- data/fixture_rails_root/doc/README_FOR_APP +0 -2
- data/fixture_rails_root/lib/tasks/.gitkeep +0 -0
- data/fixture_rails_root/public/404.html +0 -26
- data/fixture_rails_root/public/422.html +0 -26
- data/fixture_rails_root/public/500.html +0 -26
- data/fixture_rails_root/public/favicon.ico +0 -0
- data/fixture_rails_root/public/images/rails.png +0 -0
- data/fixture_rails_root/public/index.html +0 -239
- data/fixture_rails_root/public/javascripts/application.js +0 -2
- data/fixture_rails_root/public/javascripts/controls.js +0 -965
- data/fixture_rails_root/public/javascripts/dragdrop.js +0 -974
- data/fixture_rails_root/public/javascripts/effects.js +0 -1123
- data/fixture_rails_root/public/javascripts/prototype.js +0 -6001
- data/fixture_rails_root/public/javascripts/rails.js +0 -175
- data/fixture_rails_root/public/robots.txt +0 -5
- data/fixture_rails_root/public/stylesheets/.gitkeep +0 -0
- data/fixture_rails_root/script/rails +0 -6
- data/fixture_rails_root/test/performance/browsing_test.rb +0 -9
- data/fixture_rails_root/test/test_helper.rb +0 -13
- data/fixture_rails_root/vendor/plugins/.gitkeep +0 -0
- data/plutus.gemspec +0 -176
- data/tasks/plutus_tasks.rake +0 -4
|
@@ -1,29 +1,32 @@
|
|
|
1
1
|
require 'spec_helper'
|
|
2
2
|
|
|
3
|
-
|
|
4
|
-
describe
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
3
|
+
module Plutus
|
|
4
|
+
describe TransactionsController do
|
|
5
|
+
# Run these tests if you enable routing in your rails app. See README
|
|
6
|
+
#describe "routing" do
|
|
7
|
+
#it "recognizes and generates #index" do
|
|
8
|
+
#{ :get => "/transactions" }.should route_to(:controller => "transactions", :action => "index")
|
|
9
|
+
#end
|
|
8
10
|
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
11
|
+
#it "recognizes and generates #show" do
|
|
12
|
+
#{ :get => "/transactions/1" }.should route_to(:controller => "transactions", :action => "show", :id => "1")
|
|
13
|
+
#end
|
|
12
14
|
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
15
|
+
#it "recognizes and generates #edit" do
|
|
16
|
+
#{ :get => "/transactions/1/edit" }.should_not be_routable
|
|
17
|
+
#end
|
|
16
18
|
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
19
|
+
#it "recognizes and generates #create" do
|
|
20
|
+
#{ :post => "/transactions" }.should_not be_routable
|
|
21
|
+
#end
|
|
20
22
|
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
23
|
+
#it "recognizes and generates #update" do
|
|
24
|
+
#{ :put => "/transactions/1" }.should_not be_routable
|
|
25
|
+
#end
|
|
24
26
|
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
27
|
+
#it "recognizes and generates #destroy" do
|
|
28
|
+
#{ :delete => "/transactions/1" }.should_not be_routable
|
|
29
|
+
#end
|
|
30
|
+
#end
|
|
28
31
|
end
|
|
29
32
|
end
|
data/spec/spec_helper.rb
CHANGED
|
@@ -1,5 +1,8 @@
|
|
|
1
|
+
require 'factory_girl'
|
|
2
|
+
|
|
1
3
|
ENV["RAILS_ENV"] ||= 'test'
|
|
2
4
|
require File.expand_path(File.dirname(__FILE__) + "/../fixture_rails_root/config/environment")
|
|
5
|
+
require Rails.root.join('db/schema').to_s
|
|
3
6
|
require 'rspec/rails'
|
|
4
7
|
|
|
5
8
|
$: << File.expand_path(File.dirname(__FILE__) + '/../lib/')
|
|
@@ -8,6 +11,5 @@ require 'plutus'
|
|
|
8
11
|
Dir[File.expand_path(File.join(File.dirname(__FILE__),'factories','**','*.rb'))].each {|f| require f}
|
|
9
12
|
|
|
10
13
|
RSpec.configure do |config|
|
|
11
|
-
config.mock_with :mocha
|
|
12
14
|
config.use_transactional_fixtures = true
|
|
13
15
|
end
|
metadata
CHANGED
|
@@ -1,144 +1,217 @@
|
|
|
1
|
-
--- !ruby/object:Gem::Specification
|
|
1
|
+
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: plutus
|
|
3
|
-
version: !ruby/object:Gem::Version
|
|
4
|
-
|
|
3
|
+
version: !ruby/object:Gem::Version
|
|
4
|
+
version: 0.7.0
|
|
5
5
|
prerelease:
|
|
6
|
-
segments:
|
|
7
|
-
- 0
|
|
8
|
-
- 5
|
|
9
|
-
- 2
|
|
10
|
-
version: 0.5.2
|
|
11
6
|
platform: ruby
|
|
12
|
-
authors:
|
|
7
|
+
authors:
|
|
13
8
|
- Michael Bulat
|
|
14
9
|
autorequire:
|
|
15
10
|
bindir: bin
|
|
16
11
|
cert_chain: []
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
12
|
+
date: 2011-03-31 00:00:00.000000000 Z
|
|
13
|
+
dependencies:
|
|
14
|
+
- !ruby/object:Gem::Dependency
|
|
15
|
+
name: rails
|
|
16
|
+
requirement: !ruby/object:Gem::Requirement
|
|
17
|
+
none: false
|
|
18
|
+
requirements:
|
|
19
|
+
- - ~>
|
|
20
|
+
- !ruby/object:Gem::Version
|
|
21
|
+
version: '3.1'
|
|
22
|
+
type: :runtime
|
|
23
|
+
prerelease: false
|
|
24
|
+
version_requirements: !ruby/object:Gem::Requirement
|
|
25
|
+
none: false
|
|
26
|
+
requirements:
|
|
27
|
+
- - ~>
|
|
28
|
+
- !ruby/object:Gem::Version
|
|
29
|
+
version: '3.1'
|
|
30
|
+
- !ruby/object:Gem::Dependency
|
|
31
|
+
name: sqlite3
|
|
32
|
+
requirement: !ruby/object:Gem::Requirement
|
|
33
|
+
none: false
|
|
34
|
+
requirements:
|
|
35
|
+
- - ! '>='
|
|
36
|
+
- !ruby/object:Gem::Version
|
|
37
|
+
version: '0'
|
|
38
|
+
type: :development
|
|
39
|
+
prerelease: false
|
|
40
|
+
version_requirements: !ruby/object:Gem::Requirement
|
|
41
|
+
none: false
|
|
42
|
+
requirements:
|
|
43
|
+
- - ! '>='
|
|
44
|
+
- !ruby/object:Gem::Version
|
|
45
|
+
version: '0'
|
|
46
|
+
- !ruby/object:Gem::Dependency
|
|
47
|
+
name: rspec
|
|
48
|
+
requirement: !ruby/object:Gem::Requirement
|
|
49
|
+
none: false
|
|
50
|
+
requirements:
|
|
51
|
+
- - ~>
|
|
52
|
+
- !ruby/object:Gem::Version
|
|
53
|
+
version: '2.6'
|
|
54
|
+
type: :development
|
|
55
|
+
prerelease: false
|
|
56
|
+
version_requirements: !ruby/object:Gem::Requirement
|
|
57
|
+
none: false
|
|
58
|
+
requirements:
|
|
59
|
+
- - ~>
|
|
60
|
+
- !ruby/object:Gem::Version
|
|
61
|
+
version: '2.6'
|
|
62
|
+
- !ruby/object:Gem::Dependency
|
|
63
|
+
name: rspec-rails
|
|
64
|
+
requirement: !ruby/object:Gem::Requirement
|
|
65
|
+
none: false
|
|
66
|
+
requirements:
|
|
67
|
+
- - ~>
|
|
68
|
+
- !ruby/object:Gem::Version
|
|
69
|
+
version: '2.6'
|
|
70
|
+
type: :development
|
|
71
|
+
prerelease: false
|
|
72
|
+
version_requirements: !ruby/object:Gem::Requirement
|
|
73
|
+
none: false
|
|
74
|
+
requirements:
|
|
75
|
+
- - ~>
|
|
76
|
+
- !ruby/object:Gem::Version
|
|
77
|
+
version: '2.6'
|
|
78
|
+
- !ruby/object:Gem::Dependency
|
|
79
|
+
name: rspec-rails
|
|
80
|
+
requirement: !ruby/object:Gem::Requirement
|
|
81
|
+
none: false
|
|
82
|
+
requirements:
|
|
83
|
+
- - ~>
|
|
84
|
+
- !ruby/object:Gem::Version
|
|
85
|
+
version: '2.6'
|
|
86
|
+
type: :development
|
|
87
|
+
prerelease: false
|
|
88
|
+
version_requirements: !ruby/object:Gem::Requirement
|
|
89
|
+
none: false
|
|
90
|
+
requirements:
|
|
91
|
+
- - ~>
|
|
92
|
+
- !ruby/object:Gem::Version
|
|
93
|
+
version: '2.6'
|
|
94
|
+
- !ruby/object:Gem::Dependency
|
|
95
|
+
name: factory_girl
|
|
96
|
+
requirement: !ruby/object:Gem::Requirement
|
|
97
|
+
none: false
|
|
98
|
+
requirements:
|
|
99
|
+
- - ! '>='
|
|
100
|
+
- !ruby/object:Gem::Version
|
|
101
|
+
version: '0'
|
|
102
|
+
type: :development
|
|
103
|
+
prerelease: false
|
|
104
|
+
version_requirements: !ruby/object:Gem::Requirement
|
|
105
|
+
none: false
|
|
106
|
+
requirements:
|
|
107
|
+
- - ! '>='
|
|
108
|
+
- !ruby/object:Gem::Version
|
|
109
|
+
version: '0'
|
|
110
|
+
- !ruby/object:Gem::Dependency
|
|
111
|
+
name: factory_girl_rails
|
|
112
|
+
requirement: !ruby/object:Gem::Requirement
|
|
113
|
+
none: false
|
|
114
|
+
requirements:
|
|
115
|
+
- - ~>
|
|
116
|
+
- !ruby/object:Gem::Version
|
|
117
|
+
version: '1.1'
|
|
118
|
+
type: :development
|
|
119
|
+
prerelease: false
|
|
120
|
+
version_requirements: !ruby/object:Gem::Requirement
|
|
121
|
+
none: false
|
|
122
|
+
requirements:
|
|
123
|
+
- - ~>
|
|
124
|
+
- !ruby/object:Gem::Version
|
|
125
|
+
version: '1.1'
|
|
126
|
+
- !ruby/object:Gem::Dependency
|
|
127
|
+
name: yard
|
|
128
|
+
requirement: !ruby/object:Gem::Requirement
|
|
129
|
+
none: false
|
|
130
|
+
requirements:
|
|
131
|
+
- - ! '>='
|
|
132
|
+
- !ruby/object:Gem::Version
|
|
133
|
+
version: '0'
|
|
134
|
+
type: :development
|
|
135
|
+
prerelease: false
|
|
136
|
+
version_requirements: !ruby/object:Gem::Requirement
|
|
137
|
+
none: false
|
|
138
|
+
requirements:
|
|
139
|
+
- - ! '>='
|
|
140
|
+
- !ruby/object:Gem::Version
|
|
141
|
+
version: '0'
|
|
142
|
+
- !ruby/object:Gem::Dependency
|
|
143
|
+
name: redcarpet
|
|
144
|
+
requirement: !ruby/object:Gem::Requirement
|
|
145
|
+
none: false
|
|
146
|
+
requirements:
|
|
147
|
+
- - ! '>='
|
|
148
|
+
- !ruby/object:Gem::Version
|
|
149
|
+
version: '0'
|
|
150
|
+
type: :development
|
|
151
|
+
prerelease: false
|
|
152
|
+
version_requirements: !ruby/object:Gem::Requirement
|
|
153
|
+
none: false
|
|
154
|
+
requirements:
|
|
155
|
+
- - ! '>='
|
|
156
|
+
- !ruby/object:Gem::Version
|
|
157
|
+
version: '0'
|
|
158
|
+
description: The plutus plugin provides a complete double entry accounting system
|
|
159
|
+
for use in any Ruby on Rails application. The plugin follows general Double Entry
|
|
160
|
+
Bookkeeping practices. All calculations are done using BigDecimal in order to prevent
|
|
161
|
+
floating point rounding errors. The plugin requires a decimal type on your database
|
|
162
|
+
as well.
|
|
23
163
|
email: mbulat@crazydogsoftware.com
|
|
24
164
|
executables: []
|
|
25
|
-
|
|
26
165
|
extensions: []
|
|
27
|
-
|
|
28
|
-
extra_rdoc_files:
|
|
166
|
+
extra_rdoc_files:
|
|
29
167
|
- LICENSE
|
|
30
168
|
- README.markdown
|
|
31
|
-
files:
|
|
32
|
-
- .
|
|
33
|
-
-
|
|
34
|
-
-
|
|
35
|
-
-
|
|
36
|
-
-
|
|
37
|
-
- app/
|
|
38
|
-
- app/
|
|
39
|
-
- app/models/
|
|
40
|
-
- app/models/
|
|
41
|
-
- app/models/
|
|
42
|
-
- app/models/
|
|
43
|
-
- app/models/
|
|
44
|
-
- app/models/
|
|
45
|
-
- app/models/
|
|
46
|
-
- app/
|
|
47
|
-
- app/views/accounts/
|
|
48
|
-
- app/views/
|
|
49
|
-
- app/views/
|
|
50
|
-
- app/views/transactions/
|
|
51
|
-
- app/views/transactions/show.html.erb
|
|
169
|
+
files:
|
|
170
|
+
- app/assets/javascripts/plutus/application.js
|
|
171
|
+
- app/assets/stylesheets/plutus/application.css
|
|
172
|
+
- app/assets/stylesheets/plutus/main.css.scss
|
|
173
|
+
- app/controllers/plutus/accounts_controller.rb
|
|
174
|
+
- app/controllers/plutus/transactions_controller.rb
|
|
175
|
+
- app/models/plutus/account.rb
|
|
176
|
+
- app/models/plutus/amount.rb
|
|
177
|
+
- app/models/plutus/asset.rb
|
|
178
|
+
- app/models/plutus/credit_amount.rb
|
|
179
|
+
- app/models/plutus/debit_amount.rb
|
|
180
|
+
- app/models/plutus/equity.rb
|
|
181
|
+
- app/models/plutus/expense.rb
|
|
182
|
+
- app/models/plutus/liability.rb
|
|
183
|
+
- app/models/plutus/revenue.rb
|
|
184
|
+
- app/models/plutus/transaction.rb
|
|
185
|
+
- app/views/plutus/accounts/index.html.erb
|
|
186
|
+
- app/views/plutus/accounts/show.html.erb
|
|
187
|
+
- app/views/plutus/transactions/index.html.erb
|
|
188
|
+
- app/views/plutus/transactions/show.html.erb
|
|
52
189
|
- config/backtrace_silencers.rb
|
|
190
|
+
- config/database.yml
|
|
53
191
|
- config/inflections.rb
|
|
54
192
|
- config/mime_types.rb
|
|
193
|
+
- config/routes.rb
|
|
55
194
|
- config/secret_token.rb
|
|
56
195
|
- config/session_store.rb
|
|
57
|
-
- doc/Account.html
|
|
58
|
-
- doc/AccountsController.html
|
|
59
|
-
- doc/Asset.html
|
|
60
|
-
- doc/CreatePlutusTables.html
|
|
61
|
-
- doc/Equity.html
|
|
62
|
-
- doc/Expense.html
|
|
63
|
-
- doc/Liability.html
|
|
64
|
-
- doc/Plutus.html
|
|
65
|
-
- doc/Plutus/Engine.html
|
|
66
|
-
- doc/PlutusGenerator.html
|
|
67
|
-
- doc/Revenue.html
|
|
68
|
-
- doc/Transaction.html
|
|
69
|
-
- doc/TransactionsController.html
|
|
70
|
-
- doc/_index.html
|
|
71
|
-
- doc/class_list.html
|
|
72
|
-
- doc/css/common.css
|
|
73
|
-
- doc/css/full_list.css
|
|
74
|
-
- doc/css/style.css
|
|
75
|
-
- doc/file.README.html
|
|
76
|
-
- doc/file_list.html
|
|
77
|
-
- doc/frames.html
|
|
78
|
-
- doc/index.html
|
|
79
|
-
- doc/js/app.js
|
|
80
|
-
- doc/js/full_list.js
|
|
81
|
-
- doc/js/jquery.js
|
|
82
|
-
- doc/method_list.html
|
|
83
|
-
- doc/top-level-namespace.html
|
|
84
|
-
- fixture_rails_root/.gitignore
|
|
85
|
-
- fixture_rails_root/Gemfile
|
|
86
|
-
- fixture_rails_root/Gemfile.lock
|
|
87
|
-
- fixture_rails_root/README
|
|
88
|
-
- fixture_rails_root/Rakefile
|
|
89
|
-
- fixture_rails_root/app/controllers/application_controller.rb
|
|
90
|
-
- fixture_rails_root/app/helpers/application_helper.rb
|
|
91
|
-
- fixture_rails_root/app/views/layouts/application.html.erb
|
|
92
|
-
- fixture_rails_root/config.ru
|
|
93
|
-
- fixture_rails_root/config/application.rb
|
|
94
|
-
- fixture_rails_root/config/boot.rb
|
|
95
|
-
- fixture_rails_root/config/database.yml
|
|
96
|
-
- fixture_rails_root/config/environment.rb
|
|
97
|
-
- fixture_rails_root/config/environments/development.rb
|
|
98
|
-
- fixture_rails_root/config/environments/production.rb
|
|
99
|
-
- fixture_rails_root/config/environments/test.rb
|
|
100
|
-
- fixture_rails_root/config/initializers/backtrace_silencers.rb
|
|
101
|
-
- fixture_rails_root/config/initializers/inflections.rb
|
|
102
|
-
- fixture_rails_root/config/initializers/mime_types.rb
|
|
103
|
-
- fixture_rails_root/config/initializers/secret_token.rb
|
|
104
|
-
- fixture_rails_root/config/initializers/session_store.rb
|
|
105
|
-
- fixture_rails_root/config/locales/en.yml
|
|
106
|
-
- fixture_rails_root/config/routes.rb
|
|
107
|
-
- fixture_rails_root/db/migrate/20101203193439_create_plutus_tables.rb
|
|
108
|
-
- fixture_rails_root/db/schema.rb
|
|
109
|
-
- fixture_rails_root/db/seeds.rb
|
|
110
|
-
- fixture_rails_root/doc/README_FOR_APP
|
|
111
|
-
- fixture_rails_root/lib/tasks/.gitkeep
|
|
112
|
-
- fixture_rails_root/public/404.html
|
|
113
|
-
- fixture_rails_root/public/422.html
|
|
114
|
-
- fixture_rails_root/public/500.html
|
|
115
|
-
- fixture_rails_root/public/favicon.ico
|
|
116
|
-
- fixture_rails_root/public/images/rails.png
|
|
117
|
-
- fixture_rails_root/public/index.html
|
|
118
|
-
- fixture_rails_root/public/javascripts/application.js
|
|
119
|
-
- fixture_rails_root/public/javascripts/controls.js
|
|
120
|
-
- fixture_rails_root/public/javascripts/dragdrop.js
|
|
121
|
-
- fixture_rails_root/public/javascripts/effects.js
|
|
122
|
-
- fixture_rails_root/public/javascripts/prototype.js
|
|
123
|
-
- fixture_rails_root/public/javascripts/rails.js
|
|
124
|
-
- fixture_rails_root/public/robots.txt
|
|
125
|
-
- fixture_rails_root/public/stylesheets/.gitkeep
|
|
126
|
-
- fixture_rails_root/script/rails
|
|
127
|
-
- fixture_rails_root/test/performance/browsing_test.rb
|
|
128
|
-
- fixture_rails_root/test/test_helper.rb
|
|
129
|
-
- fixture_rails_root/vendor/plugins/.gitkeep
|
|
130
|
-
- lib/generators/plutus/USAGE
|
|
131
196
|
- lib/generators/plutus/plutus_generator.rb
|
|
132
197
|
- lib/generators/plutus/templates/migration.rb
|
|
198
|
+
- lib/generators/plutus/USAGE
|
|
199
|
+
- lib/plutus/version.rb
|
|
133
200
|
- lib/plutus.rb
|
|
134
|
-
-
|
|
201
|
+
- LICENSE
|
|
202
|
+
- Rakefile
|
|
203
|
+
- README.markdown
|
|
135
204
|
- spec/controllers/accounts_controller_spec.rb
|
|
136
205
|
- spec/controllers/transactions_controller_spec.rb
|
|
137
206
|
- spec/factories/account_factory.rb
|
|
207
|
+
- spec/factories/amount_factory.rb
|
|
138
208
|
- spec/factories/transaction_factory.rb
|
|
139
209
|
- spec/lib/plutus_spec.rb
|
|
140
210
|
- spec/models/account_spec.rb
|
|
211
|
+
- spec/models/amount_spec.rb
|
|
141
212
|
- spec/models/asset_spec.rb
|
|
213
|
+
- spec/models/credit_amount_spec.rb
|
|
214
|
+
- spec/models/debit_amount_spec.rb
|
|
142
215
|
- spec/models/equity_spec.rb
|
|
143
216
|
- spec/models/expense_spec.rb
|
|
144
217
|
- spec/models/liability_spec.rb
|
|
@@ -150,55 +223,51 @@ files:
|
|
|
150
223
|
- spec/schema.rb
|
|
151
224
|
- spec/spec.opts
|
|
152
225
|
- spec/spec_helper.rb
|
|
153
|
-
|
|
154
|
-
has_rdoc: true
|
|
155
|
-
homepage: http://github.com/mbulat/Plutus
|
|
226
|
+
homepage: http://github.com/mbulat/plutus
|
|
156
227
|
licenses: []
|
|
157
|
-
|
|
158
228
|
post_install_message:
|
|
159
229
|
rdoc_options: []
|
|
160
|
-
|
|
161
|
-
require_paths:
|
|
230
|
+
require_paths:
|
|
162
231
|
- lib
|
|
163
|
-
required_ruby_version: !ruby/object:Gem::Requirement
|
|
232
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
|
164
233
|
none: false
|
|
165
|
-
requirements:
|
|
166
|
-
- -
|
|
167
|
-
- !ruby/object:Gem::Version
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
- 0
|
|
171
|
-
version: "0"
|
|
172
|
-
required_rubygems_version: !ruby/object:Gem::Requirement
|
|
234
|
+
requirements:
|
|
235
|
+
- - ! '>='
|
|
236
|
+
- !ruby/object:Gem::Version
|
|
237
|
+
version: '0'
|
|
238
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
|
173
239
|
none: false
|
|
174
|
-
requirements:
|
|
175
|
-
- -
|
|
176
|
-
- !ruby/object:Gem::Version
|
|
177
|
-
|
|
178
|
-
segments:
|
|
179
|
-
- 0
|
|
180
|
-
version: "0"
|
|
240
|
+
requirements:
|
|
241
|
+
- - ! '>='
|
|
242
|
+
- !ruby/object:Gem::Version
|
|
243
|
+
version: 1.3.6
|
|
181
244
|
requirements: []
|
|
182
|
-
|
|
183
245
|
rubyforge_project:
|
|
184
|
-
rubygems_version: 1.
|
|
246
|
+
rubygems_version: 1.8.23
|
|
185
247
|
signing_key:
|
|
186
248
|
specification_version: 3
|
|
187
249
|
summary: A Plugin providing a Double Entry Accounting Engine for Rails
|
|
188
|
-
test_files:
|
|
250
|
+
test_files:
|
|
189
251
|
- spec/controllers/accounts_controller_spec.rb
|
|
190
252
|
- spec/controllers/transactions_controller_spec.rb
|
|
191
253
|
- spec/factories/account_factory.rb
|
|
254
|
+
- spec/factories/amount_factory.rb
|
|
192
255
|
- spec/factories/transaction_factory.rb
|
|
193
256
|
- spec/lib/plutus_spec.rb
|
|
194
257
|
- spec/models/account_spec.rb
|
|
258
|
+
- spec/models/amount_spec.rb
|
|
195
259
|
- spec/models/asset_spec.rb
|
|
260
|
+
- spec/models/credit_amount_spec.rb
|
|
261
|
+
- spec/models/debit_amount_spec.rb
|
|
196
262
|
- spec/models/equity_spec.rb
|
|
197
263
|
- spec/models/expense_spec.rb
|
|
198
264
|
- spec/models/liability_spec.rb
|
|
199
265
|
- spec/models/revenue_spec.rb
|
|
200
266
|
- spec/models/transaction_spec.rb
|
|
267
|
+
- spec/rcov.opts
|
|
201
268
|
- spec/routing/accounts_routing_spec.rb
|
|
202
269
|
- spec/routing/transactions_routing_spec.rb
|
|
203
270
|
- spec/schema.rb
|
|
271
|
+
- spec/spec.opts
|
|
204
272
|
- spec/spec_helper.rb
|
|
273
|
+
has_rdoc:
|