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.
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.
Rails Powered MLB Stats with Baseball Statz App
Baseball Statz is a Rails app hosted on Heroku that uses the Ruby powered Gameday API which provides live MLB stats. View all the stats for today’s games here.
Rails Coach Episode 10: Understanding and Growing Business
In this episode I discuss the value that developers gain and add by understanding business and how their employer or client makes their money.
MySQL and MongoDB working together in Kanbanery
Here’s why and how we use MySQL and MongoDB in one of our applications thanks to the awesomeness of DataMapper
Ruby Midwest Conference Opens Call for Speakers
The Ruby Midwest Conference has opened its Call for Speakers. Come share your excitement, experience, and expertise with fellow Rubyists in the Midwest! We’re pleased to announce that Yehuda Katz is scheduled to keynote this two day, single track conference held in Kansas City, MO on July 16-17, 2010. Sign up for email announcements on the website or follow us on Twitter to keep up with our latest news.
Testing email delivery in Rails with Gmail & HTTParty
We have a rails app in development that will send a lot of email so I wanted to setup a way to test that it was being delivered. In my integration tests I trigger an action that delivers email and then check my Gmail inbox for the email in question.
Peeping Tom: A free (open source, Ruby) site pinger
I just launched Peeping Tom, a ruby gem that helps monitor your webapps.
Thoughts on MongoHQ pricing
MongoHQ have launched - with pricing options! The results, as MongoMapper author John Nunemaker tweeted, were surprising. Here are my thoughts on MongoHQ.
ruby-standard.org
Announcing ruby-standard.org in hopes of fostering discussion of the Ruby ISO standardization effort.