December 2010
9 posts
2 tags
[ Ruby ] Ruby advent calendar 2010: Day 9
Yesterday I presented to you the Ruby Koans project to learn Ruby through tests. Today I will show the list of currently tests frameworks built by the Ruby community.
Right now I’m learning shoulda, just for the fun of it. I already have some experience with Rspec but you never know what you can find testing other frameworks and ways to do the same thing. Here is the list pick one and try...
2 tags
[ Ruby ] Ruby advent calendar 2010: Day 8
The ruby koans is a project to learn Ruby making a set of tests pass. It’s a good way to learn any language, if you already know Ruby you can use it to practice too.
http://rubykoans.com/
Enjoy!
2 tags
[ Ruby ] Ruby advent calendar 2010: Day 7
Yesterday I put the link to Active Resource’s documentation and talked a little bit about building wrappers for RESTful API’s. Today is the turn for HTTParty a gem to facilitate the design of such wrappers.
http://httparty.rubyforge.org/
Enjoy!
2 tags
[ Ruby ] Ruby advent calendar 2010: Day 6
Probably you already know about Active Resource (AR), but this is one of the most use gems around is part of Rails core and probably on most gem’s that explode a RESful API.
If you are planning to built a wrapper around any RESTful API around take a look to this useful gem.
http://api.rubyonrails.org/classes/ActiveResource/Base.html
Enjoy!
2 tags
[ Ruby ] Ruby advent calendar 2010: Day 5
Today is the day for learning about faking web request with FakeWeb.
http://fakeweb.rubyforge.org/
Enjoy!
2 tags
[ Ruby ] Ruby advent calendar 2010: Day 4
After learning about mixin’s in Ruby it now the turn to learn about delegations, the best and easy way that I found was using the Ruby standard library lib forwardable.
Here is the link to it’s documentation and examples:
http://www.ensta.fr/~diam/ruby/online/ruby-doc-stdlib/libdoc/forwardable/rdoc/index.html
Enjoy!
2 tags
[ Ruby ] Advent calendar 2010: Day 3
Is good to know how mixin really works to design better API’s in Ruby. I found some good tutorials regarding this topic and I hope you find it useful too.
http://juixe.com/techknow/index.php/2006/06/15/mixins-in-ruby/
http://www.ruby-doc.org/docs/ProgrammingRuby/html/tut_modules.html
http://chadfowler.com/2009/7/8/how-ruby-mixins-work-with-inheritance
Enjoy!
2 tags
[ Ruby ] Ruby advent calendar 2010: Day 2
I decided just to put links to useful stuffs each day, here is the second thing I found useful:
Hashie is a growing collection of tools that extend Hashes and make them more useful.
https://github.com/intridea/hashie
Enjoy!
2 tags
[ Ruby ] Ruby Advent Calendar 2010: Day 1
After spending a good amount of my day today searching the Internet for this year Advent Calendar about Ruby and failing miserably, I decide to create my own just for the record, I’m not an expert in Ruby in any manner I’m just doing this to share tips and stuffs like.
For the first tip of the day, I’ll be sharing a decent way to create new Ruby gems using the tool bundler, all...