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
Gemcutting 101
Search
tdumitrescu
January 14, 2014
Programming
0
380
Gemcutting 101
An overview of the steps to making and publishing your own Ruby gem
tdumitrescu
January 14, 2014
Tweet
Share
Other Decks in Programming
See All in Programming
AWS Application Composerで始める、 サーバーレスなデータ基盤構築 / 20240406-jawsug-hokuriku-shinkansen
kasacchiful
1
260
ONE WEDGE_company_guide
1wedge_one
0
440
GitHub Copilotのススメ
marcy731
0
190
デフォルトにして至高、RubyMineの大好きな所
ruzia
0
230
MetricKitで予期せぬ終了を検知する話 / Detect unexpected termination with MetricKit
nekowen
0
180
Anthropic Cookbook のおすすめレシピ
schroneko
7
790
データアナリストが行うDatabricksを活用したETLの自動化事例
shinoa
0
260
What We Can Learn From OSS
inouehi
0
420
ADRを一年運用してみた/adr_after_a_year
hanhan1978
7
2.3k
Goのmultiple errorsについて (2024年4月版)
syumai
1
370
try!Swift Tokyo 2024 参加報告 LT
akidon0000
1
220
二郎系ラーメンのコールで学ぶ AST 解析
memory1994
PRO
7
1.7k
Featured
See All Featured
RailsConf 2023
tenderlove
2
540
Into the Great Unknown - MozCon
thekraken
10
990
Atom: Resistance is Futile
akmur
258
25k
Bash Introduction
62gerente
604
210k
Art, The Web, and Tiny UX
lynnandtonic
288
19k
Debugging Ruby Performance
tmm1
70
11k
Fight the Zombie Pattern Library - RWD Summit 2016
marcelosomers
226
16k
VelocityConf: Rendering Performance Case Studies
addyosmani
320
23k
Thoughts on Productivity
jonyablonski
57
3.8k
For a Future-Friendly Web
brad_frost
171
8.9k
Automating Front-end Workflow
addyosmani
1355
200k
Principles of Awesome APIs and How to Build Them.
keavy
120
16k
Transcript
carvin’ it out: basics of gemcutting ted dumitrescu signal creative
[email protected]
http://cmme.org/tdumitrescu http://github.com/tdumitrescu http://signalcreative.co
three beautiful steps ¡ extracting ¡ testing ¡ publishing ted dumitrescu: basics of
gemcutting | http://cmme.org/tdumitrescu
extracting ¡ write the code before making the gem sample repo:
https://github.com/tdumitrescu/gemex ¡ bootstrap the project: http://bundler.io/v1.5/bundle_gem.html bundle gem old_yeller ¡ edit gemspec ¡ code in lib/ ted dumitrescu: basics of gemcutting | http://cmme.org/tdumitrescu
testing ¡ automated testing! ¡ with rspec: .gemspec: spec.add_development_dependency "rspec", "~> 2.14"
bundle bundle exec rspec --init spec/old_yeller_spec.rb bundle exec rspec" ¡ manual testing: loading local gems Gemfile: gem "old_yeller", path: [path to gem] ted dumitrescu: basics of gemcutting | http://cmme.org/tdumitrescu
publishing ¡ on rubygems: http://guides.rubygems.org/make-your-own-gem/ ¡ build gem locally: gem build old_yeller.gemspec"
¡ push to rubygems: gem push old_yeller-0.0.1.gem ¡ don’t forget to publish the code (try Github!) ted dumitrescu: basics of gemcutting | http://cmme.org/tdumitrescu
some further topics ¡ versioning ¡ configuration patterns ¡ using datastores and complex
services ¡ integration with Rails (engines) ¡ personal examples: https://github.com/tdumitrescu/feature_guard https://github.com/lumoslabs/scripterator ted dumitrescu: basics of gemcutting | http://cmme.org/tdumitrescu