snf_core 0.2.5 → 0.2.6

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.
Files changed (146) hide show
  1. checksums.yaml +4 -4
  2. data/MIT-LICENSE +0 -0
  3. data/README.md +0 -0
  4. data/Rakefile +0 -0
  5. data/app/controllers/concerns/common.rb +0 -0
  6. data/app/controllers/concerns/pagination.rb +0 -0
  7. data/app/controllers/snf_core/application_controller.rb +0 -0
  8. data/app/jobs/snf_core/application_job.rb +0 -0
  9. data/app/mailers/snf_core/application_mailer.rb +0 -0
  10. data/app/models/snf_core/address.rb +0 -0
  11. data/app/models/snf_core/application_record.rb +0 -0
  12. data/app/models/snf_core/business.rb +0 -0
  13. data/app/models/snf_core/business_document.rb +4 -1
  14. data/app/models/snf_core/category.rb +0 -0
  15. data/app/models/snf_core/customer_group.rb +0 -0
  16. data/app/models/snf_core/group.rb +0 -0
  17. data/app/models/snf_core/product.rb +0 -0
  18. data/app/models/snf_core/store.rb +0 -0
  19. data/app/models/snf_core/store_inventory.rb +0 -0
  20. data/app/models/snf_core/user.rb +0 -0
  21. data/app/models/snf_core/wallet.rb +0 -0
  22. data/config/routes.rb +0 -0
  23. data/db/migrate/20250226042622_create_snf_core_users.rb +0 -0
  24. data/db/migrate/20250226064444_create_snf_core_categories.rb +0 -0
  25. data/db/migrate/20250226080323_create_snf_core_businesses.rb +0 -0
  26. data/db/migrate/20250226102931_create_snf_core_business_documents.rb +0 -0
  27. data/db/migrate/20250226110217_create_snf_core_addresses.rb +0 -0
  28. data/db/migrate/20250226115215_create_snf_core_stores.rb +0 -0
  29. data/db/migrate/20250226181007_create_snf_core_products.rb +0 -0
  30. data/db/migrate/20250226190000_create_snf_core_store_inventories.rb +0 -0
  31. data/db/migrate/20250226192104_create_snf_core_groups.rb +0 -0
  32. data/db/migrate/20250226193938_create_snf_core_customer_groups.rb +0 -0
  33. data/db/migrate/20250227075048_create_snf_core_wallets.rb +0 -0
  34. data/db/migrate/20250227102833_modify_store_inventories.rb +0 -0
  35. data/lib/snf_core/engine.rb +0 -0
  36. data/lib/snf_core/version.rb +1 -1
  37. data/lib/snf_core.rb +0 -0
  38. data/lib/tasks/snf_core_tasks.rake +0 -0
  39. metadata +3 -110
  40. data/spec/dummy/Rakefile +0 -6
  41. data/spec/dummy/app/assets/stylesheets/application.css +0 -15
  42. data/spec/dummy/app/controllers/application_controller.rb +0 -2
  43. data/spec/dummy/app/jobs/application_job.rb +0 -7
  44. data/spec/dummy/app/mailers/application_mailer.rb +0 -4
  45. data/spec/dummy/app/models/application_record.rb +0 -3
  46. data/spec/dummy/app/views/layouts/mailer.html.erb +0 -13
  47. data/spec/dummy/app/views/layouts/mailer.text.erb +0 -1
  48. data/spec/dummy/bin/dev +0 -2
  49. data/spec/dummy/bin/rails +0 -4
  50. data/spec/dummy/bin/rake +0 -4
  51. data/spec/dummy/bin/setup +0 -34
  52. data/spec/dummy/config/application.rb +0 -43
  53. data/spec/dummy/config/boot.rb +0 -5
  54. data/spec/dummy/config/cable.yml +0 -10
  55. data/spec/dummy/config/database.yml +0 -20
  56. data/spec/dummy/config/environment.rb +0 -5
  57. data/spec/dummy/config/environments/development.rb +0 -67
  58. data/spec/dummy/config/environments/production.rb +0 -86
  59. data/spec/dummy/config/environments/test.rb +0 -53
  60. data/spec/dummy/config/initializers/cors.rb +0 -16
  61. data/spec/dummy/config/initializers/filter_parameter_logging.rb +0 -8
  62. data/spec/dummy/config/initializers/inflections.rb +0 -16
  63. data/spec/dummy/config/locales/en.yml +0 -31
  64. data/spec/dummy/config/puma.rb +0 -38
  65. data/spec/dummy/config/routes.rb +0 -3
  66. data/spec/dummy/config/storage.yml +0 -38
  67. data/spec/dummy/config.ru +0 -6
  68. data/spec/dummy/db/migrate/20250226123213_create_active_storage_tables.active_storage.rb +0 -57
  69. data/spec/dummy/db/schema.rb +0 -181
  70. data/spec/dummy/log/development.log +0 -901
  71. data/spec/dummy/log/test.log +0 -12199
  72. data/spec/dummy/spec/fixtures/files/sample.pdf +0 -0
  73. data/spec/dummy/tmp/local_secret.txt +0 -1
  74. data/spec/dummy/tmp/storage/13/1y/131yod70wqijazn3ix829yvuuvge +0 -0
  75. data/spec/dummy/tmp/storage/16/na/16na9nc1z98jt6fyn3axj3bhudes +0 -0
  76. data/spec/dummy/tmp/storage/1t/oy/1toyz0i6f9u5xexr4cpwttr04ood +0 -0
  77. data/spec/dummy/tmp/storage/1x/i3/1xi33eqr5ipoaz0upakb8yy7qc4o +0 -0
  78. data/spec/dummy/tmp/storage/24/69/2469t9kpepg4fd8ki960h025li0b +0 -0
  79. data/spec/dummy/tmp/storage/2a/0u/2a0uyihfk1wn5c1fuz09unocwy2m +0 -0
  80. data/spec/dummy/tmp/storage/4t/86/4t862kv9wcz0p7wgdvpmtmczdadt +0 -0
  81. data/spec/dummy/tmp/storage/5s/zb/5szbksq6mg3768g9vtk788gc49gw +0 -0
  82. data/spec/dummy/tmp/storage/6g/dc/6gdc40iivivwbln1zs4dqedt5ni7 +0 -0
  83. data/spec/dummy/tmp/storage/6o/7a/6o7ax3ihg25bswxp4d601mqo7tl3 +0 -0
  84. data/spec/dummy/tmp/storage/6z/86/6z862zpc67sikzl0otbf418t2clj +0 -0
  85. data/spec/dummy/tmp/storage/92/hw/92hw9u9j6728qgwpcn7oqphe9tzj +0 -0
  86. data/spec/dummy/tmp/storage/9a/3q/9a3qd5qc7j6dzzmg16wcpvwoowmp +0 -0
  87. data/spec/dummy/tmp/storage/al/8s/al8szf81ccm4ckpvxh3bv6vlgp0y +0 -0
  88. data/spec/dummy/tmp/storage/b8/8l/b88ln7wuq13v4akgwgc0dgac8887 +0 -0
  89. data/spec/dummy/tmp/storage/bs/y9/bsy9t4961ra8hwlq06wjtgrrcflp +0 -0
  90. data/spec/dummy/tmp/storage/cs/x9/csx9mv26ab1lm82a7itryfq4v6rq +0 -0
  91. data/spec/dummy/tmp/storage/dp/0f/dp0fx9ji1bqvx1najwjgns6n7fhf +0 -0
  92. data/spec/dummy/tmp/storage/em/kc/emkc4tc71k65mfcurv6k8z1ylswl +0 -0
  93. data/spec/dummy/tmp/storage/em/vx/emvx0c15o74mr0nlcvdc7m88j2gi +0 -0
  94. data/spec/dummy/tmp/storage/ga/7e/ga7eiyyv0llme2i4xby0kdp4a4h8 +0 -0
  95. data/spec/dummy/tmp/storage/h4/vg/h4vgoatz21dhjrztrrbg2hdhkwjb +0 -0
  96. data/spec/dummy/tmp/storage/hi/9h/hi9ho77symoy2j0ye28fxgnxw3kt +0 -0
  97. data/spec/dummy/tmp/storage/hl/yy/hlyyu150rt2yos1sa9ed1qw49y26 +0 -0
  98. data/spec/dummy/tmp/storage/j7/6x/j76x0oirv7i4t6p3blseuaknp7pw +0 -0
  99. data/spec/dummy/tmp/storage/jq/95/jq95rqhv5usgucn2d2mmkhjufapu +0 -0
  100. data/spec/dummy/tmp/storage/ky/1y/ky1ys68lmat11bxs2395dqugiyig +0 -0
  101. data/spec/dummy/tmp/storage/ln/0f/ln0fz4opsdycu80q7urfez9ar7kn +0 -0
  102. data/spec/dummy/tmp/storage/mk/4w/mk4w528bsn47ewri0odui9s40f87 +0 -0
  103. data/spec/dummy/tmp/storage/na/6r/na6rrohinrnjofsq27u95up5rp8k +0 -0
  104. data/spec/dummy/tmp/storage/oc/f8/ocf8zs18lm9fnkpqj6wpshdpyf43 +0 -0
  105. data/spec/dummy/tmp/storage/oe/bq/oebq593a6bpwkbxpx6segtwyy0jy +0 -0
  106. data/spec/dummy/tmp/storage/qs/jk/qsjkqiiarr85uobud0qsnnmpraol +0 -0
  107. data/spec/dummy/tmp/storage/qw/7z/qw7zsf91njf7ga6454nrjpvddjn5 +0 -0
  108. data/spec/dummy/tmp/storage/rh/0h/rh0h80b8er9vp1u8dcocy1u58obf +0 -0
  109. data/spec/dummy/tmp/storage/tc/gu/tcgurel05x9fk9ksm4hxwfla3hg3 +0 -0
  110. data/spec/dummy/tmp/storage/tm/ce/tmce54998rdnz191k02fzowpebvw +0 -0
  111. data/spec/dummy/tmp/storage/w2/3f/w23f3igzkn7bddqxry5x4wsu2ths +0 -0
  112. data/spec/dummy/tmp/storage/wo/81/wo813rsnwvoa55h0vq0fr79iajuw +0 -0
  113. data/spec/dummy/tmp/storage/wy/14/wy14megn3o5zqplv9xg6u32uwkr6 +0 -0
  114. data/spec/dummy/tmp/storage/xj/yy/xjyygdd3znvvpt9ufz1vv4lfsx3w +0 -0
  115. data/spec/dummy/tmp/storage/yf/49/yf49a4ydheqf3cqs0u49sanbl4ms +0 -0
  116. data/spec/dummy/tmp/storage/yh/q1/yhq1muao2dpuykmj12bxhd0x4ntk +0 -0
  117. data/spec/dummy/tmp/storage/yx/jp/yxjpumjyo1jysjpg20qaxgsqg4fw +0 -0
  118. data/spec/dummy/tmp/storage/z1/gr/z1grp34d5vw7mi4g8vw8yfu91ny2 +0 -0
  119. data/spec/examples.txt +0 -66
  120. data/spec/factories/snf_core/addresses.rb +0 -10
  121. data/spec/factories/snf_core/business_documents.rb +0 -18
  122. data/spec/factories/snf_core/businesses.rb +0 -10
  123. data/spec/factories/snf_core/categories.rb +0 -7
  124. data/spec/factories/snf_core/customer_groups.rb +0 -9
  125. data/spec/factories/snf_core/groups.rb +0 -6
  126. data/spec/factories/snf_core/products.rb +0 -9
  127. data/spec/factories/snf_core/store_inventories.rb +0 -8
  128. data/spec/factories/snf_core/stores.rb +0 -9
  129. data/spec/factories/snf_core/users.rb +0 -10
  130. data/spec/factories/snf_core/wallets.rb +0 -7
  131. data/spec/models/snf_core/address_spec.rb +0 -15
  132. data/spec/models/snf_core/business_document_spec.rb +0 -20
  133. data/spec/models/snf_core/business_spec.rb +0 -14
  134. data/spec/models/snf_core/category_spec.rb +0 -12
  135. data/spec/models/snf_core/customer_group_spec.rb +0 -11
  136. data/spec/models/snf_core/group_spec.rb +0 -11
  137. data/spec/models/snf_core/product_spec.rb +0 -17
  138. data/spec/models/snf_core/store_inventory_spec.rb +0 -24
  139. data/spec/models/snf_core/store_spec.rb +0 -13
  140. data/spec/models/snf_core/user_spec.rb +0 -23
  141. data/spec/models/snf_core/wallet_spec.rb +0 -28
  142. data/spec/rails_helper.rb +0 -46
  143. data/spec/sample_spec.rb +0 -5
  144. data/spec/spec_helper.rb +0 -36
  145. data/spec/support/models/shared_examples.rb +0 -49
  146. data/spec/support/requests/shared_requests.rb +0 -130
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 6e5b18e248c561406b65cd4f2aed8b68bc70fafe5ca70443b52738a2eaa1e10e
4
- data.tar.gz: 5ac06515cb39d36ffa867197694583477f5d34c193bb6f22cacff79f234f932c
3
+ metadata.gz: 5df58d60cebf78089d6900341276ae197b4f0114827b43b7cc9bc70496bb0b22
4
+ data.tar.gz: 5550e5b8978e489cef20d80b036ef680f06e96b71f25a0ea85eaa5aa68e44384
5
5
  SHA512:
6
- metadata.gz: 520a41919231fdb30e8cbb4ce3f21771e29c11e12e89e68a0e0b5311c749ef7ef6a6578bb90c9669bf4ab3e0f3149e4cd7e498132cf2106610f9d52d3f70e366
7
- data.tar.gz: 400e00a0ee34b151ffb9a3880dace6b8d96faf41cd2a3f5d62be95cdac8b35a9074c7d21c9d68773e1f6bdda733d67863901aab41b7bbc68749c023ef5ee6a3e
6
+ metadata.gz: adefb05a9a1b3c751472efd2af71255163cd695e847b810356aabea51c571a759afac62e4cd07b82c178f69ed5fe6b9b8d4617d449d664af056373d9de323160
7
+ data.tar.gz: ba0f66d26aa614b8d3bc9d435a71fe5631c7c4d034b04a1317177ae16c60ad90619eef93f1aee8a84038b448e11941fd5ad826b835cda6d796e85d54246ba9ae
data/MIT-LICENSE CHANGED
File without changes
data/README.md CHANGED
File without changes
data/Rakefile CHANGED
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
@@ -3,7 +3,10 @@ module SnfCore
3
3
  belongs_to :business
4
4
  belongs_to :verified_by, class_name: "SnfCore::User", optional: true
5
5
 
6
- enum :document_type, { business_license: 0, representative_id: 1 }
6
+ enum document_type: {
7
+ business_license_doc: 0,
8
+ representative_id_doc: 1
9
+ }, _prefix: :document
7
10
 
8
11
  has_one_attached :document
9
12
 
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
data/config/routes.rb CHANGED
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
@@ -1,3 +1,3 @@
1
1
  module SnfCore
2
- VERSION = "0.2.5"
2
+ VERSION = "0.2.6"
3
3
  end
data/lib/snf_core.rb CHANGED
File without changes
File without changes
metadata CHANGED
@@ -1,13 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: snf_core
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.5
4
+ version: 0.2.6
5
5
  platform: ruby
6
6
  authors:
7
7
  - Asrat
8
8
  bindir: bin
9
9
  cert_chain: []
10
- date: 2025-02-27 00:00:00.000000000 Z
10
+ date: 2025-02-28 00:00:00.000000000 Z
11
11
  dependencies:
12
12
  - !ruby/object:Gem::Dependency
13
13
  name: active_model_serializers
@@ -317,113 +317,6 @@ files:
317
317
  - lib/snf_core/engine.rb
318
318
  - lib/snf_core/version.rb
319
319
  - lib/tasks/snf_core_tasks.rake
320
- - spec/dummy/Rakefile
321
- - spec/dummy/app/assets/stylesheets/application.css
322
- - spec/dummy/app/controllers/application_controller.rb
323
- - spec/dummy/app/jobs/application_job.rb
324
- - spec/dummy/app/mailers/application_mailer.rb
325
- - spec/dummy/app/models/application_record.rb
326
- - spec/dummy/app/views/layouts/mailer.html.erb
327
- - spec/dummy/app/views/layouts/mailer.text.erb
328
- - spec/dummy/bin/dev
329
- - spec/dummy/bin/rails
330
- - spec/dummy/bin/rake
331
- - spec/dummy/bin/setup
332
- - spec/dummy/config.ru
333
- - spec/dummy/config/application.rb
334
- - spec/dummy/config/boot.rb
335
- - spec/dummy/config/cable.yml
336
- - spec/dummy/config/database.yml
337
- - spec/dummy/config/environment.rb
338
- - spec/dummy/config/environments/development.rb
339
- - spec/dummy/config/environments/production.rb
340
- - spec/dummy/config/environments/test.rb
341
- - spec/dummy/config/initializers/cors.rb
342
- - spec/dummy/config/initializers/filter_parameter_logging.rb
343
- - spec/dummy/config/initializers/inflections.rb
344
- - spec/dummy/config/locales/en.yml
345
- - spec/dummy/config/puma.rb
346
- - spec/dummy/config/routes.rb
347
- - spec/dummy/config/storage.yml
348
- - spec/dummy/db/migrate/20250226123213_create_active_storage_tables.active_storage.rb
349
- - spec/dummy/db/schema.rb
350
- - spec/dummy/log/development.log
351
- - spec/dummy/log/test.log
352
- - spec/dummy/spec/fixtures/files/sample.pdf
353
- - spec/dummy/tmp/local_secret.txt
354
- - spec/dummy/tmp/storage/13/1y/131yod70wqijazn3ix829yvuuvge
355
- - spec/dummy/tmp/storage/16/na/16na9nc1z98jt6fyn3axj3bhudes
356
- - spec/dummy/tmp/storage/1t/oy/1toyz0i6f9u5xexr4cpwttr04ood
357
- - spec/dummy/tmp/storage/1x/i3/1xi33eqr5ipoaz0upakb8yy7qc4o
358
- - spec/dummy/tmp/storage/24/69/2469t9kpepg4fd8ki960h025li0b
359
- - spec/dummy/tmp/storage/2a/0u/2a0uyihfk1wn5c1fuz09unocwy2m
360
- - spec/dummy/tmp/storage/4t/86/4t862kv9wcz0p7wgdvpmtmczdadt
361
- - spec/dummy/tmp/storage/5s/zb/5szbksq6mg3768g9vtk788gc49gw
362
- - spec/dummy/tmp/storage/6g/dc/6gdc40iivivwbln1zs4dqedt5ni7
363
- - spec/dummy/tmp/storage/6o/7a/6o7ax3ihg25bswxp4d601mqo7tl3
364
- - spec/dummy/tmp/storage/6z/86/6z862zpc67sikzl0otbf418t2clj
365
- - spec/dummy/tmp/storage/92/hw/92hw9u9j6728qgwpcn7oqphe9tzj
366
- - spec/dummy/tmp/storage/9a/3q/9a3qd5qc7j6dzzmg16wcpvwoowmp
367
- - spec/dummy/tmp/storage/al/8s/al8szf81ccm4ckpvxh3bv6vlgp0y
368
- - spec/dummy/tmp/storage/b8/8l/b88ln7wuq13v4akgwgc0dgac8887
369
- - spec/dummy/tmp/storage/bs/y9/bsy9t4961ra8hwlq06wjtgrrcflp
370
- - spec/dummy/tmp/storage/cs/x9/csx9mv26ab1lm82a7itryfq4v6rq
371
- - spec/dummy/tmp/storage/dp/0f/dp0fx9ji1bqvx1najwjgns6n7fhf
372
- - spec/dummy/tmp/storage/em/kc/emkc4tc71k65mfcurv6k8z1ylswl
373
- - spec/dummy/tmp/storage/em/vx/emvx0c15o74mr0nlcvdc7m88j2gi
374
- - spec/dummy/tmp/storage/ga/7e/ga7eiyyv0llme2i4xby0kdp4a4h8
375
- - spec/dummy/tmp/storage/h4/vg/h4vgoatz21dhjrztrrbg2hdhkwjb
376
- - spec/dummy/tmp/storage/hi/9h/hi9ho77symoy2j0ye28fxgnxw3kt
377
- - spec/dummy/tmp/storage/hl/yy/hlyyu150rt2yos1sa9ed1qw49y26
378
- - spec/dummy/tmp/storage/j7/6x/j76x0oirv7i4t6p3blseuaknp7pw
379
- - spec/dummy/tmp/storage/jq/95/jq95rqhv5usgucn2d2mmkhjufapu
380
- - spec/dummy/tmp/storage/ky/1y/ky1ys68lmat11bxs2395dqugiyig
381
- - spec/dummy/tmp/storage/ln/0f/ln0fz4opsdycu80q7urfez9ar7kn
382
- - spec/dummy/tmp/storage/mk/4w/mk4w528bsn47ewri0odui9s40f87
383
- - spec/dummy/tmp/storage/na/6r/na6rrohinrnjofsq27u95up5rp8k
384
- - spec/dummy/tmp/storage/oc/f8/ocf8zs18lm9fnkpqj6wpshdpyf43
385
- - spec/dummy/tmp/storage/oe/bq/oebq593a6bpwkbxpx6segtwyy0jy
386
- - spec/dummy/tmp/storage/qs/jk/qsjkqiiarr85uobud0qsnnmpraol
387
- - spec/dummy/tmp/storage/qw/7z/qw7zsf91njf7ga6454nrjpvddjn5
388
- - spec/dummy/tmp/storage/rh/0h/rh0h80b8er9vp1u8dcocy1u58obf
389
- - spec/dummy/tmp/storage/tc/gu/tcgurel05x9fk9ksm4hxwfla3hg3
390
- - spec/dummy/tmp/storage/tm/ce/tmce54998rdnz191k02fzowpebvw
391
- - spec/dummy/tmp/storage/w2/3f/w23f3igzkn7bddqxry5x4wsu2ths
392
- - spec/dummy/tmp/storage/wo/81/wo813rsnwvoa55h0vq0fr79iajuw
393
- - spec/dummy/tmp/storage/wy/14/wy14megn3o5zqplv9xg6u32uwkr6
394
- - spec/dummy/tmp/storage/xj/yy/xjyygdd3znvvpt9ufz1vv4lfsx3w
395
- - spec/dummy/tmp/storage/yf/49/yf49a4ydheqf3cqs0u49sanbl4ms
396
- - spec/dummy/tmp/storage/yh/q1/yhq1muao2dpuykmj12bxhd0x4ntk
397
- - spec/dummy/tmp/storage/yx/jp/yxjpumjyo1jysjpg20qaxgsqg4fw
398
- - spec/dummy/tmp/storage/z1/gr/z1grp34d5vw7mi4g8vw8yfu91ny2
399
- - spec/examples.txt
400
- - spec/factories/snf_core/addresses.rb
401
- - spec/factories/snf_core/business_documents.rb
402
- - spec/factories/snf_core/businesses.rb
403
- - spec/factories/snf_core/categories.rb
404
- - spec/factories/snf_core/customer_groups.rb
405
- - spec/factories/snf_core/groups.rb
406
- - spec/factories/snf_core/products.rb
407
- - spec/factories/snf_core/store_inventories.rb
408
- - spec/factories/snf_core/stores.rb
409
- - spec/factories/snf_core/users.rb
410
- - spec/factories/snf_core/wallets.rb
411
- - spec/models/snf_core/address_spec.rb
412
- - spec/models/snf_core/business_document_spec.rb
413
- - spec/models/snf_core/business_spec.rb
414
- - spec/models/snf_core/category_spec.rb
415
- - spec/models/snf_core/customer_group_spec.rb
416
- - spec/models/snf_core/group_spec.rb
417
- - spec/models/snf_core/product_spec.rb
418
- - spec/models/snf_core/store_inventory_spec.rb
419
- - spec/models/snf_core/store_spec.rb
420
- - spec/models/snf_core/user_spec.rb
421
- - spec/models/snf_core/wallet_spec.rb
422
- - spec/rails_helper.rb
423
- - spec/sample_spec.rb
424
- - spec/spec_helper.rb
425
- - spec/support/models/shared_examples.rb
426
- - spec/support/requests/shared_requests.rb
427
320
  homepage: https://mksaddis.com/
428
321
  licenses:
429
322
  - MIT
@@ -445,7 +338,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
445
338
  - !ruby/object:Gem::Version
446
339
  version: '0'
447
340
  requirements: []
448
- rubygems_version: 3.6.2
341
+ rubygems_version: 3.6.4
449
342
  specification_version: 4
450
343
  summary: An Engine for Supply Chain Financing
451
344
  test_files: []
data/spec/dummy/Rakefile DELETED
@@ -1,6 +0,0 @@
1
- # Add your own tasks in files placed in lib/tasks ending in .rake,
2
- # for example lib/tasks/capistrano.rake, and they will automatically be available to Rake.
3
-
4
- require_relative "config/application"
5
-
6
- Rails.application.load_tasks
@@ -1,15 +0,0 @@
1
- /*
2
- * This is a manifest file that'll be compiled into application.css, which will include all the files
3
- * listed below.
4
- *
5
- * Any CSS and SCSS file within this directory, lib/assets/stylesheets, vendor/assets/stylesheets,
6
- * or any plugin's vendor/assets/stylesheets directory can be referenced here using a relative path.
7
- *
8
- * You're free to add application-wide styles to this file and they'll appear at the bottom of the
9
- * compiled file so the styles you add here take precedence over styles defined in any other CSS/SCSS
10
- * files in this directory. Styles in this file should be added after the last require_* statement.
11
- * It is generally better to create a new file per style scope.
12
- *
13
- *= require_tree .
14
- *= require_self
15
- */
@@ -1,2 +0,0 @@
1
- class ApplicationController < ActionController::API
2
- end
@@ -1,7 +0,0 @@
1
- class ApplicationJob < ActiveJob::Base
2
- # Automatically retry jobs that encountered a deadlock
3
- # retry_on ActiveRecord::Deadlocked
4
-
5
- # Most jobs are safe to ignore if the underlying records are no longer available
6
- # discard_on ActiveJob::DeserializationError
7
- end
@@ -1,4 +0,0 @@
1
- class ApplicationMailer < ActionMailer::Base
2
- default from: "from@example.com"
3
- layout "mailer"
4
- end
@@ -1,3 +0,0 @@
1
- class ApplicationRecord < ActiveRecord::Base
2
- primary_abstract_class
3
- end
@@ -1,13 +0,0 @@
1
- <!DOCTYPE html>
2
- <html>
3
- <head>
4
- <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
5
- <style>
6
- /* Email styles need to be inline */
7
- </style>
8
- </head>
9
-
10
- <body>
11
- <%= yield %>
12
- </body>
13
- </html>
@@ -1 +0,0 @@
1
- <%= yield %>
data/spec/dummy/bin/dev DELETED
@@ -1,2 +0,0 @@
1
- #!/usr/bin/env ruby
2
- exec "./bin/rails", "server", *ARGV
data/spec/dummy/bin/rails DELETED
@@ -1,4 +0,0 @@
1
- #!/usr/bin/env ruby
2
- APP_PATH = File.expand_path("../config/application", __dir__)
3
- require_relative "../config/boot"
4
- require "rails/commands"
data/spec/dummy/bin/rake DELETED
@@ -1,4 +0,0 @@
1
- #!/usr/bin/env ruby
2
- require_relative "../config/boot"
3
- require "rake"
4
- Rake.application.run
data/spec/dummy/bin/setup DELETED
@@ -1,34 +0,0 @@
1
- #!/usr/bin/env ruby
2
- require "fileutils"
3
-
4
- APP_ROOT = File.expand_path("..", __dir__)
5
-
6
- def system!(*args)
7
- system(*args, exception: true)
8
- end
9
-
10
- FileUtils.chdir APP_ROOT do
11
- # This script is a way to set up or update your development environment automatically.
12
- # This script is idempotent, so that you can run it at any time and get an expectable outcome.
13
- # Add necessary setup steps to this file.
14
-
15
- puts "== Installing dependencies =="
16
- system("bundle check") || system!("bundle install")
17
-
18
- # puts "\n== Copying sample files =="
19
- # unless File.exist?("config/database.yml")
20
- # FileUtils.cp "config/database.yml.sample", "config/database.yml"
21
- # end
22
-
23
- puts "\n== Preparing database =="
24
- system! "bin/rails db:prepare"
25
-
26
- puts "\n== Removing old logs and tempfiles =="
27
- system! "bin/rails log:clear tmp:clear"
28
-
29
- unless ARGV.include?("--skip-server")
30
- puts "\n== Starting development server =="
31
- STDOUT.flush # flush the output before exec(2) so that it displays
32
- exec "bin/dev"
33
- end
34
- end
@@ -1,43 +0,0 @@
1
- require_relative "boot"
2
-
3
- require "rails"
4
- # Pick the frameworks you want:
5
- require "active_model/railtie"
6
- require "active_job/railtie"
7
- require "active_record/railtie"
8
- require "active_storage/engine"
9
- require "action_controller/railtie"
10
- require "action_mailer/railtie"
11
- require "action_mailbox/engine"
12
- require "action_text/engine"
13
- require "action_view/railtie"
14
- require "action_cable/engine"
15
- # require "rails/test_unit/railtie"
16
-
17
- # Require the gems listed in Gemfile, including any gems
18
- # you've limited to :test, :development, or :production.
19
- Bundler.require(*Rails.groups)
20
-
21
- module Dummy
22
- class Application < Rails::Application
23
- config.load_defaults Rails::VERSION::STRING.to_f
24
-
25
- # Please, add to the `ignore` list any other `lib` subdirectories that do
26
- # not contain `.rb` files, or that should not be reloaded or eager loaded.
27
- # Common ones are `templates`, `generators`, or `middleware`, for example.
28
- config.autoload_lib(ignore: %w[assets tasks])
29
-
30
- # Configuration for the application, engines, and railties goes here.
31
- #
32
- # These settings can be overridden in specific environments using the files
33
- # in config/environments, which are processed later.
34
- #
35
- # config.time_zone = "Central Time (US & Canada)"
36
- # config.eager_load_paths << Rails.root.join("extras")
37
-
38
- # Only loads a smaller set of middleware suitable for API only apps.
39
- # Middleware like session, flash, cookies can be added back manually.
40
- # Skip views, helpers and assets when generating a new resource.
41
- config.api_only = true
42
- end
43
- end
@@ -1,5 +0,0 @@
1
- # Set up gems listed in the Gemfile.
2
- ENV["BUNDLE_GEMFILE"] ||= File.expand_path("../../../Gemfile", __dir__)
3
-
4
- require "bundler/setup" if File.exist?(ENV["BUNDLE_GEMFILE"])
5
- $LOAD_PATH.unshift File.expand_path("../../../lib", __dir__)
@@ -1,10 +0,0 @@
1
- development:
2
- adapter: async
3
-
4
- test:
5
- adapter: test
6
-
7
- production:
8
- adapter: redis
9
- url: <%= ENV.fetch("REDIS_URL") { "redis://localhost:6379/1" } %>
10
- channel_prefix: dummy_production
@@ -1,20 +0,0 @@
1
- default: &default
2
- adapter: postgresql
3
- encoding: unicode
4
- pool: 5
5
- username: postgres
6
- password: password
7
- host: localhost
8
- port: 5432
9
-
10
- development:
11
- <<: *default
12
- database: snf_dev
13
-
14
- test:
15
- <<: *default
16
- database: snf_test
17
-
18
- production:
19
- <<: *default
20
- database: snf_prod
@@ -1,5 +0,0 @@
1
- # Load the Rails application.
2
- require_relative "application"
3
-
4
- # Initialize the Rails application.
5
- Rails.application.initialize!
@@ -1,67 +0,0 @@
1
- require "active_support/core_ext/integer/time"
2
-
3
- Rails.application.configure do
4
- # Settings specified here will take precedence over those in config/application.rb.
5
-
6
- # Make code changes take effect immediately without server restart.
7
- config.enable_reloading = true
8
-
9
- # Do not eager load code on boot.
10
- config.eager_load = false
11
-
12
- # Show full error reports.
13
- config.consider_all_requests_local = true
14
-
15
- # Enable server timing.
16
- config.server_timing = true
17
-
18
- # Enable/disable Action Controller caching. By default Action Controller caching is disabled.
19
- # Run rails dev:cache to toggle Action Controller caching.
20
- if Rails.root.join("tmp/caching-dev.txt").exist?
21
- config.public_file_server.headers = { "cache-control" => "public, max-age=#{2.days.to_i}" }
22
- else
23
- config.action_controller.perform_caching = false
24
- end
25
-
26
- # Change to :null_store to avoid any caching.
27
- config.cache_store = :memory_store
28
-
29
- # Store uploaded files on the local file system (see config/storage.yml for options).
30
- config.active_storage.service = :local
31
-
32
- # Don't care if the mailer can't send.
33
- config.action_mailer.raise_delivery_errors = false
34
-
35
- # Make template changes take effect immediately.
36
- config.action_mailer.perform_caching = false
37
-
38
- # Set localhost to be used by links generated in mailer templates.
39
- config.action_mailer.default_url_options = { host: "localhost", port: 3000 }
40
-
41
- # Print deprecation notices to the Rails logger.
42
- config.active_support.deprecation = :log
43
-
44
- # Raise an error on page load if there are pending migrations.
45
- config.active_record.migration_error = :page_load
46
-
47
- # Highlight code that triggered database queries in logs.
48
- config.active_record.verbose_query_logs = true
49
-
50
- # Append comments with runtime information tags to SQL queries in logs.
51
- config.active_record.query_log_tags_enabled = true
52
-
53
- # Highlight code that enqueued background job in logs.
54
- config.active_job.verbose_enqueue_logs = true
55
-
56
- # Raises error for missing translations.
57
- # config.i18n.raise_on_missing_translations = true
58
-
59
- # Annotate rendered view with file names.
60
- config.action_view.annotate_rendered_view_with_filenames = true
61
-
62
- # Uncomment if you wish to allow Action Cable access from any origin.
63
- # config.action_cable.disable_request_forgery_protection = true
64
-
65
- # Raise error when a before_action's only/except options reference missing actions.
66
- config.action_controller.raise_on_missing_callback_actions = true
67
- end
@@ -1,86 +0,0 @@
1
- require "active_support/core_ext/integer/time"
2
-
3
- Rails.application.configure do
4
- # Settings specified here will take precedence over those in config/application.rb.
5
-
6
- # Code is not reloaded between requests.
7
- config.enable_reloading = false
8
-
9
- # Eager load code on boot for better performance and memory savings (ignored by Rake tasks).
10
- config.eager_load = true
11
-
12
- # Full error reports are disabled.
13
- config.consider_all_requests_local = false
14
-
15
- # Cache assets for far-future expiry since they are all digest stamped.
16
- config.public_file_server.headers = { "cache-control" => "public, max-age=#{1.year.to_i}" }
17
-
18
- # Enable serving of images, stylesheets, and JavaScripts from an asset server.
19
- # config.asset_host = "http://assets.example.com"
20
-
21
- # Store uploaded files on the local file system (see config/storage.yml for options).
22
- config.active_storage.service = :local
23
-
24
- # Assume all access to the app is happening through a SSL-terminating reverse proxy.
25
- config.assume_ssl = true
26
-
27
- # Force all access to the app over SSL, use Strict-Transport-Security, and use secure cookies.
28
- config.force_ssl = true
29
-
30
- # Skip http-to-https redirect for the default health check endpoint.
31
- # config.ssl_options = { redirect: { exclude: ->(request) { request.path == "/up" } } }
32
-
33
- # Log to STDOUT with the current request id as a default log tag.
34
- config.log_tags = [ :request_id ]
35
- config.logger = ActiveSupport::TaggedLogging.logger(STDOUT)
36
-
37
- # Change to "debug" to log everything (including potentially personally-identifiable information!)
38
- config.log_level = ENV.fetch("RAILS_LOG_LEVEL", "info")
39
-
40
- # Prevent health checks from clogging up the logs.
41
- config.silence_healthcheck_path = "/up"
42
-
43
- # Don't log any deprecations.
44
- config.active_support.report_deprecations = false
45
-
46
- # Replace the default in-process memory cache store with a durable alternative.
47
- # config.cache_store = :mem_cache_store
48
-
49
- # Replace the default in-process and non-durable queuing backend for Active Job.
50
- # config.active_job.queue_adapter = :resque
51
-
52
- # Ignore bad email addresses and do not raise email delivery errors.
53
- # Set this to true and configure the email server for immediate delivery to raise delivery errors.
54
- # config.action_mailer.raise_delivery_errors = false
55
-
56
- # Set host to be used by links generated in mailer templates.
57
- config.action_mailer.default_url_options = { host: "example.com" }
58
-
59
- # Specify outgoing SMTP server. Remember to add smtp/* credentials via rails credentials:edit.
60
- # config.action_mailer.smtp_settings = {
61
- # user_name: Rails.application.credentials.dig(:smtp, :user_name),
62
- # password: Rails.application.credentials.dig(:smtp, :password),
63
- # address: "smtp.example.com",
64
- # port: 587,
65
- # authentication: :plain
66
- # }
67
-
68
- # Enable locale fallbacks for I18n (makes lookups for any locale fall back to
69
- # the I18n.default_locale when a translation cannot be found).
70
- config.i18n.fallbacks = true
71
-
72
- # Do not dump schema after migrations.
73
- config.active_record.dump_schema_after_migration = false
74
-
75
- # Only use :id for inspections in production.
76
- config.active_record.attributes_for_inspect = [ :id ]
77
-
78
- # Enable DNS rebinding protection and other `Host` header attacks.
79
- # config.hosts = [
80
- # "example.com", # Allow requests from example.com
81
- # /.*\.example\.com/ # Allow requests from subdomains like `www.example.com`
82
- # ]
83
- #
84
- # Skip DNS rebinding protection for the default health check endpoint.
85
- # config.host_authorization = { exclude: ->(request) { request.path == "/up" } }
86
- end