BETAmodules.com is in beta — open to partnerships & joint ventures.Build with us

charshift

v0.2.3RubyGems· Ruby

Charshift is a simple gem which adds functionality to the String class. It's primary function is to act on a given string, taking a fixnum parameter, then shifting each character in that string to a higher or lower ordinal position in that strings encoding. Charshift works with all of Ruby's included encodings and also works with devloper supplied 'custom encodings.' Simply provide an ordered set of characters as an optional parameter and charshift will work on the string using that set instead of the strings native encoding. Charshift also includes a '.get_encoding_length' method which returns the number of of characters which a given strings encoding contains. Finally, strings can be shifted in place using the '.charshift!' method.

The verdict
Abandoned. Last published 9 years ago. No recent activity — look for a maintained alternative.
No recent activity — look for a maintained alternative.
Live from the RubyGems registry · derived rules, not AI
How it scores
MaintenanceAbandoned
PopularityNiche
SecurityClean
LicensePermissive
DepsZero deps
Maintenance
Last published 9 years ago.
Popularity
7 downloads / week
Security
No known advisories for this version (OSV).
License
MIT
Dependencies
No runtime dependencies
Recent releases
  • 0.2.39 years ago
  • 0.2.29 years ago
  • 0.2.19 years ago
charshift — Charshift is a simple gem which adds functionality to the String class. It's primary function is to act on a given string, taking a fixnum parameter, then shifting each character in that string to a higher or lower ordinal position in that strings encoding. Charshift works with all of Ruby's included encodings and also works with devloper supplied 'custom encodings.' Simply provide an ordered set of characters as an optional parameter and charshift will work on the string using that set instead of the strings native encoding. Charshift also includes a '.get_encoding_length' method which returns the number of of characters which a given strings encoding contains. Finally, strings can be shifted in place using the '.charshift!' method. (Ruby / RubyGems) · Modules