rubicure 0.0.2 → 0.0.3
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +12 -2
- data/README.md +33 -2
- data/config/girls.yml +32 -32
- data/lib/rubicure/girl.rb +4 -0
- data/lib/rubicure/series.rb +13 -0
- data/lib/rubicure/version.rb +1 -1
- data/spec/girl_spec.rb +43 -16
- data/spec/series_spec.rb +27 -0
- metadata +28 -28
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: e71b8a8d5de2e5f6a95ddacf68d3eac30f031d31
|
4
|
+
data.tar.gz: 9f3251bbcd7124a8d82b462ac603f09eef04e60a
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: c0b8fd44da9ed44e5c88f2b4159422c9cfffce6b48b0053a4a36459e2b98ccb98c63bbfbe776197f44441672a7c26eb61c8a86bc4f9e3803371e4a66597d0903
|
7
|
+
data.tar.gz: fa325ecb30e69086502298dabf8a8b371ef56441ded85d07d08ba2b6187f59f5b370277f2f62b7ff2cc168448d1062aff4cce57b9004e06d86803beebd5b8a28
|
data/CHANGELOG.md
CHANGED
@@ -1,11 +1,21 @@
|
|
1
1
|
## master
|
2
|
-
[full changelog](http://github.com/sue445/rubicure/compare/v0.0.
|
2
|
+
[full changelog](http://github.com/sue445/rubicure/compare/v0.0.3...master)
|
3
|
+
|
4
|
+
## v0.0.3
|
5
|
+
[full changelog](http://github.com/sue445/rubicure/compare/v0.0.2...v0.0.3)
|
6
|
+
|
7
|
+
# Enhancements
|
8
|
+
* define operators(`Girl#==`, `Series#===`) (thx @zonuexe)
|
9
|
+
* https://github.com/sue445/rubicure/pull/7
|
10
|
+
* Remove last linebreaks of transform_messages (thx @zonuexe)
|
11
|
+
* https://github.com/sue445/rubicure/pull/8
|
3
12
|
|
4
13
|
## v0.0.2
|
5
14
|
[full changelog](http://github.com/sue445/rubicure/compare/v0.0.1...v0.0.2)
|
6
15
|
|
7
16
|
### bugfixes
|
8
|
-
*
|
17
|
+
* Bugfix: fresh pretty cure (thx @kaosf)
|
18
|
+
* https://github.com/sue445/rubicure/pull/6
|
9
19
|
|
10
20
|
## v0.0.1
|
11
21
|
* first release
|
data/README.md
CHANGED
@@ -35,10 +35,10 @@ require "rubicure"
|
|
35
35
|
### Select own precure series
|
36
36
|
|
37
37
|
```ruby
|
38
|
-
Precure.
|
38
|
+
Precure.title
|
39
39
|
#=> "ふたりはプリキュア"
|
40
40
|
|
41
|
-
Precure.title
|
41
|
+
Precure.unmarked.title
|
42
42
|
#=> "ふたりはプリキュア"
|
43
43
|
|
44
44
|
Precure.max_heart.title
|
@@ -59,11 +59,17 @@ Precure.fresh.title
|
|
59
59
|
Precure.heart_catch.title
|
60
60
|
#=> "ハートキャッチプリキュア!"
|
61
61
|
|
62
|
+
Precure.suite.title
|
63
|
+
#=> "スイートプリキュア♪"
|
64
|
+
|
62
65
|
Precure.smile.title
|
63
66
|
#=> "スマイルプリキュア!"
|
64
67
|
|
65
68
|
Precure.dokidoki.title
|
66
69
|
#=> "ドキドキ!プリキュア"
|
70
|
+
|
71
|
+
Precure.dokidoki
|
72
|
+
#=> {:title=>"ドキドキ!プリキュア", :started_date=>Sun, 03 Feb 2013, :ended_date=>Sun, 26 Jan 2014, :girls=>["cure_heart", "cure_diamond", "cure_rosetta", "cure_sword", "cure_ace"]}
|
67
73
|
```
|
68
74
|
|
69
75
|
other pattern
|
@@ -126,6 +132,9 @@ Cure.lemonade
|
|
126
132
|
Cure.pine
|
127
133
|
#=> #<Rubicure::Girl:0x007fbd60aee640 @human_name="山吹祈里", @precure_name="キュアパイン", @transform_message="チェインジ!プリキュア・ビートアップ!\nイエローハートは祈りのしるし!\nとれたてフレッシュ、キュアパイン!\nレッツプリキュア!\n", @extra_names=["キュアエンジェルパイン"], @current_state=0, @state_names=["山吹祈里", "キュアパイン", "キュアエンジェルパイン"]>
|
128
134
|
|
135
|
+
Cure.sunshine
|
136
|
+
#=> #<Rubicure::Girl:0x007f83413a6e18 @human_name="明堂院いつき", @precure_name="キュアサンシャイン", @transform_message="(プリキュアの種、いくですぅ!)\nプリキュア!オープンマイハート!\n陽の光浴びる一輪の花! キュアサンシャイン!\nハートキャッチ、プリキュア!\n", @extra_names=["スーパーキュアサンシャイン"], @current_state=0, @state_names=["明堂院いつき", "キュアサンシャイン", "スーパーキュアサンシャイン"]>
|
137
|
+
|
129
138
|
Cure.muse
|
130
139
|
#=> #<Rubicure::Girl:0x007fbd60af7510 @human_name="調辺アコ", @precure_name="キュアミューズ", @transform_message="レッツプレイ!プリキュアモジュレーション!!\n爪弾くは女神の調べ! キュアミューズ!\n響け4人の組曲!スイートプリキュア!\n", @extra_names=["クレッシェンドミューズ"], @current_state=0, @state_names=["調辺アコ", "キュアミューズ", "クレッシェンドミューズ"]>
|
131
140
|
|
@@ -196,6 +205,28 @@ Precure.all_stars.map(&:precure_name)
|
|
196
205
|
#=> ["キュアブラック", "キュアホワイト", "シャイニールミナス", "キュアブルーム", "キュアイーグレット", "キュアドリーム", "キュアルージュ", "キュアレモネード", "キュアミント", "キュアアクア", "ミルキィローズ", "キュアピーチ", "キュアベリー", "キュアパイン", "キュアパッション", "キュアブロッサム", "キュアマリン", "キュアサンシャイン", "キュアムーンライト", "キュアメロディ", "キュアリズム", "キュアビート", "キュアミューズ", "キュアハッピー", "キュアサニー", "キュアピース", "キュアマーチ", "キュアビューティ", "キュアハート", "キュアダイヤモンド", "キュアロゼッタ", "キュアソード", "キュアエース"]
|
197
206
|
```
|
198
207
|
|
208
|
+
### Equivalence
|
209
|
+
```ruby
|
210
|
+
yayoi = Cure.peace.dup
|
211
|
+
cure_peace = Cure.peace.dup.transform!
|
212
|
+
|
213
|
+
yayoi == cure_peace
|
214
|
+
#=> true
|
215
|
+
```
|
216
|
+
|
217
|
+
```ruby
|
218
|
+
precure = Rubicure::Girl.find(:passion)
|
219
|
+
|
220
|
+
case precure
|
221
|
+
when Precure.dokidoki
|
222
|
+
puts "The girl is a member of Dokidoki! Precure"
|
223
|
+
when Precure.fresh
|
224
|
+
puts "The girl is a member of Fresh Precure!"
|
225
|
+
else
|
226
|
+
puts "The girl is not which member of Dokidoki! Precure and Fresh Precure!"
|
227
|
+
end
|
228
|
+
```
|
229
|
+
|
199
230
|
## More reference
|
200
231
|
http://rubydoc.info/github/sue445/rubicure/
|
201
232
|
|
data/config/girls.yml
CHANGED
@@ -2,7 +2,7 @@
|
|
2
2
|
cure_black: &cure_black
|
3
3
|
human_name: 美墨なぎさ
|
4
4
|
precure_name: キュアブラック
|
5
|
-
transform_message:
|
5
|
+
transform_message: |-
|
6
6
|
デュアル・オーロラ・ウェイブ!!
|
7
7
|
光の使者、キュアブラック!
|
8
8
|
ふたりはプリキュア!
|
@@ -12,7 +12,7 @@ cure_black: &cure_black
|
|
12
12
|
cure_white: &cure_white
|
13
13
|
human_name: 雪城ほのか
|
14
14
|
precure_name: キュアホワイト
|
15
|
-
transform_message:
|
15
|
+
transform_message: |-
|
16
16
|
デュアル・オーロラ・ウェイブ!!
|
17
17
|
光の使者、キュアホワイト!
|
18
18
|
ふたりはプリキュア!
|
@@ -28,7 +28,7 @@ white:
|
|
28
28
|
shiny_luminous: &shiny_luminous
|
29
29
|
human_name: 九条ひかり
|
30
30
|
precure_name: シャイニールミナス
|
31
|
-
transform_message:
|
31
|
+
transform_message: |-
|
32
32
|
ルミナス・シャイニングストリーム!
|
33
33
|
輝く命、シャイニールミナス!
|
34
34
|
光の心と光の意志、すべてを一つにするために!
|
@@ -40,7 +40,7 @@ luminous:
|
|
40
40
|
cure_bloom: &cure_bloom
|
41
41
|
human_name: 日向咲
|
42
42
|
precure_name: キュアブルーム
|
43
|
-
transform_message:
|
43
|
+
transform_message: |-
|
44
44
|
デュアル・スピリチュアル・パワー!
|
45
45
|
花開け大地に!
|
46
46
|
輝く金の花! キュアブルーム!
|
@@ -52,7 +52,7 @@ cure_bloom: &cure_bloom
|
|
52
52
|
cure_egret: &cure_egret
|
53
53
|
human_name: 美翔舞
|
54
54
|
precure_name: キュアイーグレット
|
55
|
-
transform_message:
|
55
|
+
transform_message: |-
|
56
56
|
デュアル・スピリチュアル・パワー!
|
57
57
|
羽ばたけ空に!
|
58
58
|
煌めく銀の翼! キュアイーグレット!
|
@@ -70,7 +70,7 @@ egret:
|
|
70
70
|
cure_dream: &cure_dream
|
71
71
|
human_name: 夢原のぞみ
|
72
72
|
precure_name: キュアドリーム
|
73
|
-
transform_message:
|
73
|
+
transform_message: |-
|
74
74
|
プリキュア!メタモルフォーゼ!
|
75
75
|
大いなる希望の力、キュアドリーム!
|
76
76
|
希望の力と未来の光!
|
@@ -80,7 +80,7 @@ cure_dream: &cure_dream
|
|
80
80
|
cure_rouge: &cure_rouge
|
81
81
|
human_name: 夏木りん
|
82
82
|
precure_name: キュアルージュ
|
83
|
-
transform_message:
|
83
|
+
transform_message: |-
|
84
84
|
プリキュア!メタモルフォーゼ!
|
85
85
|
情熱の赤い炎、キュアルージュ!
|
86
86
|
希望の力と未来の光!
|
@@ -90,7 +90,7 @@ cure_rouge: &cure_rouge
|
|
90
90
|
cure_lemonade: &cure_lemonade
|
91
91
|
human_name: 春日野うらら
|
92
92
|
precure_name: キュアレモネード
|
93
|
-
transform_message:
|
93
|
+
transform_message: |-
|
94
94
|
プリキュア!メタモルフォーゼ!
|
95
95
|
はじけるレモンの香り、キュアレモネード!
|
96
96
|
希望の力と未来の光!
|
@@ -100,7 +100,7 @@ cure_lemonade: &cure_lemonade
|
|
100
100
|
cure_mint: &cure_mint
|
101
101
|
human_name: 秋元こまち
|
102
102
|
precure_name: キュアミント
|
103
|
-
transform_message:
|
103
|
+
transform_message: |-
|
104
104
|
プリキュア!メタモルフォーゼ!
|
105
105
|
安らぎの緑の大地、キュアミント!
|
106
106
|
希望の力と未来の光!
|
@@ -110,7 +110,7 @@ cure_mint: &cure_mint
|
|
110
110
|
cure_aqua: &cure_aqua
|
111
111
|
human_name: 水無月かれん
|
112
112
|
precure_name: キュアアクア
|
113
|
-
transform_message:
|
113
|
+
transform_message: |-
|
114
114
|
プリキュア!メタモルフォーゼ!
|
115
115
|
知性の青き泉、キュアアクア!
|
116
116
|
希望の力と未来の光!
|
@@ -132,7 +132,7 @@ aqua:
|
|
132
132
|
milky_rose: &milky_rose
|
133
133
|
human_name: 美々野くるみ
|
134
134
|
precure_name: ミルキィローズ
|
135
|
-
transform_message:
|
135
|
+
transform_message: |-
|
136
136
|
スカイローズ・トランスレイト!
|
137
137
|
青いバラは秘密のしるし! ミルキィローズ!
|
138
138
|
extra_names:
|
@@ -143,7 +143,7 @@ rose:
|
|
143
143
|
cure_peach: &cure_peach
|
144
144
|
human_name: 桃園ラブ
|
145
145
|
precure_name: キュアピーチ
|
146
|
-
transform_message:
|
146
|
+
transform_message: |-
|
147
147
|
チェインジ!プリキュア・ビートアップ!
|
148
148
|
ピンクのハートは愛あるしるし!
|
149
149
|
もぎたてフレッシュ、キュアピーチ!
|
@@ -153,7 +153,7 @@ cure_peach: &cure_peach
|
|
153
153
|
cure_berry: &cure_berry
|
154
154
|
human_name: 蒼乃美希
|
155
155
|
precure_name: キュアベリー
|
156
|
-
transform_message:
|
156
|
+
transform_message: |-
|
157
157
|
チェインジ!プリキュア・ビートアップ!
|
158
158
|
ブルーのハートは希望のしるし!
|
159
159
|
つみたてフレッシュ、キュアベリー!
|
@@ -163,7 +163,7 @@ cure_berry: &cure_berry
|
|
163
163
|
cure_pine: &cure_pine
|
164
164
|
human_name: 山吹祈里
|
165
165
|
precure_name: キュアパイン
|
166
|
-
transform_message:
|
166
|
+
transform_message: |-
|
167
167
|
チェインジ!プリキュア・ビートアップ!
|
168
168
|
イエローハートは祈りのしるし!
|
169
169
|
とれたてフレッシュ、キュアパイン!
|
@@ -173,7 +173,7 @@ cure_pine: &cure_pine
|
|
173
173
|
cure_passion: &cure_passion
|
174
174
|
human_name: 東せつな
|
175
175
|
precure_name: キュアパッション
|
176
|
-
transform_message:
|
176
|
+
transform_message: |-
|
177
177
|
チェインジ!プリキュア・ビートアップ!
|
178
178
|
真っ赤なハートは幸せの証!
|
179
179
|
熟れたてフレッシュ、キュアパッション!
|
@@ -193,7 +193,7 @@ passion:
|
|
193
193
|
cure_blossom: &cure_blossom
|
194
194
|
human_name: 花咲つぼみ
|
195
195
|
precure_name: キュアブロッサム
|
196
|
-
transform_message:
|
196
|
+
transform_message: |-
|
197
197
|
(プリキュアの種、いくですぅ!)
|
198
198
|
プリキュア!オープンマイハート!
|
199
199
|
大地に咲く一輪の花! キュアブロッサム!
|
@@ -203,7 +203,7 @@ cure_blossom: &cure_blossom
|
|
203
203
|
cure_marine: &cure_marine
|
204
204
|
human_name: 来海えりか
|
205
205
|
precure_name: キュアマリン
|
206
|
-
transform_message:
|
206
|
+
transform_message: |-
|
207
207
|
(プリキュアの種、いくですぅ!)
|
208
208
|
プリキュア!オープンマイハート!
|
209
209
|
海風に揺れる一輪の花! キュアマリン!
|
@@ -213,7 +213,7 @@ cure_marine: &cure_marine
|
|
213
213
|
cure_sunshine: &cure_sunshine
|
214
214
|
human_name: 明堂院いつき
|
215
215
|
precure_name: キュアサンシャイン
|
216
|
-
transform_message:
|
216
|
+
transform_message: |-
|
217
217
|
(プリキュアの種、いくですぅ!)
|
218
218
|
プリキュア!オープンマイハート!
|
219
219
|
陽の光浴びる一輪の花! キュアサンシャイン!
|
@@ -223,7 +223,7 @@ cure_sunshine: &cure_sunshine
|
|
223
223
|
cure_moonlight: &cure_moonlight
|
224
224
|
human_name: 月影ゆり
|
225
225
|
precure_name: キュアムーンライト
|
226
|
-
transform_message:
|
226
|
+
transform_message: |-
|
227
227
|
(プリキュアの種、いくですぅ!)
|
228
228
|
プリキュア!オープンマイハート!
|
229
229
|
月光に冴える一輪の花 キュアムーンライト!
|
@@ -243,7 +243,7 @@ moonlight:
|
|
243
243
|
cure_melody: &cure_melody
|
244
244
|
human_name: 北条響
|
245
245
|
precure_name: キュアメロディ
|
246
|
-
transform_message:
|
246
|
+
transform_message: |-
|
247
247
|
レッツプレイ!プリキュアモジュレーション!!
|
248
248
|
爪弾くは荒ぶる調べ! キュアメロディ!
|
249
249
|
響け4人の組曲!スイートプリキュア!
|
@@ -252,7 +252,7 @@ cure_melody: &cure_melody
|
|
252
252
|
cure_rhythm: &cure_rhythm
|
253
253
|
human_name: 南野奏
|
254
254
|
precure_name: キュアリズム
|
255
|
-
transform_message:
|
255
|
+
transform_message: |-
|
256
256
|
レッツプレイ!プリキュアモジュレーション!!
|
257
257
|
爪弾くはたおやかな調べ! キュアリズム!
|
258
258
|
響け4人の組曲!スイートプリキュア!
|
@@ -261,7 +261,7 @@ cure_rhythm: &cure_rhythm
|
|
261
261
|
cure_beat: &cure_beat
|
262
262
|
human_name: 黒川エレン
|
263
263
|
precure_name: キュアビート
|
264
|
-
transform_message:
|
264
|
+
transform_message: |-
|
265
265
|
レッツプレイ!プリキュアモジュレーション!!
|
266
266
|
爪弾くは魂の調べ! キュアビート!
|
267
267
|
響け4人の組曲!スイートプリキュア!
|
@@ -270,7 +270,7 @@ cure_beat: &cure_beat
|
|
270
270
|
cure_muse: &cure_muse
|
271
271
|
human_name: 調辺アコ
|
272
272
|
precure_name: キュアミューズ
|
273
|
-
transform_message:
|
273
|
+
transform_message: |-
|
274
274
|
レッツプレイ!プリキュアモジュレーション!!
|
275
275
|
爪弾くは女神の調べ! キュアミューズ!
|
276
276
|
響け4人の組曲!スイートプリキュア!
|
@@ -289,7 +289,7 @@ muse:
|
|
289
289
|
cure_happy: &cure_happy
|
290
290
|
human_name: 星空みゆき
|
291
291
|
precure_name: キュアハッピー
|
292
|
-
transform_message:
|
292
|
+
transform_message: |-
|
293
293
|
(レディ?)
|
294
294
|
プリキュア・スマイルチャージ!
|
295
295
|
(ゴー!ゴー!レッツ・ゴー!ハッピー!!)
|
@@ -302,7 +302,7 @@ cure_happy: &cure_happy
|
|
302
302
|
cure_sunny: &cure_sunny
|
303
303
|
human_name: 日野あかね
|
304
304
|
precure_name: キュアサニー
|
305
|
-
transform_message:
|
305
|
+
transform_message: |-
|
306
306
|
(レディ?)
|
307
307
|
プリキュア・スマイルチャージ!
|
308
308
|
(ゴー!ゴー!レッツ・ゴー!サニー!!)
|
@@ -315,7 +315,7 @@ cure_sunny: &cure_sunny
|
|
315
315
|
cure_peace: &cure_peace
|
316
316
|
human_name: 黄瀬やよい
|
317
317
|
precure_name: キュアピース
|
318
|
-
transform_message:
|
318
|
+
transform_message: |-
|
319
319
|
(レディ?)
|
320
320
|
プリキュア・スマイルチャージ!
|
321
321
|
(ゴー!ゴー!レッツ・ゴー!ピース!!)
|
@@ -328,7 +328,7 @@ cure_peace: &cure_peace
|
|
328
328
|
cure_march: &cure_march
|
329
329
|
human_name: 緑川なお
|
330
330
|
precure_name: キュアマーチ
|
331
|
-
transform_message:
|
331
|
+
transform_message: |-
|
332
332
|
(レディ?)
|
333
333
|
プリキュア・スマイルチャージ!
|
334
334
|
(ゴー!ゴー!レッツ・ゴー!マーチ!!)
|
@@ -341,7 +341,7 @@ cure_march: &cure_march
|
|
341
341
|
cure_beauty: &cure_beauty
|
342
342
|
human_name: 青木れいか
|
343
343
|
precure_name: キュアビューティ
|
344
|
-
transform_message:
|
344
|
+
transform_message: |-
|
345
345
|
(レディ?)
|
346
346
|
プリキュア・スマイルチャージ!
|
347
347
|
(ゴー!ゴー!レッツ・ゴー!ビューティ!!)
|
@@ -366,7 +366,7 @@ beauty:
|
|
366
366
|
cure_heart: &cure_heart
|
367
367
|
human_name: 相田マナ
|
368
368
|
precure_name: キュアハート
|
369
|
-
transform_message:
|
369
|
+
transform_message: |-
|
370
370
|
プリキュアラブリンク!
|
371
371
|
L! O! V! E!
|
372
372
|
みなぎる愛! キュアハート!
|
@@ -388,7 +388,7 @@ cure_diamond: &cure_diamond
|
|
388
388
|
cure_rosetta: &cure_rosetta
|
389
389
|
human_name: 四葉ありす
|
390
390
|
precure_name: キュアロゼッタ
|
391
|
-
transform_message:
|
391
|
+
transform_message: |-
|
392
392
|
プリキュアラブリンク!
|
393
393
|
L! O! V! E!
|
394
394
|
ひだまりポカポカ キュアロゼッタ!
|
@@ -399,7 +399,7 @@ cure_rosetta: &cure_rosetta
|
|
399
399
|
cure_sword: &cure_sword
|
400
400
|
human_name: 剣崎真琴
|
401
401
|
precure_name: キュアソード
|
402
|
-
transform_message:
|
402
|
+
transform_message: |-
|
403
403
|
プリキュアラブリンク!
|
404
404
|
L! O! V! E!
|
405
405
|
勇気の刃! キュアソード!
|
@@ -410,7 +410,7 @@ cure_sword: &cure_sword
|
|
410
410
|
cure_ace: &cure_ace
|
411
411
|
human_name: 円亜久里
|
412
412
|
precure_name: キュアエース
|
413
|
-
transform_message:
|
413
|
+
transform_message: |-
|
414
414
|
プリキュアドレスアップ!
|
415
415
|
(キュピラッパー!)
|
416
416
|
愛の切り札! キュアエース!
|
data/lib/rubicure/girl.rb
CHANGED
@@ -15,6 +15,10 @@ module Rubicure
|
|
15
15
|
@state_names += @extra_names unless @extra_names.empty?
|
16
16
|
end
|
17
17
|
|
18
|
+
def == (other)
|
19
|
+
other.is_a?(self.class) && self.human_name == other.human_name
|
20
|
+
end
|
21
|
+
|
18
22
|
# @return [String] name of current form
|
19
23
|
def name
|
20
24
|
@state_names[@current_state]
|
data/lib/rubicure/series.rb
CHANGED
@@ -5,6 +5,19 @@ module Rubicure
|
|
5
5
|
@@cache = {}
|
6
6
|
@@config = nil
|
7
7
|
|
8
|
+
# @param [Rubicure::Series,Rubicure::Girl] other
|
9
|
+
# @return [Boolean] other is same Rubicure::Series or Rubicure::Series include Rubicure::Girl
|
10
|
+
def === (other)
|
11
|
+
case other
|
12
|
+
when self.class
|
13
|
+
self == other
|
14
|
+
when Rubicure::Girl
|
15
|
+
self.girls.include? other
|
16
|
+
else
|
17
|
+
false
|
18
|
+
end
|
19
|
+
end
|
20
|
+
|
8
21
|
# @param [Time,Date,String] arg Time, Date or date like String (ex. "2013-12-16")
|
9
22
|
def on_air?(arg)
|
10
23
|
date = to_date(arg)
|
data/lib/rubicure/version.rb
CHANGED
data/spec/girl_spec.rb
CHANGED
@@ -1,25 +1,25 @@
|
|
1
1
|
describe Rubicure::Girl do
|
2
|
-
|
3
|
-
|
4
|
-
|
5
|
-
|
6
|
-
|
7
|
-
|
8
|
-
|
9
|
-
|
10
|
-
|
11
|
-
|
12
|
-
|
13
|
-
|
14
|
-
|
15
|
-
|
16
|
-
<<EOF
|
2
|
+
let(:girl){
|
3
|
+
Rubicure::Girl.new(
|
4
|
+
human_name: human_name,
|
5
|
+
precure_name: precure_name,
|
6
|
+
extra_names: extra_names,
|
7
|
+
transform_message: transform_message
|
8
|
+
)
|
9
|
+
}
|
10
|
+
|
11
|
+
let(:human_name) { "黄瀬やよい" }
|
12
|
+
let(:precure_name) { "キュアピース" }
|
13
|
+
let(:extra_names) { %w(プリンセスピース ウルトラピース) }
|
14
|
+
let(:transform_message){
|
15
|
+
<<EOF
|
17
16
|
プリキュアスマイルチャージ!
|
18
17
|
GO! GO! Let's GO ピース!
|
19
18
|
ピカピカピカリンジャンケンポン! キュアピース!
|
20
19
|
EOF
|
21
|
-
|
20
|
+
}
|
22
21
|
|
22
|
+
describe "#name" do
|
23
23
|
context "when before transform" do
|
24
24
|
it{ expect(girl.name).to eq human_name }
|
25
25
|
end
|
@@ -64,6 +64,33 @@ EOF
|
|
64
64
|
end
|
65
65
|
end
|
66
66
|
|
67
|
+
describe "#==" do
|
68
|
+
subject{ girl == other_girl }
|
69
|
+
|
70
|
+
context "same object" do
|
71
|
+
let(:other_girl){ girl }
|
72
|
+
it{ should be true }
|
73
|
+
end
|
74
|
+
|
75
|
+
context "copied object" do
|
76
|
+
let(:other_girl){ girl.dup }
|
77
|
+
it{ should be true }
|
78
|
+
end
|
79
|
+
|
80
|
+
context "precure and human" do
|
81
|
+
let(:transformed_girl){ girl.dup.transform! }
|
82
|
+
let(:other_girl){ transformed_girl }
|
83
|
+
|
84
|
+
it{ expect(girl.name).not_to eq transformed_girl.name }
|
85
|
+
it{ should be true }
|
86
|
+
end
|
87
|
+
|
88
|
+
context "other precure" do
|
89
|
+
let(:other_girl){ Rubicure::Girl.find(:passion) }
|
90
|
+
it{ should be false }
|
91
|
+
end
|
92
|
+
end
|
93
|
+
|
67
94
|
describe "#find" do
|
68
95
|
subject{ Rubicure::Girl.find(girl_name) }
|
69
96
|
|
data/spec/series_spec.rb
CHANGED
@@ -68,6 +68,33 @@ describe Rubicure::Series do
|
|
68
68
|
]
|
69
69
|
}
|
70
70
|
|
71
|
+
describe "#===" do
|
72
|
+
let(:series){ Rubicure::Series.find(series_name) }
|
73
|
+
let(:series_name){ :smile }
|
74
|
+
let(:girl){ Rubicure::Girl.find(girl_name) }
|
75
|
+
let(:girl_name){ :peace }
|
76
|
+
|
77
|
+
context "same series" do
|
78
|
+
it { expect(series === series).to be true }
|
79
|
+
it { expect(series === girl).to be true }
|
80
|
+
end
|
81
|
+
|
82
|
+
context "other series" do
|
83
|
+
let(:other_series){ Rubicure::Series.find(:dokidoki) }
|
84
|
+
let(:other_girl){ Rubicure::Girl.find(:passion) }
|
85
|
+
it { expect(series === other_series).to be false }
|
86
|
+
it { expect(series === other_girl).to be false }
|
87
|
+
end
|
88
|
+
|
89
|
+
context "other ruby object" do
|
90
|
+
it { expect(series === Module).to be false }
|
91
|
+
it { expect(series === Object.new).to be false }
|
92
|
+
it { expect(series === :smile).to be false }
|
93
|
+
it { expect(series === true).to be false }
|
94
|
+
it { expect(series === nil).to be false }
|
95
|
+
end
|
96
|
+
end
|
97
|
+
|
71
98
|
describe "#names" do
|
72
99
|
subject{ Rubicure::Series.names }
|
73
100
|
|
metadata
CHANGED
@@ -1,139 +1,139 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: rubicure
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.3
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- sue445
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2013-12-
|
11
|
+
date: 2013-12-22 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: activesupport
|
15
15
|
requirement: !ruby/object:Gem::Requirement
|
16
16
|
requirements:
|
17
|
-
- -
|
17
|
+
- - ~>
|
18
18
|
- !ruby/object:Gem::Version
|
19
19
|
version: 4.0.1
|
20
20
|
type: :runtime
|
21
21
|
prerelease: false
|
22
22
|
version_requirements: !ruby/object:Gem::Requirement
|
23
23
|
requirements:
|
24
|
-
- -
|
24
|
+
- - ~>
|
25
25
|
- !ruby/object:Gem::Version
|
26
26
|
version: 4.0.1
|
27
27
|
- !ruby/object:Gem::Dependency
|
28
28
|
name: hashie
|
29
29
|
requirement: !ruby/object:Gem::Requirement
|
30
30
|
requirements:
|
31
|
-
- -
|
31
|
+
- - ~>
|
32
32
|
- !ruby/object:Gem::Version
|
33
33
|
version: 2.0.5
|
34
34
|
type: :runtime
|
35
35
|
prerelease: false
|
36
36
|
version_requirements: !ruby/object:Gem::Requirement
|
37
37
|
requirements:
|
38
|
-
- -
|
38
|
+
- - ~>
|
39
39
|
- !ruby/object:Gem::Version
|
40
40
|
version: 2.0.5
|
41
41
|
- !ruby/object:Gem::Dependency
|
42
42
|
name: bundler
|
43
43
|
requirement: !ruby/object:Gem::Requirement
|
44
44
|
requirements:
|
45
|
-
- -
|
45
|
+
- - ~>
|
46
46
|
- !ruby/object:Gem::Version
|
47
47
|
version: '1.3'
|
48
48
|
type: :development
|
49
49
|
prerelease: false
|
50
50
|
version_requirements: !ruby/object:Gem::Requirement
|
51
51
|
requirements:
|
52
|
-
- -
|
52
|
+
- - ~>
|
53
53
|
- !ruby/object:Gem::Version
|
54
54
|
version: '1.3'
|
55
55
|
- !ruby/object:Gem::Dependency
|
56
56
|
name: rake
|
57
57
|
requirement: !ruby/object:Gem::Requirement
|
58
58
|
requirements:
|
59
|
-
- -
|
59
|
+
- - '>='
|
60
60
|
- !ruby/object:Gem::Version
|
61
61
|
version: '0'
|
62
62
|
type: :development
|
63
63
|
prerelease: false
|
64
64
|
version_requirements: !ruby/object:Gem::Requirement
|
65
65
|
requirements:
|
66
|
-
- -
|
66
|
+
- - '>='
|
67
67
|
- !ruby/object:Gem::Version
|
68
68
|
version: '0'
|
69
69
|
- !ruby/object:Gem::Dependency
|
70
70
|
name: rspec
|
71
71
|
requirement: !ruby/object:Gem::Requirement
|
72
72
|
requirements:
|
73
|
-
- -
|
73
|
+
- - ~>
|
74
74
|
- !ruby/object:Gem::Version
|
75
75
|
version: 3.0.0.beta1
|
76
76
|
type: :development
|
77
77
|
prerelease: false
|
78
78
|
version_requirements: !ruby/object:Gem::Requirement
|
79
79
|
requirements:
|
80
|
-
- -
|
80
|
+
- - ~>
|
81
81
|
- !ruby/object:Gem::Version
|
82
82
|
version: 3.0.0.beta1
|
83
83
|
- !ruby/object:Gem::Dependency
|
84
84
|
name: delorean
|
85
85
|
requirement: !ruby/object:Gem::Requirement
|
86
86
|
requirements:
|
87
|
-
- -
|
87
|
+
- - '>='
|
88
88
|
- !ruby/object:Gem::Version
|
89
89
|
version: '0'
|
90
90
|
type: :development
|
91
91
|
prerelease: false
|
92
92
|
version_requirements: !ruby/object:Gem::Requirement
|
93
93
|
requirements:
|
94
|
-
- -
|
94
|
+
- - '>='
|
95
95
|
- !ruby/object:Gem::Version
|
96
96
|
version: '0'
|
97
97
|
- !ruby/object:Gem::Dependency
|
98
98
|
name: yard
|
99
99
|
requirement: !ruby/object:Gem::Requirement
|
100
100
|
requirements:
|
101
|
-
- -
|
101
|
+
- - '>='
|
102
102
|
- !ruby/object:Gem::Version
|
103
103
|
version: '0'
|
104
104
|
type: :development
|
105
105
|
prerelease: false
|
106
106
|
version_requirements: !ruby/object:Gem::Requirement
|
107
107
|
requirements:
|
108
|
-
- -
|
108
|
+
- - '>='
|
109
109
|
- !ruby/object:Gem::Version
|
110
110
|
version: '0'
|
111
111
|
- !ruby/object:Gem::Dependency
|
112
112
|
name: codeclimate-test-reporter
|
113
113
|
requirement: !ruby/object:Gem::Requirement
|
114
114
|
requirements:
|
115
|
-
- -
|
115
|
+
- - '>='
|
116
116
|
- !ruby/object:Gem::Version
|
117
117
|
version: '0'
|
118
118
|
type: :development
|
119
119
|
prerelease: false
|
120
120
|
version_requirements: !ruby/object:Gem::Requirement
|
121
121
|
requirements:
|
122
|
-
- -
|
122
|
+
- - '>='
|
123
123
|
- !ruby/object:Gem::Version
|
124
124
|
version: '0'
|
125
125
|
- !ruby/object:Gem::Dependency
|
126
126
|
name: coveralls
|
127
127
|
requirement: !ruby/object:Gem::Requirement
|
128
128
|
requirements:
|
129
|
-
- -
|
129
|
+
- - '>='
|
130
130
|
- !ruby/object:Gem::Version
|
131
131
|
version: '0'
|
132
132
|
type: :development
|
133
133
|
prerelease: false
|
134
134
|
version_requirements: !ruby/object:Gem::Requirement
|
135
135
|
requirements:
|
136
|
-
- -
|
136
|
+
- - '>='
|
137
137
|
- !ruby/object:Gem::Version
|
138
138
|
version: '0'
|
139
139
|
description: All about Japanese battle heroine "Pretty Cure (Precure)".
|
@@ -143,11 +143,11 @@ executables: []
|
|
143
143
|
extensions: []
|
144
144
|
extra_rdoc_files: []
|
145
145
|
files:
|
146
|
-
-
|
147
|
-
-
|
148
|
-
-
|
149
|
-
-
|
150
|
-
-
|
146
|
+
- .coveralls.yml
|
147
|
+
- .gitignore
|
148
|
+
- .rspec
|
149
|
+
- .travis.yml
|
150
|
+
- .yardopts
|
151
151
|
- CHANGELOG.md
|
152
152
|
- Gemfile
|
153
153
|
- LICENSE.txt
|
@@ -177,17 +177,17 @@ require_paths:
|
|
177
177
|
- lib
|
178
178
|
required_ruby_version: !ruby/object:Gem::Requirement
|
179
179
|
requirements:
|
180
|
-
- -
|
180
|
+
- - '>='
|
181
181
|
- !ruby/object:Gem::Version
|
182
182
|
version: 2.0.0
|
183
183
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
184
184
|
requirements:
|
185
|
-
- -
|
185
|
+
- - '>='
|
186
186
|
- !ruby/object:Gem::Version
|
187
187
|
version: '0'
|
188
188
|
requirements: []
|
189
189
|
rubyforge_project:
|
190
|
-
rubygems_version: 2.
|
190
|
+
rubygems_version: 2.0.14
|
191
191
|
signing_key:
|
192
192
|
specification_version: 4
|
193
193
|
summary: All about Japanese battle heroine "Pretty Cure (Precure)".
|