borutus 0.1.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +7 -0
- data/LICENSE +21 -0
- data/README.md +346 -0
- data/Rakefile +11 -0
- data/app/assets/javascripts/borutus/application.js +16 -0
- data/app/assets/javascripts/borutus/reports.js +5 -0
- data/app/assets/stylesheets/bootstrap-theme.min.css +5 -0
- data/app/assets/stylesheets/bootstrap.min.css +5 -0
- data/app/assets/stylesheets/borutus/application.css +19 -0
- data/app/controllers/borutus/accounts_controller.rb +30 -0
- data/app/controllers/borutus/application_controller.rb +4 -0
- data/app/controllers/borutus/entries_controller.rb +34 -0
- data/app/controllers/borutus/reports_controller.rb +40 -0
- data/app/models/borutus/account.rb +180 -0
- data/app/models/borutus/amount.rb +24 -0
- data/app/models/borutus/amounts_extension.rb +42 -0
- data/app/models/borutus/asset.rb +56 -0
- data/app/models/borutus/credit_amount.rb +10 -0
- data/app/models/borutus/debit_amount.rb +10 -0
- data/app/models/borutus/entry.rb +77 -0
- data/app/models/borutus/equity.rb +56 -0
- data/app/models/borutus/expense.rb +56 -0
- data/app/models/borutus/liability.rb +56 -0
- data/app/models/borutus/no_tenancy.rb +9 -0
- data/app/models/borutus/revenue.rb +56 -0
- data/app/models/borutus/tenancy.rb +15 -0
- data/app/views/borutus/accounts/index.html.erb +26 -0
- data/app/views/borutus/entries/index.html.erb +59 -0
- data/app/views/borutus/reports/_account.html.erb +28 -0
- data/app/views/borutus/reports/balance_sheet.html.erb +21 -0
- data/app/views/borutus/reports/income_statement.html.erb +24 -0
- data/app/views/layouts/borutus/_messages.html.erb +9 -0
- data/app/views/layouts/borutus/_navigation.html.erb +19 -0
- data/app/views/layouts/borutus/_navigation_links.html.erb +5 -0
- data/app/views/layouts/borutus/application.html.erb +19 -0
- data/config/backtrace_silencers.rb +7 -0
- data/config/database.yml +5 -0
- data/config/inflections.rb +10 -0
- data/config/mime_types.rb +5 -0
- data/config/routes.rb +9 -0
- data/config/secret_token.rb +7 -0
- data/config/session_store.rb +8 -0
- data/db/migrate/20160422010135_create_borutus_tables.rb +33 -0
- data/lib/borutus.rb +20 -0
- data/lib/borutus/engine.rb +5 -0
- data/lib/borutus/version.rb +3 -0
- data/lib/generators/borutus/USAGE +13 -0
- data/lib/generators/borutus/add_date_upgrade_generator.rb +11 -0
- data/lib/generators/borutus/base_generator.rb +19 -0
- data/lib/generators/borutus/borutus_generator.rb +12 -0
- data/lib/generators/borutus/templates/tenant_migration.rb +6 -0
- data/lib/generators/borutus/tenancy_generator.rb +12 -0
- data/lib/generators/borutus/upgrade_borutus_generator.rb +12 -0
- data/spec/controllers/accounts_controller_spec.rb +19 -0
- data/spec/controllers/entries_controller_spec.rb +19 -0
- data/spec/controllers/reports_controller_spec.rb +24 -0
- data/spec/factories/account_factory.rb +35 -0
- data/spec/factories/amount_factory.rb +19 -0
- data/spec/factories/entry_factory.rb +11 -0
- data/spec/lib/borutus_spec.rb +0 -0
- data/spec/models/account_spec.rb +140 -0
- data/spec/models/amount_spec.rb +13 -0
- data/spec/models/asset_spec.rb +7 -0
- data/spec/models/credit_amount_spec.rb +7 -0
- data/spec/models/debit_amount_spec.rb +7 -0
- data/spec/models/entry_spec.rb +170 -0
- data/spec/models/equity_spec.rb +7 -0
- data/spec/models/expense_spec.rb +7 -0
- data/spec/models/liability_spec.rb +7 -0
- data/spec/models/revenue_spec.rb +7 -0
- data/spec/models/tenancy_spec.rb +45 -0
- data/spec/rcov.opts +2 -0
- data/spec/routing/accounts_routing_spec.rb +13 -0
- data/spec/routing/entries_routing_spec.rb +13 -0
- data/spec/spec.opts +4 -0
- data/spec/spec_helper.rb +26 -0
- data/spec/support/account_shared_examples.rb +60 -0
- data/spec/support/active_support_helpers.rb +13 -0
- data/spec/support/amount_shared_examples.rb +21 -0
- data/spec/support/factory_girl_helpers.rb +8 -0
- data/spec/support/shoulda_matchers.rb +8 -0
- metadata +243 -0
metadata
ADDED
@@ -0,0 +1,243 @@
|
|
1
|
+
--- !ruby/object:Gem::Specification
|
2
|
+
name: borutus
|
3
|
+
version: !ruby/object:Gem::Version
|
4
|
+
version: 0.1.0
|
5
|
+
platform: ruby
|
6
|
+
authors:
|
7
|
+
- Ramon Tayag
|
8
|
+
- Ace Subido
|
9
|
+
autorequire:
|
10
|
+
bindir: bin
|
11
|
+
cert_chain: []
|
12
|
+
date: 2018-07-24 00:00:00.000000000 Z
|
13
|
+
dependencies:
|
14
|
+
- !ruby/object:Gem::Dependency
|
15
|
+
name: rails
|
16
|
+
requirement: !ruby/object:Gem::Requirement
|
17
|
+
requirements:
|
18
|
+
- - ">"
|
19
|
+
- !ruby/object:Gem::Version
|
20
|
+
version: '4.0'
|
21
|
+
type: :runtime
|
22
|
+
prerelease: false
|
23
|
+
version_requirements: !ruby/object:Gem::Requirement
|
24
|
+
requirements:
|
25
|
+
- - ">"
|
26
|
+
- !ruby/object:Gem::Version
|
27
|
+
version: '4.0'
|
28
|
+
- !ruby/object:Gem::Dependency
|
29
|
+
name: jquery-rails
|
30
|
+
requirement: !ruby/object:Gem::Requirement
|
31
|
+
requirements:
|
32
|
+
- - ">="
|
33
|
+
- !ruby/object:Gem::Version
|
34
|
+
version: '3.0'
|
35
|
+
type: :runtime
|
36
|
+
prerelease: false
|
37
|
+
version_requirements: !ruby/object:Gem::Requirement
|
38
|
+
requirements:
|
39
|
+
- - ">="
|
40
|
+
- !ruby/object:Gem::Version
|
41
|
+
version: '3.0'
|
42
|
+
- !ruby/object:Gem::Dependency
|
43
|
+
name: jquery-ui-rails
|
44
|
+
requirement: !ruby/object:Gem::Requirement
|
45
|
+
requirements:
|
46
|
+
- - ">="
|
47
|
+
- !ruby/object:Gem::Version
|
48
|
+
version: 4.2.2
|
49
|
+
type: :runtime
|
50
|
+
prerelease: false
|
51
|
+
version_requirements: !ruby/object:Gem::Requirement
|
52
|
+
requirements:
|
53
|
+
- - ">="
|
54
|
+
- !ruby/object:Gem::Version
|
55
|
+
version: 4.2.2
|
56
|
+
- !ruby/object:Gem::Dependency
|
57
|
+
name: kaminari
|
58
|
+
requirement: !ruby/object:Gem::Requirement
|
59
|
+
requirements:
|
60
|
+
- - "~>"
|
61
|
+
- !ruby/object:Gem::Version
|
62
|
+
version: '1.0'
|
63
|
+
type: :runtime
|
64
|
+
prerelease: false
|
65
|
+
version_requirements: !ruby/object:Gem::Requirement
|
66
|
+
requirements:
|
67
|
+
- - "~>"
|
68
|
+
- !ruby/object:Gem::Version
|
69
|
+
version: '1.0'
|
70
|
+
- !ruby/object:Gem::Dependency
|
71
|
+
name: yard
|
72
|
+
requirement: !ruby/object:Gem::Requirement
|
73
|
+
requirements:
|
74
|
+
- - ">="
|
75
|
+
- !ruby/object:Gem::Version
|
76
|
+
version: '0'
|
77
|
+
type: :development
|
78
|
+
prerelease: false
|
79
|
+
version_requirements: !ruby/object:Gem::Requirement
|
80
|
+
requirements:
|
81
|
+
- - ">="
|
82
|
+
- !ruby/object:Gem::Version
|
83
|
+
version: '0'
|
84
|
+
- !ruby/object:Gem::Dependency
|
85
|
+
name: shoulda-matchers
|
86
|
+
requirement: !ruby/object:Gem::Requirement
|
87
|
+
requirements:
|
88
|
+
- - ">="
|
89
|
+
- !ruby/object:Gem::Version
|
90
|
+
version: '0'
|
91
|
+
type: :development
|
92
|
+
prerelease: false
|
93
|
+
version_requirements: !ruby/object:Gem::Requirement
|
94
|
+
requirements:
|
95
|
+
- - ">="
|
96
|
+
- !ruby/object:Gem::Version
|
97
|
+
version: '0'
|
98
|
+
description: The borutus plugin provides a complete double entry accounting system
|
99
|
+
for use in any Ruby on Rails application. The plugin follows general Double Entry
|
100
|
+
Bookkeeping practices. All calculations are done using BigDecimal in order to prevent
|
101
|
+
floating point rounding errors. The plugin requires a decimal type on your database
|
102
|
+
as well.
|
103
|
+
email:
|
104
|
+
- ramon.tayag@gmail.com
|
105
|
+
- ace.subido@gmail.com
|
106
|
+
executables: []
|
107
|
+
extensions: []
|
108
|
+
extra_rdoc_files:
|
109
|
+
- LICENSE
|
110
|
+
- README.md
|
111
|
+
files:
|
112
|
+
- LICENSE
|
113
|
+
- README.md
|
114
|
+
- Rakefile
|
115
|
+
- app/assets/javascripts/borutus/application.js
|
116
|
+
- app/assets/javascripts/borutus/reports.js
|
117
|
+
- app/assets/stylesheets/bootstrap-theme.min.css
|
118
|
+
- app/assets/stylesheets/bootstrap.min.css
|
119
|
+
- app/assets/stylesheets/borutus/application.css
|
120
|
+
- app/controllers/borutus/accounts_controller.rb
|
121
|
+
- app/controllers/borutus/application_controller.rb
|
122
|
+
- app/controllers/borutus/entries_controller.rb
|
123
|
+
- app/controllers/borutus/reports_controller.rb
|
124
|
+
- app/models/borutus/account.rb
|
125
|
+
- app/models/borutus/amount.rb
|
126
|
+
- app/models/borutus/amounts_extension.rb
|
127
|
+
- app/models/borutus/asset.rb
|
128
|
+
- app/models/borutus/credit_amount.rb
|
129
|
+
- app/models/borutus/debit_amount.rb
|
130
|
+
- app/models/borutus/entry.rb
|
131
|
+
- app/models/borutus/equity.rb
|
132
|
+
- app/models/borutus/expense.rb
|
133
|
+
- app/models/borutus/liability.rb
|
134
|
+
- app/models/borutus/no_tenancy.rb
|
135
|
+
- app/models/borutus/revenue.rb
|
136
|
+
- app/models/borutus/tenancy.rb
|
137
|
+
- app/views/borutus/accounts/index.html.erb
|
138
|
+
- app/views/borutus/entries/index.html.erb
|
139
|
+
- app/views/borutus/reports/_account.html.erb
|
140
|
+
- app/views/borutus/reports/balance_sheet.html.erb
|
141
|
+
- app/views/borutus/reports/income_statement.html.erb
|
142
|
+
- app/views/layouts/borutus/_messages.html.erb
|
143
|
+
- app/views/layouts/borutus/_navigation.html.erb
|
144
|
+
- app/views/layouts/borutus/_navigation_links.html.erb
|
145
|
+
- app/views/layouts/borutus/application.html.erb
|
146
|
+
- config/backtrace_silencers.rb
|
147
|
+
- config/database.yml
|
148
|
+
- config/inflections.rb
|
149
|
+
- config/mime_types.rb
|
150
|
+
- config/routes.rb
|
151
|
+
- config/secret_token.rb
|
152
|
+
- config/session_store.rb
|
153
|
+
- db/migrate/20160422010135_create_borutus_tables.rb
|
154
|
+
- lib/borutus.rb
|
155
|
+
- lib/borutus/engine.rb
|
156
|
+
- lib/borutus/version.rb
|
157
|
+
- lib/generators/borutus/USAGE
|
158
|
+
- lib/generators/borutus/add_date_upgrade_generator.rb
|
159
|
+
- lib/generators/borutus/base_generator.rb
|
160
|
+
- lib/generators/borutus/borutus_generator.rb
|
161
|
+
- lib/generators/borutus/templates/tenant_migration.rb
|
162
|
+
- lib/generators/borutus/tenancy_generator.rb
|
163
|
+
- lib/generators/borutus/upgrade_borutus_generator.rb
|
164
|
+
- spec/controllers/accounts_controller_spec.rb
|
165
|
+
- spec/controllers/entries_controller_spec.rb
|
166
|
+
- spec/controllers/reports_controller_spec.rb
|
167
|
+
- spec/factories/account_factory.rb
|
168
|
+
- spec/factories/amount_factory.rb
|
169
|
+
- spec/factories/entry_factory.rb
|
170
|
+
- spec/lib/borutus_spec.rb
|
171
|
+
- spec/models/account_spec.rb
|
172
|
+
- spec/models/amount_spec.rb
|
173
|
+
- spec/models/asset_spec.rb
|
174
|
+
- spec/models/credit_amount_spec.rb
|
175
|
+
- spec/models/debit_amount_spec.rb
|
176
|
+
- spec/models/entry_spec.rb
|
177
|
+
- spec/models/equity_spec.rb
|
178
|
+
- spec/models/expense_spec.rb
|
179
|
+
- spec/models/liability_spec.rb
|
180
|
+
- spec/models/revenue_spec.rb
|
181
|
+
- spec/models/tenancy_spec.rb
|
182
|
+
- spec/rcov.opts
|
183
|
+
- spec/routing/accounts_routing_spec.rb
|
184
|
+
- spec/routing/entries_routing_spec.rb
|
185
|
+
- spec/spec.opts
|
186
|
+
- spec/spec_helper.rb
|
187
|
+
- spec/support/account_shared_examples.rb
|
188
|
+
- spec/support/active_support_helpers.rb
|
189
|
+
- spec/support/amount_shared_examples.rb
|
190
|
+
- spec/support/factory_girl_helpers.rb
|
191
|
+
- spec/support/shoulda_matchers.rb
|
192
|
+
homepage: http://github.com/bloom-solutions/borutus
|
193
|
+
licenses: []
|
194
|
+
metadata: {}
|
195
|
+
post_install_message:
|
196
|
+
rdoc_options: []
|
197
|
+
require_paths:
|
198
|
+
- lib
|
199
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
200
|
+
requirements:
|
201
|
+
- - ">="
|
202
|
+
- !ruby/object:Gem::Version
|
203
|
+
version: '0'
|
204
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
205
|
+
requirements:
|
206
|
+
- - ">="
|
207
|
+
- !ruby/object:Gem::Version
|
208
|
+
version: '0'
|
209
|
+
requirements: []
|
210
|
+
rubyforge_project:
|
211
|
+
rubygems_version: 2.7.6
|
212
|
+
signing_key:
|
213
|
+
specification_version: 3
|
214
|
+
summary: A Plugin providing a Double Entry Accounting Engine for Rails
|
215
|
+
test_files:
|
216
|
+
- spec/controllers/accounts_controller_spec.rb
|
217
|
+
- spec/controllers/entries_controller_spec.rb
|
218
|
+
- spec/controllers/reports_controller_spec.rb
|
219
|
+
- spec/factories/account_factory.rb
|
220
|
+
- spec/factories/amount_factory.rb
|
221
|
+
- spec/factories/entry_factory.rb
|
222
|
+
- spec/lib/borutus_spec.rb
|
223
|
+
- spec/models/account_spec.rb
|
224
|
+
- spec/models/amount_spec.rb
|
225
|
+
- spec/models/asset_spec.rb
|
226
|
+
- spec/models/credit_amount_spec.rb
|
227
|
+
- spec/models/debit_amount_spec.rb
|
228
|
+
- spec/models/entry_spec.rb
|
229
|
+
- spec/models/equity_spec.rb
|
230
|
+
- spec/models/expense_spec.rb
|
231
|
+
- spec/models/liability_spec.rb
|
232
|
+
- spec/models/revenue_spec.rb
|
233
|
+
- spec/models/tenancy_spec.rb
|
234
|
+
- spec/rcov.opts
|
235
|
+
- spec/routing/accounts_routing_spec.rb
|
236
|
+
- spec/routing/entries_routing_spec.rb
|
237
|
+
- spec/spec.opts
|
238
|
+
- spec/spec_helper.rb
|
239
|
+
- spec/support/account_shared_examples.rb
|
240
|
+
- spec/support/active_support_helpers.rb
|
241
|
+
- spec/support/amount_shared_examples.rb
|
242
|
+
- spec/support/factory_girl_helpers.rb
|
243
|
+
- spec/support/shoulda_matchers.rb
|