Tag Archives: ruby

rubyland infrastruture, and a modest sponsorship from honeybadger

Rubyland.news is my hobby project ruby RSS/atom feed aggregator. Previously it was run on entirely free heroku resources — free dyno, free postgres (limited to 10K rows, which dashes my dreams of a searchable archive, oh well). The only thing I … Continue reading

Posted in General | Tagged | Leave a comment

ruby VCR, easy trick for easy re-record

I do a lot of work with external HTTP API’s, and I love the vcr for use in writing tests/specs involving these. It records the interaction, so most of the time the tests are running based on a recorded interaction, not … Continue reading

Posted in General | Tagged | Leave a comment

never bash again, just ruby

Sometimes I have a little automation task so simple that I think, oh, I’ll just use a bash script for this. I almost always regret the decision, as it tends to grow more complicated, and I start fighting with bash and … Continue reading

Posted in General | Tagged | 1 Comment

Heroku auto-scaling, and warning, ask first about load testing

Heroku auto-scaling looks like a pretty sweet feature, well-implemented as expected from Heroku. (Haven’t tried it out myself yet, just from the docs). But… “We strongly recommend that you simulate the production experience with load testing, and use Threshold Alerting … Continue reading

Posted in General | Tagged | Leave a comment

Concurrency in Rails 5.0

My previous posts on concurrency in ActiveRecord have been some of the most popular on this blog (which I’d like to think means concurrency is getting more popular in Rails-land), so I’m going to share what I know about some … Continue reading

Posted in General | Tagged | 5 Comments

A class_eval monkey-patching pattern with prepend

Yes, it’s best to avoid “monkey-patching” — changing an already loaded ruby class by reopening the class to add or replace methods. But sometimes you’ve got no choice, because a dependency just doesn’t give you the API you need to do … Continue reading

Posted in General | Tagged | 1 Comment

Rubyland: A new ruby news and blog feed aggregator

So I thought there should be a site aggregating ruby rss/atom feeds. As far as I’m aware, there hasn’t been a really maintained one for a couple years now. So in my spare time on my own, I made one, that worked … Continue reading

Posted in General | Tagged | Leave a comment

Resolving relative URLs to base in ruby

You ever have to resolve relative URLs in ruby?  I did. It’s not clear if the stdlib URI can do this — I think not, universally. But the awesome addressable gem can — in tested RFC 3986 way nonetheless!  Although it wasn’t … Continue reading

Posted in ruby | Tagged | Leave a comment