company_data_faker 0.0.1
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 +7 -0
- data/.gitignore +5 -0
- data/Gemfile +3 -0
- data/MIT-LICENSE +22 -0
- data/README.md +47 -0
- data/Rakefile +1 -0
- data/company_data_faker.gemspec +17 -0
- data/lib/company_data_faker.rb +1 -0
- data/lib/faker/company_data.rb +91 -0
- metadata +65 -0
checksums.yaml
ADDED
@@ -0,0 +1,7 @@
|
|
1
|
+
---
|
2
|
+
SHA1:
|
3
|
+
metadata.gz: 3cce73b96c2d610a74acd8aa0df64cf0a003f729
|
4
|
+
data.tar.gz: 468a282e26ca5cdf1872057963f038a60bb74e5a
|
5
|
+
SHA512:
|
6
|
+
metadata.gz: 69278754b18c9563afbfdacfbcbcaa9b9f933a7958a4c86c0fcace87416c921226ae83fdb697754d00dad029759a343937714fbe20fd4d814a7225f2bddf2ec9
|
7
|
+
data.tar.gz: cde75fd1eb14ff252ac421a2db812f92fe1823a72cabd8e471aaa6483ded10fdab4b273ee17e9b25be76fda6573cd0d7ea502d2ea25a49cfd31b0dd6828656be
|
data/Gemfile
ADDED
data/MIT-LICENSE
ADDED
@@ -0,0 +1,22 @@
|
|
1
|
+
Copyright (c) 2015 William Weckl
|
2
|
+
|
3
|
+
MIT License
|
4
|
+
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining
|
6
|
+
a copy of this software and associated documentation files (the
|
7
|
+
"Software"), to deal in the Software without restriction, including
|
8
|
+
without limitation the rights to use, copy, modify, merge, publish,
|
9
|
+
distribute, sublicense, and/or sell copies of the Software, and to
|
10
|
+
permit persons to whom the Software is furnished to do so, subject to
|
11
|
+
the following conditions:
|
12
|
+
|
13
|
+
The above copyright notice and this permission notice shall be
|
14
|
+
included in all copies or substantial portions of the Software.
|
15
|
+
|
16
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
|
17
|
+
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
|
18
|
+
MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
|
19
|
+
NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
|
20
|
+
LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
|
21
|
+
OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
|
22
|
+
WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
data/README.md
ADDED
@@ -0,0 +1,47 @@
|
|
1
|
+
# Company Data Faker
|
2
|
+
|
3
|
+
Gerador de nomes para estrutura de empresas. Engloba departamentos, equipes, turnos e grupos.
|
4
|
+
|
5
|
+
Generates Brazilian Company structure names.
|
6
|
+
|
7
|
+
## Install
|
8
|
+
|
9
|
+
Use rubygems:
|
10
|
+
|
11
|
+
gem install company_data_faker
|
12
|
+
|
13
|
+
Or add it to your Gemfile
|
14
|
+
|
15
|
+
group :development, :test do
|
16
|
+
# ...
|
17
|
+
gem 'company_data_faker'
|
18
|
+
end
|
19
|
+
|
20
|
+
## Usage
|
21
|
+
|
22
|
+
### Generates department names
|
23
|
+
|
24
|
+
Faker::CompanyData.department #=> "Administrativo"
|
25
|
+
Faker::CompanyData.department #=> "Financeiro"
|
26
|
+
|
27
|
+
### Generates team names
|
28
|
+
|
29
|
+
Faker::CompanyData.team #=> "Desenvolvimento"
|
30
|
+
Faker::CompanyData.team #=> "Geral"
|
31
|
+
|
32
|
+
### Generates shift names
|
33
|
+
|
34
|
+
Faker::CompanyData.shift #=> "Geral"
|
35
|
+
Faker::CompanyData.shift #=> "Manhã"
|
36
|
+
|
37
|
+
### Generates group names
|
38
|
+
|
39
|
+
Faker::CompanyData.group #=> "Recursos Humanos"
|
40
|
+
Faker::CompanyData.group #=> "Administradores"
|
41
|
+
|
42
|
+
Some names can be used as departments, teams and groups at the same time. So, this are included in more than one generator.
|
43
|
+
This gem was made to meet a specific need, but, if you think it is useful to you, enjoy it! :D
|
44
|
+
|
45
|
+
## License
|
46
|
+
|
47
|
+
Company Data Faker is released under the MIT license
|
data/Rakefile
ADDED
@@ -0,0 +1 @@
|
|
1
|
+
require "bundler/gem_tasks"
|
@@ -0,0 +1,17 @@
|
|
1
|
+
# -*- encoding: utf-8 -*-
|
2
|
+
Gem::Specification.new do |s|
|
3
|
+
s.name = "company_data_faker"
|
4
|
+
s.version = "0.0.1"
|
5
|
+
s.platform = Gem::Platform::RUBY
|
6
|
+
s.authors = ["William Weckl"]
|
7
|
+
s.email = ["william.weckl@gmail.com"]
|
8
|
+
s.homepage = "https://github.com/williamweckl/company_data_faker"
|
9
|
+
s.summary = %q{Generate fake brazilian company structure names}
|
10
|
+
|
11
|
+
s.files = `git ls-files`.split("\n")
|
12
|
+
s.test_files = `git ls-files -- {test,spec,features}/*`.split("\n")
|
13
|
+
s.executables = `git ls-files -- bin/*`.split("\n").map{ |f| File.basename(f) }
|
14
|
+
s.require_paths = ["lib"]
|
15
|
+
|
16
|
+
s.add_development_dependency 'rake', '>= 0.8.7'
|
17
|
+
end
|
@@ -0,0 +1 @@
|
|
1
|
+
require 'faker/company_data'
|
@@ -0,0 +1,91 @@
|
|
1
|
+
module Faker
|
2
|
+
class CompanyData
|
3
|
+
class << self
|
4
|
+
def department
|
5
|
+
["Administrativo",
|
6
|
+
"Publicidade",
|
7
|
+
"Gráfico",
|
8
|
+
"Garagem",
|
9
|
+
"Oficina",
|
10
|
+
"Almoxarifado",
|
11
|
+
"TI",
|
12
|
+
"Pedido",
|
13
|
+
"Compras",
|
14
|
+
"Estoque",
|
15
|
+
"Vendas",
|
16
|
+
"Importação",
|
17
|
+
"Controle bancário",
|
18
|
+
"Patrimônio",
|
19
|
+
"Ordem de serviço",
|
20
|
+
"BI",
|
21
|
+
"Locação",
|
22
|
+
"Faturamento",
|
23
|
+
"Nota fiscal",
|
24
|
+
"Orçamentos",
|
25
|
+
"Logística",
|
26
|
+
"Legal",
|
27
|
+
"Assessoria",
|
28
|
+
"Jurídico",
|
29
|
+
"Jurídico-legal",
|
30
|
+
"Contas a pagar",
|
31
|
+
"Contas a receber",
|
32
|
+
].sample
|
33
|
+
end
|
34
|
+
def team
|
35
|
+
["Geral",
|
36
|
+
"Desenvolvimento",
|
37
|
+
"Desenvolvimento server-side",
|
38
|
+
"Desenvolvimento client-side",
|
39
|
+
"Programação",
|
40
|
+
"Back-end",
|
41
|
+
"Front-end",
|
42
|
+
"Infraestrutura",
|
43
|
+
"Informática",
|
44
|
+
"TI",
|
45
|
+
"Design",
|
46
|
+
"Design gráfico",
|
47
|
+
"Design de produto",
|
48
|
+
"Artes",
|
49
|
+
"Publicidade",
|
50
|
+
"Geral",
|
51
|
+
"Contabilidade",
|
52
|
+
"Motoristas",
|
53
|
+
"Mecânicos",
|
54
|
+
"Vendedores",
|
55
|
+
"Consultores",
|
56
|
+
"Consultores BI",
|
57
|
+
"Analistas",
|
58
|
+
"Analistas BI",
|
59
|
+
"Suporte",
|
60
|
+
"SAC",
|
61
|
+
].sample
|
62
|
+
end
|
63
|
+
def shift
|
64
|
+
[
|
65
|
+
"Geral",
|
66
|
+
"Manhã",
|
67
|
+
"Tarde",
|
68
|
+
"Noite",
|
69
|
+
"Matutino",
|
70
|
+
"Diurno",
|
71
|
+
"Noturno",
|
72
|
+
"Motoristas",
|
73
|
+
"Parcial"
|
74
|
+
].sample
|
75
|
+
end
|
76
|
+
def group
|
77
|
+
["Administradores",
|
78
|
+
"Diretores",
|
79
|
+
"Recusos Humanos",
|
80
|
+
"Usuários",
|
81
|
+
"Clientes",
|
82
|
+
"Gestores",
|
83
|
+
"Líderes de equipe",
|
84
|
+
"Estagiários",
|
85
|
+
"Suporte",
|
86
|
+
].sample
|
87
|
+
end
|
88
|
+
|
89
|
+
end
|
90
|
+
end
|
91
|
+
end
|
metadata
ADDED
@@ -0,0 +1,65 @@
|
|
1
|
+
--- !ruby/object:Gem::Specification
|
2
|
+
name: company_data_faker
|
3
|
+
version: !ruby/object:Gem::Version
|
4
|
+
version: 0.0.1
|
5
|
+
platform: ruby
|
6
|
+
authors:
|
7
|
+
- William Weckl
|
8
|
+
autorequire:
|
9
|
+
bindir: bin
|
10
|
+
cert_chain: []
|
11
|
+
date: 2015-02-10 00:00:00.000000000 Z
|
12
|
+
dependencies:
|
13
|
+
- !ruby/object:Gem::Dependency
|
14
|
+
name: rake
|
15
|
+
requirement: !ruby/object:Gem::Requirement
|
16
|
+
requirements:
|
17
|
+
- - ">="
|
18
|
+
- !ruby/object:Gem::Version
|
19
|
+
version: 0.8.7
|
20
|
+
type: :development
|
21
|
+
prerelease: false
|
22
|
+
version_requirements: !ruby/object:Gem::Requirement
|
23
|
+
requirements:
|
24
|
+
- - ">="
|
25
|
+
- !ruby/object:Gem::Version
|
26
|
+
version: 0.8.7
|
27
|
+
description:
|
28
|
+
email:
|
29
|
+
- william.weckl@gmail.com
|
30
|
+
executables: []
|
31
|
+
extensions: []
|
32
|
+
extra_rdoc_files: []
|
33
|
+
files:
|
34
|
+
- ".gitignore"
|
35
|
+
- Gemfile
|
36
|
+
- MIT-LICENSE
|
37
|
+
- README.md
|
38
|
+
- Rakefile
|
39
|
+
- company_data_faker.gemspec
|
40
|
+
- lib/company_data_faker.rb
|
41
|
+
- lib/faker/company_data.rb
|
42
|
+
homepage: https://github.com/williamweckl/company_data_faker
|
43
|
+
licenses: []
|
44
|
+
metadata: {}
|
45
|
+
post_install_message:
|
46
|
+
rdoc_options: []
|
47
|
+
require_paths:
|
48
|
+
- lib
|
49
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
50
|
+
requirements:
|
51
|
+
- - ">="
|
52
|
+
- !ruby/object:Gem::Version
|
53
|
+
version: '0'
|
54
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
55
|
+
requirements:
|
56
|
+
- - ">="
|
57
|
+
- !ruby/object:Gem::Version
|
58
|
+
version: '0'
|
59
|
+
requirements: []
|
60
|
+
rubyforge_project:
|
61
|
+
rubygems_version: 2.4.5
|
62
|
+
signing_key:
|
63
|
+
specification_version: 4
|
64
|
+
summary: Generate fake brazilian company structure names
|
65
|
+
test_files: []
|