dscf-credit 0.4.56 → 0.4.58

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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 4bcd4921c638c87e3e338d719bd993f8bc85cdd6bb79dd4f851ae22af6a51b35
4
- data.tar.gz: 04caed6c06626e1994fd53f3d9344fc1ddf1573a9fa2a424f6d006700a81eedb
3
+ metadata.gz: b1b21359760cd3729a9b735611064dbfb6f880521893f133d98dbca7687f1c48
4
+ data.tar.gz: b326a4e108b2b12ea342929cfb3debe9b2f90ec65856112923055dbd7722bdd2
5
5
  SHA512:
6
- metadata.gz: 70283c3783f0e65ca4f1855db5f019cf21b68ec5a6d80426ff84b7a38639c15ebcf1ecc04af3df0847d0def9f0675ccaf7d6dfdbbe44b948e362bf029c9a099f
7
- data.tar.gz: 7dda7607f319c8e7a30786c77940d3d10c2505138e8dbe59b5dbd973ae9eb51d2a477402668f590812415431f4faa56d511af624ed3f3de9b970467e2d8faafc
6
+ metadata.gz: d58b21750e49bd68bdb8d16cb852d50ba39a3973160c88fb1df2ef552112a3c8f8ee7c8552cb9bb985001eb32d088139babf9814110c71d2d1b7f3a0f6d4d7ff
7
+ data.tar.gz: a8151e9ea4a5e2fcd6dd8aa0da19b7ddf37710e2feefce24f7bf805b0ce798c82f3fef3ce833843a7e3e2351af716e1dc6ca81a4824978f4b86ca1000fb91f9b
data/db/seeds.rb CHANGED
@@ -44,6 +44,7 @@ end
44
44
 
45
45
  admin_user = nil
46
46
  admin_role = nil
47
+ normal_user = nil
47
48
 
48
49
  if defined?(Dscf::Core::User)
49
50
  admin_user = Dscf::Core::User.find_or_create_by!(email: 'admin@bunna.com') do |user|
@@ -52,6 +53,14 @@ if defined?(Dscf::Core::User)
52
53
  user.temp_password = false
53
54
  user.password = 'SecurePassword123!'
54
55
  end
56
+
57
+ normal_user = Dscf::Core::User.find_or_create_by!(email: 'user@bunna.com') do |user|
58
+ user.phone = '+251911123457'
59
+ user.verified_at = Time.current
60
+ user.temp_password = false
61
+ user.password = 'SecurePassword123!'
62
+ end
63
+
55
64
  puts "✓ System admin user created/found"
56
65
  else
57
66
  puts "Warning: Dscf::Core::User not found. Skipping system admin user seed."
@@ -102,13 +111,13 @@ end
102
111
 
103
112
  if defined?(Dscf::Core::Business) && defined?(Dscf::Core::BusinessType)
104
113
  business1 = Dscf::Core::Business.find_or_create_by(
105
- user_id: admin_user.id,
114
+ user_id: normal_user.id,
106
115
  business_type_id: wholesaler.id
107
116
  ) do |business|
108
117
  business.name = 'Individual Trading Business'
109
118
  business.description = 'Individual business for trading services'
110
- business.contact_email = admin_user.email
111
- business.contact_phone = admin_user.phone
119
+ business.contact_email = normal_user.email
120
+ business.contact_phone = normal_user.phone
112
121
  end
113
122
 
114
123
  puts "✓ Businesses created/found"
@@ -1,5 +1,5 @@
1
1
  module Dscf
2
2
  module Credit
3
- VERSION = "0.4.56"
3
+ VERSION = "0.4.58"
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: dscf-credit
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.4.56
4
+ version: 0.4.58
5
5
  platform: ruby
6
6
  authors:
7
7
  - Adoniyas