basmoura 0.0.3 → 0.0.4
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 +1 -0
- data/.rvmrc +62 -0
- data/basmoura.gemspec +4 -1
- data/bin/basmoura +4 -0
- data/lib/basmoura/version.rb +1 -1
- data/lib/basmoura.rb +12 -4
- metadata +7 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 729ec603f4fe87471b75818ed5387bd6a608f7ea
|
4
|
+
data.tar.gz: 796aeb679defb42e09b7017c33ea3517f6aa56ad
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 3b9ef23c2be68ddb3179b6aefc18537d7198730a00de3029592acd1c291126f8b16513e3d36a050d1a3ab8248a0c2b323cb2bf023a6a7d647b7a90c709157c2e
|
7
|
+
data.tar.gz: 67f92ae7446d514565db0a86c080db6b91408aee861e202622618a012a32e78a92467ce78b54b797a8c21d327467dd16553967bc2008ebbb99413cb27d0261a6
|
data/.gitignore
CHANGED
data/.rvmrc
ADDED
@@ -0,0 +1,62 @@
|
|
1
|
+
#!/usr/bin/env bash
|
2
|
+
|
3
|
+
# This is an RVM Project .rvmrc file, used to automatically load the ruby
|
4
|
+
# development environment upon cd'ing into the directory
|
5
|
+
|
6
|
+
# First we specify our desired <ruby>[@<gemset>], the @gemset name is optional,
|
7
|
+
# Only full ruby name is supported here, for short names use:
|
8
|
+
# echo "rvm use 2.1.0@basmoura" > .rvmrc
|
9
|
+
environment_id="ruby-2.1.0@basmoura"
|
10
|
+
|
11
|
+
# Uncomment the following lines if you want to verify rvm version per project
|
12
|
+
# rvmrc_rvm_version="1.25.10 (stable)" # 1.10.1 seems like a safe start
|
13
|
+
# eval "$(echo ${rvm_version}.${rvmrc_rvm_version} | __rvm_awk -F. '{print "[[ "$1*65536+$2*256+$3" -ge "$4*65536+$5*256+$6" ]]"}' )" || {
|
14
|
+
# echo "This .rvmrc file requires at least RVM ${rvmrc_rvm_version}, aborting loading."
|
15
|
+
# return 1
|
16
|
+
# }
|
17
|
+
|
18
|
+
# First we attempt to load the desired environment directly from the environment
|
19
|
+
# file. This is very fast and efficient compared to running through the entire
|
20
|
+
# CLI and selector. If you want feedback on which environment was used then
|
21
|
+
# insert the word 'use' after --create as this triggers verbose mode.
|
22
|
+
if [[ -d "${rvm_path:-$HOME/.rvm}/environments"
|
23
|
+
&& -s "${rvm_path:-$HOME/.rvm}/environments/$environment_id" ]]
|
24
|
+
then
|
25
|
+
\. "${rvm_path:-$HOME/.rvm}/environments/$environment_id"
|
26
|
+
for __hook in "${rvm_path:-$HOME/.rvm}/hooks/after_use"*
|
27
|
+
do
|
28
|
+
if [[ -f "${__hook}" && -x "${__hook}" && -s "${__hook}" ]]
|
29
|
+
then \. "${__hook}" || true
|
30
|
+
fi
|
31
|
+
done
|
32
|
+
unset __hook
|
33
|
+
if (( ${rvm_use_flag:=1} >= 2 )) # display only when forced
|
34
|
+
then
|
35
|
+
if [[ $- == *i* ]] # check for interactive shells
|
36
|
+
then printf "%b" "Using: $(tput setaf 2 2>/dev/null)$GEM_HOME$(tput sgr0 2>/dev/null)
|
37
|
+
" # show the user the ruby and gemset they are using in green
|
38
|
+
else printf "%b" "Using: $GEM_HOME
|
39
|
+
" # don't use colors in non-interactive shells
|
40
|
+
fi
|
41
|
+
fi
|
42
|
+
else
|
43
|
+
# If the environment file has not yet been created, use the RVM CLI to select.
|
44
|
+
rvm --create "$environment_id" || {
|
45
|
+
echo "Failed to create RVM environment '${environment_id}'."
|
46
|
+
return 1
|
47
|
+
}
|
48
|
+
fi
|
49
|
+
|
50
|
+
# If you use bundler, this might be useful to you:
|
51
|
+
# if [[ -s Gemfile ]] && {
|
52
|
+
# ! builtin command -v bundle >/dev/null ||
|
53
|
+
# builtin command -v bundle | GREP_OPTIONS="" \grep $rvm_path/bin/bundle >/dev/null
|
54
|
+
# }
|
55
|
+
# then
|
56
|
+
# printf "%b" "The rubygem 'bundler' is not installed. Installing it now.\n"
|
57
|
+
# gem install bundler
|
58
|
+
# fi
|
59
|
+
# if [[ -s Gemfile ]] && builtin command -v bundle >/dev/null
|
60
|
+
# then
|
61
|
+
# bundle install | GREP_OPTIONS="" \grep -vE '^Using|Your bundle is complete'
|
62
|
+
# fi
|
data/basmoura.gemspec
CHANGED
@@ -14,7 +14,7 @@ Gem::Specification.new do |spec|
|
|
14
14
|
spec.license = "MIT"
|
15
15
|
|
16
16
|
spec.files = `git ls-files -z`.split("\x0")
|
17
|
-
spec.executables =
|
17
|
+
spec.executables = 'basmoura'
|
18
18
|
spec.test_files = spec.files.grep(%r{^(test|spec|features)/})
|
19
19
|
spec.require_paths = ["lib"]
|
20
20
|
|
@@ -22,4 +22,7 @@ Gem::Specification.new do |spec|
|
|
22
22
|
spec.add_dependency 'colorize', '~> 0.7.0'
|
23
23
|
|
24
24
|
spec.add_development_dependency "bundler", "~> 1.5"
|
25
|
+
|
26
|
+
spec.post_install_message = "This is a simple gem to show my professional informations."\
|
27
|
+
"Type basmoura to see it"
|
25
28
|
end
|
data/bin/basmoura
ADDED
data/lib/basmoura/version.rb
CHANGED
data/lib/basmoura.rb
CHANGED
@@ -6,13 +6,17 @@ require "colorize"
|
|
6
6
|
|
7
7
|
module Basmoura
|
8
8
|
def self.curriculum
|
9
|
+
clear
|
9
10
|
puts "-" * 80
|
11
|
+
|
12
|
+
puts " Breno Augusto Santana Moura".yellow
|
13
|
+
|
10
14
|
puts "Basic Info".green
|
11
15
|
basic_info
|
12
16
|
puts ""
|
13
17
|
|
14
18
|
puts "Contact Info".green
|
15
|
-
contact_info.each { |k, v| puts "#{k}: #{v}" }
|
19
|
+
contact_info.each { |k, v| puts "#{k.capitalize}: #{v}" }
|
16
20
|
puts ""
|
17
21
|
|
18
22
|
puts "Qualifications".green
|
@@ -24,18 +28,19 @@ module Basmoura
|
|
24
28
|
puts "-" * 80
|
25
29
|
end
|
26
30
|
|
31
|
+
private
|
27
32
|
def self.basic_info
|
28
33
|
puts "Brasileiro, Solteiro, #{age_calculate} anos"
|
29
34
|
end
|
30
35
|
|
31
36
|
def self.contact_info
|
32
|
-
contact = { :phone => "(79) 8835-3428",
|
37
|
+
contact = { :phone => "+55 (79) 8835-3428",
|
33
38
|
:github => "http://github.com/basmoura",
|
34
39
|
:email => "basmoura@gmail.com" }
|
35
40
|
end
|
36
41
|
|
37
42
|
def self.qualifications
|
38
|
-
puts "- Cursando o sexto período da graduação em sistemas de informação;"
|
43
|
+
puts "- Cursando o sexto período da graduação em sistemas de informação;"
|
39
44
|
puts "- Bons conhecimentos em Ruby on Rails, Java, C#, asp.net, HTML5, CSS3 e Scrum;"
|
40
45
|
puts "- Experiência em desenvolvimento de sistemas em Ruby on Rails, asp.net e C#"
|
41
46
|
end
|
@@ -46,11 +51,14 @@ module Basmoura
|
|
46
51
|
:pt_BR => "Advançado" }
|
47
52
|
end
|
48
53
|
|
49
|
-
private
|
50
54
|
def self.age_calculate
|
51
55
|
today = Date.today
|
52
56
|
birthdate = Date.parse("27/09/1988")
|
53
57
|
age = today.year - birthdate.year
|
54
58
|
age = age - 1 if birthdate.month > today.month
|
55
59
|
end
|
60
|
+
|
61
|
+
def self.clear
|
62
|
+
system('clear')
|
63
|
+
end
|
56
64
|
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.0.4
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Breno Moura
|
@@ -56,23 +56,27 @@ description: 'I believe in one simple thing: if you are a developer, do all you
|
|
56
56
|
as a developer'
|
57
57
|
email:
|
58
58
|
- basmoura@gmail.com
|
59
|
-
executables:
|
59
|
+
executables:
|
60
|
+
- basmoura
|
60
61
|
extensions: []
|
61
62
|
extra_rdoc_files: []
|
62
63
|
files:
|
63
64
|
- ".gitignore"
|
65
|
+
- ".rvmrc"
|
64
66
|
- Gemfile
|
65
67
|
- LICENSE.txt
|
66
68
|
- README.md
|
67
69
|
- Rakefile
|
68
70
|
- basmoura.gemspec
|
71
|
+
- bin/basmoura
|
69
72
|
- lib/basmoura.rb
|
70
73
|
- lib/basmoura/version.rb
|
71
74
|
homepage: ''
|
72
75
|
licenses:
|
73
76
|
- MIT
|
74
77
|
metadata: {}
|
75
|
-
post_install_message:
|
78
|
+
post_install_message: This is a simple gem to show my professional informations.Type
|
79
|
+
basmoura to see it
|
76
80
|
rdoc_options: []
|
77
81
|
require_paths:
|
78
82
|
- lib
|