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
62
0
Share
Embed
Copy iframe code
Copy JS code
Copy link
Start on current slide
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
85
Other Decks in Programming
See All in Programming
5分で問診!Composer セキュリティ健康診断
codmoninc
0
390
吝嗇家のためのAI活用 / AI development for miser - ChatGPT + Issue Driven Development
tooppoo
0
190
Even G2とAWSで推しのエージェントを召喚しよう!
har1101
1
170
なぜ関数型プログラミングで「型」と「証明」が語られるのか #fp_matsuri
kajitack
3
970
The Bowling Game- From Imperative to Functional Programming - Part 1
philipschwarz
PRO
0
330
えっ!!コードを読まずに開発を!?
hananouchi
0
220
「正の参照」と 「負の導出」で組む ハーネスエンジニアリング
cottpan
1
140
AIキャラアプリkaiwaの低遅延音声通話基盤をどう作ったか - AWS Gravitonで支える低遅延・低コストAI Agent基盤
mogamit
0
170
Terraform標準の組織で AWS CDKをどう使うか
mu7889yoon
0
300
Foundation Models frameworkで画像分析
ryodeveloper
1
120
Apache Hive: Toward a Cloud Native Lakehouse
okumin
0
140
才能?センス?知らん、 続けたもん勝ちだ。-- 結婚・出産・癌を越えてなお、私がプロダクトを創り続ける理由
16bitidol
2
870
Featured
See All Featured
A designer walks into a library…
pauljervisheath
211
24k
A better future with KSS
kneath
240
18k
Why Mistakes Are the Best Teachers: Turning Failure into a Pathway for Growth
auna
0
180
Intergalactic Javascript Robots from Outer Space
tanoku
273
27k
B2B Lead Gen: Tactics, Traps & Triumph
marketingsoph
0
180
Getting science done with accelerated Python computing platforms
jacobtomlinson
2
330
Navigating the moral maze — ethical principles for Al-driven product design
skipperchong
2
420
Impact Scores and Hybrid Strategies: The future of link building
tamaranovitovic
0
340
Agile Leadership in an Agile Organization
kimpetersen
PRO
0
190
Raft: Consensus for Rubyists
vanstee
141
7.6k
Visual Storytelling: How to be a Superhuman Communicator
reverentgeek
2
590
Discover your Explorer Soul
emna__ayadi
2
1.2k
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