RubyFlow : The Ruby Community Blog

Home   Submit   Sign Up   Log In   leaders   Twitter   RSS Feed  
 

bmichel — 27 posts

http://blog.menfin.info/

We just published Zobi, a gem that helps mix several functionalities in a Rails controller.
Our previous feature "Building a collection of Kittens" was a huge success for our application. So, the product owner decided to bring this collection of kittens to a brand new level of awesomeness. Our mission is to sort kittens based on their cuteness.
Maintaining an API documentation can be very time consuming. In the best case, you'll update the doc before each update, according to the new specifications, but in the real world, you have a deadline, and your colleagues are stuck waiting for your new feature to be implemented. In this case, you might forget to update the documentation. The solution is to use a tool that will dynamically generate this documentation.

Using Swagger UI, you can document your grape API very easily.
Enumerator is one of the most often used class in Ruby, but not a very popular one. Lots of people use it without even noticing its presence.
The Enumerable module in Ruby is very powerful, and Building a collection with Enumerable is a good introduction to start using for your own classes.
Ruby 2.0: respond_to?  dev.af83.com
It's really quite rare that a new realease of Ruby changes a behavior. But, there's one change in Ruby 2.0 that is definitely breaking some code: new behaviour of respond_to.
Big rails applications can be hard to maintain. In particular, logic in views can be a pain. Hopefully, there is a solution: using decorators.
Do you know module_function? If not, it's time to learn it!
When we build workers, we want them to be like an army of little spongebobs, always on the edge and ready to work. sponges helps you create this army of sponges, control them, and well… kill them at will too. Making them eager to work is now your job.
Web applications have been shifting from server to client, and with them a lot more Javascript code and stylesheets are written and, hopefully, re-used. While this is quite an obvious statement, it means that we need an efficient way to manage those assets. Bower is a tool for managing these assets and can be integrated in a Rails application.
Ruby 2.0 will have a new feature called Enumerator::Lazy and, if you don't know it, you should read this post.
We released a new version of Gaston, a configuration store that can be used in any Ruby project.
Ruby 2.0 will arrive soon and you can start to learn about some of its new features: Module#prepend and Module#refine.
Sapporo RubyKaigi 2012  dev.af83.com
Sapporo RubyKaigi is a Japan regional conference which has been held each year since 2008. One of my teammate has participated to the last edition and wrote about it and said how a pleasure it was.
Paresseux is a tool for lazy data migration in document-oriented database.
Rulu is a very nice conference in France and this year was another great success. This summary of the talks can show you a part of it and maybe will encourage you to come next year.
Devise is an awesome authentication engine for Ruby on Rails. There's already a ton of resources about this topic, so this post won't be a presentation about it but will show you one of its more useful feature.
Learn a nice Ruby trick! The Array method is a nice way to handle special cases about arrays and clean your code.
Redcarpet is a nice lib for parsing Markdown and rendering HTML (or other formats) from it. I explained how to extend it to generate an HTML tailored for your special needs.
I just blogged about how to avoid duplication in capistrano and I want to have your opinion about that.
I just blogged about Capistrano + Rails 3.1 assets on one tricky case.
I just published an article on our blog: 2 require tips for Rails 3.1 assets bundling with sprockets.
Spellchecking for HTML  dev.af83.com
I just launched HTML Spellchecker, a Ruby gem for spellchecking HTML fragments.
I just launched HTML truncator, a gem to truncate HTML strings properly. Explanations here.
For the why day, I just hacked two ZSH completion scripts for Bundler and RVM.
If you are a Vim user, you may be interested by the Merb plugin for Vim.
French version of rubyflow  flow.rubyfrance.org
There is now a french version of rubyflow thanks to the Ruby France association. French readers are invited to contribute.