company_data_faker 0.0.1 → 0.0.3
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/.gitignore +0 -0
- data/Gemfile +0 -0
- data/MIT-LICENSE +0 -0
- data/README.md +17 -2
- data/Rakefile +0 -0
- data/company_data_faker.gemspec +2 -1
- data/lib/company_data_faker.rb +2 -1
- data/lib/faker/company_data.rb +31 -2
- data/lib/faker/company_data_image.rb +20 -0
- data/lib/images/profile/female/1.jpg +0 -0
- data/lib/images/profile/female/10.jpg +0 -0
- data/lib/images/profile/female/11.jpg +0 -0
- data/lib/images/profile/female/12.jpg +0 -0
- data/lib/images/profile/female/13.jpg +0 -0
- data/lib/images/profile/female/14.jpg +0 -0
- data/lib/images/profile/female/15.jpg +0 -0
- data/lib/images/profile/female/16.jpg +0 -0
- data/lib/images/profile/female/17.jpg +0 -0
- data/lib/images/profile/female/18.jpg +0 -0
- data/lib/images/profile/female/19.jpg +0 -0
- data/lib/images/profile/female/2.jpg +0 -0
- data/lib/images/profile/female/20.jpg +0 -0
- data/lib/images/profile/female/21.jpg +0 -0
- data/lib/images/profile/female/22.jpg +0 -0
- data/lib/images/profile/female/23.jpg +0 -0
- data/lib/images/profile/female/24.jpg +0 -0
- data/lib/images/profile/female/25.jpg +0 -0
- data/lib/images/profile/female/3.jpg +0 -0
- data/lib/images/profile/female/4.jpg +0 -0
- data/lib/images/profile/female/5.jpg +0 -0
- data/lib/images/profile/female/6.jpg +0 -0
- data/lib/images/profile/female/7.jpg +0 -0
- data/lib/images/profile/female/8.jpg +0 -0
- data/lib/images/profile/female/9.jpg +0 -0
- data/lib/images/profile/male/1.jpg +0 -0
- data/lib/images/profile/male/10.jpg +0 -0
- data/lib/images/profile/male/11.jpg +0 -0
- data/lib/images/profile/male/12.jpg +0 -0
- data/lib/images/profile/male/13.jpg +0 -0
- data/lib/images/profile/male/14.jpg +0 -0
- data/lib/images/profile/male/15.jpg +0 -0
- data/lib/images/profile/male/16.jpg +0 -0
- data/lib/images/profile/male/17.jpg +0 -0
- data/lib/images/profile/male/18.jpg +0 -0
- data/lib/images/profile/male/19.jpg +0 -0
- data/lib/images/profile/male/2.jpg +0 -0
- data/lib/images/profile/male/20.jpg +0 -0
- data/lib/images/profile/male/21.jpg +0 -0
- data/lib/images/profile/male/22.jpg +0 -0
- data/lib/images/profile/male/3.jpg +0 -0
- data/lib/images/profile/male/4.jpg +0 -0
- data/lib/images/profile/male/5.jpg +0 -0
- data/lib/images/profile/male/6.jpg +0 -0
- data/lib/images/profile/male/7.jpg +0 -0
- data/lib/images/profile/male/8.jpg +0 -0
- data/lib/images/profile/male/9.jpg +0 -0
- data/lib/images/team/analistas.jpg +0 -0
- data/lib/images/team/analistas_bi.jpg +0 -0
- data/lib/images/team/artes.jpg +0 -0
- data/lib/images/team/backend.jpg +0 -0
- data/lib/images/team/consultores.jpg +0 -0
- data/lib/images/team/consultores_bi.jpg +0 -0
- data/lib/images/team/contabilidade.jpg +0 -0
- data/lib/images/team/cozinheiros.jpg +0 -0
- data/lib/images/team/desenvolvimento.jpg +0 -0
- data/lib/images/team/desenvolvimento_clientside.jpg +0 -0
- data/lib/images/team/desenvolvimento_serverside.jpg +0 -0
- data/lib/images/team/design.jpg +0 -0
- data/lib/images/team/design_de_produto.jpg +0 -0
- data/lib/images/team/design_grafico.jpg +0 -0
- data/lib/images/team/frontend.jpg +0 -0
- data/lib/images/team/geral.jpg +0 -0
- data/lib/images/team/gerentes.jpg +0 -0
- data/lib/images/team/informatica.jpg +0 -0
- data/lib/images/team/infraestrutura.jpg +0 -0
- data/lib/images/team/laboratorio.jpg +0 -0
- data/lib/images/team/mecanicos.jpg +0 -0
- data/lib/images/team/motoristas.jpg +0 -0
- data/lib/images/team/programacao.jpg +0 -0
- data/lib/images/team/publicidade.jpg +0 -0
- data/lib/images/team/recepcao.jpg +0 -0
- data/lib/images/team/redes.jpg +0 -0
- data/lib/images/team/sac.jpg +0 -0
- data/lib/images/team/suporte.jpg +0 -0
- data/lib/images/team/tecnologia.jpg +0 -0
- data/lib/images/team/ti.jpg +0 -0
- data/lib/images/team/vendedores.jpg +0 -0
- metadata +95 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 8c2219587e1bdcf0317dc9ef086dbca931458012
|
4
|
+
data.tar.gz: 2b38dfc30181df9f8df1e49c5b97e8678a8b0b5e
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 994077c1f9df3fa2a4ae7461b438d98d682065e0ad5150be973193ea026a216d719f0047e03e3641ccdc43d498ed4feec75ec6005d121ad97cd30d0796d0d3bb
|
7
|
+
data.tar.gz: 66fd0f0c9a5c1186e7bd3fbbde42e187b9ceae37c9610a85065183d0dac94b1b1d18211353d1dbbc6b3aaa0931be693884c518a0db69a0d04ace5b220fcf2949
|
data/.gitignore
CHANGED
File without changes
|
data/Gemfile
CHANGED
File without changes
|
data/MIT-LICENSE
CHANGED
File without changes
|
data/README.md
CHANGED
@@ -1,8 +1,8 @@
|
|
1
1
|
# Company Data Faker
|
2
2
|
|
3
|
-
Gerador de nomes para estrutura de empresas. Engloba departamentos, equipes, turnos e
|
3
|
+
Gerador de nomes para estrutura de empresas. Engloba departamentos, equipes, imagens para equipes, turnos, grupos e imagens de perfil.
|
4
4
|
|
5
|
-
Generates Brazilian Company structure names.
|
5
|
+
Generates Brazilian Company structure names and images.
|
6
6
|
|
7
7
|
## Install
|
8
8
|
|
@@ -39,9 +39,24 @@ Or add it to your Gemfile
|
|
39
39
|
Faker::CompanyData.group #=> "Recursos Humanos"
|
40
40
|
Faker::CompanyData.group #=> "Administradores"
|
41
41
|
|
42
|
+
### Generates team images (returns the real path) (use only team names generated by gem)
|
43
|
+
|
44
|
+
Faker::CompanyData.team_image("Analistas") #=> "/home/william/dev/company_data_faker/lib/images/team/analistas.jpg"
|
45
|
+
|
46
|
+
### Generates profile images (returns the real path)
|
47
|
+
|
48
|
+
Faker::CompanyData.team_image(:male) #=> "/home/william/dev/company_data_faker/lib/images/profile/male/12.jpg"
|
49
|
+
Faker::CompanyData.team_image(:female) #=> "/home/william/dev/company_data_faker/lib/images/profile/female/15.jpg"
|
50
|
+
|
51
|
+
## Objective
|
52
|
+
|
53
|
+
Generate fake data for fake test profiles.
|
54
|
+
|
42
55
|
Some names can be used as departments, teams and groups at the same time. So, this are included in more than one generator.
|
43
56
|
This gem was made to meet a specific need, but, if you think it is useful to you, enjoy it! :D
|
44
57
|
|
58
|
+
Images was taken from google and are only for testing purposes. Some of it are personal or commercial restricted, so, use it only for testing.
|
59
|
+
|
45
60
|
## License
|
46
61
|
|
47
62
|
Company Data Faker is released under the MIT license
|
data/Rakefile
CHANGED
File without changes
|
data/company_data_faker.gemspec
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
# -*- encoding: utf-8 -*-
|
2
2
|
Gem::Specification.new do |s|
|
3
3
|
s.name = "company_data_faker"
|
4
|
-
s.version = "0.0.
|
4
|
+
s.version = "0.0.3"
|
5
5
|
s.platform = Gem::Platform::RUBY
|
6
6
|
s.authors = ["William Weckl"]
|
7
7
|
s.email = ["william.weckl@gmail.com"]
|
@@ -13,5 +13,6 @@ Gem::Specification.new do |s|
|
|
13
13
|
s.executables = `git ls-files -- bin/*`.split("\n").map{ |f| File.basename(f) }
|
14
14
|
s.require_paths = ["lib"]
|
15
15
|
|
16
|
+
s.add_dependency 'i18n', '>= 0.5'
|
16
17
|
s.add_development_dependency 'rake', '>= 0.8.7'
|
17
18
|
end
|
data/lib/company_data_faker.rb
CHANGED
@@ -1 +1,2 @@
|
|
1
|
-
require 'faker/company_data'
|
1
|
+
require 'faker/company_data'
|
2
|
+
require 'faker/company_data_image'
|
data/lib/faker/company_data.rb
CHANGED
@@ -29,7 +29,31 @@ module Faker
|
|
29
29
|
"Jurídico-legal",
|
30
30
|
"Contas a pagar",
|
31
31
|
"Contas a receber",
|
32
|
-
|
32
|
+
"Qualidade e Inovação",
|
33
|
+
"Direção Financeira",
|
34
|
+
"Direção",
|
35
|
+
"Financeiro",
|
36
|
+
"Administrativo",
|
37
|
+
"Secretaria-Geral",
|
38
|
+
"Secretaria",
|
39
|
+
"Geral",
|
40
|
+
"Recursos Humanos",
|
41
|
+
"Informática",
|
42
|
+
"Coordenação",
|
43
|
+
"Infraestrutura",
|
44
|
+
"Departamento Pessoal",
|
45
|
+
"Desenvolvimento",
|
46
|
+
"Produção",
|
47
|
+
"Design",
|
48
|
+
"Centro de processamento de dados",
|
49
|
+
"Recepção Geral",
|
50
|
+
"Recepção",
|
51
|
+
"Ouvidoria",
|
52
|
+
"Serviço de atendimento ao consumidor",
|
53
|
+
"Alimentação",
|
54
|
+
"Assessoria Técnica",
|
55
|
+
"Suporte",
|
56
|
+
].sample
|
33
57
|
end
|
34
58
|
def team
|
35
59
|
["Geral",
|
@@ -40,14 +64,15 @@ module Faker
|
|
40
64
|
"Back-end",
|
41
65
|
"Front-end",
|
42
66
|
"Infraestrutura",
|
67
|
+
"Redes",
|
43
68
|
"Informática",
|
44
69
|
"TI",
|
70
|
+
"Tecnologia",
|
45
71
|
"Design",
|
46
72
|
"Design gráfico",
|
47
73
|
"Design de produto",
|
48
74
|
"Artes",
|
49
75
|
"Publicidade",
|
50
|
-
"Geral",
|
51
76
|
"Contabilidade",
|
52
77
|
"Motoristas",
|
53
78
|
"Mecânicos",
|
@@ -58,6 +83,10 @@ module Faker
|
|
58
83
|
"Analistas BI",
|
59
84
|
"Suporte",
|
60
85
|
"SAC",
|
86
|
+
"Cozinheiros",
|
87
|
+
"Recepção",
|
88
|
+
"Gerentes",
|
89
|
+
"Laboratório"
|
61
90
|
].sample
|
62
91
|
end
|
63
92
|
def shift
|
@@ -0,0 +1,20 @@
|
|
1
|
+
module Faker
|
2
|
+
class CompanyData
|
3
|
+
class << self
|
4
|
+
require "i18n"
|
5
|
+
|
6
|
+
def team_image(name)
|
7
|
+
"#{File.expand_path( File.dirname( __FILE__ ).gsub('/faker',''))}/images/team/#{I18n.transliterate(name.downcase).gsub(/[^0-9A-Za-z ]/,'').gsub(" ", "_")}.jpg"
|
8
|
+
end
|
9
|
+
|
10
|
+
def profile_image(gender)
|
11
|
+
dir = "#{File.expand_path( File.dirname( __FILE__ ).gsub('/faker',''))}/images/profile/"
|
12
|
+
if gender == 'female' || gender == :female
|
13
|
+
Dir["#{dir}female/*"].sample
|
14
|
+
else
|
15
|
+
Dir["#{dir}male/*"].sample
|
16
|
+
end
|
17
|
+
end
|
18
|
+
end
|
19
|
+
end
|
20
|
+
end
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
metadata
CHANGED
@@ -1,15 +1,29 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: company_data_faker
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.3
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- William Weckl
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2015-02-
|
11
|
+
date: 2015-02-11 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
|
+
- !ruby/object:Gem::Dependency
|
14
|
+
name: i18n
|
15
|
+
requirement: !ruby/object:Gem::Requirement
|
16
|
+
requirements:
|
17
|
+
- - ">="
|
18
|
+
- !ruby/object:Gem::Version
|
19
|
+
version: '0.5'
|
20
|
+
type: :runtime
|
21
|
+
prerelease: false
|
22
|
+
version_requirements: !ruby/object:Gem::Requirement
|
23
|
+
requirements:
|
24
|
+
- - ">="
|
25
|
+
- !ruby/object:Gem::Version
|
26
|
+
version: '0.5'
|
13
27
|
- !ruby/object:Gem::Dependency
|
14
28
|
name: rake
|
15
29
|
requirement: !ruby/object:Gem::Requirement
|
@@ -39,6 +53,85 @@ files:
|
|
39
53
|
- company_data_faker.gemspec
|
40
54
|
- lib/company_data_faker.rb
|
41
55
|
- lib/faker/company_data.rb
|
56
|
+
- lib/faker/company_data_image.rb
|
57
|
+
- lib/images/profile/female/1.jpg
|
58
|
+
- lib/images/profile/female/10.jpg
|
59
|
+
- lib/images/profile/female/11.jpg
|
60
|
+
- lib/images/profile/female/12.jpg
|
61
|
+
- lib/images/profile/female/13.jpg
|
62
|
+
- lib/images/profile/female/14.jpg
|
63
|
+
- lib/images/profile/female/15.jpg
|
64
|
+
- lib/images/profile/female/16.jpg
|
65
|
+
- lib/images/profile/female/17.jpg
|
66
|
+
- lib/images/profile/female/18.jpg
|
67
|
+
- lib/images/profile/female/19.jpg
|
68
|
+
- lib/images/profile/female/2.jpg
|
69
|
+
- lib/images/profile/female/20.jpg
|
70
|
+
- lib/images/profile/female/21.jpg
|
71
|
+
- lib/images/profile/female/22.jpg
|
72
|
+
- lib/images/profile/female/23.jpg
|
73
|
+
- lib/images/profile/female/24.jpg
|
74
|
+
- lib/images/profile/female/25.jpg
|
75
|
+
- lib/images/profile/female/3.jpg
|
76
|
+
- lib/images/profile/female/4.jpg
|
77
|
+
- lib/images/profile/female/5.jpg
|
78
|
+
- lib/images/profile/female/6.jpg
|
79
|
+
- lib/images/profile/female/7.jpg
|
80
|
+
- lib/images/profile/female/8.jpg
|
81
|
+
- lib/images/profile/female/9.jpg
|
82
|
+
- lib/images/profile/male/1.jpg
|
83
|
+
- lib/images/profile/male/10.jpg
|
84
|
+
- lib/images/profile/male/11.jpg
|
85
|
+
- lib/images/profile/male/12.jpg
|
86
|
+
- lib/images/profile/male/13.jpg
|
87
|
+
- lib/images/profile/male/14.jpg
|
88
|
+
- lib/images/profile/male/15.jpg
|
89
|
+
- lib/images/profile/male/16.jpg
|
90
|
+
- lib/images/profile/male/17.jpg
|
91
|
+
- lib/images/profile/male/18.jpg
|
92
|
+
- lib/images/profile/male/19.jpg
|
93
|
+
- lib/images/profile/male/2.jpg
|
94
|
+
- lib/images/profile/male/20.jpg
|
95
|
+
- lib/images/profile/male/21.jpg
|
96
|
+
- lib/images/profile/male/22.jpg
|
97
|
+
- lib/images/profile/male/3.jpg
|
98
|
+
- lib/images/profile/male/4.jpg
|
99
|
+
- lib/images/profile/male/5.jpg
|
100
|
+
- lib/images/profile/male/6.jpg
|
101
|
+
- lib/images/profile/male/7.jpg
|
102
|
+
- lib/images/profile/male/8.jpg
|
103
|
+
- lib/images/profile/male/9.jpg
|
104
|
+
- lib/images/team/analistas.jpg
|
105
|
+
- lib/images/team/analistas_bi.jpg
|
106
|
+
- lib/images/team/artes.jpg
|
107
|
+
- lib/images/team/backend.jpg
|
108
|
+
- lib/images/team/consultores.jpg
|
109
|
+
- lib/images/team/consultores_bi.jpg
|
110
|
+
- lib/images/team/contabilidade.jpg
|
111
|
+
- lib/images/team/cozinheiros.jpg
|
112
|
+
- lib/images/team/desenvolvimento.jpg
|
113
|
+
- lib/images/team/desenvolvimento_clientside.jpg
|
114
|
+
- lib/images/team/desenvolvimento_serverside.jpg
|
115
|
+
- lib/images/team/design.jpg
|
116
|
+
- lib/images/team/design_de_produto.jpg
|
117
|
+
- lib/images/team/design_grafico.jpg
|
118
|
+
- lib/images/team/frontend.jpg
|
119
|
+
- lib/images/team/geral.jpg
|
120
|
+
- lib/images/team/gerentes.jpg
|
121
|
+
- lib/images/team/informatica.jpg
|
122
|
+
- lib/images/team/infraestrutura.jpg
|
123
|
+
- lib/images/team/laboratorio.jpg
|
124
|
+
- lib/images/team/mecanicos.jpg
|
125
|
+
- lib/images/team/motoristas.jpg
|
126
|
+
- lib/images/team/programacao.jpg
|
127
|
+
- lib/images/team/publicidade.jpg
|
128
|
+
- lib/images/team/recepcao.jpg
|
129
|
+
- lib/images/team/redes.jpg
|
130
|
+
- lib/images/team/sac.jpg
|
131
|
+
- lib/images/team/suporte.jpg
|
132
|
+
- lib/images/team/tecnologia.jpg
|
133
|
+
- lib/images/team/ti.jpg
|
134
|
+
- lib/images/team/vendedores.jpg
|
42
135
|
homepage: https://github.com/williamweckl/company_data_faker
|
43
136
|
licenses: []
|
44
137
|
metadata: {}
|