Upgrade to Pro
— share decks privately, control downloads, hide ads and more …
Speaker Deck
Features
Speaker Deck
PRO
Sign in
Sign up for free
Search
Search
Criando sua Ruby Gem
Search
Sponsored
·
Your Podcast. Everywhere. Effortlessly.
Share. Educate. Inspire. Entertain. You do you. We'll handle the rest.
→
luizvarela
May 19, 2014
Programming
61
0
Share
Criando sua Ruby Gem
Talk do Ruby Monrnig
luizvarela
May 19, 2014
More Decks by luizvarela
See All by luizvarela
Performance Em Aplicações Rails - Do jeito certo
luizvarela
1
79
Other Decks in Programming
See All in Programming
How We Benchmarked Quarkus: Patterns and anti-patterns
hollycummins
1
160
Swift Concurrency Type System
inamiy
1
550
Road to RubyKaigi: Play Hard(ware)
makicamel
1
470
エラー処理の温故知新 / history of error handling technic
ryotanakaya
6
1.5k
PHP で mp3 プレイヤーを実装しよう
m3m0r7
PRO
0
290
CDK Deployのための ”反響定位”
watany
5
860
🦞OpenClaw works with AWS
licux
1
240
AIベース静的検査器の偽陽性率を抑える工夫3選
orgachem
PRO
4
360
事業会社でのセキュリティ長期インターンについて
masachikaura
1
270
ハーネスエンジニアリングとは?
kinopeee
13
6.2k
検索設計から 推論設計への重心移動と Recall-First Retrieval
po3rin
4
1.2k
YJITとZJITにはイカなる違いがあるのか?
nakiym
0
250
Featured
See All Featured
Conquering PDFs: document understanding beyond plain text
inesmontani
PRO
4
2.6k
What's in a price? How to price your products and services
michaelherold
247
13k
Everyday Curiosity
cassininazir
0
200
The SEO Collaboration Effect
kristinabergwall1
1
430
Facilitating Awesome Meetings
lara
57
6.8k
How To Stay Up To Date on Web Technology
chriscoyier
790
250k
Kristin Tynski - Automating Marketing Tasks With AI
techseoconnect
PRO
0
230
KATA
mclloyd
PRO
35
15k
Distributed Sagas: A Protocol for Coordinating Microservices
caitiem20
333
22k
Agile that works and the tools we love
rasmusluckow
331
21k
How to Ace a Technical Interview
jacobian
281
24k
Why You Should Never Use an ORM
jnunemaker
PRO
61
9.8k
Transcript
Criando sua própria Ruby Gem luizvarela
O que são Ruby Gems? • Código Ruby encapsulado; •
Wrapper para bibliotecas em C; • Gerenciadas via Bundler;
• O mesmo código é usado em vários projetos; •
Evita reescrever código; • Participação da comunidade Open-Source. ◦ Criação de novas features; ◦ Bug fixes; Por que usar Gems?
• Code • Gem specification • Tests • Documentation O
que uma Gem deve incluir
Ferramentas que vamos utilizar MiniTest
Construindo nossa Gem
Let’s Code!! <3
Construindo nossa Gem
Construindo nossa Gem
Construindo nossa Gem
Construindo nossa Gem
Construindo nossa Gem
Construindo nossa Gem
Construindo nossa Gem
Esc Escrevendo testes
Escrevendo testes
Escrevendo Testes
Escrevendo Testes
Implementando o Bob
Escrevendo Testes
Escrevendo uma Rake Task
Rake Task
Pry
Pry
Travis CI / Codeclimate
Travis CI
Codeclimate
Publicando nossa Gem
• https://rubygems.org/ • http://bundler.io/ • http://pryrepl.org/ • http://exercism.io/ • http://docs.travis-ci.com/
• https://codeclimate.com/ Recursos Adicionais