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.12.0 spec/support/encoding_helpers.rb
rollbar-2.11.5 spec/support/encoding_helpers.rb
rollbar-2.11.4 spec/support/encoding_helpers.rb
rollbar-2.11.3 spec/support/encoding_helpers.rb
rollbar-2.11.2 spec/support/encoding_helpers.rb
rollbar-2.11.1 spec/support/encoding_helpers.rb
rollbar-2.11.0 spec/support/encoding_helpers.rb
rollbar-2.10.0 spec/support/encoding_helpers.rb
rollbar-2.9.1 spec/support/encoding_helpers.rb
rollbar-2.9.0 spec/support/encoding_helpers.rb
rollbar-2.8.3 spec/support/encoding_helpers.rb
rollbar-2.8.2 spec/support/encoding_helpers.rb
rollbar-2.8.1 spec/support/encoding_helpers.rb
rollbar-2.8.0 spec/support/encoding_helpers.rb
rollbar-2.7.1 spec/support/encoding_helpers.rb
rollbar-2.7.0 spec/support/encoding_helpers.rb
rollbar-2.6.3 spec/support/encoding_helpers.rb
rollbar-2.6.2 spec/support/encoding_helpers.rb
rollbar-2.6.1 spec/support/encoding_helpers.rb
rollbar-2.6.0 spec/support/encoding_helpers.rb