gimei 1.0.0 → 1.0.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: c647940ae0bd7a3df1f2bb8cdebfe33703701f3edf8495ffc72ed918a1cbb066
4
- data.tar.gz: 0eafe0d2bb191084624b9dd7e37f77b15a7bb4dcff9e6c1fab92b1a192e01b0f
3
+ metadata.gz: 8b901f4ad99a870c4fccfe3c2b45d091efb1419db562b59b8a21ee28b789110d
4
+ data.tar.gz: 37857e0546c84936dab79d8731c0cf2dd5462819138a8bc038107632c11b76dc
5
5
  SHA512:
6
- metadata.gz: bbb471e7f12d534bf5dc1f88f71e7784a62ebf4f390a4ea83d107406c620f141c79f2a09bb51a76399ef109d81ad55fcd2803f25508faf34b923249e8df7e764
7
- data.tar.gz: 78a71e6f0d6515422cecd32f52302eaee4edc60a34374126032b1a76df268d6ea465f54c3955defc68af7bfbbcf1f5c25fed83e7a36854fa91b19b782104ce2a
6
+ metadata.gz: bf30c05cf967c15a0eba2713428baa490e0ffe2b0034286db8079f9a39a669685e74a6449b7d65bfe9c52418abfa6dfe85f242d3e69ec5c784b9ce47e6a198b4
7
+ data.tar.gz: fdbace6cac90a3cbab0d93edb084fbff7babfa729efcb2b2e31da9eba3663b0d611d79abdc3861c98b3200c620a95ba50e91ed5e5ab9e8d4927173f3df601722
@@ -3,7 +3,7 @@ name: test
3
3
  on:
4
4
  push:
5
5
  branches:
6
- - master
6
+ - main
7
7
  pull_request:
8
8
  types:
9
9
  - opened
@@ -28,6 +28,7 @@ jobs:
28
28
  - ruby:2.6
29
29
  - ruby:2.7
30
30
  - ruby:3.0
31
+ - ruby:3.1
31
32
  - rubylang/ruby:master-nightly-bionic
32
33
  include:
33
34
  - ruby: rubylang/ruby:master-nightly-bionic
data/CHANGELOG.md CHANGED
@@ -1,3 +1,9 @@
1
+ ## 1.0.1
2
+
3
+ - Ruby 3.1のサポート[@willnet](https://github.com/willnet) (https://github.com/willnet/gimei/pull/48)
4
+ - 他言語による実装リストの更新 [@youpong](https://github.com/youpong) (https://github.com/willnet/gimei/pull/47)
5
+ - READMEに「再現可能なランダムデータ」の節を追加 [@youpong](https://github.com/youpong) (https://github.com/willnet/gimei/pull/45)
6
+
1
7
  ## 1.0.0
2
8
 
3
9
  * データの読み込みを遅延させた [@willnet](https://github.com/willnet) (https://github.com/willnet/gimei/pull/41)
data/README.md CHANGED
@@ -196,6 +196,20 @@ Gimei.unique.clear(:prefecture) # Gimei.unique.prefecture の結果を消去
196
196
 
197
197
  出力される住所の候補となるデータは `lib/data/addresses.yml` にあるので、必要であればファイルを修正してください。
198
198
 
199
+ ### 再現可能なランダムデータ
200
+
201
+ 下記のように乱数生成器を設定することで、再現性のあるランダムデータを生成できます。
202
+
203
+ ```ruby
204
+ Gimei.config.rng = Random.new(42)
205
+ Gimei.name.kanji #=> "飯島 誠吾"
206
+ Gimei.address.kanji #=> "熊本県日進市東場内"
207
+
208
+ Gimei.config.rng = Random.new(42)
209
+ Gimei.name.kanji #=> "飯島 誠吾"
210
+ Gimei.address.kanji #=> "熊本県日進市東場内"
211
+ ```
212
+
199
213
  ## Supported versions
200
214
 
201
215
  - 2.2.x
@@ -205,17 +219,19 @@ Gimei.unique.clear(:prefecture) # Gimei.unique.prefecture の結果を消去
205
219
  - 2.6.x
206
220
  - 2.7.x
207
221
  - 3.0.x
222
+ - 3.1.x
208
223
 
209
224
  ## 他言語による実装
210
225
 
211
- - [mattn/go-gimei](https://github.com/mattn/go-gimei)
212
- - [moznion/gimei-java](https://github.com/moznion/gimei-java)
213
- - [nabetama/gimei](https://github.com/nabetama/gimei)
214
- - [gongo/emacs-gimei](https://github.com/gongo/emacs-gimei)
215
- - [ma2gedev/gimei_ex](https://github.com/ma2gedev/gimei_ex)
216
- - [demiglacesource/node-gimei](https://github.com/demiglacesource/node-gimei)
217
- - [matarillo/dot-gimei](https://github.com/matarillo/dot-gimei)
218
- - [abcb2/type-gimei](https://github.com/abcb2/type-gimei)
226
+ - .NET [matarillo/dot-gimei](https://github.com/matarillo/dot-gimei)
227
+ - Elixir [ma2gedev/gimei_ex](https://github.com/ma2gedev/gimei_ex)
228
+ - Emacs Lisp [gongo/emacs-gimei](https://github.com/gongo/emacs-gimei)
229
+ - Go [mattn/go-gimei](https://github.com/mattn/go-gimei)
230
+ - Java [moznion/gimei-java](https://github.com/moznion/gimei-java)
231
+ - Node.js [demiglacesource/node-gimei](https://github.com/demiglacesource/node-gimei)
232
+ - Perl [youpong/Data-Gimei](https://github.com/youpong/Data-Gimei)
233
+ - Python [nabetama/gimei](https://github.com/nabetama/gimei)
234
+ - TypeScript [abcb2/type-gimei](https://github.com/abcb2/type-gimei)
219
235
 
220
236
  ## Installation
221
237
 
data/lib/gimei/version.rb CHANGED
@@ -1,3 +1,3 @@
1
1
  class Gimei
2
- VERSION = "1.0.0"
2
+ VERSION = "1.0.1"
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: gimei
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.0
4
+ version: 1.0.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - willnet
8
- autorequire:
8
+ autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2021-04-12 00:00:00.000000000 Z
11
+ date: 2022-01-07 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: romaji
@@ -100,7 +100,7 @@ homepage: https://github.com/willnet/gimei
100
100
  licenses:
101
101
  - MIT
102
102
  metadata: {}
103
- post_install_message:
103
+ post_install_message:
104
104
  rdoc_options: []
105
105
  require_paths:
106
106
  - lib
@@ -115,8 +115,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
115
115
  - !ruby/object:Gem::Version
116
116
  version: '0'
117
117
  requirements: []
118
- rubygems_version: 3.2.8
119
- signing_key:
118
+ rubygems_version: 3.2.33
119
+ signing_key:
120
120
  specification_version: 4
121
121
  summary: random Japanese name and address generator. support kanji, hiragana, and
122
122
  katakana