
Security News
Researcher Exposes Zero-Day Clickjacking Vulnerabilities in Major Password Managers
Hacker Demonstrates How Easy It Is To Steal Data From Popular Password Managers
imasgenはアイドルマスターシリーズのアイドルの名前をランダムに返すライブラリです。gimeiやfakerのように使えます。 ミリオンライブ!、SideM、シンデレラガールズのキャラクター名を収録しています。
# ミリオンライブ!のキャラクター名を取得する
name = Imasgen.millionlive.name
name.kanji #=> "百瀬 莉緒"
name.hiragana #=> "ももせ りお"
name.katakana #=> "モモセ リオ"
name.romaji #=> "Rio Momose"
name.last.kanji #=> "百瀬"
name.last.hiragana #=> "ももせ"
name.last.katakana #=> "モモセ"
name.last.romaji #=> "Momose"
name.first.kanji #=> "莉緒"
name.first.hiragana #=> "りお"
name.first.katakana #=> "リオ"
name.first.romaji #=> "Rio"
SideM、シンデレラガールズのキャラクター名を取得するには...
sidem = Imasgen.sidem.name
sidem.kanji #=> "桜庭 薫"
cg = Imasgen.cinderella.name
cg.kanji #=> "櫻井 桃華"
また、このような使い方もできます。
"My name is #{Imasgen.millionlive.name}" #=> "My name is 桜守 歌織"
name = Imasgen.millionlive.hotchpotch
name.kanji #=> "四条 紬"
複数の事務所の所属アイドルを全部ごちゃ混ぜにしてランダムに取得したいときは以下の方法で出来ます。
mixnuts = Imasgen.mixnuts(Imasgen::CINDERELLA, Imasgen::MILLIONLIVE, Imasgen::SIDEM)
# また、省略して以下のように書くこともできます。
mixnuts = Imasgen.mixnuts
# 生成したリストから名前を取得
name = mixnuts.name
name.kanji #=> "最上 静香"
# 名前と苗字をごちゃ混ぜにすることもできます
hotchpotch = mixnuts.hotchpotch
hotchpotch.kanji #=> "持田 梨沙"
Imasgen.millionlive.be_strict = false
のようにbe_strictプロパティを変更します。Add this line to your application's Gemfile:
gem 'imasgen'
And then execute:
$ bundle
Or install it yourself as:
$ gem install imasgen
Bug reports and pull requests are welcome on GitHub at https://github.com/tumugin/imasgen.
The gem is available as open source under the terms of the MIT License.
FAQs
Unknown package
We found that imasgen 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
Hacker Demonstrates How Easy It Is To Steal Data From Popular Password Managers
Security News
Oxlint’s new preview brings type-aware linting powered by typescript-go, combining advanced TypeScript rules with native-speed performance.
Security News
A new site reviews software projects to reveal if they’re truly FOSS, making complex licensing and distribution models easy to understand.