rubicure 3.2.1 → 3.2.2

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
  SHA256:
3
- metadata.gz: 1edc9ba2b4e44364be98363803a5f6e7b4f57bd1c28073fc09f2a1bccd228577
4
- data.tar.gz: 3749db8846101224ef468791dcea4f4b6652dc631b9d3540634bf923394afd9d
3
+ metadata.gz: fc5545e02bd1593b065a40c08c70ceab7080ba62b6e2b559b3dc7577d6d4e2ac
4
+ data.tar.gz: 93ebbe5ac6b8756aeb5e8135c293418d3501ad9fcd228c44243eabf8680528f6
5
5
  SHA512:
6
- metadata.gz: d513e5da71cc2a5da2176e5a64ea380c34124240333ad934c6b9bb5f478806ab34c2ee605a0c5628d68892e99c2bc5495f5491dfe63397ecba9f610cf6ad99bd
7
- data.tar.gz: e04b4846dc29463093c028ee2b1a5f8b42e9cbf2b35f462fd78098b1d5a2e0b7627a72c356185657a9f996c2ece5d6e6dcaeb6d45f6d670d6a3d55eda61c52e1
6
+ metadata.gz: 7581261659e97cf55d460b13f24b241c3e52838e7c92211f5422636a2ee00b7da377323b09324adcc5f135eabbb1024d91ca97167c55e48833c9df0f38ef4202
7
+ data.tar.gz: 57af3764152443ea49a8a38653bf34d7b89b0adeb2533603353c35c35c804a67eac1a4d56f840fca3a079ab392bec0993f947c8dfeca6103b73a5545f8f3038a
data/CHANGELOG.md CHANGED
@@ -1,5 +1,13 @@
1
1
  ## master
2
- [full changelog](http://github.com/sue445/rubicure/compare/v3.2.1...master)
2
+ [full changelog](http://github.com/sue445/rubicure/compare/v3.2.2...master)
3
+
4
+ ## v3.2.2
5
+ [full changelog](http://github.com/sue445/rubicure/compare/v3.2.1...v3.2.2)
6
+
7
+ * Add `#members` as alias for `#girls`
8
+ * https://github.com/sue445/rubicure/pull/285
9
+ * Add `#all_members` as alias for `#all_girls`
10
+ * https://github.com/sue445/rubicure/pull/286
3
11
 
4
12
  ## v3.2.1
5
13
  [full changelog](http://github.com/sue445/rubicure/compare/v3.2.0...v3.2.1)
data/README.md CHANGED
@@ -138,24 +138,27 @@ Precure.now
138
138
  => false
139
139
  ```
140
140
 
141
- ### Rubicure::Series#girls
141
+ ### Rubicure::Series#members
142
142
  ```ruby
143
- >> Precure.smile.girls.count
143
+ >> Precure.smile.members.count
144
144
  => 5
145
145
 
146
- >> Precure.smile.girls.first
146
+ >> Precure.smile.members.first
147
147
  => {:girl_name=>"cure_happy", :human_name=>"星空みゆき", :precure_name=>"キュアハッピー", :cast_name=>"福圓美里", :created_date=>#<Date: 2012-02-05 ((2455963j,0s,0n),+0s,-Infj)>, :color=>"pink", :transform_message=>"(レディ?)\nプリキュア・スマイルチャージ!\n(ゴー!ゴー!レッツ・ゴー!ハッピー!!)\nキラキラ輝く未来の光! キュアハッピー!\n5つの光が導く未来!\n輝け!スマイルプリキュア!", :extra_names=>["プリンセスハッピー", "ウルトラハッピー"], :attack_messages=>["プリキュア!ハッピーシャワー!!", "開け、ロイヤルクロック!\n(みんなの力を1つにするクル!)\n届け、希望の光!\nはばたけ!光り輝く未来へ!\nプリキュア!ロイヤルレインボーバースト!", "(みんなの力を1つにするクル!)\nプリキュア!ミラクルレインボーバースト!\n輝けー!!\nスマイルプリキュア!!"], :transform_calls=>["smile_charge"]}
148
148
 
149
- >> Precure.smile.girls.map(&:human_name)
149
+ >> Precure.smile.members.map(&:human_name)
150
150
  => ["星空みゆき", "日野あかね", "黄瀬やよい", "緑川なお", "青木れいか"]
151
151
 
152
- >> Precure.smile.girls.map(&:precure_name)
152
+ >> Precure.smile.members.map(&:precure_name)
153
153
  => ["キュアハッピー", "キュアサニー", "キュアピース", "キュアマーチ", "キュアビューティ"]
154
154
 
155
- >> Precure.smile.girls.count
155
+ >> Precure.smile.members.count
156
156
  => 5
157
157
  ```
158
158
 
159
+ * Now, `members?` is alias to `girls?`. But I'm going to change this behavior in the next major version (v4)
160
+ * ref. https://github.com/sue445/rubicure/issues/284
161
+
159
162
  ### Select own precure girl
160
163
  ```ruby
161
164
  >> Cure.lemonade
@@ -499,22 +502,25 @@ When `Rubicure::Girl` has `human_full_name` (i.e. another `human_name`), she ret
499
502
 
500
503
  and [more aliases!](config/movies.yml)
501
504
 
502
- ### `Precure.all_girls` (a.k.a. `Precure.all`)
505
+ ### `Precure.all_members` (a.k.a. `Precure.all`)
503
506
  ```ruby
504
- >> Precure.all_girls.count
505
- >> Precure.all_girls.map(&:precure_name)
507
+ >> Precure.all_members.count
508
+ >> Precure.all_members.map(&:precure_name)
506
509
  # returns current precure count and names
507
510
 
508
- >> Precure.all_girls("2013-10-26").count
511
+ >> Precure.all_members("2013-10-26").count
509
512
  => 34
510
513
 
511
- >> Precure.all_girls.include?(Cure.echo)
514
+ >> Precure.all_members.include?(Cure.echo)
512
515
  => true
513
516
  ```
514
517
 
515
- #### `Precure.all_girls` vs `Precure.all_stars`
516
- * `Precure.all_girls` returns all precure. (includes "Kirakira Precure Alamode")
517
- * `Precure.all_stars` returns only from "Futari wa Pretty Cure" to "Maho Girls PreCure"
518
+ * Now, `Precure.all_members?` is alias to `Precure.all_girls?`. But I'm going to change this behavior in the next major version (v4)
519
+ * ref. https://github.com/sue445/rubicure/issues/284
520
+
521
+ #### `Precure.all_members` vs `Precure.all_stars`
522
+ * `Precure.all_members` returns all precure. (includes "Kirakira Precure Alamode")
523
+ * `Precure.all_members` returns only from "Futari wa Pretty Cure" to "Maho Girls PreCure"
518
524
 
519
525
  ### `Precure.dream_stars`
520
526
  ```ruby
data/lib/rubicure/core.rb CHANGED
@@ -151,6 +151,7 @@ module Rubicure
151
151
  end
152
152
 
153
153
  alias_method :all, :all_girls
154
+ alias_method :all_members, :all_girls
154
155
 
155
156
  # Get precure dream stars
156
157
  #
@@ -58,6 +58,8 @@ module Rubicure
58
58
  @girls
59
59
  end
60
60
 
61
+ alias_method :members, :girls
62
+
61
63
  alias_method :each_without_girls, :each
62
64
 
63
65
  def each(&block)
@@ -1,3 +1,3 @@
1
1
  module Rubicure
2
- VERSION = "3.2.1".freeze
2
+ VERSION = "3.2.2".freeze
3
3
  end
@@ -171,7 +171,7 @@ describe Rubicure::Girl do
171
171
  end
172
172
 
173
173
  it "stdout includes one of random_transform_words" do
174
- expect { girl.transform! }.to output(/4人揃って!/).to_stdout.or output(/今日も元気だ!/).to_stdout
174
+ expect { girl.transform! }.to output(/4人揃って!|今日も元気だ!/).to_stdout
175
175
  end
176
176
  end
177
177
  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: 3.2.1
4
+ version: 3.2.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - sue445
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2023-06-04 00:00:00.000000000 Z
11
+ date: 2023-07-04 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: activesupport