randamu 0.0.4 → 0.0.5
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/lib/randamu/core/account.rb +8 -1
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 86ac5a40538d48eaae5ee56de42f448f379e0eea82ecb5964051c164ee5cccd2
|
4
|
+
data.tar.gz: b69eb574875948b41b5304c5d7bc220dba76d0dc743d03ab0ac32b385224e327
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 1f904c13e2f1c0601d77cb28e8e1640e3880fcae2fd34d4bfd7495546a1bcce1e9e03ca538897ada923416fc7441e288d2fd03a70fdafc7c562d4ce5951e01da
|
7
|
+
data.tar.gz: 994d3ba90baf30b23f91abe05870f01f37bb59f0894651be54d746ab403440ceed4ace6e9cb93c5546119bd5f8840ee5a55b15c268c8d50e7833c43cccb3c7fb
|
data/lib/randamu/core/account.rb
CHANGED
@@ -36,11 +36,18 @@ module Randamu
|
|
36
36
|
|
37
37
|
private
|
38
38
|
def generate_password(length, special, numeric, alphabet)
|
39
|
+
temp = ''
|
40
|
+
temp += NUMERIC.chars.sample if numeric
|
41
|
+
temp += SPEACIAL.chars.sample if special
|
42
|
+
temp += ALPHABET.chars.sample if alphabet
|
43
|
+
|
39
44
|
password = ''
|
40
45
|
password += ALPHABET if alphabet
|
41
46
|
password += SPEACIAL if special
|
42
47
|
password += NUMERIC if numeric
|
43
|
-
|
48
|
+
|
49
|
+
(length - temp.length).times { temp += password.chars.sample }
|
50
|
+
temp.chars.shuffle.join
|
44
51
|
end
|
45
52
|
|
46
53
|
def generate_connection_symbol
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: randamu
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.5
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Jorge Coutinho
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2025-03-27 00:00:00.000000000 Z
|
12
12
|
dependencies: []
|
13
13
|
description: Random data generator in pt-BR / Gerador de dados aleatorios em pt-BR
|
14
14
|
email: jorgecoutinhodsn@gmail.com
|
@@ -62,7 +62,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
62
62
|
- !ruby/object:Gem::Version
|
63
63
|
version: '0'
|
64
64
|
requirements: []
|
65
|
-
rubygems_version: 3.5.
|
65
|
+
rubygems_version: 3.5.22
|
66
66
|
signing_key:
|
67
67
|
specification_version: 4
|
68
68
|
summary: Random data generator in pt-BR
|