diff options
author | Eric Wong <normalperson@yhbt.net> | 2010-02-08 15:09:11 -0800 |
---|---|---|
committer | Eric Wong <normalperson@yhbt.net> | 2010-02-08 15:10:11 -0800 |
commit | 71b8fff3d8d171c9770bb8c69767341c10d9c962 (patch) | |
tree | 3784759ddca03e720e05a4c0cb4dbe4f29e47e61 | |
parent | 9e01161030e68f0740e7821791fef4e38f828f1a (diff) | |
download | rainbows-71b8fff3d8d171c9770bb8c69767341c10d9c962.tar.gz |
Ruby 1.9 will complain otherwise
-rwxr-xr-x | t/bin/content-md5-put | 2 | ||||
-rwxr-xr-x | t/bin/unused_listen | 1 | ||||
-rwxr-xr-x | t/bin/utee | 2 |
3 files changed, 3 insertions, 2 deletions
diff --git a/t/bin/content-md5-put b/t/bin/content-md5-put index 4f02a85..01da0bb 100755 --- a/t/bin/content-md5-put +++ b/t/bin/content-md5-put @@ -1,9 +1,9 @@ #!/usr/bin/env ruby +# -*- encoding: binary -*- # simple chunked HTTP PUT request generator (and just that), # it reads stdin and writes to stdout so socat can write to a # UNIX or TCP socket (or to another filter or file) along with # a Content-MD5 trailer. -# -*- encoding: binary -*- require 'digest/md5' $stdout.sync = $stderr.sync = true $stdout.binmode diff --git a/t/bin/unused_listen b/t/bin/unused_listen index 95f3249..b638f54 100755 --- a/t/bin/unused_listen +++ b/t/bin/unused_listen @@ -1,4 +1,5 @@ #!/usr/bin/env ruby +# -*- encoding: binary -*- # this is to remain compatible with the unused_port function in the # Unicorn test/test_helper.rb file require 'socket' @@ -1,8 +1,8 @@ #!/usr/bin/env ruby +# -*- encoding: binary -*- # tee(1) as distributed on most(all?) systems is buffered in luserspace # this only does unbuffered writes (with line-buffered input) to make # test output appear in real-time -# -*- encoding: binary -*- $stdin.binmode $stdout.binmode fp = File.open(ARGV.shift, "wb") |