Posted by Rob Anderton on July 15th, 2010 @ 18:25 – 2 comments
Updated on July 15th, 2010 @ 23:36
Tagged with patch
If you're using Rails 2.3.8 for your application and thought that you were safe after May's comedy of errors produced three point updates in as many days, think again. Unfortunately there's a little bug that can lead to parameters being altered or potentially even truncated without warning.
Read more of this entry
Posted by Rob Anderton on January 31st, 2010 @ 09:48 – 14 comments
Updated on February 5th, 2010 @ 14:51
Tagged with patch
At the end of my last blog about Paperclip I mentioned that you need to do some patching if you want to use European S3 buckets to store your files. The problem was introduced when Paperclip made the move from RightAWS to Marcel Molina’s AWS::S3 gem. Unfortunately despite several forks containing patches to AWS::S3 and a 4 month old bug report nothing has been done to officially fix the problem.
So my fellow Europeans, what are we to do?
Read more of this entry
Posted by Rob Anderton on August 9th, 2009 @ 15:13 – 0 comments
Updated on August 9th, 2009 @ 15:11
Tagged with patch
Well it’s day two of the first ever Rails BugMash and so far I’ve managed to score a sneaky 1,000 points just by updating my one-line binary fixtures test patch. Meanwhile Matt Duncan and Rizwan Reza are on fire with 4,350 and 4,000 points at the time of writing.
Unfortunately the event has coincided with what may be the only nice weekend of the Great British summer, so I’ve been torn between the chance to mash bugs or to enjoy the sunshine. I’m currently trying to combine the two sat out in the garden squinting to see my laptop screen in the glare of the sun!
My next attempt to score some points is an updated patch, now improved and including a test case, for a lack of quoting of aliased table names in SQL joins which has been (too eagerly) marked as resolved even though it’s still broken. If you get the opportunity please do take a look and comment on the ticket as it’d be nice to get it fixed.
After that, I’m hoping to try and sneak my patch for anonymous extension modules for belongs_to and has_one associations into the bugmash as it has been sat on Lighthouse since March and already has three +1s. Even if it isn’t eligible for the bugmash, I still think it’s a worthy patch so again please take a look and comment on the ticket if you get chance.
And of course there are still plenty more tickets tagged with bugmash to be looked at so even if you’ve never contributed to Rails before, now is a pretty good time to start!
Discuss this entry
Posted by Rob Anderton on August 24th, 2008 @ 11:11 – 4 comments
Updated on August 27th, 2008 @ 10:54
Tagged with patch
Did you know ActiveRecord includes support for aggregations? If you did, have you ever used them? Despite being part of Rails from the start composed_of tends to lurk in the shadows while newer features like named_scope steal the limelight. It’s time to give composed_of some love again!
Read more of this entry
Posted by Rob Anderton on June 2nd, 2008 @ 15:23 – 8 comments
Updated on June 10th, 2008 @ 12:12
Tagged with patch
Ok, so I’m starting a new Rails application, I’ve spent some time refining my database, I’ve considered storage requirements and performance when choosing the data types for my fields and now I’m ready to create some migrations to implement my design.
And then I’m reminded that, lovely though Rails migrations are, there are two things that really bug me about them: they create signed primary keys and they don’t allow me to easily create unsigned integer columns.
It’s been discussed before, dismissed as an ‘uncommon requirement’ (probably because MySQL is, as far as I know, the only database that uses unsigned integers) and, as far as I can tell, not a lot more has happened. So, while sat out in the garden, enjoying a sunny Saturday afternoon, I grabbed edge Rails from GitHub and decided I’d see if I could do something about it (how’s that for geekyness?!)
Read more of this entry
Posted by Rob Anderton on November 19th, 2007 @ 15:47 – 2 comments
Updated on June 10th, 2008 @ 12:16
Tagged with patch
I decided this morning that I’d take the time to put together a few of the patches for Mephisto that I wrote while creating this site. They’ve been tested with edge Mephisto (I grabbed revision 3037 from svn) and Rails 2.0 RC1. When I first tried to run the tests I got this error: alias_method: undefined method failure.message for class Spec::Watchers::Have (NoMethodError). This turned out to be an incompatibility between RSpec and Rails 2.0 and simply updating the RSpec plugins to their edge versions fixed the problem.
Read more of this entry