Project

fakerjp

0.0
No commit activity in last 3 years
No release in over 3 years
This library allows you to generate fake data in Japanese. Inspired by faker-ruby
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
2025
 Dependencies

Development

~> 1.17
~> 10.0
~> 3.0
~> 1.21.0
 Project Readme

🇯🇵Fakerjp

Generates fake data for Japanese names, numbers, addresses, and more. Note: Please be aware that this gem is under heavy development. / 日本の名前や数字・住所などのサンプルデータを生成します。

🍡Installation

Add this line to your application's Gemfile:

gem 'fakerjp'

And then execute:

$ bundle

Or install it yourself as:

$ gem install fakerjp

🍣Usage/使い方

Check version / バージョンチェック

Fakerjp::VERSION #=> 0.1.1

Fakerjp::People

# Generate a random last name / 苗字データの生成
Fakerjp::People.last_name #=> 山田
# Generate a random first name / 名前データの生成
Fakerjp::People.first_name #=> 詩織
# Generate a random full name / フルネームデータの生成
Fakerjp::People.full_name #=> 中村陸

Fakerjp::Geography

# Generate a random prefecture / 都道府県データの生成
Fakerjp::Geography.prefecture #=> 北海道

🍘Development

Test

rspec 

Console

# This code automatically loads the local version of fakerjp / 自動でローカルのfakerjpを読み込みます
rake console

🍜Contributing

Bug reports and pull requests are welcome on GitHub at https://github.com/lilisako/fakerjp.