rubimas 0.0.2 → 0.1.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +21 -0
- data/README.md +12 -6
- data/config/idols.yml +150 -150
- data/lib/rubimas/core_ext/fixnum/production.rb +6 -0
- data/lib/rubimas/core_ext/fixnum.rb +1 -0
- data/lib/rubimas/idol.rb +19 -11
- data/lib/rubimas/version.rb +1 -1
- data/lib/rubimas.rb +14 -3
- metadata +5 -7
- data/lib/rubimas/pro765.rb +0 -9
- data/spec/idol_spec.rb +0 -15
- data/spec/pro765.rb +0 -4
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: e028493c7e2b22ee6276ef03f32db133a52b6608
|
4
|
+
data.tar.gz: 5a79e474417bee0b8ee20a12969a4a9abb4a6b81
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: d0df5251a0586585645f8810d1ee824e40594d5da5fb425c620b2a1c6ea68b658eddbc922b5993c5bd7d156276f1bcb53128f7874846d97da80e7ec83ed735f3
|
7
|
+
data.tar.gz: 250836884e80d401c042200737df23484b0f397b5a303bd5a3c5bd209e5903fae169ba7ecbc4fe313272e33e13d6cce9cea6ac576c67c000e43eb0774bdb896c
|
data/CHANGELOG.md
ADDED
@@ -0,0 +1,21 @@
|
|
1
|
+
## master
|
2
|
+
[full changelog](http://github.com/imas/rubimas/compare/v0.1.0...master)
|
3
|
+
|
4
|
+
## v0.1.0
|
5
|
+
[full changelog](http://github.com/imas/rubimas/compare/v0.0.2...v0.1.0)
|
6
|
+
|
7
|
+
- Use plural form for some `Rubimas::Idol` attributes.
|
8
|
+
- https://github.com/imas/rubimas/commit/d864944f10a1037cc6d5c69913ac6731cab08d0f
|
9
|
+
- Add alias of `Pro765` named `765.pro`.
|
10
|
+
- https://github.com/imas/rubimas/commit/13729a0ef22227ad7e539ca1fae1f91ab50b8b84
|
11
|
+
- Add `find_by_id` method for idol_id search.
|
12
|
+
- https://github.com/imas/rubimas/commit/9ef960ada834da8c60a3c5da281af578be20312b
|
13
|
+
|
14
|
+
## v0.0.2
|
15
|
+
[full changelog](http://github.com/imas/rubimas/compare/v0.0.1...v0.0.2)
|
16
|
+
|
17
|
+
- Add idol personal color (thx @hoshina85).
|
18
|
+
- https://github.com/imas/rubimas/pull/1
|
19
|
+
|
20
|
+
## v0.0.1
|
21
|
+
* first release
|
data/README.md
CHANGED
@@ -1,9 +1,11 @@
|
|
1
1
|
# Rubimas
|
2
2
|
|
3
|
-
[![Build Status](https://travis-ci.org/
|
3
|
+
[![Build Status](https://travis-ci.org/imas/rubimas.png?branch=master)](https://travis-ci.org/imas/rubimas)
|
4
4
|
|
5
5
|
A reference for 765PRO all stars (include million stars)
|
6
6
|
|
7
|
+
This gem is inspired by [sue445/rubicure](https://github.com/sue445/rubicure) strongly.
|
8
|
+
|
7
9
|
## Installation
|
8
10
|
|
9
11
|
Add this line to your application's Gemfile:
|
@@ -21,16 +23,20 @@ Or install it yourself as:
|
|
21
23
|
## Usage
|
22
24
|
|
23
25
|
require 'rubimas'
|
24
|
-
|
26
|
+
765.pro.haruka.name
|
25
27
|
# "天海 春香"
|
26
|
-
|
28
|
+
765.pro.haruka.birthday
|
27
29
|
# "04/03"
|
28
|
-
|
29
|
-
# "歌うこと"
|
30
|
+
765.pro.haruka.favorites
|
31
|
+
# ["歌うこと"]
|
32
|
+
|
33
|
+
# idol_id search
|
34
|
+
765.pro.find_by_id(39).name
|
35
|
+
# "馬場このみ"
|
30
36
|
|
31
37
|
## Contributing
|
32
38
|
|
33
|
-
1. Fork it ( https://github.com/
|
39
|
+
1. Fork it ( https://github.com/imas/rubimas/fork )
|
34
40
|
2. Create your feature branch (`git checkout -b my-new-feature`)
|
35
41
|
3. Commit your changes (`git commit -am 'Add some feature'`)
|
36
42
|
4. Push to the branch (`git push origin my-new-feature`)
|
data/config/idols.yml
CHANGED
@@ -12,12 +12,12 @@ haruka:
|
|
12
12
|
birthday: 04/03
|
13
13
|
blood_type: O
|
14
14
|
handedness: right
|
15
|
-
|
15
|
+
hobbies:
|
16
16
|
- "カラオケ"
|
17
17
|
- "長電話"
|
18
|
-
|
18
|
+
talents:
|
19
19
|
- "お菓子作り"
|
20
|
-
|
20
|
+
favorites:
|
21
21
|
- "歌うこと"
|
22
22
|
color: "#e22b30"
|
23
23
|
chihaya:
|
@@ -33,11 +33,11 @@ chihaya:
|
|
33
33
|
birthday: 02/25
|
34
34
|
blood_type: A
|
35
35
|
handedness: right
|
36
|
-
|
36
|
+
hobbies:
|
37
37
|
- "音楽鑑賞"
|
38
|
-
|
38
|
+
talents:
|
39
39
|
- "歌"
|
40
|
-
|
40
|
+
favorites:
|
41
41
|
- "トレーニング"
|
42
42
|
color: "#2743d2"
|
43
43
|
miki:
|
@@ -53,12 +53,12 @@ miki:
|
|
53
53
|
birthday: 11/23
|
54
54
|
blood_type: B
|
55
55
|
handedness: right
|
56
|
-
|
56
|
+
hobbies:
|
57
57
|
- "友達とおしゃべり"
|
58
58
|
- "ネイルアート"
|
59
|
-
|
59
|
+
talents:
|
60
60
|
- "寝ること"
|
61
|
-
|
61
|
+
favorites:
|
62
62
|
- "おにぎり"
|
63
63
|
- "いちごババロア"
|
64
64
|
color: "#b4e04b"
|
@@ -75,11 +75,11 @@ yukiho:
|
|
75
75
|
birthday: 12/24
|
76
76
|
blood_type: A
|
77
77
|
handedness: right
|
78
|
-
|
78
|
+
hobbies:
|
79
79
|
- MY詩集を書くこと
|
80
|
-
|
80
|
+
talents:
|
81
81
|
- "日本茶をいれること"
|
82
|
-
|
82
|
+
favorites:
|
83
83
|
- "ブログ"
|
84
84
|
color: "#d3dde9"
|
85
85
|
yayoi:
|
@@ -95,13 +95,13 @@ yayoi:
|
|
95
95
|
birthday: 03/25
|
96
96
|
blood_type: O
|
97
97
|
handedness: right
|
98
|
-
|
98
|
+
hobbies:
|
99
99
|
- "オセロ"
|
100
100
|
- "野球"
|
101
|
-
|
101
|
+
talents:
|
102
102
|
- "節約"
|
103
103
|
- "家庭菜園"
|
104
|
-
|
104
|
+
favorites:
|
105
105
|
- "家族"
|
106
106
|
color: "#f39939"
|
107
107
|
makoto:
|
@@ -117,12 +117,12 @@ makoto:
|
|
117
117
|
birthday: 08/29
|
118
118
|
blood_type: O
|
119
119
|
handedness: right
|
120
|
-
|
120
|
+
hobbies:
|
121
121
|
- "スポーツ全般"
|
122
|
-
|
122
|
+
talents:
|
123
123
|
- "空手"
|
124
124
|
- "ダンス"
|
125
|
-
|
125
|
+
favorites:
|
126
126
|
- "ぬいぐるみ"
|
127
127
|
color: "#515558"
|
128
128
|
iori:
|
@@ -138,12 +138,12 @@ iori:
|
|
138
138
|
birthday: 05/05
|
139
139
|
blood_type: AB
|
140
140
|
handedness: right
|
141
|
-
|
141
|
+
hobbies:
|
142
142
|
- "海外旅行"
|
143
143
|
- "食べ歩き"
|
144
|
-
|
144
|
+
talents:
|
145
145
|
- "ショッピング"
|
146
|
-
|
146
|
+
favorites:
|
147
147
|
- "果汁100%オレンジジュース"
|
148
148
|
color: "#fd99e1"
|
149
149
|
takane:
|
@@ -159,12 +159,12 @@ takane:
|
|
159
159
|
birthday: 01/21
|
160
160
|
blood_type: B
|
161
161
|
handedness: right
|
162
|
-
|
162
|
+
hobbies:
|
163
163
|
- "天体観測"
|
164
164
|
- "歴史"
|
165
|
-
|
165
|
+
talents:
|
166
166
|
- "直感"
|
167
|
-
|
167
|
+
favorites:
|
168
168
|
- "ラーメン"
|
169
169
|
color: "#a6126a"
|
170
170
|
ritsuko:
|
@@ -180,11 +180,11 @@ ritsuko:
|
|
180
180
|
birthday: 06/23
|
181
181
|
blood_type: A
|
182
182
|
handedness: right
|
183
|
-
|
183
|
+
hobbies:
|
184
184
|
- "資格取得"
|
185
|
-
|
185
|
+
talents:
|
186
186
|
- "分析・実践"
|
187
|
-
|
187
|
+
favorites:
|
188
188
|
- "ゲーム"
|
189
189
|
- "小説"
|
190
190
|
color: "#01a860"
|
@@ -201,11 +201,11 @@ azusa:
|
|
201
201
|
birthday: 07/19
|
202
202
|
blood_type: O
|
203
203
|
handedness: right
|
204
|
-
|
204
|
+
hobbies:
|
205
205
|
- "犬の散歩"
|
206
|
-
|
206
|
+
talents:
|
207
207
|
- "占い"
|
208
|
-
|
208
|
+
favorites:
|
209
209
|
- "カフェ巡り"
|
210
210
|
color: "#9238be"
|
211
211
|
ami:
|
@@ -221,12 +221,12 @@ ami:
|
|
221
221
|
birthday: 05/22
|
222
222
|
blood_type: B
|
223
223
|
handedness: right
|
224
|
-
|
224
|
+
hobbies:
|
225
225
|
- "メール"
|
226
226
|
- "エコ"
|
227
|
-
|
227
|
+
talents:
|
228
228
|
- "モノマネ"
|
229
|
-
|
229
|
+
favorites:
|
230
230
|
- "遊ぶこと"
|
231
231
|
color: "#ffe43f"
|
232
232
|
mami:
|
@@ -242,12 +242,12 @@ mami:
|
|
242
242
|
birthday: 05/22
|
243
243
|
blood_type: B
|
244
244
|
handedness: left
|
245
|
-
|
245
|
+
hobbies:
|
246
246
|
- "メール"
|
247
247
|
- "ゲーム"
|
248
|
-
|
248
|
+
talents:
|
249
249
|
- "モノマネ"
|
250
|
-
|
250
|
+
favorites:
|
251
251
|
- "遊ぶこと"
|
252
252
|
color: "#ffe43f"
|
253
253
|
hibiki:
|
@@ -263,12 +263,12 @@ hibiki:
|
|
263
263
|
birthday: 10/10
|
264
264
|
blood_type: A
|
265
265
|
handedness: right
|
266
|
-
|
266
|
+
hobbies:
|
267
267
|
- "編み物"
|
268
268
|
- "卓球"
|
269
|
-
|
269
|
+
talents:
|
270
270
|
- "家事全般"
|
271
|
-
|
271
|
+
favorites:
|
272
272
|
- "散歩"
|
273
273
|
- "動物"
|
274
274
|
color: "#01adb9"
|
@@ -285,11 +285,11 @@ mirai:
|
|
285
285
|
birthday: 06/28
|
286
286
|
blood_type: O
|
287
287
|
handedness: right
|
288
|
-
|
288
|
+
hobbies:
|
289
289
|
- "可愛い髪留めを集めること"
|
290
|
-
|
290
|
+
talents:
|
291
291
|
- "歌うこと"
|
292
|
-
|
292
|
+
favorites:
|
293
293
|
- "ライブ"
|
294
294
|
color: "#ea5b76"
|
295
295
|
shizuka:
|
@@ -305,11 +305,11 @@ shizuka:
|
|
305
305
|
birthday: 09/14
|
306
306
|
blood_type: A
|
307
307
|
handedness: right
|
308
|
-
|
308
|
+
hobbies:
|
309
309
|
- "テニス"
|
310
|
-
|
310
|
+
talents:
|
311
311
|
- "ピアノ"
|
312
|
-
|
312
|
+
favorites:
|
313
313
|
- "うどん"
|
314
314
|
color: "#6495cf"
|
315
315
|
tsubasa:
|
@@ -325,11 +325,11 @@ tsubasa:
|
|
325
325
|
birthday: 07/30
|
326
326
|
blood_type: B
|
327
327
|
handedness: left
|
328
|
-
|
328
|
+
hobbies:
|
329
329
|
- "遊びの計画をたてること"
|
330
|
-
|
330
|
+
talents:
|
331
331
|
- "じゃんけん"
|
332
|
-
|
332
|
+
favorites:
|
333
333
|
- "ビーフステーキ"
|
334
334
|
color: "#fed552"
|
335
335
|
kotoha:
|
@@ -345,11 +345,11 @@ kotoha:
|
|
345
345
|
birthday: 10/05
|
346
346
|
blood_type: A
|
347
347
|
handedness: right
|
348
|
-
|
348
|
+
hobbies:
|
349
349
|
- "お風呂"
|
350
|
-
|
350
|
+
talents:
|
351
351
|
- "フェンシング"
|
352
|
-
|
352
|
+
favorites:
|
353
353
|
- "アイス"
|
354
354
|
color: "#92cfbb"
|
355
355
|
erena:
|
@@ -365,11 +365,11 @@ erena:
|
|
365
365
|
birthday: 10/26
|
366
366
|
blood_type: B
|
367
367
|
handedness: right
|
368
|
-
|
368
|
+
hobbies:
|
369
369
|
- "パーティー"
|
370
|
-
|
370
|
+
talents:
|
371
371
|
- "サンバを踊ること"
|
372
|
-
|
372
|
+
favorites:
|
373
373
|
- "みんなで騒ぐこと"
|
374
374
|
color: "#9bce92"
|
375
375
|
minako:
|
@@ -385,11 +385,11 @@ minako:
|
|
385
385
|
birthday: 03/22
|
386
386
|
blood_type: O
|
387
387
|
handedness: right
|
388
|
-
|
388
|
+
hobbies:
|
389
389
|
- "格闘ゲーム"
|
390
|
-
|
390
|
+
talents:
|
391
391
|
- "料理"
|
392
|
-
|
392
|
+
favorites:
|
393
393
|
- "友達との長電話"
|
394
394
|
color: "#58a6dc"
|
395
395
|
megumi:
|
@@ -405,11 +405,11 @@ megumi:
|
|
405
405
|
birthday: 04/15
|
406
406
|
blood_type: O
|
407
407
|
handedness: right
|
408
|
-
|
408
|
+
hobbies:
|
409
409
|
- "カラオケ"
|
410
|
-
|
410
|
+
talents:
|
411
411
|
- "人の誕生日を覚えること"
|
412
|
-
|
412
|
+
favorites:
|
413
413
|
- "友達"
|
414
414
|
color: "#454341"
|
415
415
|
matsuri:
|
@@ -425,11 +425,11 @@ matsuri:
|
|
425
425
|
birthday: 02/04
|
426
426
|
blood_type: AB
|
427
427
|
handedness: right
|
428
|
-
|
428
|
+
hobbies:
|
429
429
|
- "漫画あつめ"
|
430
|
-
|
430
|
+
talents:
|
431
431
|
- "演技"
|
432
|
-
|
432
|
+
favorites:
|
433
433
|
- "焼きマシュマロ"
|
434
434
|
- "ウミウシ"
|
435
435
|
color: "#5abfb7"
|
@@ -446,11 +446,11 @@ serika:
|
|
446
446
|
birthday: 02/20
|
447
447
|
blood_type: O
|
448
448
|
handedness: right
|
449
|
-
|
449
|
+
hobbies:
|
450
450
|
- "バイオリン"
|
451
|
-
|
451
|
+
talents:
|
452
452
|
- "アジリティのハンドラー"
|
453
|
-
|
453
|
+
favorites:
|
454
454
|
- "紅茶"
|
455
455
|
- "クッキー"
|
456
456
|
color: "#ed90ba"
|
@@ -467,11 +467,11 @@ akane:
|
|
467
467
|
birthday: 12/03
|
468
468
|
blood_type: AB
|
469
469
|
handedness: left
|
470
|
-
|
470
|
+
hobbies:
|
471
471
|
- "スキップ"
|
472
|
-
|
472
|
+
talents:
|
473
473
|
- "インラインスケート"
|
474
|
-
|
474
|
+
favorites:
|
475
475
|
- "プリン"
|
476
476
|
color: "#eb613f"
|
477
477
|
anna:
|
@@ -487,11 +487,11 @@ anna:
|
|
487
487
|
birthday: 05/31
|
488
488
|
blood_type: AB
|
489
489
|
handedness: right
|
490
|
-
|
490
|
+
hobbies:
|
491
491
|
- "オンラインゲーム"
|
492
|
-
|
492
|
+
talents:
|
493
493
|
- "タイピング"
|
494
|
-
|
494
|
+
favorites:
|
495
495
|
- "かわいいもの"
|
496
496
|
color: "#7e6ca8"
|
497
497
|
roko:
|
@@ -507,11 +507,11 @@ roko:
|
|
507
507
|
birthday: 03/01
|
508
508
|
blood_type: AB
|
509
509
|
handedness: right
|
510
|
-
|
510
|
+
hobbies:
|
511
511
|
- "物を作ること"
|
512
|
-
|
512
|
+
talents:
|
513
513
|
- "目を閉じたまま歩ける"
|
514
|
-
|
514
|
+
favorites:
|
515
515
|
- "ハト"
|
516
516
|
color: "#fff03c"
|
517
517
|
yuriko:
|
@@ -527,11 +527,11 @@ yuriko:
|
|
527
527
|
birthday: 03/18
|
528
528
|
blood_type: B
|
529
529
|
handedness: right
|
530
|
-
|
530
|
+
hobbies:
|
531
531
|
- "読書"
|
532
|
-
|
532
|
+
talents:
|
533
533
|
- "ペン回し"
|
534
|
-
|
534
|
+
favorites:
|
535
535
|
- "おはぎ"
|
536
536
|
color: "#c7b83c"
|
537
537
|
sayoko:
|
@@ -547,11 +547,11 @@ sayoko:
|
|
547
547
|
birthday: 12/29
|
548
548
|
blood_type: A
|
549
549
|
handedness: right
|
550
|
-
|
550
|
+
hobbies:
|
551
551
|
- "ハリネズミの飼育"
|
552
|
-
|
552
|
+
talents:
|
553
553
|
- "一晩寝ると元気になれる"
|
554
|
-
|
554
|
+
favorites:
|
555
555
|
- "友達"
|
556
556
|
- "アイドル仲間"
|
557
557
|
color: "#7f6575"
|
@@ -568,11 +568,11 @@ arisa:
|
|
568
568
|
birthday: 06/07
|
569
569
|
blood_type: AB
|
570
570
|
handedness: right
|
571
|
-
|
571
|
+
hobbies:
|
572
572
|
- "アイドルのデータ集め"
|
573
|
-
|
573
|
+
talents:
|
574
574
|
- "アイドルの変装を見破れる"
|
575
|
-
|
575
|
+
favorites:
|
576
576
|
- "ファミレスのデザート"
|
577
577
|
color: "#b54461"
|
578
578
|
umi:
|
@@ -588,11 +588,11 @@ umi:
|
|
588
588
|
birthday: 08/10
|
589
589
|
blood_type: O
|
590
590
|
handedness: right
|
591
|
-
|
591
|
+
hobbies:
|
592
592
|
- "ボルダリング"
|
593
|
-
|
593
|
+
talents:
|
594
594
|
- "常人にできないポージングができる"
|
595
|
-
|
595
|
+
favorites:
|
596
596
|
- "ダンス"
|
597
597
|
color: "#e9739b"
|
598
598
|
iku:
|
@@ -608,11 +608,11 @@ iku:
|
|
608
608
|
birthday: 12/16
|
609
609
|
blood_type: B
|
610
610
|
handedness: right
|
611
|
-
|
611
|
+
hobbies:
|
612
612
|
- "アニメ鑑賞"
|
613
|
-
|
613
|
+
talents:
|
614
614
|
- "早起き"
|
615
|
-
|
615
|
+
favorites:
|
616
616
|
- "おかあさん"
|
617
617
|
color: "#f7e78e"
|
618
618
|
tomoka:
|
@@ -628,11 +628,11 @@ tomoka:
|
|
628
628
|
birthday: 11/11
|
629
629
|
blood_type: AB
|
630
630
|
handedness: left
|
631
|
-
|
631
|
+
hobbies:
|
632
632
|
- "ファンに喜んでもらうこと"
|
633
|
-
|
633
|
+
talents:
|
634
634
|
- "口げんか"
|
635
|
-
|
635
|
+
favorites:
|
636
636
|
- "かわいい扇子"
|
637
637
|
color: "#bee3e3"
|
638
638
|
emily:
|
@@ -648,11 +648,11 @@ emily:
|
|
648
648
|
birthday: 01/08
|
649
649
|
blood_type: A
|
650
650
|
handedness: right
|
651
|
-
|
651
|
+
hobbies:
|
652
652
|
- "かるた遊び"
|
653
|
-
|
653
|
+
talents:
|
654
654
|
- "日本舞踊"
|
655
|
-
|
655
|
+
favorites:
|
656
656
|
- "抹茶"
|
657
657
|
color: "#554171"
|
658
658
|
shiho:
|
@@ -668,12 +668,12 @@ shiho:
|
|
668
668
|
birthday: 01/18
|
669
669
|
blood_type: A
|
670
670
|
handedness: right
|
671
|
-
|
671
|
+
hobbies:
|
672
672
|
- "お気に入りの絵本を探すこと"
|
673
|
-
|
673
|
+
talents:
|
674
674
|
- "記憶力"
|
675
675
|
- "集中力が高い"
|
676
|
-
|
676
|
+
favorites:
|
677
677
|
- "ぬいぐるみ"
|
678
678
|
color: "#afa690"
|
679
679
|
ayumu:
|
@@ -689,11 +689,11 @@ ayumu:
|
|
689
689
|
birthday: 07/23
|
690
690
|
blood_type: A
|
691
691
|
handedness: right
|
692
|
-
|
692
|
+
hobbies:
|
693
693
|
- "ショッピング"
|
694
|
-
|
694
|
+
talents:
|
695
695
|
- "ダンス"
|
696
|
-
|
696
|
+
favorites:
|
697
697
|
- "わさび"
|
698
698
|
color: "#e25a9b"
|
699
699
|
hinata:
|
@@ -709,11 +709,11 @@ hinata:
|
|
709
709
|
birthday: 07/04
|
710
710
|
blood_type: O
|
711
711
|
handedness: right
|
712
|
-
|
712
|
+
hobbies:
|
713
713
|
- "ガーデニング"
|
714
|
-
|
714
|
+
talents:
|
715
715
|
- "天気を当てること"
|
716
|
-
|
716
|
+
favorites:
|
717
717
|
- "おばあちゃん"
|
718
718
|
color: "#d1342c"
|
719
719
|
kana:
|
@@ -729,11 +729,11 @@ kana:
|
|
729
729
|
birthday: 08/18
|
730
730
|
blood_type: A
|
731
731
|
handedness: right
|
732
|
-
|
732
|
+
hobbies:
|
733
733
|
- "なんでも歌にすること"
|
734
|
-
|
734
|
+
talents:
|
735
735
|
- "合唱"
|
736
|
-
|
736
|
+
favorites:
|
737
737
|
- "屋上で歌うこと"
|
738
738
|
color: "#f5ad3b"
|
739
739
|
nao:
|
@@ -749,11 +749,11 @@ nao:
|
|
749
749
|
birthday: 02/12
|
750
750
|
blood_type: O
|
751
751
|
handedness: right
|
752
|
-
|
752
|
+
hobbies:
|
753
753
|
- "銭湯&温泉巡り"
|
754
|
-
|
754
|
+
talents:
|
755
755
|
- "スタミナがある"
|
756
|
-
|
756
|
+
favorites:
|
757
757
|
- "友達とおしゃべり"
|
758
758
|
color: "#788bc5"
|
759
759
|
chiduru:
|
@@ -769,11 +769,11 @@ chiduru:
|
|
769
769
|
birthday: 10/21
|
770
770
|
blood_type: B
|
771
771
|
handedness: right
|
772
|
-
|
772
|
+
hobbies:
|
773
773
|
- "カフェでアパレル誌チェック"
|
774
|
-
|
774
|
+
talents:
|
775
775
|
- "人の名前と顔を忘れない"
|
776
|
-
|
776
|
+
favorites:
|
777
777
|
- "憧れの目で見られること"
|
778
778
|
color: "#f19557"
|
779
779
|
konomi:
|
@@ -789,11 +789,11 @@ konomi:
|
|
789
789
|
birthday: 06/12
|
790
790
|
blood_type: A
|
791
791
|
handedness: right
|
792
|
-
|
792
|
+
hobbies:
|
793
793
|
- "北米ドラマ鑑賞"
|
794
|
-
|
794
|
+
talents:
|
795
795
|
- "麻雀"
|
796
|
-
|
796
|
+
favorites:
|
797
797
|
- "日本酒"
|
798
798
|
color: "#f1becb"
|
799
799
|
tamaki:
|
@@ -809,11 +809,11 @@ tamaki:
|
|
809
809
|
birthday: 04/29
|
810
810
|
blood_type: B
|
811
811
|
handedness: right
|
812
|
-
|
812
|
+
hobbies:
|
813
813
|
- "探検"
|
814
|
-
|
814
|
+
talents:
|
815
815
|
- "石投げ"
|
816
|
-
|
816
|
+
favorites:
|
817
817
|
- "アスレチックランド"
|
818
818
|
color: "#ee762e"
|
819
819
|
fuuka:
|
@@ -829,11 +829,11 @@ fuuka:
|
|
829
829
|
birthday: 09/02
|
830
830
|
blood_type: O
|
831
831
|
handedness: right
|
832
|
-
|
832
|
+
hobbies:
|
833
833
|
- "献血"
|
834
|
-
|
834
|
+
talents:
|
835
835
|
- "息を止めること"
|
836
|
-
|
836
|
+
favorites:
|
837
837
|
- "猫"
|
838
838
|
color: "#7278a8"
|
839
839
|
miya:
|
@@ -849,12 +849,12 @@ miya:
|
|
849
849
|
birthday: 04/24
|
850
850
|
blood_type: O
|
851
851
|
handedness: right
|
852
|
-
|
852
|
+
hobbies:
|
853
853
|
- "囲碁"
|
854
854
|
- "将棋"
|
855
|
-
|
855
|
+
talents:
|
856
856
|
- "視力が高い"
|
857
|
-
|
857
|
+
favorites:
|
858
858
|
- "サンドイッチ"
|
859
859
|
color: "#d7a96b"
|
860
860
|
noriko:
|
@@ -870,11 +870,11 @@ noriko:
|
|
870
870
|
birthday: 03/30
|
871
871
|
blood_type: A
|
872
872
|
handedness: right
|
873
|
-
|
873
|
+
hobbies:
|
874
874
|
- "格闘技観戦"
|
875
|
-
|
875
|
+
talents:
|
876
876
|
- "バイクの運転"
|
877
|
-
|
877
|
+
favorites:
|
878
878
|
- "焼肉"
|
879
879
|
color: "#eceb70"
|
880
880
|
mizuki:
|
@@ -890,11 +890,11 @@ mizuki:
|
|
890
890
|
birthday: 01/27
|
891
891
|
blood_type: B
|
892
892
|
handedness: right
|
893
|
-
|
893
|
+
hobbies:
|
894
894
|
- "手品"
|
895
|
-
|
895
|
+
talents:
|
896
896
|
- "バトントワリング"
|
897
|
-
|
897
|
+
favorites:
|
898
898
|
- "クロスワードパズル"
|
899
899
|
color: "#99b7dc"
|
900
900
|
karen:
|
@@ -910,11 +910,11 @@ karen:
|
|
910
910
|
birthday: 08/27
|
911
911
|
blood_type: AB
|
912
912
|
handedness: right
|
913
|
-
|
913
|
+
hobbies:
|
914
914
|
- "アロマテラピー"
|
915
|
-
|
915
|
+
talents:
|
916
916
|
- "ポーカーフェイス"
|
917
|
-
|
917
|
+
favorites:
|
918
918
|
- "お風呂"
|
919
919
|
color: "#b63b40"
|
920
920
|
rio:
|
@@ -930,11 +930,11 @@ rio:
|
|
930
930
|
birthday: 11/21
|
931
931
|
blood_type: A
|
932
932
|
handedness: right
|
933
|
-
|
933
|
+
hobbies:
|
934
934
|
- "ヨガエクササイズ"
|
935
|
-
|
935
|
+
talents:
|
936
936
|
- "メイク"
|
937
|
-
|
937
|
+
favorites:
|
938
938
|
- "可愛くてセクシーな服"
|
939
939
|
color: "#f19591"
|
940
940
|
subaru:
|
@@ -950,11 +950,11 @@ subaru:
|
|
950
950
|
birthday: 09/20
|
951
951
|
blood_type: B
|
952
952
|
handedness: left
|
953
|
-
|
953
|
+
hobbies:
|
954
954
|
- "野球"
|
955
|
-
|
955
|
+
talents:
|
956
956
|
- "変化球"
|
957
|
-
|
957
|
+
favorites:
|
958
958
|
- "アイドル"
|
959
959
|
color: "#aeb49c"
|
960
960
|
reika:
|
@@ -970,11 +970,11 @@ reika:
|
|
970
970
|
birthday: 05/17
|
971
971
|
blood_type: A
|
972
972
|
handedness: right
|
973
|
-
|
973
|
+
hobbies:
|
974
974
|
- "登山"
|
975
|
-
|
975
|
+
talents:
|
976
976
|
- "肺活量が大きい"
|
977
|
-
|
977
|
+
favorites:
|
978
978
|
- "ドライブ"
|
979
979
|
color: "#6bb6b0"
|
980
980
|
momoko:
|
@@ -990,11 +990,11 @@ momoko:
|
|
990
990
|
birthday: 11/06
|
991
991
|
blood_type: B
|
992
992
|
handedness: right
|
993
|
-
|
993
|
+
hobbies:
|
994
994
|
- "かわいいシール集め"
|
995
|
-
|
995
|
+
talents:
|
996
996
|
- "演技や台詞の暗記"
|
997
|
-
|
997
|
+
favorites:
|
998
998
|
- "ホットケーキ"
|
999
999
|
color: "#efb864"
|
1000
1000
|
juria:
|
@@ -1010,9 +1010,9 @@ juria:
|
|
1010
1010
|
birthday: 09/26
|
1011
1011
|
blood_type: O
|
1012
1012
|
handedness: left
|
1013
|
-
|
1014
|
-
|
1013
|
+
hobbies:
|
1014
|
+
talents:
|
1015
1015
|
- "ギター"
|
1016
|
-
|
1016
|
+
favorites:
|
1017
1017
|
- "パンクロック"
|
1018
1018
|
color: "#d7385f"
|
@@ -0,0 +1 @@
|
|
1
|
+
require 'rubimas/core_ext/fixnum/production'
|
data/lib/rubimas/idol.rb
CHANGED
@@ -1,17 +1,14 @@
|
|
1
1
|
module Rubimas
|
2
|
-
# Precure girl (ex. Cure Peace, Cure Rosetta, Cure Honey)
|
3
|
-
#
|
4
|
-
# this is record of "config/girls.yml"
|
5
2
|
class Idol
|
6
3
|
attr_reader :idol_id, :name, :name_kana, :age, :height, :weight, :bust, :waist, :hip,
|
7
|
-
:birthday, :blood_type, :handedness, :
|
4
|
+
:birthday, :blood_type, :handedness, :hobbies, :talents, :favorites, :color
|
8
5
|
@@cache = {}
|
6
|
+
@@id_cache = {}
|
9
7
|
@@config = nil
|
10
|
-
@@sleep_sec = 1
|
11
8
|
|
12
9
|
def initialize(idol_id: nil, name: nil, name_kana: nil, age: nil, height: nil, weight: nil,
|
13
10
|
bust: nil, waist: nil, hip: nil, birthday: nil, blood_type: nil, handedness: nil,
|
14
|
-
|
11
|
+
hobbies: [], talents: [], favorites: [], color: nil)
|
15
12
|
@idol_id = idol_id
|
16
13
|
@name = name
|
17
14
|
@name_kana = name_kana
|
@@ -24,13 +21,13 @@ module Rubimas
|
|
24
21
|
@birthday = birthday
|
25
22
|
@blood_type = blood_type
|
26
23
|
@handedness = handedness
|
27
|
-
@
|
28
|
-
@
|
29
|
-
@
|
24
|
+
@hobbies = hobbies
|
25
|
+
@talents = talents
|
26
|
+
@favorites = favorites
|
30
27
|
@color = color
|
31
28
|
end
|
32
29
|
|
33
|
-
# @return [Hash] content of config/
|
30
|
+
# @return [Hash] content of config/idols.yml
|
34
31
|
def self.config
|
35
32
|
unless @@config
|
36
33
|
config_file = "#{File.dirname(__FILE__)}/../../config/idols.yml"
|
@@ -47,7 +44,7 @@ module Rubimas
|
|
47
44
|
# @param idol_name [Symbol]
|
48
45
|
# @return [Rubimas::Idol]
|
49
46
|
def self.find(idol_name)
|
50
|
-
raise "unknown
|
47
|
+
raise "unknown idol: #{idol_name}" unless valid?(idol_name)
|
51
48
|
|
52
49
|
unless @@cache[idol_name]
|
53
50
|
idol_config = config[idol_name] || {}
|
@@ -57,6 +54,17 @@ module Rubimas
|
|
57
54
|
@@cache[idol_name]
|
58
55
|
end
|
59
56
|
|
57
|
+
# @param idol_id [Fixnum]
|
58
|
+
# @return [Rubimas::Idol]
|
59
|
+
def self.find_by_id(idol_id)
|
60
|
+
unless @@id_cache[idol_id]
|
61
|
+
idol_config = config.select { |k, v| v[:idol_id] == idol_id }.values.first
|
62
|
+
@@id_cache[idol_id] = Rubimas::Idol.new(idol_config)
|
63
|
+
end
|
64
|
+
|
65
|
+
@@id_cache[idol_id]
|
66
|
+
end
|
67
|
+
|
60
68
|
# @param [Symbol] idol_name
|
61
69
|
def self.valid?(idol_name)
|
62
70
|
names.include?(idol_name)
|
data/lib/rubimas/version.rb
CHANGED
data/lib/rubimas.rb
CHANGED
@@ -3,10 +3,21 @@ require 'yaml'
|
|
3
3
|
require 'hashie'
|
4
4
|
require "rubimas/version"
|
5
5
|
require "rubimas/idol"
|
6
|
-
require "rubimas/
|
6
|
+
require "rubimas/core_ext/fixnum"
|
7
7
|
|
8
8
|
module Rubimas
|
9
|
-
|
10
|
-
|
9
|
+
end
|
10
|
+
|
11
|
+
module Pro765
|
12
|
+
def self.method_missing(name, *args)
|
13
|
+
if Rubimas::Idol.valid?(name)
|
14
|
+
Rubimas::Idol.find(name)
|
15
|
+
else
|
16
|
+
super
|
17
|
+
end
|
18
|
+
end
|
19
|
+
|
20
|
+
def self.find_by_id(idol_id)
|
21
|
+
Rubimas::Idol.find_by_id(idol_id)
|
11
22
|
end
|
12
23
|
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: rubimas
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0
|
4
|
+
version: 0.1.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- treby
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2015-06-
|
11
|
+
date: 2015-06-21 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: activesupport
|
@@ -146,18 +146,18 @@ files:
|
|
146
146
|
- ".gitignore"
|
147
147
|
- ".rspec"
|
148
148
|
- ".travis.yml"
|
149
|
+
- CHANGELOG.md
|
149
150
|
- Gemfile
|
150
151
|
- LICENSE.txt
|
151
152
|
- README.md
|
152
153
|
- Rakefile
|
153
154
|
- config/idols.yml
|
154
155
|
- lib/rubimas.rb
|
156
|
+
- lib/rubimas/core_ext/fixnum.rb
|
157
|
+
- lib/rubimas/core_ext/fixnum/production.rb
|
155
158
|
- lib/rubimas/idol.rb
|
156
|
-
- lib/rubimas/pro765.rb
|
157
159
|
- lib/rubimas/version.rb
|
158
160
|
- rubimas.gemspec
|
159
|
-
- spec/idol_spec.rb
|
160
|
-
- spec/pro765.rb
|
161
161
|
- spec/rubimas_spec.rb
|
162
162
|
- spec/spec_helper.rb
|
163
163
|
homepage: ''
|
@@ -185,7 +185,5 @@ signing_key:
|
|
185
185
|
specification_version: 4
|
186
186
|
summary: All about idolmaster million live!
|
187
187
|
test_files:
|
188
|
-
- spec/idol_spec.rb
|
189
|
-
- spec/pro765.rb
|
190
188
|
- spec/rubimas_spec.rb
|
191
189
|
- spec/spec_helper.rb
|
data/lib/rubimas/pro765.rb
DELETED
data/spec/idol_spec.rb
DELETED
@@ -1,15 +0,0 @@
|
|
1
|
-
require 'spec_helper'
|
2
|
-
|
3
|
-
describe Rubimas::Idol do
|
4
|
-
let(:girl) do
|
5
|
-
Rubicure::Idol.new(
|
6
|
-
human_name: human_name,
|
7
|
-
precure_name: precure_name,
|
8
|
-
extra_names: extra_names,
|
9
|
-
transform_message: transform_message,
|
10
|
-
attack_messages: attack_messages,
|
11
|
-
)
|
12
|
-
end
|
13
|
-
|
14
|
-
|
15
|
-
end
|
data/spec/pro765.rb
DELETED