Registry / utility / scrub-rb

scrub-rb

JSON →
library1.0.1rbrubygemsunverified

Pure-ruby polyfill of MRI 2.1 String#scrub, for ruby 1.9 and 2.0 any interpreter

gem install scrub_rb
INSTALL
IMPORT
SIG · SCRUB-RB
S
scrub-rb
utilityrubyv1.0.1
harness data pending
Install & Compatibility
Where this runs

No compatibility data collected yet for this library.

Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

ScrubRb
require 'scrub_rb'

Clean invalid byte sequences in a string.

require 'scrub_rb' invalid_string = "abc\xEF\xBF\xBDxyz" cleaned = invalid_string.scrub # replaces invalid bytes with replacement character
Debug
Known issues
gotchaOnly needed for Ruby < 2.1; built-in String#scrub is available in Ruby 2.1+.
fix
Upgrade to Ruby 2.1+ and remove this gem.
affects: >= 0
Upgrade
Version history
1.0.1latest on RubyGems
Audit
Dependencies

No dependency data recorded yet.

Agent activity
6 hits · last 30 days
node
6
Resources
scrub-rb — gem install scrub-rb · libregistry