basmoura 0.0.4 → 0.1.0
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/README.md +4 -11
- data/basmoura.gemspec +1 -1
- data/bin/basmoura +11 -1
- data/lib/basmoura/basmoura_api.rb +123 -0
- data/lib/basmoura/version.rb +1 -1
- data/lib/basmoura.rb +3 -57
- metadata +4 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 2ace3d28846d688bd537f92608c0a9fe373e375b
|
4
|
+
data.tar.gz: f0e8ac2fbad1c72b1da94962dc98be9ce4300499
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 68d0582fd855b7938edb5b6edd3ac76daa533a464e381e99b136c26e874cb065540cea57e46fb69fb0b1248302e61d44385b65fa59357f21926f4170f71e69ac
|
7
|
+
data.tar.gz: e5aa26fd14f38b7f1927f6cd925a08447475c4ab1a90b4479e42e4db49b1c264ee96b40e7fb39ea030c103c1e49c729b766a5a210d3fb810c3e5c603ea1dd0ab
|
data/README.md
CHANGED
@@ -4,25 +4,18 @@ TODO: Write a gem description
|
|
4
4
|
|
5
5
|
## Installation
|
6
6
|
|
7
|
-
|
8
|
-
|
9
|
-
gem 'basmoura'
|
10
|
-
|
11
|
-
And then execute:
|
12
|
-
|
13
|
-
$ bundle
|
14
|
-
|
15
|
-
Or install it yourself as:
|
7
|
+
Install it yourself as:
|
16
8
|
|
17
9
|
$ gem install basmoura
|
18
10
|
|
19
11
|
## Usage
|
20
12
|
|
21
|
-
|
13
|
+
This is a simple gem to show my professional informations.
|
14
|
+
Type `basmoura -s` on the console to see it.
|
22
15
|
|
23
16
|
## Contributing
|
24
17
|
|
25
|
-
1. Fork it
|
18
|
+
1. Fork it
|
26
19
|
2. Create your feature branch (`git checkout -b my-new-feature`)
|
27
20
|
3. Commit your changes (`git commit -am 'Add some feature'`)
|
28
21
|
4. Push to the branch (`git push origin my-new-feature`)
|
data/basmoura.gemspec
CHANGED
data/bin/basmoura
CHANGED
@@ -1,4 +1,14 @@
|
|
1
1
|
#!/usr/bin/env ruby
|
2
|
+
require 'optparse'
|
2
3
|
require 'basmoura'
|
3
4
|
|
4
|
-
|
5
|
+
options = {}
|
6
|
+
|
7
|
+
OptionParser.new do |opts|
|
8
|
+
opts.banner = "Usage: basmoura [options]"
|
9
|
+
# opts.on('-p', '--pdf', 'Export to a PDF file') do |pdf|
|
10
|
+
# options[:pdf] = true
|
11
|
+
# end
|
12
|
+
|
13
|
+
opts.on('-s', '--show') { puts Basmoura::show; exit(0) }
|
14
|
+
end.parse!
|
@@ -0,0 +1,123 @@
|
|
1
|
+
# coding: utf-8
|
2
|
+
|
3
|
+
require "Date"
|
4
|
+
require "colorize"
|
5
|
+
|
6
|
+
module Basmoura
|
7
|
+
class BasmouraApi
|
8
|
+
def curriculum
|
9
|
+
clear
|
10
|
+
puts " Breno Augusto Santana Moura".yellow
|
11
|
+
|
12
|
+
puts "-" * 80
|
13
|
+
puts "Informações Básicas".green
|
14
|
+
basic_info
|
15
|
+
contact_info.each { |k, v| puts "#{k.capitalize}: #{v}" }
|
16
|
+
puts ""
|
17
|
+
|
18
|
+
puts "Síntese de Qualificações".green
|
19
|
+
qualifications
|
20
|
+
puts ""
|
21
|
+
|
22
|
+
puts "Idiomas".green
|
23
|
+
languages.each { |k, v| puts "#{k.capitalize}: #{v}" }
|
24
|
+
puts ""
|
25
|
+
|
26
|
+
puts "Experiência Profissional".green
|
27
|
+
professional_exp.each do |k, v|
|
28
|
+
puts "#{v[:company].blue} #{v[:period].red}"
|
29
|
+
puts v[:role]
|
30
|
+
puts ""
|
31
|
+
end
|
32
|
+
|
33
|
+
puts "Projetos".green
|
34
|
+
projects.each do |k, v|
|
35
|
+
puts k.yellow
|
36
|
+
v.values.each do |key, value|
|
37
|
+
puts key[:project].blue
|
38
|
+
puts key[:info]
|
39
|
+
puts ""
|
40
|
+
end
|
41
|
+
end
|
42
|
+
puts "-" * 80
|
43
|
+
end
|
44
|
+
|
45
|
+
private
|
46
|
+
def basic_info
|
47
|
+
puts "Brasileiro, Solteiro, #{age_calculate} anos"
|
48
|
+
end
|
49
|
+
|
50
|
+
def contact_info
|
51
|
+
contact = { :telefone => "+55 (79) 8835-3428",
|
52
|
+
:github => "http://github.com/basmoura",
|
53
|
+
:email => "basmoura@gmail.com" }
|
54
|
+
end
|
55
|
+
|
56
|
+
def qualifications
|
57
|
+
puts "- Cursando o sexto período da graduação em sistemas de informação;"
|
58
|
+
puts "- Bons conhecimentos em Ruby on Rails, Java, C#, asp.net, HTML5, CSS3 e Scrum;"
|
59
|
+
puts "- Experiência em desenvolvimento de sistemas em Ruby on Rails, asp.net e C#"
|
60
|
+
end
|
61
|
+
|
62
|
+
def professional_exp
|
63
|
+
jobs = { :pop => { :role => "Estágio na área de desenvolvimento com Ruby on Rails",
|
64
|
+
:period => "Nov 2013 - Atualmente",
|
65
|
+
:company => "Popcode Mobile Solutions" },
|
66
|
+
|
67
|
+
:swx => { :role => "Estágio na área de desenvolvimento com Ruby on Rails",
|
68
|
+
:period => "Out 2013 - Nov 2013",
|
69
|
+
:company => "SWX Softwares" },
|
70
|
+
|
71
|
+
:grow => { :role => "Estágio na área de desenvolvimento com Java e GWT",
|
72
|
+
:period => "Maio 2013 - Out 2013",
|
73
|
+
:company => "GrowBit Business Technology" },
|
74
|
+
|
75
|
+
:code => { :role => "Estágio na área de desenvolvimento com C# e ASP.NET",
|
76
|
+
:period => "Jul 2011 - Mar 2013",
|
77
|
+
:company => "Code2 Informática" },
|
78
|
+
|
79
|
+
:tj => { :role => "Estágio na área de redes e suporte",
|
80
|
+
:period => "Abr 2011 - Jun 2011",
|
81
|
+
:company => "Tribunal de Justiça do Estado de Sergipe" } }
|
82
|
+
|
83
|
+
end
|
84
|
+
|
85
|
+
def projects
|
86
|
+
projects = { "Ruby on Rails" => { :dpu => { :project => "Controle de patrimônio, contas e documentos.",
|
87
|
+
:info => "Defensoria Pública da União de Sergipe" },
|
88
|
+
|
89
|
+
:ufs => { :project => "Dia do Nutricionista - http://diadonutricionista.com.br/",
|
90
|
+
:info => "Universidade Federal de Sergipe" },
|
91
|
+
|
92
|
+
:css => { :project => "Contribuição para a gem 'css3-progress-bar-rails'",
|
93
|
+
:info => "https://github.com/yrgoldteeth/css3-progress-bar-rails/commits?author=basmoura" },
|
94
|
+
|
95
|
+
:publify => { :project => "Contribuição para a gem 'Publify'",
|
96
|
+
:info => "https://github.com/publify/publify/commits?author=basmoura" },
|
97
|
+
|
98
|
+
:solutio => { :project => "Contribuição para o projeto 'Solutio'",
|
99
|
+
:info => "https://github.com/coolmeia/solutio/commits?author=basmoura" } },
|
100
|
+
|
101
|
+
"ASP.NET C#" => { :cultura => { :project => "Sistema de Controle Acadêmico",
|
102
|
+
:info => "Cultura Inglesa de Sergipe" } } }
|
103
|
+
end
|
104
|
+
|
105
|
+
def languages
|
106
|
+
languages = { :inglês => "Avançado",
|
107
|
+
:espanhol => "Básico",
|
108
|
+
:português => "Avançado" }
|
109
|
+
end
|
110
|
+
|
111
|
+
def age_calculate
|
112
|
+
today = Date.today
|
113
|
+
birthdate = Date.parse("27/09/1988")
|
114
|
+
age = today.year - birthdate.year
|
115
|
+
age = age - 1 if birthdate.month > today.month
|
116
|
+
end
|
117
|
+
|
118
|
+
def clear
|
119
|
+
system('clear')
|
120
|
+
end
|
121
|
+
|
122
|
+
end
|
123
|
+
end
|
data/lib/basmoura/version.rb
CHANGED
data/lib/basmoura.rb
CHANGED
@@ -1,64 +1,10 @@
|
|
1
1
|
# coding: utf-8
|
2
2
|
|
3
3
|
require "basmoura/version"
|
4
|
-
require "
|
5
|
-
require "colorize"
|
4
|
+
require "basmoura/basmoura_api"
|
6
5
|
|
7
6
|
module Basmoura
|
8
|
-
def self.
|
9
|
-
|
10
|
-
puts "-" * 80
|
11
|
-
|
12
|
-
puts " Breno Augusto Santana Moura".yellow
|
13
|
-
|
14
|
-
puts "Basic Info".green
|
15
|
-
basic_info
|
16
|
-
puts ""
|
17
|
-
|
18
|
-
puts "Contact Info".green
|
19
|
-
contact_info.each { |k, v| puts "#{k.capitalize}: #{v}" }
|
20
|
-
puts ""
|
21
|
-
|
22
|
-
puts "Qualifications".green
|
23
|
-
qualifications
|
24
|
-
puts ""
|
25
|
-
|
26
|
-
puts "Languages".green
|
27
|
-
languages.each { |k, v| puts "#{k}: #{v}" }
|
28
|
-
puts "-" * 80
|
29
|
-
end
|
30
|
-
|
31
|
-
private
|
32
|
-
def self.basic_info
|
33
|
-
puts "Brasileiro, Solteiro, #{age_calculate} anos"
|
34
|
-
end
|
35
|
-
|
36
|
-
def self.contact_info
|
37
|
-
contact = { :phone => "+55 (79) 8835-3428",
|
38
|
-
:github => "http://github.com/basmoura",
|
39
|
-
:email => "basmoura@gmail.com" }
|
40
|
-
end
|
41
|
-
|
42
|
-
def self.qualifications
|
43
|
-
puts "- Cursando o sexto período da graduação em sistemas de informação;"
|
44
|
-
puts "- Bons conhecimentos em Ruby on Rails, Java, C#, asp.net, HTML5, CSS3 e Scrum;"
|
45
|
-
puts "- Experiência em desenvolvimento de sistemas em Ruby on Rails, asp.net e C#"
|
46
|
-
end
|
47
|
-
|
48
|
-
def self.languages
|
49
|
-
languages = { :en => "Avançado",
|
50
|
-
:es => "Básico",
|
51
|
-
:pt_BR => "Advançado" }
|
52
|
-
end
|
53
|
-
|
54
|
-
def self.age_calculate
|
55
|
-
today = Date.today
|
56
|
-
birthdate = Date.parse("27/09/1988")
|
57
|
-
age = today.year - birthdate.year
|
58
|
-
age = age - 1 if birthdate.month > today.month
|
59
|
-
end
|
60
|
-
|
61
|
-
def self.clear
|
62
|
-
system('clear')
|
7
|
+
def self.show
|
8
|
+
BasmouraApi.new.curriculum
|
63
9
|
end
|
64
10
|
end
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: basmoura
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0
|
4
|
+
version: 0.1.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Breno Moura
|
@@ -70,13 +70,14 @@ files:
|
|
70
70
|
- basmoura.gemspec
|
71
71
|
- bin/basmoura
|
72
72
|
- lib/basmoura.rb
|
73
|
+
- lib/basmoura/basmoura_api.rb
|
73
74
|
- lib/basmoura/version.rb
|
74
75
|
homepage: ''
|
75
76
|
licenses:
|
76
77
|
- MIT
|
77
78
|
metadata: {}
|
78
|
-
post_install_message: This is a simple gem to show my professional informations.Type
|
79
|
-
basmoura to see it
|
79
|
+
post_install_message: This is a simple gem to show my professional informations. Type
|
80
|
+
basmoura -s to see it
|
80
81
|
rdoc_options: []
|
81
82
|
require_paths:
|
82
83
|
- lib
|