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.

CLI + KISS = CLI.K

Aficionados of simplicity, allow me to introduce you to my new command-line interface option parser, CLI.K. Based on Michel Marten’s excellent Clap library, CLI.K takes the code a few steps further by supporting multiple options per definition, single letter “run-on” options and, clearly the most fetching of features, a simple call to the private Kernel method #cli handles it all.

football.db - Free Open Football Fixtures&More (Champions League, Bundesliga, World Cup Quali etc.)

I’ve extracted all football fixtures from the sport.db into its own database, that is, football.db. Note, all football fixtures are now plain text (and, thus, reuseable in any programming language). Use the sportdb gem to setup your database, reuse ActiveRecord models, etc. Events include the Champions League 2012/13, World Cup Quali, Bundesliga, and other. Anything missing? Add yours. Cheers.

I Wish Ruby Had Interfaces

Types have a bad reputation in the Ruby community for making code harder to read, and adding unnecessary ceremony. In this article I’d like to show that a type system done right can help make code more readable and toolable without constraining the expressiveness of the language. Or in other words, I will show how a type system can allow the flexibility of Ruby and the toolability of Java to coexist in one language. Read more.

Overcoming IE's 4096 selector limit using the CssSplitter gem

There is an annoying CSS limit in IE versions 9 and below, which leads to all CSS selectors beyond the 4095th to be ignored. Due to Sass (–> more selectors) and the asset pipeline (–> bigger stylesheets) this is especially a problem in the Rails world. This blogpost gives a little bit of background on the issue and introduces the CssSplitter gem, which helps Rails developers to split up their overweight stylesheets for IE compatibility. http://railslove.com/blog/2013/03/08/overcoming-ies-4096-selector-limit-using-the-css-splitter-gem

Sinatra in SIX lines

Did you know that you only need six lines to implement Sinatra? What crazy things can you do with flip flops? And what’s coming for Ruby 3.0? Check out my talk on this and many more rather irrelevant but highly entertaining things.

Loading older posts