Sha256: 55b6e9e4fc577858beea88e9f133e06eb2de65c80dfa8377334d7205bf50ce9e

Contents?: true

Size: 176 Bytes

Versions: 57

Compression:

Stored size: 176 Bytes

Contents

module EncodingHelpers
  def force_to_ascii(string)
    return string unless string.respond_to?('force_encoding')

    string.force_encoding('ASCII-8BIT')
    string
  end
end

Version data entries

57 entries across 57 versions & 1 rubygems

Version Path
rollbar-2.18.2 spec/support/encoding_helpers.rb
rollbar-2.18.0 spec/support/encoding_helpers.rb
rollbar-2.17.0 spec/support/encoding_helpers.rb
rollbar-2.16.4 spec/support/encoding_helpers.rb
rollbar-2.16.3 spec/support/encoding_helpers.rb
rollbar-2.16.2 spec/support/encoding_helpers.rb
rollbar-2.16.0 spec/support/encoding_helpers.rb
rollbar-2.15.6 spec/support/encoding_helpers.rb
rollbar-2.15.5 spec/support/encoding_helpers.rb
rollbar-2.15.4 spec/support/encoding_helpers.rb
rollbar-2.15.3 spec/support/encoding_helpers.rb
rollbar-2.15.2 spec/support/encoding_helpers.rb
rollbar-2.15.1 spec/support/encoding_helpers.rb
rollbar-2.15.0 spec/support/encoding_helpers.rb
rollbar-2.14.1 spec/support/encoding_helpers.rb
rollbar-2.14.0 spec/support/encoding_helpers.rb
rollbar-2.13.3 spec/support/encoding_helpers.rb
rollbar-2.13.2 spec/support/encoding_helpers.rb
rollbar-2.13.1 spec/support/encoding_helpers.rb
rollbar-2.13.0 spec/support/encoding_helpers.rb