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
Post Preview
Note: Only the first pargraph is shown on the front page and overly long paragraphs may be broken up.
Hirb supports ten additional database gems
This post explains that the latest hirb works with couch, mongo, riak or any databases supported by sequel or datamapper. Hirb has essentially turned irb into a database-agnostic database shell.
Gem Bundler Screencast - TeachMeToCode.com
There’s a new screencast about Gem Bundler on teachmetocode.com. Check it out!
ShowFor - Show your objects baby!
The guys at PlataformaTec just released a new tool called show_for that helps you to DRY your code and markup whenever showing your objects (aka in your “show” views). Check out the blog post here.
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.
APN on Rails has a new home!
The APN (Apple Push Notifications) on Rails plugin has moved to a new home.
Quick & simple online regex editor
Very simple sinatra app for testing your regular expressions.
Making Ruby Fast: The Rubinius JIT
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.
Be pragmatic with your time
A pragmatic approach discussing how to easily fit in a team and keep code flowing every day.
Writing A More Ruby-ish List Intersection Function And Sorting Structs
In my previous post on boolean search, we wrote an efficient list (array) intersection function. But, to be honest, I wasn’t very happy with it. Considering the fact that we were using Ruby, it just wasn’t very Ruby-like. So, this time I am going to try and show how that function can be re-written to make it more Ruby-ish and to also be tighter and easier to understand.
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.
Multiple CPUs => Parallel Testing (now for every test-suite)
Parallel tests now suppots any kind of test-suite(Test/RSpec/Cucumber), speeds up e.g. action_pack test-suite by 200%. Finally a good excuse for buying Dual/Quad-Core. Speedup those tests, go parallel!
First real life example of the Sinatra-Pages extension.
Some time ago I released sinatra-pages, a very practical Sinatra extension. Now I’ve used it in order to create a website for social activism and I’d like to show you how I did it. Please check it out!
bullet2 beta released, supports rails3 beta
I just upgraded bullet gem to version 2.0 beta, which supports rails3 beta. Bullet gem helps you to kill N+1 queries and unused eager loading.
App configuration feat. YAML and JVM properties
Ambience version 0.2.0 now works for every Ruby-app and returns a Hashie::Mash.
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
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.
50 of the Best Websites Developed Using Ruby on Rails
A round up of some of the best sites created with Ruby on Rails.
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.
Sunspot and Sunspot::Rails 1.0 released
Sunspot 1.0 ships with Solr 1.4 and supports several of its new features, including multiselect faceting and trie range queries. It also comes with built-in support for multithreaded environments, Solr replication, and Solr sharding.
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.
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.
Rails Coach Podcast Episode 11: Testing Your Application
In this episode of the Rails Coach Podcast, we discuss why your application needs tests, why developers and QA both have responsibility for testing, and what you should be testing. Don’t forget to subscribe to the podcast.