diff options
author | murphy <murphy@rubychan.de> | 2010-06-01 18:20:01 +0000 |
---|---|---|
committer | murphy <murphy@rubychan.de> | 2010-06-01 18:20:01 +0000 |
commit | 8e147f78c2237613dc71988110b1bf0920e3c64a (patch) | |
tree | 4b22cab13373a82932c40fc890e7b135880cacfc | |
parent | 7284b3674bada6a009bdfa23bd822a6ba6fc4896 (diff) | |
download | coderay-8e147f78c2237613dc71988110b1bf0920e3c64a.tar.gz |
Use Text encoder instead of deprecated Tokens#text method.
-rw-r--r-- | bench/bench.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/bench/bench.rb b/bench/bench.rb index c98b888..10b76ad 100644 --- a/bench/bench.rb +++ b/bench/bench.rb @@ -68,7 +68,7 @@ Benchmark.bm(20) do |bm| data = nil File.open(here("#$filename." + lang), 'rb') { |f| data = f.read } if $dump_input - @size = CodeRay::Tokens.load(data).text_size + @size = CodeRay::Tokens.load(data).text.size else raise 'Example file is empty.' if data.empty? unless @size.zero? |