rubicure 0.0.4 → 0.0.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.
- checksums.yaml +4 -4
- data/.travis.yml +3 -2
- data/CHANGELOG.md +14 -1
- data/README.md +21 -6
- data/config/girls.yml +57 -6
- data/config/series.yml +10 -8
- data/lib/rubicure/core.rb +1 -1
- data/lib/rubicure/version.rb +1 -1
- data/lib/ubicure.rb +1 -0
- data/spec/core_spec.rb +2 -2
- data/spec/rubicure_spec.rb +7 -2
- data/spec/series_spec.rb +1 -1
- metadata +4 -3
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA1:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 99fb32ee2c4fea762a6eb61f6eec29d176728da3
|
|
4
|
+
data.tar.gz: ad1b10ca7209d61ca2170bd7e17f99b72627e481
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 7bb98fade854142d4f2faa783a002e0003b06976e31a84f79353c5f142901c9355284fd21e2d60fa9c766c854f93e6d96f6eb6010081e2fe72202a55257fed12
|
|
7
|
+
data.tar.gz: 98f778332cab7b4c945dfda62659cf192ff1b27f5979c474a1cbc57845fc08a4217f66402d820f56e36f0c62125ab8895d6aa1e2c8e191cc967638dbba802546
|
data/.travis.yml
CHANGED
|
@@ -2,8 +2,9 @@ language: ruby
|
|
|
2
2
|
rvm:
|
|
3
3
|
- 2.0.0
|
|
4
4
|
- 2.1.0
|
|
5
|
-
|
|
6
|
-
|
|
5
|
+
- 2.1.1
|
|
6
|
+
#before_install:
|
|
7
|
+
# - gem install bundler -v '= 1.5.2'
|
|
7
8
|
script: CODECLIMATE_REPO_TOKEN=ae44e61ae42dc9114b3cd92bed8dc553d9e9f119634c8b95273d3048e6026aa5 bundle exec rspec --tag category:verbose && bundle exec rspec
|
|
8
9
|
branches:
|
|
9
10
|
only:
|
data/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,18 @@
|
|
|
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.5...master)
|
|
3
|
+
|
|
4
|
+
## v0.0.5
|
|
5
|
+
[full changelog](http://github.com/sue445/rubicure/compare/v0.0.4...v0.0.5)
|
|
6
|
+
|
|
7
|
+
### Bugfixes
|
|
8
|
+
* Fix the transform message of Cure Windy (thx @kaosf)
|
|
9
|
+
* https://github.com/sue445/rubicure/pull/18
|
|
10
|
+
|
|
11
|
+
### Enhancements
|
|
12
|
+
* Add Happiness Charge Precure !
|
|
13
|
+
* https://github.com/sue445/rubicure/pull/10
|
|
14
|
+
* Add `ubicure`
|
|
15
|
+
* https://github.com/sue445/rubicure/pull/22 (thx @zonuexe)
|
|
3
16
|
|
|
4
17
|
## v0.0.4
|
|
5
18
|
[full changelog](http://github.com/sue445/rubicure/compare/v0.0.3...v0.0.4)
|
data/README.md
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
# Rubicure (Ruby + Precure) [](http://badge.fury.io/rb/rubicure) [](https://travis-ci.org/sue445/rubicure) [](https://codeclimate.com/github/sue445/rubicure) [](https://coveralls.io/r/sue445/rubicure)
|
|
1
|
+
# Rubicure (Ruby + Precure) [](http://badge.fury.io/rb/rubicure) [](https://travis-ci.org/sue445/rubicure) [](https://codeclimate.com/github/sue445/rubicure) [](https://coveralls.io/r/sue445/rubicure) [](https://gemnasium.com/sue445/rubicure)
|
|
2
2
|
|
|
3
3
|
All about Japanese battle heroine "Pretty Cure (Precure)".
|
|
4
4
|
|
|
@@ -68,6 +68,9 @@ Precure.smile.title
|
|
|
68
68
|
Precure.dokidoki.title
|
|
69
69
|
#=> "ドキドキ!プリキュア"
|
|
70
70
|
|
|
71
|
+
Precure.happiness_charge.title
|
|
72
|
+
#=> "ハピネスチャージプリキュア!"
|
|
73
|
+
|
|
71
74
|
Precure.dokidoki
|
|
72
75
|
#=> {:title=>"ドキドキ!プリキュア", :started_date=>Sun, 03 Feb 2013, :ended_date=>Sun, 26 Jan 2014, :girls=>["cure_heart", "cure_diamond", "cure_rosetta", "cure_sword", "cure_ace"]}
|
|
73
76
|
```
|
|
@@ -94,10 +97,11 @@ Yes! プリキュア5 Go Go!
|
|
|
94
97
|
スイートプリキュア♪
|
|
95
98
|
スマイルプリキュア!
|
|
96
99
|
ドキドキ!プリキュア
|
|
97
|
-
|
|
100
|
+
ハピネスチャージプリキュア!
|
|
101
|
+
#=> [:unmarked, :max_heart, :splash_star, :yes, :yes_gogo, :fresh, :heart_catch, :suite, :smile, :dokidoki, :happiness_charge]
|
|
98
102
|
|
|
99
103
|
Precure.inject([]){|girl_count_of_series, series| girl_count_of_series << series.girls.count; girl_count_of_series }
|
|
100
|
-
#=> [2, 3, 2, 5, 6, 4, 4, 4, 5, 5]
|
|
104
|
+
#=> [2, 3, 2, 5, 6, 4, 4, 4, 5, 5, 3]
|
|
101
105
|
```
|
|
102
106
|
|
|
103
107
|
### Get current precure series
|
|
@@ -163,6 +167,9 @@ Cure.peace
|
|
|
163
167
|
Cure.rosetta
|
|
164
168
|
#=> #<Rubicure::Girl:0x007fbd60af42c0 @human_name="四葉ありす", @precure_name="キュアロゼッタ", @transform_message="プリキュアラブリンク!\nL! O! V! E!\nひだまりポカポカ キュアロゼッタ!\n響け愛の鼓動!ドキドキプリキュア!\n世界を制するのは愛だけです、\nさぁ、あなたも私と愛を育んでくださいな\n", @extra_names=[], @current_state=0, @state_names=["四葉ありす", "キュアロゼッタ"]>
|
|
165
169
|
|
|
170
|
+
Cure.honey
|
|
171
|
+
#=> #<Rubicure::Girl:0x007fb041afb768 @human_name="大森ゆうこ", @precure_name="キュアハニー", @transform_message="かわルンルン!\nプリキュアくるりんミラーチェンジ!\n大地に実る命の光!キュアハニー!\nハピネス注入!幸せチャージ!\nハピネスチャージプリキュア!", @extra_names=[], @created_date=Sun, 17 Mar 2013, @current_state=0, @state_names=["大森ゆうこ", "キュアハニー"]>
|
|
172
|
+
|
|
166
173
|
Shiny.luminous
|
|
167
174
|
#=> #<Rubicure::Girl:0x007fbd60ad7288 @human_name="九条ひかり", @precure_name="シャイニールミナス", @transform_message="ルミナス・シャイニングストリーム!\n輝く命、シャイニールミナス!\n光の心と光の意志、すべてを一つにするために!\n", @extra_names=[], @current_state=0, @state_names=["九条ひかり", "シャイニールミナス"]>
|
|
168
175
|
|
|
@@ -218,10 +225,10 @@ yayoi.name
|
|
|
218
225
|
### Precure allstars
|
|
219
226
|
```ruby
|
|
220
227
|
Precure.all_stars.count
|
|
221
|
-
#=>
|
|
228
|
+
#=> 36
|
|
222
229
|
|
|
223
230
|
Precure.all_stars.map(&:precure_name)
|
|
224
|
-
#=> ["キュアブラック", "キュアホワイト", "シャイニールミナス", "キュアブルーム", "キュアイーグレット", "キュアドリーム", "キュアルージュ", "キュアレモネード", "キュアミント", "キュアアクア", "ミルキィローズ", "キュアピーチ", "キュアベリー", "キュアパイン", "キュアパッション", "キュアブロッサム", "キュアマリン", "キュアサンシャイン", "キュアムーンライト", "キュアメロディ", "キュアリズム", "キュアビート", "キュアミューズ", "キュアハッピー", "キュアサニー", "キュアピース", "キュアマーチ", "キュアビューティ", "キュアハート", "キュアダイヤモンド", "キュアロゼッタ", "キュアソード", "キュアエース"]
|
|
231
|
+
#=> ["キュアブラック", "キュアホワイト", "シャイニールミナス", "キュアブルーム", "キュアイーグレット", "キュアドリーム", "キュアルージュ", "キュアレモネード", "キュアミント", "キュアアクア", "ミルキィローズ", "キュアピーチ", "キュアベリー", "キュアパイン", "キュアパッション", "キュアブロッサム", "キュアマリン", "キュアサンシャイン", "キュアムーンライト", "キュアメロディ", "キュアリズム", "キュアビート", "キュアミューズ", "キュアハッピー", "キュアサニー", "キュアピース", "キュアマーチ", "キュアビューティ", "キュアハート", "キュアダイヤモンド", "キュアロゼッタ", "キュアソード", "キュアエース", "キュアラブリー", "キュアプリンセス", "キュアハニー"]
|
|
225
232
|
|
|
226
233
|
Precure.all_stars("2013-10-26").count
|
|
227
234
|
#=> 33
|
|
@@ -235,6 +242,8 @@ Precure.all_stars(:new_stage).count
|
|
|
235
242
|
#=> 28
|
|
236
243
|
Precure.all_stars(:new_stage2).count
|
|
237
244
|
#=> 32
|
|
245
|
+
Precure.all_stars(:new_stage3).count
|
|
246
|
+
#=> 36
|
|
238
247
|
```
|
|
239
248
|
|
|
240
249
|
and [more aliases!](config/movies.yml)
|
|
@@ -262,8 +271,14 @@ else
|
|
|
262
271
|
end
|
|
263
272
|
```
|
|
264
273
|
|
|
274
|
+
### one-liner
|
|
275
|
+
|
|
276
|
+
```
|
|
277
|
+
§ ruby -rubicure -e'puts Shiny.luminous.transform_message'
|
|
278
|
+
```
|
|
279
|
+
|
|
265
280
|
## More reference
|
|
266
|
-
http://rubydoc.info/
|
|
281
|
+
http://rubydoc.info/gems/rubicure/frames
|
|
267
282
|
|
|
268
283
|
## Contributing
|
|
269
284
|
|
data/config/girls.yml
CHANGED
|
@@ -80,7 +80,7 @@ cure_windy: &cure_windy
|
|
|
80
80
|
transform_message: |-
|
|
81
81
|
デュアル・スピリチュアル・パワー!
|
|
82
82
|
勇気を運べ!
|
|
83
|
-
|
|
83
|
+
大地に薫る風! キュアウィンディ!
|
|
84
84
|
ふたりはプリキュア!
|
|
85
85
|
聖なる泉を汚す者よ!
|
|
86
86
|
阿漕な真似はお止めなさい!
|
|
@@ -288,7 +288,7 @@ cure_melody: &cure_melody
|
|
|
288
288
|
transform_message: |-
|
|
289
289
|
レッツプレイ!プリキュアモジュレーション!!
|
|
290
290
|
爪弾くは荒ぶる調べ! キュアメロディ!
|
|
291
|
-
|
|
291
|
+
届け4人の組曲!スイートプリキュア!
|
|
292
292
|
extra_names:
|
|
293
293
|
- クレッシェンドメロディ
|
|
294
294
|
cure_rhythm: &cure_rhythm
|
|
@@ -298,7 +298,7 @@ cure_rhythm: &cure_rhythm
|
|
|
298
298
|
transform_message: |-
|
|
299
299
|
レッツプレイ!プリキュアモジュレーション!!
|
|
300
300
|
爪弾くはたおやかな調べ! キュアリズム!
|
|
301
|
-
|
|
301
|
+
届け4人の組曲!スイートプリキュア!
|
|
302
302
|
extra_names:
|
|
303
303
|
- クレッシェンドリズム
|
|
304
304
|
cure_beat: &cure_beat
|
|
@@ -308,7 +308,7 @@ cure_beat: &cure_beat
|
|
|
308
308
|
transform_message: |-
|
|
309
309
|
レッツプレイ!プリキュアモジュレーション!!
|
|
310
310
|
爪弾くは魂の調べ! キュアビート!
|
|
311
|
-
|
|
311
|
+
届け4人の組曲!スイートプリキュア!
|
|
312
312
|
extra_names:
|
|
313
313
|
- クレッシェンドビート
|
|
314
314
|
cure_muse: &cure_muse
|
|
@@ -318,7 +318,7 @@ cure_muse: &cure_muse
|
|
|
318
318
|
transform_message: |-
|
|
319
319
|
レッツプレイ!プリキュアモジュレーション!!
|
|
320
320
|
爪弾くは女神の調べ! キュアミューズ!
|
|
321
|
-
|
|
321
|
+
届け4人の組曲!スイートプリキュア!
|
|
322
322
|
extra_names:
|
|
323
323
|
- クレッシェンドミューズ
|
|
324
324
|
melody:
|
|
@@ -425,7 +425,7 @@ cure_heart: &cure_heart
|
|
|
425
425
|
愛を無くした悲しいジコチューさん、
|
|
426
426
|
このキュアハートがあなたのドキドキ取り戻してみせる!
|
|
427
427
|
extra_names:
|
|
428
|
-
-
|
|
428
|
+
- キュアハート・パルテノンモード
|
|
429
429
|
cure_diamond: &cure_diamond
|
|
430
430
|
human_name: 菱川六花
|
|
431
431
|
precure_name: キュアダイヤモンド
|
|
@@ -484,3 +484,54 @@ sword:
|
|
|
484
484
|
<<: *cure_sword
|
|
485
485
|
ace:
|
|
486
486
|
<<: *cure_ace
|
|
487
|
+
|
|
488
|
+
# happiness_charge
|
|
489
|
+
cure_lovely: &cure_lovely
|
|
490
|
+
human_name: 愛乃めぐみ
|
|
491
|
+
precure_name: キュアラブリー
|
|
492
|
+
created_date: 2014-02-02 # episode 1
|
|
493
|
+
transform_message: |-
|
|
494
|
+
かわルンルン!
|
|
495
|
+
プリキュアくるりんミラーチェンジ!
|
|
496
|
+
世界に広がるビッグな愛!キュアラブリー!
|
|
497
|
+
ハピネス注入!幸せチャージ!
|
|
498
|
+
ハピネスチャージプリキュア!
|
|
499
|
+
extra_names:
|
|
500
|
+
cure_princess: &cure_princess
|
|
501
|
+
human_name: 白雪ひめ(ヒメルダ・ウインドウ・キュアクイーン・オブ・ザ・ブルースカイ)
|
|
502
|
+
precure_name: キュアプリンセス
|
|
503
|
+
created_date: 2014-02-02 # episode 1
|
|
504
|
+
transform_message: |-
|
|
505
|
+
かわルンルン!
|
|
506
|
+
プリキュアくるりんミラーチェンジ!
|
|
507
|
+
天空に舞う蒼き風!キュアプリンセス!
|
|
508
|
+
ハピネス注入!幸せチャージ!
|
|
509
|
+
ハピネスチャージプリキュア!
|
|
510
|
+
extra_names:
|
|
511
|
+
cure_honey: &cure_honey
|
|
512
|
+
human_name: 大森ゆうこ
|
|
513
|
+
precure_name: キュアハニー
|
|
514
|
+
created_date: 2013-03-17 # NS3
|
|
515
|
+
transform_message: |-
|
|
516
|
+
かわルンルン!
|
|
517
|
+
プリキュアくるりんミラーチェンジ!
|
|
518
|
+
大地に実る命の光!キュアハニー!
|
|
519
|
+
ハピネス注入!幸せチャージ!
|
|
520
|
+
ハピネスチャージプリキュア!
|
|
521
|
+
extra_names:
|
|
522
|
+
#cure_fortune: &cure_fortune
|
|
523
|
+
# human_name: TODO_cure_fortune
|
|
524
|
+
# precure_name: キュアフォーチュン
|
|
525
|
+
# created_date: # TODO episode
|
|
526
|
+
# transform_message: |-
|
|
527
|
+
# TODO
|
|
528
|
+
# extra_names:
|
|
529
|
+
|
|
530
|
+
lovely:
|
|
531
|
+
<<: *cure_lovely
|
|
532
|
+
princess:
|
|
533
|
+
<<: *cure_princess
|
|
534
|
+
honey:
|
|
535
|
+
<<: *cure_honey
|
|
536
|
+
#fortune:
|
|
537
|
+
# <<: *cure_fortune
|
data/config/series.yml
CHANGED
|
@@ -122,12 +122,14 @@ dokidoki: &dokidoki
|
|
|
122
122
|
dokidoki_precure:
|
|
123
123
|
<<: *dokidoki
|
|
124
124
|
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
125
|
+
happiness_charge: &happiness_charge
|
|
126
|
+
title: ハピネスチャージプリキュア!
|
|
127
|
+
started_date: 2014-02-02
|
|
128
128
|
# ended_date: 2015-01-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
#
|
|
129
|
+
girls:
|
|
130
|
+
- cure_lovely
|
|
131
|
+
- cure_princess
|
|
132
|
+
- cure_honey
|
|
133
|
+
# - cure_fortune
|
|
134
|
+
happiness_charge_precure:
|
|
135
|
+
<<: *happiness_charge
|
data/lib/rubicure/core.rb
CHANGED
data/lib/rubicure/version.rb
CHANGED
data/lib/ubicure.rb
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
require 'rubicure'
|
data/spec/core_spec.rb
CHANGED
|
@@ -26,7 +26,7 @@ describe Rubicure::Core do
|
|
|
26
26
|
puts <<EOS
|
|
27
27
|
====================
|
|
28
28
|
title: #{series.title}
|
|
29
|
-
broadcast: #{series.started_date} - #{series.ended_date}
|
|
29
|
+
broadcast: #{series.started_date} - #{series.try(:ended_date)}
|
|
30
30
|
girls: #{series.girls.count}
|
|
31
31
|
EOS
|
|
32
32
|
|
|
@@ -63,7 +63,7 @@ EOS
|
|
|
63
63
|
human_names = []
|
|
64
64
|
config_file = "#{File.dirname(__FILE__)}/../config/girls.yml"
|
|
65
65
|
Pathname(config_file).each_line do |line|
|
|
66
|
-
human_names << $1 if line =~
|
|
66
|
+
human_names << $1 if line =~ /^\s*human_name:\s*(.+)\s*/
|
|
67
67
|
end
|
|
68
68
|
@precure_count = human_names.uniq.count
|
|
69
69
|
end
|
data/spec/rubicure_spec.rb
CHANGED
|
@@ -41,8 +41,8 @@ describe Rubicure do
|
|
|
41
41
|
[:dokidoki],
|
|
42
42
|
[:dokidoki_precure],
|
|
43
43
|
|
|
44
|
-
|
|
45
|
-
|
|
44
|
+
[:happiness_charge],
|
|
45
|
+
[:happiness_charge_precure],
|
|
46
46
|
]
|
|
47
47
|
end
|
|
48
48
|
|
|
@@ -96,6 +96,11 @@ describe Rubicure do
|
|
|
96
96
|
[:rosetta],
|
|
97
97
|
[:sword],
|
|
98
98
|
[:ace],
|
|
99
|
+
|
|
100
|
+
[:lovely],
|
|
101
|
+
[:princess],
|
|
102
|
+
[:honey],
|
|
103
|
+
#[:fortune],
|
|
99
104
|
]
|
|
100
105
|
end
|
|
101
106
|
|
data/spec/series_spec.rb
CHANGED
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
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.5
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- sue445
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: bin
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date: 2014-
|
|
11
|
+
date: 2014-04-13 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: activesupport
|
|
@@ -191,6 +191,7 @@ files:
|
|
|
191
191
|
- lib/rubicure/movie.rb
|
|
192
192
|
- lib/rubicure/series.rb
|
|
193
193
|
- lib/rubicure/version.rb
|
|
194
|
+
- lib/ubicure.rb
|
|
194
195
|
- rubicure.gemspec
|
|
195
196
|
- spec/core_spec.rb
|
|
196
197
|
- spec/girl_spec.rb
|
|
@@ -219,7 +220,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
|
219
220
|
version: '0'
|
|
220
221
|
requirements: []
|
|
221
222
|
rubyforge_project:
|
|
222
|
-
rubygems_version: 2.2.
|
|
223
|
+
rubygems_version: 2.2.2
|
|
223
224
|
signing_key:
|
|
224
225
|
specification_version: 4
|
|
225
226
|
summary: All about Japanese battle heroine "Pretty Cure (Precure)".
|