Hacking on gems
Upcoming SlideShare
Loading in...5
×
 

Like this? Share it with your network

Share

Hacking on gems

on

  • 324 views

 

Statistics

Views

Total Views
324
Views on SlideShare
316
Embed Views
8

Actions

Likes
0
Downloads
0
Comments
0

2 Embeds 8

http://www.linkedin.com 6
https://www.linkedin.com 2

Accessibility

Categories

Upload Details

Uploaded via as Microsoft PowerPoint

Usage Rights

© All Rights Reserved

Report content

Flagged as inappropriate Flag as inappropriate
Flag as inappropriate

Select your reason for flagging this presentation as inappropriate.

Cancel
  • Full Name Full Name Comment goes here.
    Are you sure you want to
    Your message goes here
    Processing…
Post Comment
Edit your comment

Hacking on gems Presentation Transcript

  • 1. Hacking on Gems A GitHub-Oriented Workflow Evgeny Rahman
  • 2. About Me • Developer • Curious but lazy • Hate getting stuck t & g: evgenyrahman
  • 3. Important Note
  • 4. Using gems • Somebody solved part of your problem • Easy to get / easy to install • Ruby community is great • RubyGems.org
  • 5. Bundler • gem install bundler • bundle init • edit Gemfile • bundle
  • 6. OffYou Go
  • 7. But Then
  • 8. Possible Problems • Gem is broken for your environment • Bug in gem breaks your code • Missing feature
  • 9. Maybe • Nothing is broken, but you’re nice • Documentation • Tests • Security
  • 10. What Now? • The gem’s source is on GitHub (hooray!) • You have a GitHub account (yay!) • Fork the repo • git clone <repo-url>
  • 11. Do Work • git checkout -b <new-branch> • Add the fix/feature/docs • Make sure to add tests • Make sure all tests pass! • Don’t bump version! • Commit and push to forked repo
  • 12. Pull Request • Contact gem author/maintainer • Create a pull request on the gem’s repo • Point to <new-branch> on your repo • Be descriptive in pull request • Issue created automatically
  • 13. Dreams Do Come True! • Pull Request is accepted and merged • New version of gem is published • ??? • Profit! (Fame?)
  • 14. What If? • Host your forked gems • Monkeypatch in application • But it’s better to contribute
  • 15. Thanks! Questions?