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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 86ece50a0aad354fed5e92a8dd9079102b795e77
4
- data.tar.gz: 346605c948db989a0aeb5edf5c385ecf8822057a
3
+ metadata.gz: 3c1cad6a95b079098637acf02fa89d4285235ca8
4
+ data.tar.gz: d52fb184daabf5e00a1e5f328bb46b10ba375ffa
5
5
  SHA512:
6
- metadata.gz: bc6a0976494136c3d3299afc50609ba5232de99496e1ae9f80abd3975459222bab2a855edd60639817bf5e16a6ef5317258bbf74d91d02e27ff7ab1e7c50f236
7
- data.tar.gz: efbb9972d74b6044f01a3c43dc123f34ed254d50a818035788a3e22ce520ba67af54970edb362d6b44f818d29e5080a2508fbfc242460f5ad55c0bf2a2dbf7c9
6
+ metadata.gz: 9035f345de085e3e1ba40074ab3822621a35ff6c15a24cffcb577d2240420b298f35192aac9893fa542d24df4b1866dc938656f0f8b68313b2e27e58c48b56aa
7
+ data.tar.gz: 76b0bb2243515b2e9e08cb05757db0ba7aa06fa9e77b564afaf83e91130a4737a42135e25f71e8c670c9b3318722e4dd8ac2370ca8bb8702bfb2272f45ff8fd8
@@ -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.pre1
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: cure_princess
40
- human_name: 白雪ひめ(ヒメルダ・ウインドウ・キュアクイーン・オブ・ザ・ブルースカイ)
41
- precure_name: キュアプリンセス
42
- cast_name: 潘めぐみ
43
- created_date: 2014-02-02 # episode 1
44
- color: blue
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: cure_scarlet
75
- human_name: 紅城トワ
76
- precure_name: キュアスカーレット
77
- cast_name: 沢城みゆき
78
- color: red
79
- created_date: 2015-07-05 # episode 22
80
- birthday: 12/15
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
  深紅の炎のプリンセス!キュアスカーレット!
@@ -11,12 +11,13 @@ EOS
11
11
  series.girls.each do |girl|
12
12
  puts <<EOS
13
13
  ------------------------
14
- human_name: #{girl.human_name}
15
- precure_name: #{girl.precure_name}
16
- cast_name: #{girl.cast_name}
17
- color: #{girl.color}
18
- extra_names: #{girl[:extra_names]}
19
- state_names: #{girl.state_names}
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}
@@ -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
@@ -1,3 +1,3 @@
1
1
  module Rubicure
2
- VERSION = "1.0.0.pre1"
2
+ VERSION = "1.0.0.pre2"
3
3
  end
@@ -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.pre1
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: 2016-12-27 00:00:00.000000000 Z
11
+ date: 2017-01-10 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: activesupport