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.
Using Sprockets to Precompile Assets in a Rails Engine
Recently, I needed to write tests for a rails engine that included a Backbone.js application written in Coffeescript and the dummy app didn’t serve my purposes. Here’s how I precompiled my assets using Sprockets so I could write and run javascript specs using Jasmine’s standalone spec runner. [more inside]
Writing Zsh Completion for Padrino
I’ve written a blog post how to write shell completion functions for the zsh. The use case is the Padrino framework. http://wikimatze.de/writing-zsh-completion-for-padrino.html
Tachikoma 3.0.0 - now supporting using from gem
Tachikoma is: Interval pull requester with bundle update. Update gem frequently gets less pain. Let’s doing bundle update as a habit! https://rubygems.org/gems/tachikoma https://github.com/sanemat/tachikoma
The best of EuRuKo 2013
We published our favorite moments of EuRuKo 2013. Check out some special appearances and hear Steve Klabnik’s opinion about testing! “Matz” also shared his thoughts! [more inside]
[Interview] Daniel Huckstep on Ruby's stdlib and golang
I recorded a conversation with Daniel Huckstep about two topics that always arouse discussion: Ruby’s stdlib and the Go programming language. Have a listen or check out the transcript.
How to build a real-time photo sharing website in a few easy steps
This blog post describes how you can easily build a high-end, real-time photo sharing application using both PubNub’s and Cloudinary’s cloud-based services. Live photo sharing web application is included as well as Ruby and Javascript sample code.
Rails4 Ruby2 Twitter-Bootstrap Font-Awesome Heroku Starter App
I just released a Rails4 Ruby2 Twitter-Bootstrap Font-Awesome Heroku Starter App based on the following technology stack: [more inside]
Excellent 2.0.0 - now supporting config files
I released version 2.0.0 of excellent, the static source analysis gem which now - besides some major improvements - supports config files to disable/enable checks, configure thresholds etc.:
Running RSpec tests from the browser
I just released jstest, a cross-platform JS testing framework. As a silly example of its power I decided to use it to run RSpec tests from my browser.
The case against using RubyGems.org in production
The case against using RubyGems.org in production [more inside]
Building a Mocking Library
My talk “Building a Mocking Library” from Ancient City Ruby has been posted. Feedback welcomed. [more inside]
Preload, Eagerload, Includes and Joins
We wrote a blog on Preload, Eagerload, Includes and Joins .
Publish and Subscribe to Activity Feeds
Use ChalkDust to build activty feeds such as followings and friendships without coupling “activity feeds” to your models. It’s flexible, lightweight and allows you to create activites such as “Peter traveled to India”. [more inside]
Announcing Rails Rumble 2013
I’m ridiculously excited to announce that the Rails Rumble is back for 2013! Please help spread the word!
RuboCop 0.9 Is Now Patrolling the Streets!
I just released RuboCop 0.9.0. You might want to check it out.
Hotcell - new sandboxed template language for ruby
Hello there! I’ve got a brand new safe sandboxed template processor for you. Actually, it is the Liquid analogue. It looks like the Mustache, potentially faster then the Liquid, has ruby-like expressions syntax and Ragel with Racc under the hood. [more inside]
Cohort analysis made with SQL and Ruby
In this article cohort analysis for a forum application is described. Post starts with an explanation of what is cohort analysis and how it works and ends with a Ruby script flavored with some SQL and a beautiful plot.
Weak Dependencies
In the past few months, I have experimented with some Pomodoro applications on my mobile phone. These were great, but I don’t actually spend my days staring at my mobile phone. Something was itching me: if the whole point of the technique is to stay focused by avoiding useless context switches, then why should an external device keep stealing my attention just to be more productive? So where do I spend most of my time? In the Unix shell, interacting with the command-line! So I looked for Pomodoro tools that suit my lifestyle and this is how I discovered pomo, a Ruby Pomodoro application for the command-line. Let’s check it out!
Share some love to our buddies rubyists!
Please check my idea about how we can share more love and motivation to all that great developers, who help us to make our projects happen by their work and their gems. share_some_love
The Future of Computing - An Interview with Yukihiro “Matz" Mats
A while ago I translated an interview with Matz done by a Chinese book publisher. The interview and the translation were well received, so this time I am translating another interview with Matz, done by Ito, the editor-in-chief from Japanese website Engineer Type. [more inside]
Confed Brazil 2013 - From Plain Text Fixtures to Structured Data and HTTP JSON APIs in Minutes
I’ve updated the plain text fixtures for the Confederations Cup 2013 in Brazil. The sportdb gem lets you load the plain text fixtures into your database and lets you use the sportdb models such as Event, Team, Round, Group, Game, and others for web pages (e.g. Confederations Cup 2013 Schedule) or HTTP JSON APIs (e.g. all teams, all rounds, semi final matches e.g. Brazil-Uruguay; Spain-Italy etc.). All data, code and samples public domain. Enjoy. Cheers.
Async Processing in Ruby with beanstalkd: Updates to Beaneater and Backburner
We just released Beaneater 0.3.1 (the official beanstalkd client for ruby) and Backburner 0.4.1 (battle-tested background jobs with beanstalkd) with plenty of bug fixes and features for both. If you are interested in understanding more about why you would use beanstalkd or backburner, you can read more about that at Why Backburner? and Why Beanstalkd?. We put these together because we’d love to see beanstalkd more heavily used in the ruby community.
Make Your Rails Application Multi-Threaded on Heroku
After reading Jesse Storimer’s Working with Ruby Threads book, I took the plunge and reconfigured my blog to be multi-threaded on Heroku
Use a different version of rails other than the default while creating a new rails app
If you have rails 4.0.0 as the default rails version and if at some time you want to create a new rails 3.2 app then you can use the following code: rails 3.2.13 new app_name [more inside]