roberto_barros 0.0.2 → 1.0.3
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/data.yml +111 -0
- data/lib/roberto_barros.rb +33 -19
- metadata +6 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 8de8ee22ef36e2f70c4fb1b37af06a7a537388822cc4f27b2ac8763e20093bda
|
4
|
+
data.tar.gz: a1e1bc2f8ea00ff1dc5eafdb4589891bb3cdc548ef7fd88b08811888f292c628
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: f2f878acd3913525d07bad2f7e621771df72d2c943c58f5d63d3049e27a54b90dcbc427ee6bfe12d605743392c83bd2afaaeac59fb79c669ca9b08b553a73b72
|
7
|
+
data.tar.gz: 343832e7cfa8e81b9780280d8e8cd826528e8c912404b7204bee6fc1f0320e09a50538fd5060991441448534007a92f777a9129e2204fc7062cf933de6a04d25
|
data/lib/data.yml
ADDED
@@ -0,0 +1,111 @@
|
|
1
|
+
pt-BR:
|
2
|
+
quotes: [
|
3
|
+
"O maior desafio da Inteligência Artificial é a burrice natural.",
|
4
|
+
"Aqui na Le Wagon estamos nas condições normais de pressão e temperatura.",
|
5
|
+
"O melhor código é não ter código.",
|
6
|
+
"Você pode ter medo de muita coisa nessa vida, mas medo de sistema operacional não dá.",
|
7
|
+
"Daí você seleciona o cerquilha #",
|
8
|
+
"A cópia é o primeiro passo para a criação.",
|
9
|
+
"A pessoa escreve Rubens nos Trilhos e desenha uma rodovia.",
|
10
|
+
"A vida é muito curta para desperdiçar programando em Java.",
|
11
|
+
"E aí você toma um erro no meio da fuça!",
|
12
|
+
"Em 2019, performance se resolve com dinheiro.",
|
13
|
+
"Em programação, ou tem 0, ou tem 1, ou tem vários.",
|
14
|
+
"Essa é a mágica, que é mágica nenhuma, que o Rails faz.",
|
15
|
+
"Está um ótimo dia para programar.",
|
16
|
+
"Eu acho que quem tatua o rosto não entende como a sociedade funciona.",
|
17
|
+
"Eu sou um cara de hábitos simples - eu vejo cerveja, eu digo sim",
|
18
|
+
"Lutador de sumô não limpa a bunda sozinho.",
|
19
|
+
"Mas não faz sentido o que você está fazendo!",
|
20
|
+
"Mas se esse computador está ruim, se você colocar Windows vai ficar pior ainda!",
|
21
|
+
"Não existe projeto simples, existe dev sem imaginação.",
|
22
|
+
"Não existem limites para a criatividade do ser humano.",
|
23
|
+
"Não faz sentido! Ele quer trocar seis por meia dúzia!!",
|
24
|
+
"Né...",
|
25
|
+
"O importante da regra é saber quando quebrar a regra.",
|
26
|
+
"Open Source é a programação mais eficiente que existe.",
|
27
|
+
"Poder, poder, você pode, mas não sei porque você faria isso.",
|
28
|
+
"Quando você está programando, seu pior inimigo é você mesmo.",
|
29
|
+
"Reboot quem dá é a vida.",
|
30
|
+
"Scrum dá para aprender em 15 minutos, rsrsrs",
|
31
|
+
"Se começa com 'eco', não pode ser bom.",
|
32
|
+
"Se o código não é simples, não é Ruby.",
|
33
|
+
"Ué?",
|
34
|
+
"Um site nunca fica pronto. Mas você precisa entregar em algum momento.",
|
35
|
+
"O difícil era ter que programar todo dia. Mas contanto que eu programasse todo dia, a cada dia ficava mais fácil.",
|
36
|
+
"Pessoal, segue o código da aula de hoje",
|
37
|
+
"Agora que você vai pegar o carro sozinho e dirigir pela estrada sozinho é que você vai realmente aprender a dirigir.",
|
38
|
+
"Os últimos 10% do tempo de desenvolvimento de um software consomem 90% do tempo total do projeto.",
|
39
|
+
"Rentabilizar em cima do erro do usuário é um erro por si só.",
|
40
|
+
"Se você nunca apagou uma base de dados quando era novo, com certeza vai apagar depois de velho”,
|
41
|
+
"Se eu tivesse uma vidraçaria, eu chamaria de X-Vidros... Imagina a quantidade de gente que ia entrar sem querer achando que é putaria.",
|
42
|
+
"Só retardado reprova no psicotécnico",
|
43
|
+
"O projeto mais legal é aquele em que você está trabalhando no momento.",
|
44
|
+
"Temos muitas opções de almoço aqui na praça de alimentação, mas e aí pessoal? Vai ser MC ou BK?",
|
45
|
+
"Se você usa a frase 'que backup???' existe uma boa chance de ser dummy.",
|
46
|
+
"Um sênior é só um júnior que aprendeu como corrigir suas as cagadas sem criar novas.",
|
47
|
+
"Próxima aula a gente podia fazer no Red Dead Redemption.",
|
48
|
+
"Essa solução até funciona, mas ela é meio burra.",
|
49
|
+
"Você pode ter medo de muitas coisas nessa vida, mas ter medo de um sistema operacional não dá!",
|
50
|
+
"Você sempre pode fazer, mas não deve",
|
51
|
+
]
|
52
|
+
facts: [
|
53
|
+
"Reza a lenda que Roberto Barros inventou o COBOL em tempos longínquos.",
|
54
|
+
"Antigamente Roberto Barros colocava ventilador até em rack de servidor.",
|
55
|
+
"Um belo dia, Roberto Barros viu um menino cabisbaixo na calçada,
|
56
|
+
precisando de ajuda com Ruby. Ele ensinou ao menino tudo o que
|
57
|
+
sabia sobre a linguagem. O nome desse menino? Yukihiro Matsumoto.",
|
58
|
+
"Quando era pequeno, Roberto Barros construiu um computador usando apenas
|
59
|
+
107cm de fio de cobre, um relógio de pulso Casio, uma figurinha do
|
60
|
+
Campeonato Brasileiro de 89 e dois chicletes Ploc mascados.",
|
61
|
+
"A branch 'master' nos repositórios de Git foi inspirada em Roberto Barros",
|
62
|
+
"As letras '.rb' no final dos arquivos na verdade significam Roberto Barros",
|
63
|
+
"Roberto Barros consegue plugar um cabo USB de primeira.",
|
64
|
+
"Antigamente Roberto colocava ventilador até em rack de servidor."
|
65
|
+
]
|
66
|
+
en:
|
67
|
+
quotes: [
|
68
|
+
"The biggest challenge in Artificial Intelligence is natural stupidity.",
|
69
|
+
"Here at Le Wagon we are under standard conditions for temperature and pressure.",
|
70
|
+
"The best code is not having code.",
|
71
|
+
"You can fear a lot of things in this life, but not operating systems.",
|
72
|
+
"Then you select the octothorp #",
|
73
|
+
"A site is never ready but you need to deliver it at some point.",
|
74
|
+
"And then you get an error message in your pretty face!",
|
75
|
+
"Can do, you can, you may, but I cannot understand why someone would do it.",
|
76
|
+
"Copy is the first step to creation.",
|
77
|
+
"Dude writes Ruby on RAILS and draws a HIGHWAY.",
|
78
|
+
"I am a simple guy - I see beer, I say yes.",
|
79
|
+
"I think people who tattoo their faces don't grasp how Society works.",
|
80
|
+
"If it is bad, installing Windows will only make it worse!",
|
81
|
+
"If it is not simple, it is not Ruby.",
|
82
|
+
"If it starts with 'eco', it can't be good.",
|
83
|
+
"In 2019, you solve performance with money.",
|
84
|
+
"In programming has 0, or 1, or many",
|
85
|
+
"It doesn't make sense! He wants to exchange six for a half dozen!!",
|
86
|
+
"It makes no sense what you're doing!",
|
87
|
+
"It only takes 15 minutes to learn scrum, lol",
|
88
|
+
"It's life what gives you the real Reboot.",
|
89
|
+
"Life is too short to waste it coding in Java.",
|
90
|
+
"Neh...",
|
91
|
+
"Open Source is the most efficient software ever",
|
92
|
+
"Sumo fighters don't wipe their asses alone.",
|
93
|
+
"The important thing about rules is knowing when to break them",
|
94
|
+
"There are no limits to the creativity of the human being.",
|
95
|
+
"There is no such thing as a simplified project, there are Devs without imagination.",
|
96
|
+
"This is the magic, that isn't magic that rails does.",
|
97
|
+
"Today is a great day to code.",
|
98
|
+
"Ueh?",
|
99
|
+
"When coding, you are your own worst enemy.",
|
100
|
+
"The hard part is having to code every day. But, given that you code every day, each day becomes easier.",
|
101
|
+
"The last 10% of developing time of a software take actually 90% of the project time.",
|
102
|
+
"Monetizing upon user error is a mistake by itself.",
|
103
|
+
“If you never deleted a database when you were young, you will definitely do it when you're old”,
|
104
|
+
"If I had a windowpane, I'd call it X-Vidros... Imagine how many people would accidentally come in, thinking it's bitching.",
|
105
|
+
"If you never deleted a database when you were young, you will definitely do it when you're old”,
|
106
|
+
"Only retarded fail in psychotechnician",
|
107
|
+
"The coolest project is the one you're currently working on.",
|
108
|
+
"We have a lot of great options here in the food court. So folks, are we having McDonalds or Burger King?",
|
109
|
+
"If you use the phrase 'what backup???' there is a good chance that you are a dummy.",
|
110
|
+
"A senior is just a junior who has learned how to fix his mistakes without creating new ones."
|
111
|
+
]
|
data/lib/roberto_barros.rb
CHANGED
@@ -1,23 +1,37 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
3
|
+
require 'yaml'
|
4
|
+
|
5
|
+
# Return quotes and truths about the great Roberto Barros
|
1
6
|
class RobertoBarros
|
7
|
+
DATA = YAML.load_file(File.join(__dir__, 'data.yml'))
|
8
|
+
|
9
|
+
# Take no arguments. Return a quote straight from the mouth of the great
|
10
|
+
# Roberto Barros himself.
|
2
11
|
def self.quote
|
3
|
-
|
4
|
-
|
5
|
-
|
6
|
-
|
7
|
-
|
8
|
-
|
9
|
-
|
10
|
-
|
11
|
-
|
12
|
-
|
13
|
-
|
14
|
-
|
15
|
-
|
16
|
-
|
17
|
-
|
18
|
-
|
19
|
-
|
20
|
-
|
21
|
-
|
12
|
+
DATA['pt-BR']['quotes'].sample
|
13
|
+
end
|
14
|
+
|
15
|
+
# Take no arguments. Return a quote brilliantly translated into International
|
16
|
+
# Programmers' Language.
|
17
|
+
def self.in_ingrish
|
18
|
+
DATA['en']['quotes'].sample
|
19
|
+
end
|
20
|
+
|
21
|
+
# Take no arguments. Return a Chuck Norris-style fact (with the difference
|
22
|
+
# that these are true) about the great Roberto Barros.
|
23
|
+
def self.fact
|
24
|
+
DATA['pt-BR']['facts'].sample
|
25
|
+
end
|
26
|
+
|
27
|
+
# Take no arguments. Return a boolean of whether the great Roberto Barros is
|
28
|
+
# a genius.
|
29
|
+
def self.genius?
|
30
|
+
true
|
31
|
+
end
|
32
|
+
|
33
|
+
# Take no arguments. Return a boolean if the code works on your machine
|
34
|
+
def self.work_on_my_machine?
|
35
|
+
true
|
22
36
|
end
|
23
37
|
end
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: roberto_barros
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version:
|
4
|
+
version: 1.0.3
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- davisjr2000
|
@@ -10,12 +10,14 @@ bindir: bin
|
|
10
10
|
cert_chain: []
|
11
11
|
date: 2019-05-16 00:00:00.000000000 Z
|
12
12
|
dependencies: []
|
13
|
-
description: A simple gem that randomly generates quotes from
|
13
|
+
description: A simple gem that randomly generates quotes from the
|
14
|
+
great Roberto Barros.
|
14
15
|
email: davisrobertosouza@gmail.com
|
15
16
|
executables: []
|
16
17
|
extensions: []
|
17
18
|
extra_rdoc_files: []
|
18
19
|
files:
|
20
|
+
- lib/data.yml
|
19
21
|
- lib/roberto_barros.rb
|
20
22
|
homepage: https://github.com/davisjr2000/roberto-barros
|
21
23
|
licenses:
|
@@ -36,7 +38,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
36
38
|
- !ruby/object:Gem::Version
|
37
39
|
version: '0'
|
38
40
|
requirements: []
|
39
|
-
|
41
|
+
rubyforge_project:
|
42
|
+
rubygems_version: 2.7.10
|
40
43
|
signing_key:
|
41
44
|
specification_version: 4
|
42
45
|
summary: Roberto Barros
|