Copied: trunk/config/initializers/stringio_patch.rb (from rev 3240, branches/wf4ever/config/initializers/stringio_patch.rb) (0 => 3241)
--- trunk/config/initializers/stringio_patch.rb (rev 0)
+++ trunk/config/initializers/stringio_patch.rb 2012-12-07 10:32:30 UTC (rev 3241)
@@ -0,0 +1,18 @@
+# myExperiment: config/initializers/stringio_patch.rb
+#
+# Copyright (c) 2012 University of Manchester and the University of Southampton.
+# See license.txt for details.
+
+if VERSION < "1.9.1"
+ class StringIO
+ def readpartial(*args)
+ result = read(*args)
+ if result.nil?
+ raise EOFError
+ else
+ result
+ end
+ end
+ end
+end
+