dscf-banking 0.1.13 → 0.1.15
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.
- checksums.yaml +4 -4
- data/MIT-LICENSE +0 -0
- data/README.md +0 -0
- data/Rakefile +0 -0
- data/app/jobs/dscf/banking/application_job.rb +0 -0
- data/app/mailers/dscf/banking/application_mailer.rb +0 -0
- data/app/models/concerns/dscf/banking/auditable.rb +0 -0
- data/app/serializers/dscf/banking/account_serializer.rb +0 -0
- data/app/serializers/dscf/banking/application_serializer.rb +0 -0
- data/app/serializers/dscf/banking/interest_configuration_serializer.rb +0 -0
- data/app/serializers/dscf/banking/interest_rate_tier_serializer.rb +0 -0
- data/app/serializers/dscf/banking/interest_rate_type_serializer.rb +0 -0
- data/app/serializers/dscf/banking/product_approval_serializer.rb +0 -0
- data/app/serializers/dscf/banking/product_category_serializer.rb +0 -0
- data/app/serializers/dscf/banking/virtual_account_product_serializer.rb +0 -0
- data/app/services/dscf/banking/account_creation_service.rb +0 -0
- data/db/seeds.rb +51 -0
- data/lib/dscf/banking/version.rb +1 -1
- data/spec/factories/dscf/banking/accounts.rb +0 -0
- data/spec/factories/dscf/banking/applications.rb +0 -0
- data/spec/factories/dscf/banking/interest_configurations.rb +0 -0
- data/spec/factories/dscf/banking/interest_rate_tiers.rb +0 -0
- data/spec/factories/dscf/banking/interest_rate_types.rb +0 -0
- data/spec/factories/dscf/banking/product_approvals.rb +0 -0
- data/spec/factories/dscf/banking/product_audit_logs.rb +0 -0
- data/spec/factories/dscf/banking/product_categories.rb +0 -0
- data/spec/factories/dscf/banking/virtual_account_products.rb +0 -0
- metadata +2 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: f53a3bc93d277dada58412069b4fbd4e5dda1878b4ebb361d55377ad1aa60338
|
4
|
+
data.tar.gz: 3b0890dcb58acccbe42e6edf620c0835a37a64fd5ce3f86ca0fc16ac2b723fd1
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 66bfaaba90120d6a43baa41839b3d705aa6a2c923a82f28316253b0762ff3b2036dfe340df5c82c1898fb489184acd4764129b47e4f6f1da29ab396c89c1fac8
|
7
|
+
data.tar.gz: 62dedb335c91073a61d023b804d7e9b5e2ccb6c392097911640535484caa88fbbb58030bcdab05459ed32e389a5dcfab4d06991f4dd75c603a76097b1b120dbc
|
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
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
data/db/seeds.rb
ADDED
@@ -0,0 +1,51 @@
|
|
1
|
+
# db/seeds.rb
|
2
|
+
# This file should contain all the record creation needed to seed the database with its default values.
|
3
|
+
# The data can then be loaded with the bin/rails db:seed command (or created alongside the database with db:setup).
|
4
|
+
#
|
5
|
+
# Examples:
|
6
|
+
#
|
7
|
+
# movies = Movie.create([{ name: "Star Wars" }, { name: "Lord of the Rings" }])
|
8
|
+
# Character.create(name: "Luke", movie: movies.first)
|
9
|
+
|
10
|
+
# Seed roles based on RBAC documentation
|
11
|
+
puts "Seeding roles..."
|
12
|
+
user_role = Role.find_or_create_by(name: 'User')
|
13
|
+
officer_role = Role.find_or_create_by(name: 'Virtual Account Officer')
|
14
|
+
manager_role = Role.find_or_create_by(name: 'Virtual Account Manager')
|
15
|
+
kyc_officer_role = Role.find_or_create_by(name: 'KYC Officer')
|
16
|
+
branch_manager_role = Role.find_or_create_by(name: 'Branch Manager')
|
17
|
+
puts "Roles seeded successfully."
|
18
|
+
|
19
|
+
# Seed users with roles
|
20
|
+
puts "Seeding users..."
|
21
|
+
# Create users and assign roles
|
22
|
+
user1 = User.create(name: "Abebe Kebede", email: "abebe@example.com", password: "SecurePassword123!")
|
23
|
+
user1.roles << user_role
|
24
|
+
puts "Created user: #{user1.name}"
|
25
|
+
|
26
|
+
user2 = User.create(name: "Tigist Haile", email: "tigist@example.com", password: "SecurePassword123!")
|
27
|
+
user2.roles << officer_role
|
28
|
+
puts "Created user: #{user2.name}"
|
29
|
+
|
30
|
+
user3 = User.create(name: "Dawit Mekonnen", email: "dawit@example.com", password: "SecurePassword123!")
|
31
|
+
user3.roles << manager_role
|
32
|
+
puts "Created user: #{user3.name}"
|
33
|
+
|
34
|
+
# Additional users for testing
|
35
|
+
user4 = User.create(name: "Hirut Assefa", email: "hirut@example.com", password: "SecurePassword123!")
|
36
|
+
user4.roles << [user_role, officer_role] # User with multiple roles if supported
|
37
|
+
puts "Created user: #{user4.name}"
|
38
|
+
|
39
|
+
user5 = User.create(name: "Solomon Tesfaye", email: "solomon@example.com", password: "SecurePassword123!")
|
40
|
+
user5.roles << manager_role
|
41
|
+
puts "Created user: #{user5.name}"
|
42
|
+
|
43
|
+
user6 = User.create(name: "Mulugeta Bekele", email: "mulugeta@example.com", password: "SecurePassword123!")
|
44
|
+
user6.roles << kyc_officer_role
|
45
|
+
puts "Created user: #{user6.name}"
|
46
|
+
|
47
|
+
user7 = User.create(name: "Fikirte Alemayehu", email: "fikirte@example.com", password: "SecurePassword123!")
|
48
|
+
user7.roles << branch_manager_role
|
49
|
+
puts "Created user: #{user7.name}"
|
50
|
+
|
51
|
+
puts "Seeding completed successfully."
|
data/lib/dscf/banking/version.rb
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
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: dscf-banking
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.15
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Eyosiyas Mekbib
|
@@ -482,6 +482,7 @@ files:
|
|
482
482
|
- db/migrate/20250831084706_allow_null_virtual_account_product_id_in_product_audit_logs.rb
|
483
483
|
- db/migrate/20250912193134_create_dscf_banking_applications.rb
|
484
484
|
- db/migrate/20250912203527_create_dscf_banking_accounts.rb
|
485
|
+
- db/seeds.rb
|
485
486
|
- lib/dscf/banking.rb
|
486
487
|
- lib/dscf/banking/engine.rb
|
487
488
|
- lib/dscf/banking/version.rb
|