PKGBUILDs/community/raggle/raggle.patch

21 lines
584 B
Diff
Raw Normal View History

2009-10-10 02:15:33 +00:00
--- raggle.old 2006-07-07 00:27:23.000000000 +0200
+++ raggle 2006-07-07 00:28:22.000000000 +0200
@@ -48,6 +48,17 @@
# As early as possible, ^C and ^\ are common, and dumping a trace is
# ugly On the other hand, dumping trace is very useful when running
# tests, therefore disable these unless this file is executed.
+
+if RUBY_VERSION == "1.8.4"
+ class Bignum
+ def to_yaml( opts = {} )
+ YAML::quick_emit( nil, opts ) { |out|
+ out.scalar( nil, to_s, :plain )
+ }
+ end
+ end
+end
+
if __FILE__ == $0
trap('INT') {
if $config['run_http_server']