Sha256: ae43044b9d0d0460c6412fd332047b023d6670e0fd98b7734b13ce15d6ce9df8
Contents?: true
Size: 1.35 KB
Versions: 4
Compression:
Stored size: 1.35 KB
Contents
# Amakanize [![Build Status](https://travis-ci.org/amakan/amakanize.svg?branch=master)](https://travis-ci.org/amakan/amakanize) Utilities to canonicalize series names and author names for [amakan.net](https://amakan.net/). ## Usage ```rb require "amakanize" Amakanize::AuthorName.new("ぽんかん(8)").to_s #=> "ぽんかん8" Amakanize::AuthorName.new("ぽんかん8").to_s #=> "ぽんかん8" Amakanize::AuthorName.new("ぽんかん⑧").to_s #=> "ぽんかん8" Amakanize::AuthorNames.new("ぽんかん⑧,渡 航").map(&:to_s) #=> ["ぽんかん8", "渡航"], Amakanize::AuthorNames.new("ぽんかん⑧,渡 航").map(&:to_s) #=> ["ぽんかん8", "渡航"], Amakanize::AuthorNames.new("ぽんかん⑧、渡 航").map(&:to_s) #=> ["ぽんかん8", "渡航"], Amaakanize::SeriesName.new("やはり俺の青春ラブコメはまちがっている。4").to_s #=> "やはり俺の青春ラブコメはまちがっている。" Amaakanize::SeriesName.new("ラブライブ! School idol diary ~星空凛~".to_s #=> "ラブライブ! School idol diary" Amaakanize::SeriesName.new("僕だけがいない街 (1) (カドカワコミックス・エース)").to_s #=> "僕だけがいない街" ``` ## Installation Add this line to your application's Gemfile: ```ruby gem "amakanize" ``` And then execute: ```sh bundle ``` Or manually install: ```sh gem install amakanize ```
Version data entries
4 entries across 4 versions & 1 rubygems
Version | Path |
---|---|
amakanize-0.1.5 | README.md |
amakanize-0.1.4 | README.md |
amakanize-0.1.3 | README.md |
amakanize-0.1.2 | README.md |