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.
Refinery CMS 2.1.0 released
After more than a year and 1227 commits from 45 contributors around the globe we are very excited to announce that Refinery CMS 2.1.0 has been released. [more inside]
Running Specs From Vim
Test driven development thrives on a tight feedback loop. However, switching from the editor to the shell to manually run specs is inefficient. [more inside]
tlog: Distributed time and ticket tracking
A git-based tool for tracking engineering time and tasks [more inside]
Security vulnerability for SSL applications
Read through this post on the Medium blog about a security vulnerability dubbed “BREACH” and check out the breach-mitigation-rails gem that attempts to help protect against it.
Using state_machine with Authority
The state_machine gem is a great tool for putting business rules into your Ruby applications. But sometimes rules have exceptions. How do you handle those? [more inside]
UltraHook: Receive webhooks on localhost
I launched UltraHook which makes it easy to receive webhooks on localhost without exposing your dev environment to the world – gem install ultrahook
reading your web page with an ActiveRecord-like api for testing purposes
We’ve just released version 1.0 of PageRecord. PageRecord allows you te read from your web pages with an ActveRecord-like api. This helps in keeping easy test steps in for example RSpec or Cucumber.
Using Gmail and Google Groups with Ruby for Daily Email Standups
A bit about how we’re doing daily email standups. Why we do it, how we do it, and how to set up to automate the email. - Tony Pitale
What are percentiles and why do they matter?
It’s nearly impossible to talk about metrics and instrumentation without hearing about percentiles. In this post I define what percentiles are and explore some examples that highlight their importance in measuring performance in aggregate.
Book Review: Cucumber Recipes
Interested in the new book ‘Cucumber Recipes’ by Ian Dees, Matt Wynne and Aslak Hellesøy? [more inside]
Howto make chef's deploy resource compatible with capistrano
I just wrote a blogpost about howto make chef’s deploy resource compatible with capistrano’s git_style deployment. So you can deploy using chef, while still be able to use your capistrano tasks.
Writing a Ruby compiler bottom up, part 26
Took me about two years, but this part is about adding debug info that gdb can use, and I have a bunch of additional posts written.
ActiveStomp v. 0.0.1 released
I just released new gem ActiveStomp. It helps dealing with ActiveMQ message receiving by abstracting the most common Ruby Stomp gem methods into one. I’m planning to make it even more flexible, though I need to think more about it’s future shape. [more inside]
Maildown: Write your Rails Emails in Markdown
Forget writing plaintext and html emails twice write them once in markdown and the maildown gem converts them for you.
New ebook pre sale: Trust Driven Development
I’m writing a book about software projects and process. [more inside]
Introducing PullReview – Your Ruby Batmobile for Automated Code Review
A blog post introducing the product we’re developing: PullReview, an Automated Code Review Tool for Ruby developers using GitHub.
large xml chopped into small pieces and presented in hash
Recently we happened to observe ox is 5 times faster than Nokogiri, and then we went ahead and created a small module( ox parsing to hash) which helps you parse large xml and iterate through the expected element presented in hash structure.
ruby-prolog DSL hits v1
The niche ruby-prolog library has been updated for ruby 2.0.0, bundler, and minitest, and released as v1.0.1! [more inside]
chef-rvm issues and howto migrate to chruby [on production]
I just wrote a blogpost about some issues with the official chef-rvm cookbook and how I migrated to chruby for production rails and worker servers.
Generate fuzzy numbers and times with 'ish'
I built ish because I liked the idea of this syntax for fuzzy dates and times:
2.hours.ish # 7379 seconds
1.day.ish.from_now # a day from now plus/minus 5 min [more inside]
How to Create Postgres Indexes Concurrently in ActiveRecord Migrations
By default, Postgres locks writes (but not reads) to a table while creating an index on it. That can result in unacceptable downtime during a production deploy. On a large table, indexing can take hours. [more inside]
Simple Algebraic Data Types for Ruby
Here’s a simple approximation of algebraic data types in Ruby using Ruby’s struct class and the case equality operator.