Ruby's lib/uri/generic.rb was patched in SVN commit 236220 to fix a URI handling bug when dealing with FTP relative paths. This patch is no longer necessary as this bug was fixed in Ruby 1.9.2 and is thus also fixed in Ruby 2.0 and 2.1. The files/patch-lib_uri_generic.rb files can simply be deleted.
Removing these patches also fixes "/usr/local/lib/ruby/2.1/uri/generic.rb:1493: warning: mismatched indentations at 'end' with 'if' at 1461" warnings that the patches caused.
See https://github.com/ruby/ruby/commit/8588e7631eeab7fe8b91d2f2f7059144b233ad0d for the Ruby commit that fixed the bug that these patches were originally trying to fix.
over to ruby team
A commit references this bug:
Date: Tue Sep 2 01:13:48 UTC 2014
New revision: 366970
lang/ruby*: remove obsolete patches
Remove no longer needed patches for ftp.
While here, fix the test target for ruby21
Submitted by: Robert Grimm <firstname.lastname@example.org>
Fix committed, thanks!