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.

Bitfields Rails Plugin/Gem, simple bitfields with scopes, sql, setter-sql, change-recording

The new ‘bitfields’ Rails plugin and gem allows simple bitfield managements for ActiveRecord and others, produces fast(indexable) sql for query and bit-setting.

You doing it all wrong. Idea of storing bitfields in single database field lead…
Does anyone know if we are limited to 32 bitfields per database column? Restric…
Sergey, can you explain why this is wrong, and what the preferred way is? Or at…
Bitfields are a good solution if a database already is huge, they save space an…

Named Scopes Are Dead

Lots of people love using named scopes in Rails 2. However, in Rails 3 they’re not only more or less obsolete but can also hinder productiveness in teams by being update blockers. Read about the reasons and alternatives in the railway blog.

When I first gave AR 3 a go, I wondered if you could just use class methods for…
That class « self stuff is a big gangly though.. def self.published re…
Peter: I prefer class « self simply to keep things more organized – a…
Nothing wrong with a preference, of course, but it’s still more verbose (and if…

light_mongo: a lightweight MongoDB object persistence layer for Ruby

LightMongo is a lightweight Mongo object persistence layer for Ruby which makes use of Mongo’s features rather than trying to emulate ActiveRecord. It’s an interesting alternative to the already popular and somewhat awesome MongoMapper.

“ActiveSupport is now cherrypickable so I don’t think it’s wrong to use some of…
These are really basic instructions but still important. Really it’s very usefu…
One more ruby object persistence solution for mongodb https://github.com/alexey…
One more ruby object persistence solution for mongodb https://github.com/alexey…

Painless Password Protection in Sinatra (Database-less)

For Inspectinator (a sinatra microapp), I needed a database-less authentication solution that was as lightweight as possible, but with a reasonable amount of security and maintainability. I came up with something that suits this purpose well, and I’m sharing it in case anyone is looking for something similar. I call it EasyAuth. Here ya go

I’ll get flagged as a troll for saying this but this is another example of poor…
n: Thanks for your comments. I’ve had an interesting time reading up on rainbo…

seo_checker 0.2.3 released

I just launched seo_checker, which checks your website if it is seo. It mainly checks the url, title and descripion of web page according to the sitemap.

hi, It doesn’t work with https sites: seo_checker https://www.portuguespodca…
Please upgrade to the latest gem, it works fine for https now.

Ruby/GSL-ng

A new generation Ruby/GSL wrapper that strives for code simplicity while retaining acceptable performance. Other GSL wrappers are either utterly complicated (lots of C code) or poorly documented. Ruby/GSL-ng uses Ruby/FFI and little bits of C code to achieve a simple implementation that integrates neatly with Ruby’s standard classes and follows most of its conventions. Source is located on GitHub and gems are periodically released to Gemcutter. Check gem details for links, etc.

Dicks 0.02 Released

A new version of Boliver T. Shagnasty’s dicks gem was released today. For those who don’t know, dicks is a “Brutish way to print out a bunch of ascii dongs”. Critical stuff here.

is it thread-safe? I need to compute parallel wangs
You might check out my fork of this gem, called “dongs”, which already supports…
Just testing.
https://rubygems.org/gems/dickstreamer …

QED (Quality Ensured Demonstrations)

Seeing as it is my birthday, I’ll go ahead and make a second release today. This one is for QED a test framework using literate programming techniques. QED make test-driven functional testing as easy eating pudding pie. This new release utilizes Tilt to convert documents to HTML which are then processed by the test runner, allowing QED to support many new markup formats. And, yes, we eat our own dog food pie. Check it out.

you could combine this with rubinius’s literate programming branch, too…
Take a look at the “Check it out” link. That is an actual test suite. Basically…
@seydar I have heard this said before, perhaps by you. I don’t know much abo…
@trans I have to update the branch (or you could, since it’s just on rbx), b…

New Stash

Just pushed a new version of Stash, a Hash with indifferent key access. All Stash keys are stored as strings so they can be garbage collected. Stash is also useful if you need a custom Hash-a-like object with special key restraints. Just override the #convert_key method in your subclass.

Loading older posts