thecore_auth_commons 3.0.9 → 3.0.11

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: f3ccd6b97ae712679baaee1d4efc1668af4dac8c5b274e1f8d5a3dd4a3390cf0
4
- data.tar.gz: 926c41659cb41f08f6f7dae8dcf2f48a48749cbaad7bf58aa1bf19c2770d9af4
3
+ metadata.gz: eec76cb6a0c306c0bdc7277b486a1055b9e394b93d8b0568cdb4e071738ffc68
4
+ data.tar.gz: 31c8bac34e2a469a8326e9ea30a2fa33209784decb5d89b6c1483f4ecad130b2
5
5
  SHA512:
6
- metadata.gz: 3899810844e5abbe770adefd9919837e3d2239b93ac4be5707c67f0135dd14c607d781335af09c6315c9f9466597111ce82981ba3458549cf770be68a25b31a8
7
- data.tar.gz: f3ef98ce1fe31ea4b914a3abed4e2d89cd418473e5d795ee864dcce9e5a846d8cfdbc2ccd9ec60d4960763d7905b229778ecfc7762496e9e978392cdb38eafaa
6
+ metadata.gz: 3349f5fec0ed5cc9453f85478d87b17e715b7333552afd2910e8ff14559eaf4c5adca7817a889ef6132dda6b937b500353ea12132e0b6a0000b35f93eedbcd29
7
+ data.tar.gz: 2b8e48d9241cd292a30ba5dca89c416939ebc6afb37694bca1fcb64b4471288d70b6ab9054def1d84b51253772946c9eab3c618c6ec15bb0ce950ee575ea68fe
@@ -13,7 +13,6 @@ it:
13
13
  attributes:
14
14
  user:
15
15
  email: E-Mail
16
- username: Nome Utente
17
16
  code: Codice
18
17
  roles: Ruoli
19
18
  admin: Amministratore?
data/db/seeds.rb CHANGED
@@ -1,10 +1,9 @@
1
1
  puts "Loading ThecoreAuthCommons seeds"
2
- email = "admin@#{ENV["BASE_DOMAIN"]}"
2
+ email = "admin@#{ENV["BASE_DOMAIN"].presence || "example.com"}"
3
3
  psswd = ENV["ADMIN_PASSWORD"].presence || "changeme"
4
4
 
5
5
  unless User.where(admin: true).exists?
6
6
  u = User.find_or_initialize_by(email: email)
7
- u.username = "Administrator" if u.respond_to? :username=
8
7
  u.password = u.password_confirmation = psswd
9
8
  u.admin = true
10
9
  u.save(validate: false)
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: thecore_auth_commons
3
3
  version: !ruby/object:Gem::Version
4
- version: 3.0.9
4
+ version: 3.0.11
5
5
  platform: ruby
6
6
  authors:
7
7
  - Gabriele Tassoni
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2023-02-12 00:00:00.000000000 Z
11
+ date: 2023-02-16 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: devise