Sha256: 7002891955ddd034d4398e9ddcbfde7f415e6158b94f3d5335fdef3e6f76904e

Contents?: true

Size: 291 Bytes

Versions: 20

Compression:

Stored size: 291 Bytes

Contents

begin
  require 'unicode_normalize'
rescue LoadError
  # silently fail

  require 'active_support/multibyte/unicode'

  class String
    unless respond_to?(:unicode_normalize)
      def unicode_normalize
        ActiveSupport::Multibyte::Unicode.normalize(self)
      end
    end
  end
end

Version data entries

20 entries across 20 versions & 1 rubygems

Version Path
epuber-0.5.7 lib/epuber/ruby_extensions/string.rb
epuber-0.5.6 lib/epuber/ruby_extensions/string.rb
epuber-0.5.5 lib/epuber/ruby_extensions/string.rb
epuber-0.5.4 lib/epuber/ruby_extensions/string.rb
epuber-0.5.3 lib/epuber/ruby_extensions/string.rb
epuber-0.5.2 lib/epuber/ruby_extensions/string.rb
epuber-0.5.1 lib/epuber/ruby_extensions/string.rb
epuber-0.5.0 lib/epuber/ruby_extensions/string.rb
epuber-0.5.0.beta.5 lib/epuber/ruby_extensions/string.rb
epuber-0.5.0.beta.4 lib/epuber/ruby_extensions/string.rb
epuber-0.5.0.beta.3 lib/epuber/ruby_extensions/string.rb
epuber-0.5.0.beta.2 lib/epuber/ruby_extensions/string.rb
epuber-0.5.0.beta lib/epuber/ruby_extensions/string.rb
epuber-0.4.0 lib/epuber/ruby_extensions/string.rb
epuber-0.3.12 lib/epuber/ruby_extensions/string.rb
epuber-0.3.11 lib/epuber/ruby_extensions/string.rb
epuber-0.3.10 lib/epuber/ruby_extensions/string.rb
epuber-0.3.9 lib/epuber/ruby_extensions/string.rb
epuber-0.3.7 lib/epuber/ruby_extensions/string.rb
epuber-0.3.6 lib/epuber/ruby_extensions/string.rb