accountability 0.1.0 → 0.1.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (53) hide show
  1. checksums.yaml +4 -4
  2. data/README.md +60 -17
  3. data/app/assets/config/accountability_manifest.js +1 -0
  4. data/app/assets/stylesheets/{acts_as_billable → accountability}/application.css +1 -1
  5. data/app/controllers/accountability/accounts_controller.rb +19 -0
  6. data/app/controllers/accountability/application_controller.rb +45 -0
  7. data/app/controllers/accountability/order_groups_controller.rb +65 -0
  8. data/app/controllers/accountability/products_controller.rb +56 -0
  9. data/app/helpers/accountability/application_helper.rb +19 -0
  10. data/app/models/accountability/account.rb +28 -0
  11. data/app/models/accountability/account/transactions.rb +43 -0
  12. data/app/models/accountability/application_record.rb +3 -0
  13. data/app/models/accountability/coupon.rb +39 -0
  14. data/app/models/accountability/credit.rb +46 -0
  15. data/app/models/accountability/debit.rb +14 -0
  16. data/app/models/accountability/deduction.rb +17 -0
  17. data/app/models/accountability/discount.rb +36 -0
  18. data/app/models/accountability/offerable.rb +76 -0
  19. data/app/models/accountability/order_group.rb +52 -0
  20. data/app/models/accountability/order_item.rb +88 -0
  21. data/app/models/accountability/payment.rb +8 -0
  22. data/app/models/accountability/product.rb +53 -0
  23. data/app/views/accountability/accounts/index.html.haml +13 -0
  24. data/app/views/accountability/accounts/show.html.haml +12 -0
  25. data/app/views/accountability/order_groups/new.html.haml +1 -0
  26. data/app/views/accountability/order_groups/show.html.haml +16 -0
  27. data/app/views/accountability/products/edit.html.erb +1 -0
  28. data/app/views/accountability/products/index.html.haml +39 -0
  29. data/app/views/accountability/products/new.html.erb +40 -0
  30. data/app/views/accountability/products/show.html.erb +1 -0
  31. data/app/views/layouts/acts_as_billable/application.html.erb +2 -2
  32. data/config/routes.rb +1 -3
  33. data/db/migrate/20190814000455_create_accountability_tables.rb +117 -0
  34. data/lib/accountability.rb +10 -0
  35. data/lib/accountability/cartographer.rb +28 -0
  36. data/lib/accountability/configuration.rb +16 -0
  37. data/lib/accountability/engine.rb +9 -0
  38. data/lib/accountability/extensions.rb +15 -0
  39. data/lib/accountability/extensions/acts_as_billable.rb +14 -0
  40. data/lib/accountability/extensions/acts_as_offerable.rb +36 -0
  41. data/lib/accountability/version.rb +3 -0
  42. metadata +40 -14
  43. data/app/assets/config/acts_as_billable_manifest.js +0 -1
  44. data/app/controllers/acts_as_billable/application_controller.rb +0 -3
  45. data/app/controllers/acts_as_billable/pages_controller.rb +0 -5
  46. data/app/helpers/acts_as_billable/application_helper.rb +0 -2
  47. data/app/models/acts_as_billable/application_record.rb +0 -3
  48. data/app/models/acts_as_billable/product.rb +0 -2
  49. data/app/views/acts_as_billable/pages/dashboard.html.erb +0 -1
  50. data/db/migrate/20190814000455_create_acts_as_billable_tables.rb +0 -51
  51. data/lib/acts_as_billable.rb +0 -5
  52. data/lib/acts_as_billable/engine.rb +0 -3
  53. data/lib/acts_as_billable/version.rb +0 -3
@@ -1,5 +0,0 @@
1
- require 'acts_as_billable/engine'
2
-
3
- module ActsAsBillable
4
- # Your code goes here...
5
- end
@@ -1,3 +0,0 @@
1
- class ActsAsBillable::Engine < ::Rails::Engine
2
- isolate_namespace ActsAsBillable
3
- end
@@ -1,3 +0,0 @@
1
- module ActsAsBillable
2
- VERSION = '0.1.0'.freeze
3
- end