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
luizvarela
May 19, 2014
Programming
0
56
Criando sua Ruby Gem
Talk do Ruby Monrnig
luizvarela
May 19, 2014
Tweet
Share
More Decks by luizvarela
See All by luizvarela
Performance Em Aplicações Rails - Do jeito certo
luizvarela
1
76
Other Decks in Programming
See All in Programming
Breaking Up with Big ViewModels — Without Breaking Your Architecture (droidcon Berlin 2025)
steliosf
PRO
1
350
明日から始めるリファクタリング
ryounasso
0
120
どの様にAIエージェントと 協業すべきだったのか?
takefumiyoshii
2
620
チームの境界をブチ抜いていけ
tokai235
0
110
NetworkXとGNNで学ぶグラフデータ分析入門〜複雑な関係性を解き明かすPythonの力〜
mhrtech
3
1.1k
The Flutter Journey of Building a Live Streaming App — With a Side of Performance Tuning
u503
1
100
デミカツ切り抜きで面倒くさいことはPythonにやらせよう
aokswork3
0
210
CSC305 Lecture 05
javiergs
PRO
0
210
Le côté obscur des IA génératives
pascallemerrer
0
130
GraphQL×Railsアプリのデータベース負荷分散 - 月間3,000万人利用サービスを無停止で
koxya
1
1.2k
Advance Your Career with Open Source
ivargrimstad
0
400
Local Peer-to-Peer APIはどのように使われていくのか?
hal_spidernight
2
460
Featured
See All Featured
実際に使うSQLの書き方 徹底解説 / pgcon21j-tutorial
soudai
PRO
189
55k
Statistics for Hackers
jakevdp
799
220k
Producing Creativity
orderedlist
PRO
347
40k
How to train your dragon (web standard)
notwaldorf
96
6.3k
Side Projects
sachag
455
43k
Designing for Performance
lara
610
69k
Making the Leap to Tech Lead
cromwellryan
135
9.5k
Code Reviewing Like a Champion
maltzj
525
40k
Cheating the UX When There Is Nothing More to Optimize - PixelPioneers
stephaniewalter
285
14k
Rebuilding a faster, lazier Slack
samanthasiow
84
9.2k
KATA
mclloyd
32
15k
The Art of Delivering Value - GDevCon NA Keynote
reverentgeek
15
1.7k
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