borutus 0.1.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (82) hide show
  1. checksums.yaml +7 -0
  2. data/LICENSE +21 -0
  3. data/README.md +346 -0
  4. data/Rakefile +11 -0
  5. data/app/assets/javascripts/borutus/application.js +16 -0
  6. data/app/assets/javascripts/borutus/reports.js +5 -0
  7. data/app/assets/stylesheets/bootstrap-theme.min.css +5 -0
  8. data/app/assets/stylesheets/bootstrap.min.css +5 -0
  9. data/app/assets/stylesheets/borutus/application.css +19 -0
  10. data/app/controllers/borutus/accounts_controller.rb +30 -0
  11. data/app/controllers/borutus/application_controller.rb +4 -0
  12. data/app/controllers/borutus/entries_controller.rb +34 -0
  13. data/app/controllers/borutus/reports_controller.rb +40 -0
  14. data/app/models/borutus/account.rb +180 -0
  15. data/app/models/borutus/amount.rb +24 -0
  16. data/app/models/borutus/amounts_extension.rb +42 -0
  17. data/app/models/borutus/asset.rb +56 -0
  18. data/app/models/borutus/credit_amount.rb +10 -0
  19. data/app/models/borutus/debit_amount.rb +10 -0
  20. data/app/models/borutus/entry.rb +77 -0
  21. data/app/models/borutus/equity.rb +56 -0
  22. data/app/models/borutus/expense.rb +56 -0
  23. data/app/models/borutus/liability.rb +56 -0
  24. data/app/models/borutus/no_tenancy.rb +9 -0
  25. data/app/models/borutus/revenue.rb +56 -0
  26. data/app/models/borutus/tenancy.rb +15 -0
  27. data/app/views/borutus/accounts/index.html.erb +26 -0
  28. data/app/views/borutus/entries/index.html.erb +59 -0
  29. data/app/views/borutus/reports/_account.html.erb +28 -0
  30. data/app/views/borutus/reports/balance_sheet.html.erb +21 -0
  31. data/app/views/borutus/reports/income_statement.html.erb +24 -0
  32. data/app/views/layouts/borutus/_messages.html.erb +9 -0
  33. data/app/views/layouts/borutus/_navigation.html.erb +19 -0
  34. data/app/views/layouts/borutus/_navigation_links.html.erb +5 -0
  35. data/app/views/layouts/borutus/application.html.erb +19 -0
  36. data/config/backtrace_silencers.rb +7 -0
  37. data/config/database.yml +5 -0
  38. data/config/inflections.rb +10 -0
  39. data/config/mime_types.rb +5 -0
  40. data/config/routes.rb +9 -0
  41. data/config/secret_token.rb +7 -0
  42. data/config/session_store.rb +8 -0
  43. data/db/migrate/20160422010135_create_borutus_tables.rb +33 -0
  44. data/lib/borutus.rb +20 -0
  45. data/lib/borutus/engine.rb +5 -0
  46. data/lib/borutus/version.rb +3 -0
  47. data/lib/generators/borutus/USAGE +13 -0
  48. data/lib/generators/borutus/add_date_upgrade_generator.rb +11 -0
  49. data/lib/generators/borutus/base_generator.rb +19 -0
  50. data/lib/generators/borutus/borutus_generator.rb +12 -0
  51. data/lib/generators/borutus/templates/tenant_migration.rb +6 -0
  52. data/lib/generators/borutus/tenancy_generator.rb +12 -0
  53. data/lib/generators/borutus/upgrade_borutus_generator.rb +12 -0
  54. data/spec/controllers/accounts_controller_spec.rb +19 -0
  55. data/spec/controllers/entries_controller_spec.rb +19 -0
  56. data/spec/controllers/reports_controller_spec.rb +24 -0
  57. data/spec/factories/account_factory.rb +35 -0
  58. data/spec/factories/amount_factory.rb +19 -0
  59. data/spec/factories/entry_factory.rb +11 -0
  60. data/spec/lib/borutus_spec.rb +0 -0
  61. data/spec/models/account_spec.rb +140 -0
  62. data/spec/models/amount_spec.rb +13 -0
  63. data/spec/models/asset_spec.rb +7 -0
  64. data/spec/models/credit_amount_spec.rb +7 -0
  65. data/spec/models/debit_amount_spec.rb +7 -0
  66. data/spec/models/entry_spec.rb +170 -0
  67. data/spec/models/equity_spec.rb +7 -0
  68. data/spec/models/expense_spec.rb +7 -0
  69. data/spec/models/liability_spec.rb +7 -0
  70. data/spec/models/revenue_spec.rb +7 -0
  71. data/spec/models/tenancy_spec.rb +45 -0
  72. data/spec/rcov.opts +2 -0
  73. data/spec/routing/accounts_routing_spec.rb +13 -0
  74. data/spec/routing/entries_routing_spec.rb +13 -0
  75. data/spec/spec.opts +4 -0
  76. data/spec/spec_helper.rb +26 -0
  77. data/spec/support/account_shared_examples.rb +60 -0
  78. data/spec/support/active_support_helpers.rb +13 -0
  79. data/spec/support/amount_shared_examples.rb +21 -0
  80. data/spec/support/factory_girl_helpers.rb +8 -0
  81. data/spec/support/shoulda_matchers.rb +8 -0
  82. metadata +243 -0
@@ -0,0 +1,8 @@
1
+ module FactoryGirlHelpers
2
+ def self.reload
3
+ FactoryGirl.factories.clear()
4
+ FactoryGirl.sequences.clear()
5
+ FactoryGirl.traits.clear()
6
+ FactoryGirl.find_definitions()
7
+ end
8
+ end
@@ -0,0 +1,8 @@
1
+ require 'shoulda-matchers'
2
+
3
+ Shoulda::Matchers.configure do |config|
4
+ config.integrate do |with|
5
+ with.test_framework :rspec
6
+ with.library :active_record
7
+ end
8
+ end
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