Sha256: 0a4d2d64f483c0a515ec5f005c55eb641cb0f90238650856f96e9339899de94e

Contents?: true

Size: 261 Bytes

Versions: 6

Compression:

Stored size: 261 Bytes

Contents

# frozen_string_literal: true

module Mercurial
  class ChangedFile
    private

    def enforce_unicode(str)
      # String#encode patched to be Ruby 3.0+ compatible
      str.encode('utf-8', invalid: :replace, undef: :replace, replace: '?')
    end
  end
end

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
lolcommits-0.17.2 lib/core_ext/mercurial-ruby/changed_file.rb
lolcommits-0.17.1 lib/core_ext/mercurial-ruby/changed_file.rb
lolcommits-0.17.0 lib/core_ext/mercurial-ruby/changed_file.rb
lolcommits-0.16.5 lib/core_ext/mercurial-ruby/changed_file.rb
lolcommits-0.16.4 lib/core_ext/mercurial-ruby/changed_file.rb
lolcommits-0.16.3 lib/core_ext/mercurial-ruby/changed_file.rb