RubyFlow The Ruby and Rails community linklog

×

The Ruby and Rails community linklog

Made a library? Written a blog post? Found a useful tutorial? Share it with the Ruby community here or just enjoy what everyone else has found!

Submit a post

You can use basic HTML markup (e.g. <a>) or Markdown.
Note that your post may be edited to suit the format of the site.

As you are not logged in, you will be
directed via GitHub to signup or sign in

Post Preview

Note: Only the first pargraph is shown on the front page and overly long paragraphs may be broken up.

Auto-retry transactions on deadlocks in a db-agnostic way

I recently published transaction_retry gem. It’s like good old deadlock_retry but works across all major databases, is well tested against Rails 3.x and supports all isolation levels (not only the default REPEATABLE READ). The gem was extracted from a large financial application and comes with good test coverage. Give it a try if you see errors like these: [more inside]

Fun with Rock, Paper, Scissors

Fun with Rock, Paper, Scissors. Today on Rake Routes we dive into Ruby Quiz #16: creating player strategies to win at rock, paper, scissors. We start with the simplest of strategies and work all the way up into players that rewrite the game logic itself to guarantee a win.

http://www.uggs--outlet.net http://www.guessfactorycanada.ca http://www.poloout…

Global Hack Day #2, Thursday 3/8

The idea of having weekly or monthly hack nights has worked great for Ruby users groups all over the world, but the folks at Mendicant University feel like the internet deserves a similiar kind of event. Our next gathering is on Thursday 3/8 from 19:00 - 03:00 UTC. Please join us if you can! You can bring your own project to share and work on, or you can help others by offering code reviews and patches to their projects.

New gem: rack-allow-from - white listed hosts can connect to your app

I just launched rack-allow-from, white listed host controls. Add hosts, like config.allow_from += ["1.2.3.4", "8.8.8.*", "example.com", "*.example.com"] to your application.rb. One caveat, using hostnames requires the client send the header X-Remote-Hostname (see the docs). Everyone else gets 403 unauthorized access… Tests and some docs to boot.

Command Line Reporter 3.2 Released

The latest version of Command Line Reporter now supports unicode drawing characters for better looking output if your ruby version supports unicode. Check out the wiki to see examples of nicely formatted tables. As always The gem is available on rubygems.org with source on github. For those not familiar with “the reporter”, it provides a ruby DSL for writing reports with built in features for progress reporting and table formatting. It is very handy for system level and data reporting scripts.

Command line Pow wrapper

I just launched pow-client, a simple command line wrapper for simplifying Pow workflows.

Powder seems like a better options…
Did you not see Powder before you made this?
Hi guys, I did not see Powder before, thanks for pointing that out.
there is even a list of third party tools in the manual …

RailsApps starter app with Devise "Confirmable" and "Invitable"

Not such a big thing, but the rails3-devise-rspec-cucumber example app is popular and now it offers an option for including the Devise “Confirmable” and “Invitable” modules when you use the application template to create a starter app. Devise once included the “Confirmable” module by default; since it was removed there have been questions about how to set it up. The starter app does it for you and includes Cucumber tests as a bonus. It’s all in an update to the rails_apps_composer gem that I use to build the application templates.

Documentation: ARel with ActiveRecord

I really like ARel, but I find its lack of documentation an unreasonably high barrier to using it… And since no one I work with was willing to read their code and tests, to figure out how to use it, I wrote a coupla things about it. For a nice cutsey scenario see this post or for a simple reference see this slideshare.

Loading older posts