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.

Kill Trailing Whitespace With Code-cleaner!

I just released code-cleaner gem which is useful for removing trailing whitespace and adding missing \n. It has advanced whitelisting & blacklisting rules, so it’s clever enough to ignore your non-ruby files as well as your vendored dependencies. It can also add missing encoding declaration for Ruby 1.9 if you specify --encoding=[my-enc] and much more. Read more

Blueprints 0.4.0 released

Version 0.4 of my factories and fixtures replacement gem Blueprints. Changes include refactoring some insides, blueprint method on active record object to update it’s attributes and passing options hash when building a blueprint.

CoffeeScript, a Little Language with a Pure Ruby Compiler

CoffeeScript is a little language with a Ruby-esque syntax that compiles into the good parts of JavaScript. The compiler uses vanilla Ruby classes for the lexer and code generation, and Racc for the parser. If you’ve ever wanted to use Ruby to experiment with a little language, it’s a good example to take a peek at.

Awesome! Integration with popular javascript framework and unit test is what re…

has_scope and responders released

We, at Plataformatec, just released two new open source tools: has_scope and responders, both extracted from Inherited Resources. has_scope allows you to quickly map controller parameters to named_scopes and responders is a repository of Rails 3 responders, which can already be used within Inherited Resources. As conclusion of this refactoring, Inherited Resources finally reaches 1.0. Read the blog post to catch up all changes.

Generating Thousands of PDFs on EC2 with Ruby

For about two months, we’ve been working on a static website that exposes the results of complicated economics model to non-economists. We decided to make the site static because of the overhead involved in computing the results and the proprietary nature of the model. We would simply pre-generate the output for all valid permutations of the inputs. However, on a single machine, we found it would take 30 hours of uninterrupted processing! Clearly, this was a job for “the cloud”.

That was a cool breakdown. Thanks for sharing.

Active Record Enumerations (single db integer column) - plugin

I just added my first plugin ar_enumerations which allows to use “enumeration” field in your AR models. This plugin was at least useful for me, because it saved me from a lot of “has_many” tables and data stored to single integer column. Also I’m providing the sample application where you could see plugin in action. I hope this plugin will be useful for you too.

Ruby & WebSockets: TCP for the Browser

WebSockets are one of the most underappreciated innovations in HTML5 - bi-directional, fully asynchronous and data agnostic data exchange. Dev builds of Google Chrome, Firefox and Safari now all support WebSockets, which means that as developers we start taking advantage of the new architectures. A hands on look at the API, and implementation of Ruby WebSocket server and clients.

Loading older posts