gimei 1.3.1 → 1.3.2

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: f8bfa4fb4e4a4018dbbfff85ebc290c6eb081a8948c35fb0fdbe69fbfc00d8ce
4
- data.tar.gz: 617dd9770571fe2697efa29c4dc7f1e9c48d05fad65f6c751868a341600003dc
3
+ metadata.gz: e2e287f2cb909e174015de1e03064a336c51d90482a4f8730f8aa2556ef1d10c
4
+ data.tar.gz: dee54f893c9534fdc1231480685311d84c76bd061f30350ac8f643ca71a013c6
5
5
  SHA512:
6
- metadata.gz: 53d55e71e8167f0b861b14ab2acfbbc76472169cf0217936d06701a4d1e41e445c52d870206ea7d70c6b055dad1dac1c1ead61ab10e66eef3277007c00014f1b
7
- data.tar.gz: e48afe4e4e4ea97d055dc526c2ef970bdad400ccbd125a921fa5261ffe8e71a7c95cafa8341aa3b2586ae383017041defe4da4321de32ed2f6286cc08fe31a38
6
+ metadata.gz: ab71daf621e4c6648c3d0ee38958d6978cbf2983047d3d0e462a23e1b25caab982e1a31068c2df0ab0761c548844e4871705478116396f3538ca30ce8aae4c7e
7
+ data.tar.gz: 55a9bc15e86fadf56a3b074e3e74a5451de8ad22a361cb4613267f916afe8926be3a924647fa63dc61aa757480fa665b24b22cb7473cbef63e765e2bb6ff7087
data/lib/gimei/version.rb CHANGED
@@ -1,3 +1,3 @@
1
1
  class Gimei
2
- VERSION = "1.3.1"
2
+ VERSION = "1.3.2"
3
3
  end
data/sig/gimei/name.rbs CHANGED
@@ -5,6 +5,14 @@ class Gimei
5
5
  attr_reader gender: gender_type
6
6
  def self.male: -> Name
7
7
  def self.female: -> Name
8
+ def self.kanji: (?(gender_type)? gender) -> String
9
+ def self.hiragana: (?(gender_type)? gender) -> String
10
+ def self.katakana: (?(gender_type)? gender) -> String
11
+ def self.romaji: (?(gender_type)? gender) -> String
12
+ def self.first: (?(gender_type)? gender) -> String
13
+ def self.last: (?(gender_type)? gender) -> String
14
+ def self.family: (?(gender_type)? gender) -> String
15
+ def self.given: (?(gender_type)? gender) -> String
8
16
  def initialize: (?(gender_type)? gender) -> void
9
17
  def kanji: -> String
10
18
  def hiragana: -> String
@@ -10,9 +10,19 @@ class Gimei
10
10
  def previous_results: -> Hash[Symbol, Set[String]]
11
11
  def clear: (?Symbol? key) -> void
12
12
  def define_unique_method: (Symbol method_name, ?Symbol previous_result_key) -> Symbol
13
- def name: -> Name
14
- def first: -> Name::First
15
- def last: -> Name::Last
13
+ def name: (?gender_type?) -> Name
14
+ def male: -> Name
15
+ def female: -> Name
16
+ def first: (?gender_type?) -> Name::First
17
+ def last: (?gender_type?) -> Name::Last
18
+ def hiragana: (?gender_type?) -> String
19
+ def katakana: (?gender_type?) -> String
20
+ def kanji: (?gender_type?) -> String
21
+ def romaji: (?gender_type?) -> String
22
+ def address: -> Address
23
+ def prefecture: -> Address::Prefecture
24
+ def city: -> Address::City
25
+ def town: -> Address::Town
16
26
  alias family last
17
27
  alias given first
18
28
 
data/sig/gimei.rbs CHANGED
@@ -15,16 +15,34 @@ class Gimei
15
15
  def self.name: (?gender_type? gender) -> Name
16
16
  def self.names: -> untyped # (Hash['first_name', Hash[('male' | 'female'), Array[[String, String, String]]]] | Hash['last_name', Array[[String, String, String]]])
17
17
  def self.addresses: -> Hash['addresses', Hash[('prefecture' | 'city' | 'town'), Array[[String, String, String]]]]
18
- def self.kanji: -> String
19
- def self.hiragana: -> String
20
- def self.katakana: -> String
21
- def self.romaji: -> String
22
- def self.first: -> Name::First
23
- def self.last: -> Name::Last
18
+ def self.kanji: (?gender_type? gender) -> String
19
+ def self.hiragana: (?gender_type? gender) -> String
20
+ def self.katakana: (?gender_type? gender) -> String
21
+ def self.romaji: (?gender_type? gender) -> String
22
+ def self.first: (?gender_type? gender) -> Name::First
23
+ def self.last: (?gender_type? gender) -> Name::Last
24
24
  def self.address: -> Address
25
+ def self.prefecture: -> Address::Prefecture
26
+ def self.city: -> Address::City
27
+ def self.town: -> Address::Town
25
28
  def self.unique: (?Integer max_retries) -> UniqueGenerator
26
29
  def self.config: -> Config
27
- def initialize: (?gender_type? gender) -> void
28
30
  alias self.family self.last
29
31
  alias self.given self.first
32
+
33
+ def initialize: (?gender_type? gender) -> void
34
+ def first: -> Gimei::Name::First
35
+ def last: -> Gimei::Name::Last
36
+ def gender: -> gender_type
37
+ def kanji: -> String
38
+ def hiragana: -> String
39
+ def katakana: -> String
40
+ def romaji: -> String
41
+ def family: -> String
42
+ def given: -> String
43
+ def male?: -> bool
44
+ def female?: -> bool
45
+ def prefecture: -> Address::Prefecture
46
+ def city: -> Address::City
47
+ def town: -> Address::Town
30
48
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: gimei
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.3.1
4
+ version: 1.3.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - willnet