{"id":15678233,"url":"https://github.com/manfred/unichars","last_synced_at":"2025-10-06T23:51:49.405Z","repository":{"id":406239,"uuid":"24999","full_name":"Manfred/unichars","owner":"Manfred","description":"A library that wraps Glib2 Unicode manipulation methods to speed up ActiveSupport::Multibyte","archived":false,"fork":false,"pushed_at":"2014-09-24T13:30:38.000Z","size":353,"stargazers_count":13,"open_issues_count":0,"forks_count":3,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-07-09T10:04:53.361Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"Ruby","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/Manfred.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2008-06-13T15:58:06.000Z","updated_at":"2023-08-04T03:31:58.000Z","dependencies_parsed_at":"2022-07-07T21:13:14.324Z","dependency_job_id":null,"html_url":"https://github.com/Manfred/unichars","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/Manfred/unichars","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Manfred%2Funichars","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Manfred%2Funichars/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Manfred%2Funichars/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Manfred%2Funichars/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Manfred","download_url":"https://codeload.github.com/Manfred/unichars/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Manfred%2Funichars/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":267858852,"owners_count":24155974,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","status":"online","status_checked_at":"2025-07-30T02:00:09.044Z","response_time":70,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-10-03T16:19:15.698Z","updated_at":"2025-10-06T23:51:44.385Z","avatar_url":"https://github.com/Manfred.png","language":"Ruby","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Unichars\n\nUnichars is a simple wrapper around Glib2. It was originally written to speed up ActiveSupport::Multibyte on Ruby 1.8 but it can probably used for other things as well.\n\n# Installation\n\n## Max OS X\n\nYou have to install Glib2. We suggest Homebrew, but anything goes.\n\n\t$ brew install glib\n\nAfter that you can install the gem:\n\n\t$ gem install unichars\n\n## Ubuntu and Debian\n\n\t$ apt-get install libglib2.0-dev\n\t$ gem install unichars\n\n# Examples\n\n## Rails\n\nIn you Gemfile add:\n\n\tgem 'unichars'\n\nAdd config/initializers/unichars.rb:\n\n\tActiveSupport::Multibyte.proxy_class = Unichars\n\nAfter that you can just use Unichars through the character proxy on String:\n\n\t'¡Ay Dios mío!'.chars.reverse\n\n## ActiveSupport without Rails\n\nNote that you probably want to load ActiveSupport before loading Unichars because Unichars subclasses itself from ActiveSupport::Multibyte::Chars when you do so.\n\n\trequire 'rubygems'\n\trequire 'active_support/all'\n\trequire 'unichars'\n\tActiveSupport::Multibyte.proxy_class = Unichars\n\nAfter that you can just use Unichars through the character proxy on String:\n\n\t'¡Ay Dios mío!'.chars.reverse\n\n## Plain Ruby code\n\nYeah, so, ehm. Yeah.\n\n\trequire 'rubygems'\n\trequire 'unichars'\n\nAfter that you can do:\n\n\tUnichars.new('¡Ay Dios mío!').reverse\n\nOr possibly:\n\n\tclass String\n\t  def mb_chars\n\t    Unichars.new(self)\n\t  end\n\tend\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmanfred%2Funichars","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmanfred%2Funichars","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmanfred%2Funichars/lists"}