Ticket #9632: wrong_include.diff
| File wrong_include.diff, 1.6 kB (added by julik, 1 year ago) |
|---|
-
test/multibyte_conformance.rb
old new 122 122 end 123 123 124 124 begin 125 require_library_or_gem('utf8proc_native') 126 require 'active_record/multibyte/handlers/utf8_handler_proc' 125 require_library_or_gem('utf8proc') 126 require 'active_support/multibyte/handlers/utf8_handler_proc' 127 puts "Also testing the utf8 backend" 127 128 class ConformanceTestProc < Test::Unit::TestCase 128 129 include ConformanceTest 129 130 def setup -
lib/active_support/multibyte/handlers/utf8_handler_proc.rb
old new 27 27 utf8map(str, :casefold) 28 28 end 29 29 30 def upcase(str) #:nodoc:c 31 utf8map(str, :casefold) 32 end 33 30 34 protected 31 35 32 36 def utf8map(str, *option_array) #:nodoc: -
lib/active_support/multibyte/chars.rb
old new 127 127 128 128 # When we can load the utf8proc library, override normalization with the faster methods 129 129 begin 130 require 'utf8proc_native'130 require_library_or_gem 'utf8proc' 131 131 require 'active_support/multibyte/handlers/utf8_handler_proc' 132 132 ActiveSupport::Multibyte::Chars.handler = ActiveSupport::Multibyte::Handlers::UTF8HandlerProc 133 133 rescue LoadError