Permalink
Browse files

added rdoc option in gemspec

which will force utf-8 encoding irrespective of the locale
settings of the user.
  • Loading branch information...
kgrz committed Jul 6, 2012
1 parent 4365cda commit 6a023ab3537e91556106c6cff3cada25f1c5ab42
Showing with 1 addition and 1 deletion.
  1. +1 −1 sinatra.gemspec
View
@@ -10,7 +10,7 @@ Gem::Specification.new 'sinatra', Sinatra::VERSION do |s|
s.files = `git ls-files`.split("\n") - %w[.gitignore .travis.yml]
s.test_files = s.files.select { |p| p =~ /^test\/.*_test.rb/ }
s.extra_rdoc_files = s.files.select { |p| p =~ /^README/ } << 'LICENSE'
- s.rdoc_options = %w[--line-numbers --inline-source --title Sinatra --main README.rdoc]
+ s.rdoc_options = %w[--line-numbers --inline-source --title Sinatra --main README.rdoc --encoding=UTF-8]
s.add_dependency 'rack', '~> 1.3', '>= 1.3.6'
s.add_dependency 'rack-protection', '~> 1.2'

0 comments on commit 6a023ab

Please sign in to comment.