RubyFlow : The Ruby Community Blog

Home   Submit   Sign Up   Log In   leaders   Twitter   RSS Feed  
 
May 17, 2012
Katas are well known in the ruby community as a great way to practice the language. The kata gem provides facilities to make the practice easier. Writing a kata is as easy as writing an rspec test while taking it is a step by step process with github integration baked in. With this release kata supports other languages besides ruby and it commits to your git repo after completing a requirement during a practice session. Check it out and have a look at the code katas project for some samples to test yourself against!
We've been looking for ways to re-use code between multiple projects, and have come up with a an Engine setup that is easily separated and easy to override in your project. My friend wrote a nice example and tutorial.
May 16, 2012
At Engine Yard, we believe that you should have the flexibility to set up your environments and manage your data stores as you see fit. This is something we take seriously as we continue to evolve Engine Yard Cloud and today, we are happy to announce database-less environments as an alpha release. If you need to utilize data offerings outside of our natively supported MySQL or PostgreSQL, then this feature will enable you to do so. Check out more here.
I discover the Dante gem and I explain why I love it.
Just released version 0.0.1 of SheetMapper which supports mapping google spreadsheet rows into ruby objects. The use case is for easily parsing and traversing spreadsheet data in which rows can be represented as objects.
We've added Maxmind support to geocoder! You can see the pull-request and more details here.
May 15, 2012
Devise 2.1.0 version has been released  blog.plataformatec.com.br
With some deprecated features removed, bug fixes and a few features, Devise 2.1.0 has been released. Checkout the blog post about the release.
I just released devise-async. It provides an easy (and hack-free) way to configure Devise to send notification emails in background using your preferred queueing backend. Currently supports Resque, Sidekiq and Delayed::Job.
Out of a need for some more smarts for resque when it comes to picking up jobs from queues, resque-brokered was born. Currently it allows you to limit queues so that only one job is active from each queue at any time, but there's more to come.
Just pushed logbook. A personal CLI app that helps you log your memories onto virtual logbooks made of Gists.
This presentation shows how to use Vagrant & Puppet to easily provision virtual machines that can be used as development environments for your Rails projects. You'll keep your development machine fast, your environments isolated, and any developer will be able to get up and running on a new project in less than 5 minutes.

[With correct URL, sorry]
I posted our Git development workflow before reading Linus' complaints about GitHub pull requests, but it led me to think it might be of more interest to small Ruby teams who had read that.
Yell - Your Extensible Logging Library v0.10.0 has landed. New features include performance tweaks, thread-safety, a better DSL to writing own adapters and configuration from YAML files.

Also, there's now a companion yell-rails gem for easy integration with your favourite Ruby framework.
This blog post describes how to use Cloudinary to automatically deliver all static images of your Ruby on Rails web application through a CDN. Allowing you to improve site's performance without any code changes.

It also explains how to perform image transformations using your CSS or Sass files, e.g., for displaying Responsive Images for different devices.
May 14, 2012
A new iOS app Pocket RubyGems has been just released.
It allows you to view or search Ruby Gems and see authors, dependencies, project details and more.

Add any ruby gems to favorites, let iCloud sync them on all devices.
I just saw this RubyConf India Talk video talking about ruby tools in BigData.
Continuous Bloom Filter  colinsurprenant.com
Blog post about the Continuous Bloom Filter for unbounded data streams with Ruby implementation and Ruby gem
Rails 3, Ruby 1.9.3, MySQL2 & Win7  theresa.multimediatechnology.at
A technical note about combining Rails 3, MySQL and a Windows OS without any trouble. Especially a detailed solution about this common error: "Incorrect MySQL client library version! This gem was compiled for 6.0.0 but the client library is 5.5.16."
Pragmatic Metaprogramming  reasonablecode.com
I wrote a post on pragmatic metaprogramming.
A look at the numbers behind RailsConf presentation on "Making the Web Faster", and the web as a (future) presentation delivery platform.
FigLeaf gem now available  devblog.avdi.org
The FigLeaf library from my book "Objects on Rails" is now available as a RubyGem. FigLeaf helps you control the interface surface area of classes derived from e.g. ActiveRecord, by selectively hiding inherited methods from other objects.
May 13, 2012
We just married Virtus, a coercion gem, with the REST framework Roar. Check out how the automatic type conversion can help when parsing or rendering REST documents.
If you love Unix shell and want to interact with GitHub api v3, please have a look at github_cli.
May 12, 2012
Leaflet-Rails rubygem.  rubygems.org
I'm currently working on implementing a gem that includes leaflet.js in the asset pipeline. It can be found at RubyGems and I would love to have some feedback on it, as it's my first gem. Thanks!
Blog post about fixing the "You need to install ruby-debug to run the server" message when trying to use RVM, Ruby 1.9.3 and Ruby debugger.
I've just released a new version of paperclip-storage-tmp gem, which allows you to use an isolated, temporary storage for Paperclip 2.x (useful especially during tests).

Thanks to the gem, the filesystem state between tests is clean and isolated, your tests do not conflict with the attachments you uploaded in development, and your public/system is not cluttered.

New in this release: one-line hooks for RSpec and Cucumber.

Check out the README for more information.
fork gem released  rubygems.org
I released the fork gem, which provides a simple and object oriented interface to forking of your process.
The API provides ways to get the return value of a fork, get exceptions raised and send objects between the parent and a fork.
The project is - of course - found on github, and the documentation is available online.
May 11, 2012
jquery-ujs and jQuery trigger  blog.bigbinary.com
Blog on jquery-ujs and jquery trigger .
Blog post about our experience so far with RubyMotion
I just posted a quick walkthrough on using attribute whitelisting using the Ransack search gem. But, ignore that part. It was really just an excuse to talk about why a class macro was the wrong way to go about implementing this kind of feature.
Check out my new post about duplication code smell, it's right here.
I wrote an article about passing around open files (eg. live TCP connections) using UNIX sockets in Ruby. One person described it as "pretty slick in an old school deep unix geeky kinda way".
Just because i needed to connect to a cisco vpn using osx lion i've build Cisco decrypt so i don't need to wait for the cisco guys to actually build a client. It's kind of evil but it can save you some time.
Skypekit for Ruby  blog.railsware.com
Just released Skypekit for Ruby by Railsware. Also libskypekit can be wrapped in Lua, Erlang, LISP, etc.
Distributed locking via e.g. memcache to ensure 1 and only 1 does e.g. updating of a shared cache.
gem_of_thrones
May 10, 2012
Bloombroom v1.0 a Ruby gem with fast Bloom filters for bounded and unbounded (streaming) data, FNV hashing and bit fields has been released to Rubygems
Ever want to write an App that uses the Facebook graph? Well you can have a Facebook enabled site up, running and edited in only 5 minutes.
Ruby on Rails wurde in der Version 3.2.3 veröffentlicht. Neben einigen Bugfixes wurde auch einiges an der Sicherheit des Frameworks und dem Schutz vor unerlaubten Parametern bei mass assignment geändert. Weiterlesen
I have been working hand-in-glove with a Rails subcontractor. Here's our ultra-effective process.
I threw together a small hack to build a gem out of a single source file.
The other day I needed to clean a url from one of the parameter, blogged about it on the cookies blog.
Airbrake2Hipchat  github.com
Simple sinatra app to transport airbrake to hipchat. airbrake2hipchat
CSRF and Rails  blog.bigbinary.com
Posted a blog on CSRF and Rails .
Posted a blog on XSS and Rails .
The following instructions/solutions will help you to access your http://localhost:3000/ through Facebook: Rails Development with Facebook Canvas.
If you're using github repos in you Gemfile, check out this tip :

http://www.tech-angels.com/post/22772521112/gemfile-trick-for-github-repositories
I just wrote on my blog about the forthcoming release of my gem rubygems-bundler 1.0.0 you can try it now with:

gem install rubygems-bundler --pre
May 09, 2012
You start with nicely designed groups of objects. All the objects have clear responsibilities, and all interactions among them are explicit. Then, you have to consider additional requirements, such as transactions, integration with external systems, event generation. Soon you end up with a bunch of interconnected objects without clear boundaries. Maintaining this mess becomes harder and harder. Thankfully, Domain Driven Design provides a good remedy for this situation: Aggregates. Read more
This is my workflow (to date) for learning Ruby. Ruby Questions My goal is to have a mastery over both Ruby and the Rails framework. Previously I have felt "OK" with both the Ruby language and Rails framework, but I am not a heavy hitter with either. My workflow has been to read the books listed below creating questions based on what I felt was important material. Much of it I knew but just wanted it documented so I can review the language every few months or so. Much of it comes in and out of memory depending on the current program I am developing.

This list of questions is certainly not for everyone, do with it what you want. Some of it may not make sense as all questions and answers were created for me personally to read and review. Hopefully nothing in there is wrong, but PLEASE let me know if there is an error!
Heroku has long advocated having a strong parity between development and production environments, now you can run the same Ruby version in your production app that you used to develop it.

With the release of Bundler 1.2.0 beta and the Ruby build pack you can now select the version of Ruby you want to run on Heroku.