Repurposing LNG terminals for Hydrogen Ammonia: Feasibility and Cost Saving
Ruby can haz Everyone
1. Ruby Can Haz
EVERYONE!
Mikel Lindsaar
@raasdnil
Friday, 22 April 2011
2. Working in Rails & Ruby for 5+ Years
Author of Mail, maintain TMail
Rails Committer
Entrepreneur
http://stillalive.com/
http://rubyx.com/
Friday, 22 April 2011
9. 6 Steps to Patch
Fork on GitHub
Clone
Write a failing test case
Run the tests { Fix the code }
Push to your fork
Send a pull request
Friday, 22 April 2011
34. Setup Your Gem
Read http://docs.rubygems.org/read/book/7
Create a simple directory structure
Get your tests failing
Friday, 22 April 2011
35. Simple Gem Creation
You don’t need no tools
http://github.com/rubyx/nugget
Builds a gem skeleton with ruby
$ ruby -s <(curl -s https://github.com/rubyx/nugget/raw/master/install.rb)
Friday, 22 April 2011
36. More on Nugget
http://github.com/rubyx/nugget
Need to do lots of things to get started
Lowers barrier to entry to release a gem
5 minutes => Nothing to published on rubygems
Friday, 22 April 2011
38. Nugget Patches Wanted
http://github.com/rubyx/nugget
Add test unit support
Rails gem support?
Make it a gem
Friday, 22 April 2011
39. Test First Development
I use RSpec because I am lazy and forget stuff
EVERYTHING in Mail is BDD
Regressions Caught
Seriously - do it
Friday, 22 April 2011
40. Testing for Libraries
Start Simple
Comments in Spec Files are OK
Use Custom Matchers
Break Down Your Spec Files
Spec in Multiple Rubies
Friday, 22 April 2011
52. Break Down Spec Files
26 Sub Directories
79 Ruby Spec Files
73 Edge Case Emails
Many Many Lines of Specs
1,289 examples
No Failures :)
Friday, 22 April 2011
53. Spec in Multiple Rubies
Have to be a good Ruby Citizen
MRI - 1.8.7, 1.9.2
JRuby
REE
Rubinius
Friday, 22 April 2011
61. Encourage Participation
MIT License
Clear “How to Test” Instructions
Clear “How to Contribute” Instructions
Modular Design
Mail has 53 contributors
Friday, 22 April 2011
63. Questions?
Mikel Lindsaar
@raasdnil
RubyX.com StillAlive.com
We are hiring!
I can fix thiz: http://netherregionoftheearthii.blogspot.com/2010_04_18_archive.html
Video Cat: http://www.coolfunnycats.com/?p=1954
Repair Cat: http://www.mike2.com/category/animals/cats/page/4/
All Other Cats: http://icanhascheezburger.com/
Friday, 22 April 2011