Skip to content

Commit a61452f

Browse files
committed
add term-ansicolor to development dependencies, fix Ruby 1.8.6 warning
1 parent d0f4965 commit a61452f

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

Gemfile

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@ group :development do
99
gem "bundler", "~> 1.0.0"
1010
gem "rake", "~> 0.9.2"
1111
gem "RedCloth"
12+
gem "term-ansicolor"
1213
gem "shoulda-context", "= 1.0.0.beta1" if RUBY_VERSION >= '1.8.7'
1314
gem "json" unless RUBY_VERSION >= '1.9.1'
1415
gem "rdoc" if RUBY_VERSION >= '1.8.7'

lib/coderay/scanner.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -100,7 +100,7 @@ def lang
100100
def encode_with_encoding code, target_encoding
101101
if code.encoding == target_encoding
102102
if code.valid_encoding?
103-
return to_unix code
103+
return to_unix(code)
104104
else
105105
source_encoding = guess_encoding code
106106
end

0 commit comments

Comments
 (0)