rubiderella 0.1.1 → 0.1.5

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.
Files changed (40) hide show
  1. checksums.yaml +4 -4
  2. data/.github/pull_request_template.md +1 -0
  3. data/.github/workflows/test.yml +3 -1
  4. data/.ruby-version +1 -1
  5. data/CHANGELOG.md +32 -0
  6. data/Gemfile +2 -5
  7. data/Gemfile.lock +65 -77
  8. data/README.md +381 -1
  9. data/Rakefile +2 -0
  10. data/bin/console +1 -0
  11. data/config/assistant/senkawa_chihiro.yml +25 -0
  12. data/config/idols/asari_nanami.yml +1 -1
  13. data/config/idols/kiryu_tsukasa.yml +1 -1
  14. data/config/idols/sunazuka_akira.yml +1 -1
  15. data/config/idols/tsujino_akari.yml +1 -1
  16. data/config/idols/yagami_makino.yml +1 -1
  17. data/config/trainer/master_trainer.yml +24 -0
  18. data/config/trainer/rookie_trainer.yml +24 -0
  19. data/config/trainer/trainer.yml +24 -0
  20. data/config/trainer/veteran_trainer.yml +24 -0
  21. data/lib/cinderella_girls/assistant.rb +15 -0
  22. data/lib/cinderella_girls/trainer.rb +15 -0
  23. data/lib/cinderella_girls.rb +8 -0
  24. data/lib/rubiderella/assistant/birthday.rb +8 -0
  25. data/lib/rubiderella/assistant/name.rb +8 -0
  26. data/lib/rubiderella/assistant.rb +19 -0
  27. data/lib/rubiderella/errors.rb +9 -0
  28. data/lib/rubiderella/idol/birthday.rb +1 -11
  29. data/lib/rubiderella/idol/name.rb +1 -17
  30. data/lib/rubiderella/idol.rb +4 -44
  31. data/lib/rubiderella/person/birthday.rb +18 -0
  32. data/lib/rubiderella/person/name.rb +24 -0
  33. data/lib/rubiderella/person.rb +54 -0
  34. data/lib/rubiderella/trainer/birthday.rb +8 -0
  35. data/lib/rubiderella/trainer/name.rb +8 -0
  36. data/lib/rubiderella/trainer.rb +19 -0
  37. data/lib/rubiderella/version.rb +1 -1
  38. data/lib/rubiderella.rb +12 -0
  39. data/rubiderella.gemspec +15 -10
  40. metadata +97 -23
data/README.md CHANGED
@@ -12,7 +12,7 @@ This gem is inspired by [sue445/rubicure](https://github.com/sue445/rubicure) an
12
12
 
13
13
  ## Requirements
14
14
 
15
- - ruby >= 2.4
15
+ - ruby >= 2.5
16
16
 
17
17
  ## Installation
18
18
 
@@ -27,6 +27,7 @@ This gem is inspired by [sue445/rubicure](https://github.com/sue445/rubicure) an
27
27
  ### Call CinderellaGirls
28
28
 
29
29
  ```ruby
30
+
30
31
  >> CinderellaGirls.idol.all
31
32
  #=> [#<Rubiderella::Idol:0x00007fc2bc10a690
32
33
  @age=9,
@@ -71,6 +72,7 @@ This gem is inspired by [sue445/rubicure](https://github.com/sue445/rubicure) an
71
72
  ex: 神崎蘭子(Kanzaki Ranko)
72
73
 
73
74
  ```ruby
75
+
74
76
  # CinderellaGirls.idol.[IDOL_NAME]
75
77
  >> CinderellaGirls.idol.kanzaki_ranko
76
78
  => #<Rubiderella::Idol:0x00007feec79bff60
@@ -109,6 +111,103 @@ ex: 神崎蘭子(Kanzaki Ranko)
109
111
  # CinderellaGirls.idol.[IDOL_NAME].birthday.date
110
112
  >> CinderellaGirls.idol.kanzaki_ranko.birthday.date
111
113
  => "4月8日"
114
+
115
+ ```
116
+
117
+ ### Call Trainer
118
+
119
+ ```ruby
120
+
121
+ >> CinderellaGirls.trainer.all
122
+ => [#<Rubiderella::Trainer:0x00007f81069699c8
123
+ @age=23,
124
+ @birthday=#<Rubiderella::Person::Birthday:0x00007f8106969978 @day=10, @month=6>,
125
+ @blood="B",
126
+ @bust=84.0,
127
+ @cv="藤村歩",
128
+ @favorite=["早朝ランニング"],
129
+ @from="栃木県",
130
+ @handed="right",
131
+ @height=160.0,
132
+ @hip=85.0,
133
+ @name=#<Rubiderella::Person::Name:0x00007f81069699a0 @first="明", @first_kana="めい", @last="青木", @last_kana="あおき">,
134
+ @sign="双子座",
135
+ @type="passion",
136
+ @waist=56.0,
137
+ @weight=45.0>,
138
+ #<Rubiderella::Trainer:0x00007f8106969928
139
+ @age=28,
140
+ @birthday=#<Rubiderella::Person::Birthday:0x00007f81069698d8 @day=10, @month=12>,
141
+ @blood="AB",
142
+ @bust=82.0,
143
+ @cv="藤村歩",
144
+ @favorite=["スポーツドリンクの自作"],
145
+ @from="栃木県",
146
+ @handed="right",
147
+ @height=166.0,
148
+ @hip=83.0,
149
+ @name=#<Rubiderella::Person::Name:0x00007f8106969900 @first="麗", @first_kana="れい", @last="青木", @last_kana="あおき">,
150
+ @sign="射手座",
151
+ @type="passion",
152
+ @waist=56.0,
153
+ @weight=45.0>,
154
+ #<Rubiderella::Trainer:0x00007f8106969888
155
+ @age=19,
156
+ @birthday=#<Rubiderella::Person::Birthday:0x00007f8106969838 @day=10, @month=3>,
157
+ @blood="B",
158
+ @bust=77.0,
159
+ @cv="藤村歩",
160
+ @favorite=["ジム通い"],
161
+ @from="栃木県",
162
+ @handed="right",
163
+ @height=157.0,
164
+ @hip=82.0,
165
+ @name=#<Rubiderella::Person::Name:0x00007f8106969860 @first="慶", @first_kana="けい", @last="青木", @last_kana="あおき">,
166
+ @sign="魚座",
167
+ @type="passion",
168
+ @waist=56.0,
169
+ @weight=45.0>,
170
+ #<Rubiderella::Trainer:0x00007f81069697e8
171
+ @age=26,
172
+ @birthday=#<Rubiderella::Person::Birthday:0x00007f8106969798 @day=10, @month=9>,
173
+ @blood="A",
174
+ @bust=83.0,
175
+ @cv="藤村歩",
176
+ @favorite=["デイトレード"],
177
+ @from="栃木県",
178
+ @handed="right",
179
+ @height=163.0,
180
+ @hip=84.0,
181
+ @name=#<Rubiderella::Person::Name:0x00007f81069697c0 @first="聖", @first_kana="せい", @last="青木", @last_kana="あおき">,
182
+ @sign="乙女座",
183
+ @type="passion",
184
+ @waist=56.0,
185
+ @weight=45.0>]
186
+
187
+ ```
188
+
189
+ ### Call Assistant
190
+
191
+ ```ruby
192
+
193
+ >> CinderellaGirls.assistant.all
194
+ => [#<Rubiderella::Assistant:0x00007f8106b04f80
195
+ @age="??",
196
+ @birthday=#<Rubiderella::Person::Birthday:0x00007f8106b04f30 @day=28, @month=11>,
197
+ @blood="A",
198
+ @bust=82.0,
199
+ @cv="佐藤利奈",
200
+ @favorite=["コスプレ", "パーティ"],
201
+ @from="東京都",
202
+ @handed="right",
203
+ @height=154.0,
204
+ @hip=84.0,
205
+ @name=#<Rubiderella::Person::Name:0x00007f8106b04f58 @first="ちひろ", @first_kana="ちひろ", @last="千川", @last_kana="せんかわ">,
206
+ @sign="射手座",
207
+ @type=nil,
208
+ @waist=58.0,
209
+ @weight="ひ・み・つ">]
210
+
112
211
  ```
113
212
 
114
213
  ### Rubiderella::Idol#all
@@ -193,6 +292,7 @@ ex: 神崎蘭子(Kanzaki Ranko)
193
292
  @type="cool",
194
293
  @waist=55.0,
195
294
  @weight=43.0>
295
+
196
296
  ```
197
297
 
198
298
  ### Rubiderella::Idol::Name#full
@@ -204,6 +304,7 @@ ex: 神崎蘭子(Kanzaki Ranko)
204
304
 
205
305
  >> Rubiderella::Idol.find_by_key(:ninomiya_asuka).name.full
206
306
  => "二宮飛鳥"
307
+
207
308
  ```
208
309
 
209
310
  ### Rubiderella::Idol::Name#full_kana
@@ -230,6 +331,285 @@ ex: 神崎蘭子(Kanzaki Ranko)
230
331
 
231
332
  ```
232
333
 
334
+
335
+ ### Rubiderella::Trainer#all
336
+
337
+ ```ruby
338
+
339
+ >> Rubiderella::Trainer.all
340
+ => [#<Rubiderella::Trainer:0x00007f81069699c8
341
+ @age=23,
342
+ @birthday=#<Rubiderella::Person::Birthday:0x00007f8106969978 @day=10, @month=6>,
343
+ @blood="B",
344
+ @bust=84.0,
345
+ @cv="藤村歩",
346
+ @favorite=["早朝ランニング"],
347
+ @from="栃木県",
348
+ @handed="right",
349
+ @height=160.0,
350
+ @hip=85.0,
351
+ @name=#<Rubiderella::Person::Name:0x00007f81069699a0 @first="明", @first_kana="めい", @last="青木", @last_kana="あおき">,
352
+ @sign="双子座",
353
+ @type="passion",
354
+ @waist=56.0,
355
+ @weight=45.0>,
356
+ #<Rubiderella::Trainer:0x00007f8106969928
357
+ @age=28,
358
+ @birthday=#<Rubiderella::Person::Birthday:0x00007f81069698d8 @day=10, @month=12>,
359
+ @blood="AB",
360
+ @bust=82.0,
361
+ @cv="藤村歩",
362
+ @favorite=["スポーツドリンクの自作"],
363
+ @from="栃木県",
364
+ @handed="right",
365
+ @height=166.0,
366
+ @hip=83.0,
367
+ @name=#<Rubiderella::Person::Name:0x00007f8106969900 @first="麗", @first_kana="れい", @last="青木", @last_kana="あおき">,
368
+ @sign="射手座",
369
+ @type="passion",
370
+ @waist=56.0,
371
+ @weight=45.0>,
372
+ #<Rubiderella::Trainer:0x00007f8106969888
373
+ @age=19,
374
+ @birthday=#<Rubiderella::Person::Birthday:0x00007f8106969838 @day=10, @month=3>,
375
+ @blood="B",
376
+ @bust=77.0,
377
+ @cv="藤村歩",
378
+ @favorite=["ジム通い"],
379
+ @from="栃木県",
380
+ @handed="right",
381
+ @height=157.0,
382
+ @hip=82.0,
383
+ @name=#<Rubiderella::Person::Name:0x00007f8106969860 @first="慶", @first_kana="けい", @last="青木", @last_kana="あおき">,
384
+ @sign="魚座",
385
+ @type="passion",
386
+ @waist=56.0,
387
+ @weight=45.0>,
388
+ #<Rubiderella::Trainer:0x00007f81069697e8
389
+ @age=26,
390
+ @birthday=#<Rubiderella::Person::Birthday:0x00007f8106969798 @day=10, @month=9>,
391
+ @blood="A",
392
+ @bust=83.0,
393
+ @cv="藤村歩",
394
+ @favorite=["デイトレード"],
395
+ @from="栃木県",
396
+ @handed="right",
397
+ @height=163.0,
398
+ @hip=84.0,
399
+ @name=#<Rubiderella::Person::Name:0x00007f81069697c0 @first="聖", @first_kana="せい", @last="青木", @last_kana="あおき">,
400
+ @sign="乙女座",
401
+ @type="passion",
402
+ @waist=56.0,
403
+ @weight=45.0>]
404
+
405
+ ```
406
+
407
+ ### Rubiderella::Trainer#find\_by\_key
408
+
409
+ ```ruby
410
+
411
+ >> Rubiderella::Trainer.find_by_key(:rookie_trainer)
412
+ => #<Rubiderella::Trainer:0x00007f8105247c18
413
+ @age=19,
414
+ @birthday=#<Rubiderella::Person::Birthday:0x00007f8105247bc8 @day=10, @month=3>,
415
+ @blood="B",
416
+ @bust=77.0,
417
+ @cv="藤村歩",
418
+ @favorite=["ジム通い"],
419
+ @from="栃木県",
420
+ @handed="right",
421
+ @height=157.0,
422
+ @hip=82.0,
423
+ @name=#<Rubiderella::Person::Name:0x00007f8105247bf0 @first="慶", @first_kana="けい", @last="青木", @last_kana="あおき">,
424
+ @sign="魚座",
425
+ @type="passion",
426
+ @waist=56.0,
427
+ @weight=45.0>
428
+
429
+ >> Rubiderella::Trainer.find_by_key(:trainer)
430
+ => #<Rubiderella::Trainer:0x00007f8106aff5a8
431
+ @age=23,
432
+ @birthday=#<Rubiderella::Person::Birthday:0x00007f8106aff558 @day=10, @month=6>,
433
+ @blood="B",
434
+ @bust=84.0,
435
+ @cv="藤村歩",
436
+ @favorite=["早朝ランニング"],
437
+ @from="栃木県",
438
+ @handed="right",
439
+ @height=160.0,
440
+ @hip=85.0,
441
+ @name=#<Rubiderella::Person::Name:0x00007f8106aff580 @first="明", @first_kana="めい", @last="青木", @last_kana="あおき">,
442
+ @sign="双子座",
443
+ @type="passion",
444
+ @waist=56.0,
445
+ @weight=45.0>
446
+
447
+ >> Rubiderella::Trainer.find_by_key(:veteran_trainer)
448
+ => #<Rubiderella::Trainer:0x00007f81051c1078
449
+ @age=26,
450
+ @birthday=#<Rubiderella::Person::Birthday:0x00007f81051c1028 @day=10, @month=9>,
451
+ @blood="A",
452
+ @bust=83.0,
453
+ @cv="藤村歩",
454
+ @favorite=["デイトレード"],
455
+ @from="栃木県",
456
+ @handed="right",
457
+ @height=163.0,
458
+ @hip=84.0,
459
+ @name=#<Rubiderella::Person::Name:0x00007f81051c1050 @first="聖", @first_kana="せい", @last="青木", @last_kana="あおき">,
460
+ @sign="乙女座",
461
+ @type="passion",
462
+ @waist=56.0,
463
+ @weight=45.0>
464
+
465
+ >> Rubiderella::Trainer.find_by_key(:master_trainer)
466
+ => #<Rubiderella::Trainer:0x00007f81041b4090
467
+ @age=28,
468
+ @birthday=#<Rubiderella::Person::Birthday:0x00007f81041b4040 @day=10, @month=12>,
469
+ @blood="AB",
470
+ @bust=82.0,
471
+ @cv="藤村歩",
472
+ @favorite=["スポーツドリンクの自作"],
473
+ @from="栃木県",
474
+ @handed="right",
475
+ @height=166.0,
476
+ @hip=83.0,
477
+ @name=#<Rubiderella::Person::Name:0x00007f81041b4068 @first="麗", @first_kana="れい", @last="青木", @last_kana="あおき">,
478
+ @sign="射手座",
479
+ @type="passion",
480
+ @waist=56.0,
481
+ @weight=45.0>
482
+
483
+ ```
484
+
485
+ ### Rubiderella::Trainer::Name#full
486
+
487
+ ```ruby
488
+
489
+ >> Rubiderella::Trainer.find_by_key(:rookie_trainer).name.full
490
+ => "青木慶"
491
+
492
+ >> Rubiderella::Trainer.find_by_key(:trainer).name.full
493
+ => "青木明"
494
+
495
+ >> Rubiderella::Trainer.find_by_key(:veteran_trainer).name.full
496
+ => "青木聖"
497
+
498
+ Rubiderella::Trainer.find_by_key(:master_trainer).name.full
499
+ => "青木麗"
500
+
501
+ ```
502
+
503
+ ### Rubiderella::Trainer::Name#full_kana
504
+
505
+ ```ruby
506
+
507
+ >> Rubiderella::Trainer.find_by_key(:rookie_trainer).name.full_kana
508
+ => "あおきけい"
509
+
510
+ >> Rubiderella::Trainer.find_by_key(:trainer).name.full_kana
511
+ => "あおきめい"
512
+
513
+ >> Rubiderella::Trainer.find_by_key(:veteran_trainer).name.full_kana
514
+ => "あおきせい"
515
+
516
+ >> Rubiderella::Trainer.find_by_key(:master_trainer).name.full_kana
517
+ => "あおきれい"
518
+
519
+ ```
520
+
521
+ ### Rubiderella::Trainer::Birthday#date
522
+
523
+ ```ruby
524
+
525
+ >> Rubiderella::Trainer.find_by_key(:rookie_trainer).birthday.date
526
+ => "3月10日"
527
+
528
+ >> Rubiderella::Trainer.find_by_key(:trainer).birthday.date
529
+ => "6月10日"
530
+
531
+ >> Rubiderella::Trainer.find_by_key(:veteran_trainer).birthday.date
532
+ => "9月10日"
533
+
534
+ >> Rubiderella::Trainer.find_by_key(:master_trainer).birthday.date
535
+ => "12月10日"
536
+
537
+ ```
538
+
539
+ ### Rubiderella::Assistant#all
540
+
541
+ ```ruby
542
+
543
+ >> Rubiderella::Assistant.all
544
+ => [#<Rubiderella::Assistant:0x00007f8106b04f80
545
+ @age="??",
546
+ @birthday=#<Rubiderella::Person::Birthday:0x00007f8106b04f30 @day=28, @month=11>,
547
+ @blood="A",
548
+ @bust=82.0,
549
+ @cv="佐藤利奈",
550
+ @favorite=["コスプレ", "パーティ"],
551
+ @from="東京都",
552
+ @handed="right",
553
+ @height=154.0,
554
+ @hip=84.0,
555
+ @name=#<Rubiderella::Person::Name:0x00007f8106b04f58 @first="ちひろ", @first_kana="ちひろ", @last="千川", @last_kana="せんかわ">,
556
+ @sign="射手座",
557
+ @type=nil,
558
+ @waist=58.0,
559
+ @weight="ひ・み・つ">]
560
+
561
+ ```
562
+
563
+ ### Rubiderella::Assistant#find\_by\_key
564
+
565
+ ```ruby
566
+
567
+ >> Rubiderella::Assistant.find_by_key(:senkawa_chihiro)
568
+ => #<Rubiderella::Assistant:0x00007f8106b1db70
569
+ @age="??",
570
+ @birthday=#<Rubiderella::Person::Birthday:0x00007f8106b1db20 @day=28, @month=11>,
571
+ @blood="A",
572
+ @bust=82.0,
573
+ @cv="佐藤利奈",
574
+ @favorite=["コスプレ", "パーティ"],
575
+ @from="東京都",
576
+ @handed="right",
577
+ @height=154.0,
578
+ @hip=84.0,
579
+ @name=#<Rubiderella::Person::Name:0x00007f8106b1db48 @first="ちひろ", @first_kana="ちひろ", @last="千川", @last_kana="せんかわ">,
580
+ @sign="射手座",
581
+ @type=nil,
582
+ @waist=58.0,
583
+ @weight="ひ・み・つ">
584
+
585
+ ```
586
+
587
+ ### Rubiderella::Assistant::Name#full
588
+
589
+
590
+ ```ruby
591
+
592
+ >> Rubiderella::Assistant.find_by_key(:senkawa_chihiro).name.full
593
+ => "千川ちひろ"
594
+
595
+ ```
596
+
597
+ ### Rubiderella::Assistant::Name#full_kana
598
+
599
+ ```ruby
600
+
601
+ >> Rubiderella::Assistant.find_by_key(:senkawa_chihiro).name.full_kana
602
+ => "せんかわちひろ"
603
+
604
+ ```
605
+
606
+ ### Rubiderella::Assistant::Birthday#date
607
+
608
+ ```ruby
609
+ >> Rubiderella::Assistant.find_by_key(:senkawa_chihiro).birthday.date
610
+ => "11月28日"
611
+ ```
612
+
233
613
  ## Contributing
234
614
 
235
615
  Bug reports and pull requests are welcome on GitHub at https://github.com/hikko624/rubiderella. This project is intended to be a safe, welcoming space for collaboration, and contributors are expected to adhere to the [code of conduct](https://github.com/hikko624/rubiderella/blob/master/CODE_OF_CONDUCT.md).
data/Rakefile CHANGED
@@ -1,3 +1,5 @@
1
+ # frozen_string_literal: true
2
+
1
3
  require 'bundler/gem_tasks'
2
4
  require 'rspec/core/rake_task'
3
5
 
data/bin/console CHANGED
@@ -1,4 +1,5 @@
1
1
  #!/usr/bin/env ruby
2
+ # frozen_string_literal: true
2
3
 
3
4
  require 'bundler/setup'
4
5
  require 'rubiderella'
@@ -0,0 +1,25 @@
1
+ ---
2
+ senkawa_chihiro:
3
+ name:
4
+ last: 千川
5
+ last_kana: せんかわ
6
+ first: ちひろ
7
+ first_kana: ちひろ
8
+ type: ~
9
+ age: ??
10
+ birthday:
11
+ month: 11
12
+ day: 28
13
+ sign: 射手座
14
+ blood: A
15
+ height: 154.0
16
+ weight: ひ・み・つ
17
+ bust: 82.0
18
+ waist: 58.0
19
+ hip: 84.0
20
+ handed: right
21
+ from: 東京都
22
+ favorite:
23
+ - コスプレ
24
+ - パーティ
25
+ cv: 佐藤利奈
@@ -22,4 +22,4 @@ asari_nanami:
22
22
  favorite:
23
23
  - 釣り
24
24
  - 絵日記
25
- cv: ~
25
+ cv: 井上ほの花
@@ -23,4 +23,4 @@ kiryu_tsukasa:
23
23
  - 異業種交流
24
24
  - ホットヨガ
25
25
  - ぬか床の世話
26
- cv: ~
26
+ cv: 河瀬茉希
@@ -23,4 +23,4 @@ sunazuka_akira:
23
23
  - ファッション
24
24
  - 動画配信
25
25
  - FPS
26
- cv: ~
26
+ cv: 富田美憂
@@ -22,4 +22,4 @@ tsujino_akari:
22
22
  favorite:
23
23
  - ラーメン
24
24
  - 編み物
25
- cv: ~
25
+ cv: 梅澤めぐ
@@ -21,4 +21,4 @@ yagami_makino:
21
21
  from: 岐阜県
22
22
  favorite:
23
23
  - 諜報活動
24
- cv: ~
24
+ cv: 二ノ宮ゆい
@@ -0,0 +1,24 @@
1
+ ---
2
+ master_trainer:
3
+ name:
4
+ last: 青木
5
+ last_kana: あおき
6
+ first: 麗
7
+ first_kana: れい
8
+ type: passion
9
+ age: 28
10
+ birthday:
11
+ month: 12
12
+ day: 10
13
+ sign: 射手座
14
+ blood: AB
15
+ height: 166.0
16
+ weight: 45.0
17
+ bust: 82.0
18
+ waist: 56.0
19
+ hip: 83.0
20
+ handed: right
21
+ from: 栃木県
22
+ favorite:
23
+ - スポーツドリンクの自作
24
+ cv: 藤村歩
@@ -0,0 +1,24 @@
1
+ ---
2
+ rookie_trainer:
3
+ name:
4
+ last: 青木
5
+ last_kana: あおき
6
+ first: 慶
7
+ first_kana: けい
8
+ type: passion
9
+ age: 19
10
+ birthday:
11
+ month: 3
12
+ day: 10
13
+ sign: 魚座
14
+ blood: B
15
+ height: 157.0
16
+ weight: 45.0
17
+ bust: 77.0
18
+ waist: 56.0
19
+ hip: 82.0
20
+ handed: right
21
+ from: 栃木県
22
+ favorite:
23
+ - ジム通い
24
+ cv: 藤村歩
@@ -0,0 +1,24 @@
1
+ ---
2
+ trainer:
3
+ name:
4
+ last: 青木
5
+ last_kana: あおき
6
+ first: 明
7
+ first_kana: めい
8
+ type: passion
9
+ age: 23
10
+ birthday:
11
+ month: 6
12
+ day: 10
13
+ sign: 双子座
14
+ blood: B
15
+ height: 160.0
16
+ weight: 45.0
17
+ bust: 84.0
18
+ waist: 56.0
19
+ hip: 85.0
20
+ handed: right
21
+ from: 栃木県
22
+ favorite:
23
+ - 早朝ランニング
24
+ cv: 藤村歩
@@ -0,0 +1,24 @@
1
+ ---
2
+ veteran_trainer:
3
+ name:
4
+ last: 青木
5
+ last_kana: あおき
6
+ first: 聖
7
+ first_kana: せい
8
+ type: passion
9
+ age: 26
10
+ birthday:
11
+ month: 9
12
+ day: 10
13
+ sign: 乙女座
14
+ blood: A
15
+ height: 163.0
16
+ weight: 45.0
17
+ bust: 83.0
18
+ waist: 56.0
19
+ hip: 84.0
20
+ handed: right
21
+ from: 栃木県
22
+ favorite:
23
+ - デイトレード
24
+ cv: 藤村歩
@@ -0,0 +1,15 @@
1
+ # frozen_string_literal: true
2
+
3
+ module CinderellaGirls
4
+ class Assistant
5
+ Rubiderella::Assistant.names.each do |name|
6
+ define_singleton_method name do
7
+ Rubiderella::Assistant.find_by_key(name)
8
+ end
9
+ end
10
+
11
+ def self.all
12
+ Rubiderella::Assistant.all
13
+ end
14
+ end
15
+ end
@@ -0,0 +1,15 @@
1
+ # frozen_string_literal: true
2
+
3
+ module CinderellaGirls
4
+ class Trainer
5
+ Rubiderella::Trainer.names.each do |name|
6
+ define_singleton_method name do
7
+ Rubiderella::Trainer.find_by_key(name)
8
+ end
9
+ end
10
+
11
+ def self.all
12
+ Rubiderella::Trainer.all
13
+ end
14
+ end
15
+ end
@@ -4,4 +4,12 @@ module CinderellaGirls
4
4
  def self.idol
5
5
  Idol
6
6
  end
7
+
8
+ def self.assistant
9
+ Assistant
10
+ end
11
+
12
+ def self.trainer
13
+ Trainer
14
+ end
7
15
  end
@@ -0,0 +1,8 @@
1
+ # frozen_string_literal: true
2
+
3
+ module Rubiderella
4
+ class Assistant
5
+ class Birthday < Person::Birthday
6
+ end
7
+ end
8
+ end
@@ -0,0 +1,8 @@
1
+ # frozen_string_literal: true
2
+
3
+ module Rubiderella
4
+ class Assistant
5
+ class Name < Person::Name
6
+ end
7
+ end
8
+ end
@@ -0,0 +1,19 @@
1
+ # frozen_string_literal: true
2
+
3
+ module Rubiderella
4
+ class Assistant < Person
5
+ class << self
6
+ def config
7
+ @config = Dir.glob("#{File.dirname(__FILE__)}/../../config/assistant/*.yml").each_with_object({}) do |file, idols|
8
+ idols.merge!(YAML.load_file(file))
9
+ end.deep_symbolize_keys
10
+ end
11
+
12
+ def find_by_key(key)
13
+ raise UnknownAssistantError unless valid?(key)
14
+
15
+ new(@config[key])
16
+ end
17
+ end
18
+ end
19
+ end
@@ -0,0 +1,9 @@
1
+ # frozen_string_literal: true
2
+
3
+ module Rubiderella
4
+ class UnknownIdolError < StandardError; end
5
+
6
+ class UnknownTrainerError < StandardError; end
7
+
8
+ class UnknownAssistantError < StandardError; end
9
+ end