Trio of Gems

872 views

Published on

Presentation given at October 2009 London Ruby User Group on three gems I have written:

Numerouno - English natural language parser
Baldrick - framework for readying RSS feeds and other sources to hack things together
Bumps - remote feature management for Cucumber

Published in: Technology, Design
0 Comments
0 Likes
Statistics
Notes
  • Be the first to comment

  • Be the first to like this

No Downloads
Views
Total views
872
On SlideShare
0
From Embeds
0
Number of Embeds
11
Actions
Shares
0
Downloads
11
Comments
0
Likes
0
Embeds 0
No embeds

No notes for slide

Trio of Gems

  1. 1. GemsI made some Brent Snook http://skillsmatter.com/podcast/ajax-ria/a-trio-of-gems Friday, 16 October 2009
  2. 2. Brent who? • Agile weenie from Melbourne, Australia • known to use Java when cornered • available for dev, coaching, children’s parties • fuglylogic.com • brentsnook Friday, 16 October 2009
  3. 3. Numerouno http://github.com/brentsnook/ numerouno Friday, 16 October 2009
  4. 4. parse a number require 'numerouno' 'five billion and forty two apples'.as_number => 5000000042 '65'.as_number => 65 require 'numerouno-parsing' Numerouno.parse 'one hundred and ten things' Friday, 16 October 2009
  5. 5. replace numbers require 'numerouno' 'two bit varmint'.sub_numbers => '2 bit varmint' require 'numerouno-parsing' Numerouno.replace '2 bit varmint' Friday, 16 October 2009
  6. 6. Cucumber steps require 'numerouno' Then /the meaning of life is (.+)/ do |number| 42.should == number.as_number end Then the meaning of life is forty two Then the meaning of life is 42 Friday, 16 October 2009
  7. 7. Baldrick http://github.com/brentsnook/ baldrick Friday, 16 October 2009
  8. 8. inspired by Friday, 16 October 2009
  9. 9. cuppa.rb require 'rubygems' require 'baldrick_serve' feed_url = 'http://search.twitter.com/search.atom?q=cup+of' listen_to :feed, :at => feed_url on_hearing /cup of (.*?)[.,]/ do |beverage, order| puts "#{order[:who]} would like a cup of #{beverage}" end Friday, 16 October 2009
  10. 10. orders === brent on commodore64.:43215 === * [25-Feb-2009 10:17 PM] I’d like a cup of tea, maybe a biscuit too Friday, 16 October 2009
  11. 11. tasks kettle.fill kettle.switch_on Friday, 16 October 2009
  12. 12. cuppa.rb require 'rubygems' require 'baldrick_serve' feed_url = 'http://search.twitter.com/search.atom?q=cup+of' listen_to :feed, :at => feed_url on_hearing /cup of (.*?)[.,]/ do |beverage, order| puts "#{order[:who]} would like a cup of #{beverage}" end Friday, 16 October 2009
  13. 13. why not use it for Friday, 16 October 2009
  14. 14. Bumps http://github.com/brentsnook/ bumps Friday, 16 October 2009
  15. 15. the bigger picture ? Friday, 16 October 2009
  16. 16. alternatives • Remote Feature http://github.com/mhennemeyer/remote_feature • Pickler http://github.com/tpope/pickler • CucumberTFS http://github.com/mscottford/cucumbertfs Friday, 16 October 2009
  17. 17. configuration (env.rb) require 'bumps' Bumps.configure do use_server 'http://localhost:1981' end Friday, 16 October 2009
  18. 18. next ? Friday, 16 October 2009
  19. 19. images Cucumber - http://www.flickr.com/photos/vizzzual-dot-com/2738586453/ Steps - http://commons.wikimedia.org/wiki/File:Step_Ladder.jpg Sinatra - http://www.flickr.com/photos/t/916884/ Barrel Hitch Instructions - http://commons.wikimedia.org/wiki/File:Barrel_hitch_instructions.png Puzzle Piece - http://commons.wikimedia.org/wiki/File:Puzzle.svg Cup of Tea - http://www.flickr.com/photos/psd/54314099 Lava Lamp - http://commons.wikimedia.org/wiki/File:Lavalampe.jpg Nuclear power plant - http://commons.wikimedia.org/wiki/File:Nuclear_power.JPG Arduino - http://commons.wikimedia.org/wiki/File:Arduino-0017-512x512px.png Bumps Sign - http://commons.wikimedia.org/wiki/File:0bnsc-109_0.svg Wave Logo - http://commons.wikimedia.org/wiki/File:Google_Wave_logo.png Friday, 16 October 2009

×