Security News
Fluent Assertions Faces Backlash After Abandoning Open Source Licensing
Fluent Assertions is facing backlash after dropping the Apache license for a commercial model, leaving users blindsided and questioning contributor rights.
ninjudd-unicode_collation
Advanced tools
= Unicode Collation
Unicode sorting is complicated (http://unicode.org/reports/tr10/), and Ruby doesn't do it correctly. But there is a widely-used implementation of the Unicode collation algorithm in the ICU (International Components for Unicode) libraries. This gem is a simple C wrapper to add the ucol_getSortKey function from the ICU Collation API to Ruby Strings.
== Usage:
['cafe', 'cafes', 'caf.A��'].sort => ['cafe', 'cafes', 'caf��']
require 'unicode_collation'
['cafe', 'cafes', 'caf��'].sort_by {|s| s.unicode_sort_key} => ['cafe', 'caf��', 'cafes']
== Install:
You must install ICU first. You can download the source from http://site.icu-project.org/download, or on Mac, you can install with MacPorts:
sudo port install icu
sudo gem install ninjudd-unicode-collation -s http://gems.github.com
== To do:
Add support for locales other than en-US.
== License:
Copyright (c) 2009 Justin Balthrop, Geni.com; Published under The MIT License, see LICENSE
FAQs
Unknown package
We found that ninjudd-unicode_collation demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
Fluent Assertions is facing backlash after dropping the Apache license for a commercial model, leaving users blindsided and questioning contributor rights.
Research
Security News
Socket researchers uncover the risks of a malicious Python package targeting Discord developers.
Security News
The UK is proposing a bold ban on ransomware payments by public entities to disrupt cybercrime, protect critical services, and lead global cybersecurity efforts.