Sha256: c8fe1ef022b777eb6383ecbe170b7915fa898b9f696859fab65d23b91c52b87f

Contents?: true

Size: 1.35 KB

Versions: 25

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", "渡航"]

Amakanize::SeriesName.new("やはり俺の青春ラブコメはまちがっている。4").to_s #=> "やはり俺の青春ラブコメはまちがっている。"
Amakanize::SeriesName.new("ラブライブ! School idol diary ~星空凛~").to_s #=> "ラブライブ! School idol diary"
Amakanize::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

25 entries across 25 versions & 1 rubygems

Version Path
amakanize-0.5.3 README.md
amakanize-0.5.2 README.md
amakanize-0.5.1 README.md
amakanize-0.5.0 README.md
amakanize-0.4.9 README.md
amakanize-0.4.8 README.md
amakanize-0.4.7 README.md
amakanize-0.4.6 README.md
amakanize-0.4.5 README.md
amakanize-0.4.4 README.md
amakanize-0.4.3 README.md
amakanize-0.4.2 README.md
amakanize-0.4.1 README.md
amakanize-0.4.0 README.md
amakanize-0.3.0 README.md
amakanize-0.2.2 README.md
amakanize-0.2.1 README.md
amakanize-0.2.0 README.md
amakanize-0.1.12 README.md
amakanize-0.1.11 README.md