randamu 0.0.1 → 0.0.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/randamu/core/academic.rb +4 -3
- data/lib/randamu/core/account.rb +4 -4
- data/lib/randamu/generators/document_generator.rb +2 -2
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 96d7376926841d816bed4811dc0c2763c88ff37cf1c23de93641b0b7c1f56e45
|
4
|
+
data.tar.gz: 75c228b78bed44700ea06f02bfbce811c25973435069128616237a6ae0369f6f
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 6e919edd93ec77c8738b8d0b66c5898b7d0dd70dab84b09f16d1c48fb9c5b0f2292eeb1fefbb1f6d4a8d5b5e57f74bd1c37441a1d9baf21fff94edb62d9ab00a
|
7
|
+
data.tar.gz: 7289fd2374370abb664e66d6baa2c0c35ee8a447781f4a937a0a9e662f8068eeaf6459075beb48c443ed0a2dd56f635464b682d90ab924b32a76716634954416
|
@@ -1,5 +1,5 @@
|
|
1
1
|
module Randamu
|
2
|
-
class Academic
|
2
|
+
class Academic < Base
|
3
3
|
class << self
|
4
4
|
def education_level
|
5
5
|
['Educação infantil', 'Fundamental', 'Médio',
|
@@ -10,14 +10,15 @@ module Randamu
|
|
10
10
|
load_data('academic.courses').sample
|
11
11
|
end
|
12
12
|
|
13
|
-
def
|
13
|
+
def school
|
14
14
|
load_data('academic.schools').sample
|
15
15
|
end
|
16
16
|
|
17
|
-
def
|
17
|
+
def university
|
18
18
|
load_data('academic.universities').sample
|
19
19
|
end
|
20
20
|
|
21
|
+
alias :college :university
|
21
22
|
end
|
22
23
|
end
|
23
24
|
end
|
data/lib/randamu/core/account.rb
CHANGED
@@ -20,13 +20,13 @@ module Randamu
|
|
20
20
|
end
|
21
21
|
|
22
22
|
def phone(state: Dictionary::STATES.keys.sample, country_code: false)
|
23
|
-
|
24
|
-
"
|
23
|
+
base_phone_number = "(#{load_data("phone.ddd.#{state}").sample}) " + phone_number
|
24
|
+
country_code ? "+55 #{base_phone_number}" : base_phone_number
|
25
25
|
end
|
26
26
|
|
27
27
|
def phone_only_numbers(state: Dictionary::STATES.keys.sample, country_code: false)
|
28
|
-
|
29
|
-
"#{
|
28
|
+
base_phone_number = load_data("phone.ddd.#{state}").sample.to_s + phone_number
|
29
|
+
country_code ? "55#{base_phone_number}" : base_phone_number
|
30
30
|
end
|
31
31
|
|
32
32
|
private
|
@@ -2,7 +2,7 @@ module DocumentGenerator
|
|
2
2
|
def cpf(valid: true)
|
3
3
|
return generate_valid_cpf if valid
|
4
4
|
|
5
|
-
|
5
|
+
generate_invalid_cpf
|
6
6
|
end
|
7
7
|
|
8
8
|
def rg
|
@@ -40,7 +40,7 @@ module DocumentGenerator
|
|
40
40
|
cpf.join
|
41
41
|
end
|
42
42
|
|
43
|
-
def
|
43
|
+
def generate_invalid_cpf
|
44
44
|
cpf = generate_valid_cpf
|
45
45
|
last_digit = cpf[-1]
|
46
46
|
|
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.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Jorge Coutinho
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2024-10-
|
11
|
+
date: 2024-10-03 00:00:00.000000000 Z
|
12
12
|
dependencies: []
|
13
13
|
description: Random data generators
|
14
14
|
email: jorgecoutinhodsn@gmail.com
|