rubicure 1.0.0.pre1 → 1.0.0.pre2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +8 -1
- data/README.md +24 -0
- data/config/girls/011_happiness_charge.yml +7 -6
- data/config/girls/012_go_princess.yml +8 -7
- data/examples/all.rb +7 -6
- data/lib/rubicure/girl.rb +5 -0
- data/lib/rubicure/version.rb +1 -1
- data/spec/girl_spec.rb +14 -0
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 3c1cad6a95b079098637acf02fa89d4285235ca8
|
4
|
+
data.tar.gz: d52fb184daabf5e00a1e5f328bb46b10ba375ffa
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 9035f345de085e3e1ba40074ab3822621a35ff6c15a24cffcb577d2240420b298f35192aac9893fa542d24df4b1866dc938656f0f8b68313b2e27e58c48b56aa
|
7
|
+
data.tar.gz: 76b0bb2243515b2e9e08cb05757db0ba7aa06fa9e77b564afaf83e91130a4737a42135e25f71e8c670c9b3318722e4dd8ac2370ca8bb8702bfb2272f45ff8fd8
|
data/CHANGELOG.md
CHANGED
@@ -1,13 +1,20 @@
|
|
1
1
|
## master
|
2
2
|
[full changelog](http://github.com/sue445/rubicure/compare/v0.4.12...master)
|
3
3
|
|
4
|
-
## v1.0.0
|
4
|
+
## v1.0.0
|
5
5
|
[full changelog](http://github.com/sue445/rubicure/compare/v0.4.12...v1.0.0.pre1)
|
6
6
|
|
7
|
+
### Breaking changes :bomb:
|
7
8
|
* Remove `Girl#humanize`
|
8
9
|
* https://github.com/sue445/rubicure/pull/124
|
9
10
|
* Drop support ruby 2.0 and 2.1
|
10
11
|
* https://github.com/sue445/rubicure/pull/122
|
12
|
+
* Rename: human name of cure princess
|
13
|
+
* https://github.com/sue445/rubicure/pull/133
|
14
|
+
|
15
|
+
### Enhancements
|
16
|
+
* Impl `Girl#full_name`
|
17
|
+
* https://github.com/sue445/rubicure/pull/135
|
11
18
|
|
12
19
|
## v0.4.12
|
13
20
|
[full changelog](http://github.com/sue445/rubicure/compare/v0.4.11...v0.4.12)
|
data/README.md
CHANGED
@@ -390,6 +390,30 @@ mirai.attack!
|
|
390
390
|
プリキュア!ルビーパッショナーレ!
|
391
391
|
```
|
392
392
|
|
393
|
+
### full_name
|
394
|
+
When `Rubicure::Girl` has `human_full_name` (i.e. another `human_name`), she returns as `#full_name`
|
395
|
+
|
396
|
+
```ruby
|
397
|
+
Cure.princess.human_name
|
398
|
+
# => "白雪ひめ"
|
399
|
+
Cure.princess.full_name
|
400
|
+
# => "ヒメルダ・ウインドウ・キュアクイーン・オブ・ザ・ブルースカイ"
|
401
|
+
|
402
|
+
Cure.scarlet.human_name
|
403
|
+
# => "紅城トワ"
|
404
|
+
Cure.scarlet.full_name
|
405
|
+
# => "プリンセス・ホープ・ディライト・トワ"
|
406
|
+
```
|
407
|
+
|
408
|
+
`#full_name` returns `#human_name` when she doe's not have `human_full_name`
|
409
|
+
|
410
|
+
```ruby
|
411
|
+
Cure.miracle.human_name
|
412
|
+
# => "朝日奈みらい"
|
413
|
+
Cure.miracle.full_name
|
414
|
+
# => "朝日奈みらい"
|
415
|
+
```
|
416
|
+
|
393
417
|
### Precure allstars
|
394
418
|
```ruby
|
395
419
|
Precure.all_stars.count
|
@@ -36,12 +36,13 @@ cure_lovely: &cure_lovely
|
|
36
36
|
transform_calls:
|
37
37
|
- kururin_mirror_change
|
38
38
|
cure_princess: &cure_princess
|
39
|
-
girl_name:
|
40
|
-
human_name:
|
41
|
-
|
42
|
-
|
43
|
-
|
44
|
-
|
39
|
+
girl_name: cure_princess
|
40
|
+
human_name: 白雪ひめ
|
41
|
+
human_full_name: ヒメルダ・ウインドウ・キュアクイーン・オブ・ザ・ブルースカイ
|
42
|
+
precure_name: キュアプリンセス
|
43
|
+
cast_name: 潘めぐみ
|
44
|
+
created_date: 2014-02-02 # episode 1
|
45
|
+
color: blue
|
45
46
|
transform_message: |-
|
46
47
|
(かわルンルン!)
|
47
48
|
プリキュアくるりんミラーチェンジ!
|
@@ -71,13 +71,14 @@ cure_twinkle: &cure_twinkle
|
|
71
71
|
transform_calls:
|
72
72
|
- princess_engage
|
73
73
|
cure_scarlet: &cure_scarlet
|
74
|
-
girl_name:
|
75
|
-
human_name:
|
76
|
-
|
77
|
-
|
78
|
-
|
79
|
-
|
80
|
-
|
74
|
+
girl_name: cure_scarlet
|
75
|
+
human_name: 紅城トワ
|
76
|
+
human_full_name: プリンセス・ホープ・ディライト・トワ
|
77
|
+
precure_name: キュアスカーレット
|
78
|
+
cast_name: 沢城みゆき
|
79
|
+
color: red
|
80
|
+
created_date: 2015-07-05 # episode 22
|
81
|
+
birthday: 12/15
|
81
82
|
transform_message: |-
|
82
83
|
プリキュア!プリンセスエンゲージ!
|
83
84
|
深紅の炎のプリンセス!キュアスカーレット!
|
data/examples/all.rb
CHANGED
@@ -11,12 +11,13 @@ EOS
|
|
11
11
|
series.girls.each do |girl|
|
12
12
|
puts <<EOS
|
13
13
|
------------------------
|
14
|
-
human_name:
|
15
|
-
|
16
|
-
|
17
|
-
|
18
|
-
|
19
|
-
|
14
|
+
human_name: #{girl.human_name}
|
15
|
+
human_full_name: #{girl.human_full_name}
|
16
|
+
precure_name: #{girl.precure_name}
|
17
|
+
cast_name: #{girl.cast_name}
|
18
|
+
color: #{girl.color}
|
19
|
+
extra_names: #{girl[:extra_names]}
|
20
|
+
state_names: #{girl.state_names}
|
20
21
|
attack_messages: #{girl.attack_messages}
|
21
22
|
transform_message:
|
22
23
|
#{girl.transform_message}
|
data/lib/rubicure/girl.rb
CHANGED
@@ -10,6 +10,7 @@ module Rubicure
|
|
10
10
|
ATTRIBUTES = [
|
11
11
|
:girl_name,
|
12
12
|
:human_name,
|
13
|
+
:human_full_name,
|
13
14
|
:precure_name,
|
14
15
|
:cast_name,
|
15
16
|
:color,
|
@@ -87,6 +88,10 @@ module Rubicure
|
|
87
88
|
end
|
88
89
|
alias_method :has_birthday?, :have_birthday?
|
89
90
|
|
91
|
+
def full_name
|
92
|
+
human_full_name.presence || human_name
|
93
|
+
end
|
94
|
+
|
90
95
|
ATTRIBUTES.each do |attribute|
|
91
96
|
define_method attribute do
|
92
97
|
if @current_transform_style
|
data/lib/rubicure/version.rb
CHANGED
data/spec/girl_spec.rb
CHANGED
@@ -311,4 +311,18 @@ EOF
|
|
311
311
|
it { should be false }
|
312
312
|
end
|
313
313
|
end
|
314
|
+
|
315
|
+
describe "#full_name" do
|
316
|
+
subject { girl.full_name }
|
317
|
+
|
318
|
+
context "has human_full_name" do
|
319
|
+
let(:girl) { Cure.scarlet }
|
320
|
+
|
321
|
+
it { should eq "プリンセス・ホープ・ディライト・トワ" }
|
322
|
+
end
|
323
|
+
|
324
|
+
context "don't have human_full_name" do
|
325
|
+
it { should eq "黄瀬やよい" }
|
326
|
+
end
|
327
|
+
end
|
314
328
|
end
|
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: 1.0.0.
|
4
|
+
version: 1.0.0.pre2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- sue445
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2017-01-10 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: activesupport
|