From a504238a9465cab646a3da8e44d61b8701350940 Mon Sep 17 00:00:00 2001 From: sue445 Date: Tue, 30 Apr 2024 16:33:16 +0900 Subject: [PATCH 1/3] Add Cure Wonderful's birthday :dog: https://twitter.com/precure_movie/status/1785202689690972188 --- config/girls/021_wonderful.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/config/girls/021_wonderful.yml b/config/girls/021_wonderful.yml index 76e7c3a..e3fb7ce 100644 --- a/config/girls/021_wonderful.yml +++ b/config/girls/021_wonderful.yml @@ -5,7 +5,7 @@ cure_wonderful: &cure_wonderful cast_name: 長縄まりあ color: pink created_date: 2024-02-04 # episode 1 - # birthday: xx/xx + birthday: 5/13 transform_message: |- ワンダフルパクト! プリキュア!マイエボリューション! From 1cd7e47f5422b9c8d65d5b992e7e912391d94c31 Mon Sep 17 00:00:00 2001 From: sue445 Date: Tue, 30 Apr 2024 16:48:19 +0900 Subject: [PATCH 2/3] Use my patch --- Gemfile | 2 ++ gemfiles/activesupport_5_0.gemfile | 2 ++ gemfiles/activesupport_5_1.gemfile | 2 ++ gemfiles/activesupport_5_2.gemfile | 2 ++ gemfiles/activesupport_6_0.gemfile | 2 ++ gemfiles/activesupport_6_1.gemfile | 2 ++ gemfiles/activesupport_7_0.gemfile | 2 ++ gemfiles/activesupport_7_1.gemfile | 2 ++ gemfiles/common.gemfile | 2 ++ rubicure.gemspec | 1 - 10 files changed, 18 insertions(+), 1 deletion(-) create mode 100644 gemfiles/common.gemfile diff --git a/Gemfile b/Gemfile index 9dccb82..6ddd503 100644 --- a/Gemfile +++ b/Gemfile @@ -1,4 +1,6 @@ source "https://rubygems.org" +eval_gemfile "#{__dir__}/gemfiles/common.gemfile" + # Specify your gem's dependencies in rubicure.gemspec gemspec diff --git a/gemfiles/activesupport_5_0.gemfile b/gemfiles/activesupport_5_0.gemfile index 61dd0fd..a6b676e 100644 --- a/gemfiles/activesupport_5_0.gemfile +++ b/gemfiles/activesupport_5_0.gemfile @@ -2,4 +2,6 @@ source "https://rubygems.org" gem "activesupport", "~> 5.0.0" +eval_gemfile "#{__dir__}/common.gemfile" + gemspec path: "../" diff --git a/gemfiles/activesupport_5_1.gemfile b/gemfiles/activesupport_5_1.gemfile index 390f36e..1399406 100644 --- a/gemfiles/activesupport_5_1.gemfile +++ b/gemfiles/activesupport_5_1.gemfile @@ -2,4 +2,6 @@ source "https://rubygems.org" gem "activesupport", "~> 5.1.0" +eval_gemfile "#{__dir__}/common.gemfile" + gemspec path: "../" diff --git a/gemfiles/activesupport_5_2.gemfile b/gemfiles/activesupport_5_2.gemfile index 696ef9d..1afa163 100644 --- a/gemfiles/activesupport_5_2.gemfile +++ b/gemfiles/activesupport_5_2.gemfile @@ -2,4 +2,6 @@ source "https://rubygems.org" gem "activesupport", "~> 5.2.0" +eval_gemfile "#{__dir__}/common.gemfile" + gemspec path: "../" diff --git a/gemfiles/activesupport_6_0.gemfile b/gemfiles/activesupport_6_0.gemfile index 7ecac6b..f06ccbb 100644 --- a/gemfiles/activesupport_6_0.gemfile +++ b/gemfiles/activesupport_6_0.gemfile @@ -2,4 +2,6 @@ source "https://rubygems.org" gem "activesupport", "~> 6.0.0" +eval_gemfile "#{__dir__}/common.gemfile" + gemspec path: "../" diff --git a/gemfiles/activesupport_6_1.gemfile b/gemfiles/activesupport_6_1.gemfile index a326117..a7da958 100644 --- a/gemfiles/activesupport_6_1.gemfile +++ b/gemfiles/activesupport_6_1.gemfile @@ -2,4 +2,6 @@ source "https://rubygems.org" gem "activesupport", "~> 6.1.0" +eval_gemfile "#{__dir__}/common.gemfile" + gemspec path: "../" diff --git a/gemfiles/activesupport_7_0.gemfile b/gemfiles/activesupport_7_0.gemfile index 2ba6adb..5850628 100644 --- a/gemfiles/activesupport_7_0.gemfile +++ b/gemfiles/activesupport_7_0.gemfile @@ -2,4 +2,6 @@ source "https://rubygems.org" gem "activesupport", "~> 7.0.0" +eval_gemfile "#{__dir__}/common.gemfile" + gemspec path: "../" diff --git a/gemfiles/activesupport_7_1.gemfile b/gemfiles/activesupport_7_1.gemfile index af879ab..17391cc 100644 --- a/gemfiles/activesupport_7_1.gemfile +++ b/gemfiles/activesupport_7_1.gemfile @@ -2,4 +2,6 @@ source "https://rubygems.org" gem "activesupport", "~> 7.1.0" +eval_gemfile "#{__dir__}/common.gemfile" + gemspec path: "../" diff --git a/gemfiles/common.gemfile b/gemfiles/common.gemfile new file mode 100644 index 0000000..8866eb6 --- /dev/null +++ b/gemfiles/common.gemfile @@ -0,0 +1,2 @@ +# FIXME: rubydoctest doesn't work on ruby 3.2+ +gem "rubydoctest", github: "sue445/rubydoctest", ref: "ruby3.2" diff --git a/rubicure.gemspec b/rubicure.gemspec index 7ac69b9..a4a916b 100644 --- a/rubicure.gemspec +++ b/rubicure.gemspec @@ -48,7 +48,6 @@ Gem::Specification.new do |spec| spec.add_development_dependency "rubocop-performance", "1.9.2" spec.add_development_dependency "rubocop-rake", "0.5.1" spec.add_development_dependency "rubocop-rspec", "2.1.0" - spec.add_development_dependency "rubydoctest" spec.add_development_dependency "simplecov" spec.add_development_dependency "unparser", ">= 0.4.5" spec.add_development_dependency "yard" From 44498051226a2f6df47c0b7acfc6039d9d372883 Mon Sep 17 00:00:00 2001 From: sue445 Date: Tue, 30 Apr 2024 16:55:22 +0900 Subject: [PATCH 3/3] Fix README --- README.md | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index 10f7878..b4f774e 100644 --- a/README.md +++ b/README.md @@ -757,12 +757,12 @@ Cure.cosmo.name => true >> Precure.all_girls.select(&:have_birthday?).map(&:human_name) -=> ["美墨なぎさ", "雪城ほのか", "九条ひかり", "日向咲", "美翔舞", "相田マナ", "菱川六花", "四葉ありす", "剣崎真琴", "春野はるか", "海藤みなみ", "天ノ川きらら", "紅城トワ", "朝日奈みらい", "十六夜リコ", "宇佐美いちか", "有栖川ひまり", "立神あおい", "琴爪ゆかり", "剣城あきら", "キラ星シエル", "野乃はな", "薬師寺さあや", "輝木ほまれ", "愛崎えみる", "ルールー・アムール", "星奈ひかる", "羽衣ララ", "天宮えれな", "香久矢まどか", "ユニ", "花寺のどか", "沢泉ちゆ", "平光ひなた", "風鈴アスミ", "夏海まなつ", "涼村さんご", "一ノ瀬みのり", "滝沢あすか", "ローラ・ラメール", "和実ゆい", "芙羽ここね", "華満らん", "菓彩あまね", "ソラ・ハレワタール", "虹ヶ丘ましろ", "夕凪ツバサ", "聖あげは", "プリンセス・エル"] +=> ["美墨なぎさ", "雪城ほのか", "九条ひかり", "日向咲", "美翔舞", "相田マナ", "菱川六花", "四葉ありす", "剣崎真琴", "春野はるか", "海藤みなみ", "天ノ川きらら", "紅城トワ", "朝日奈みらい", "十六夜リコ", "宇佐美いちか", "有栖川ひまり", "立神あおい", "琴爪ゆかり", "剣城あきら", "キラ星シエル", "野乃はな", "薬師寺さあや", "輝木ほまれ", "愛崎えみる", "ルールー・アムール", "星奈ひかる", "羽衣ララ", "天宮えれな", "香久矢まどか", "ユニ", "花寺のどか", "沢泉ちゆ", "平光ひなた", "風鈴アスミ", "夏海まなつ", "涼村さんご", "一ノ瀬みのり", "滝沢あすか", "ローラ・ラメール", "和実ゆい", "芙羽ここね", "華満らん", "菓彩あまね", "ソラ・ハレワタール", "虹ヶ丘ましろ", "夕凪ツバサ", "聖あげは", "プリンセス・エル", "犬飼こむぎ"] >> Precure.all_girls.select(&:have_birthday?).sort_by { |girl| Date.parse(girl.birthday) }.map{ |girl| [girl.birthday, girl.human_name] } -=> [["1/7", "宇佐美いちか"], ["1/20", "野乃はな"], ["3/9", "花寺のどか"], ["3/12", "プリンセス・エル"], ["3/13", "芙羽ここね"], ["4/4", "雪城ほのか"], ["4/8", "輝木ほまれ"], ["4/10", "春野はるか"], ["4/12", "星奈ひかる"], ["4/16", "有栖川ひまり"], ["5/9", "涼村さんご"], ["5/21", "夕凪ツバサ"], ["5/28", "四葉ありす"], ["6/10", "薬師寺さあや"], ["6/11", "琴爪ゆかり"], ["6/12", "朝日奈みらい"], ["6/30", "ローラ・ラメール"], ["7/7", "羽衣ララ"], ["7/11", "華満らん"], ["7/15", "愛崎えみる"], ["7/16", "虹ヶ丘ましろ"], ["7/20", "海藤みなみ"], ["7/30", "キラ星シエル"], ["8/1", "夏海まなつ"], ["8/4", "相田マナ"], ["8/7", "日向咲"], ["8/8", "聖あげは"], ["8/16", "風鈴アスミ"], ["8/21", "沢泉ちゆ"], ["8/27", "立神あおい"], ["8/31", "和実ゆい"], ["9/8", "天宮えれな"], ["9/9", "九条ひかり"], ["9/12", "天ノ川きらら"], ["9/17", "菱川六花"], ["9/20", "ソラ・ハレワタール"], ["9/23", "ルールー・アムール"], ["9/24", "剣城あきら"], ["10/4", "平光ひなた"], ["10/10", "美墨なぎさ"], ["10/11", "ユニ"], ["10/15", "滝沢あすか"], ["11/4", "剣崎真琴"], ["11/12", "十六夜リコ"], ["11/20", "美翔舞"], ["11/21", "一ノ瀬みのり"], ["11/23", "香久矢まどか"], ["11/24", "菓彩あまね"], ["12/15", "紅城トワ"]] +=> [["1/7", "宇佐美いちか"], ["1/20", "野乃はな"], ["3/9", "花寺のどか"], ["3/12", "プリンセス・エル"], ["3/13", "芙羽ここね"], ["4/4", "雪城ほのか"], ["4/8", "輝木ほまれ"], ["4/10", "春野はるか"], ["4/12", "星奈ひかる"], ["4/16", "有栖川ひまり"], ["5/9", "涼村さんご"], ["5/13", "犬飼こむぎ"], ["5/21", "夕凪ツバサ"], ["5/28", "四葉ありす"], ["6/10", "薬師寺さあや"], ["6/11", "琴爪ゆかり"], ["6/12", "朝日奈みらい"], ["6/30", "ローラ・ラメール"], ["7/7", "羽衣ララ"], ["7/11", "華満らん"], ["7/15", "愛崎えみる"], ["7/16", "虹ヶ丘ましろ"], ["7/20", "海藤みなみ"], ["7/30", "キラ星シエル"], ["8/1", "夏海まなつ"], ["8/4", "相田マナ"], ["8/7", "日向咲"], ["8/8", "聖あげは"], ["8/16", "風鈴アスミ"], ["8/21", "沢泉ちゆ"], ["8/27", "立神あおい"], ["8/31", "和実ゆい"], ["9/8", "天宮えれな"], ["9/9", "九条ひかり"], ["9/12", "天ノ川きらら"], ["9/17", "菱川六花"], ["9/20", "ソラ・ハレワタール"], ["9/23", "ルールー・アムール"], ["9/24", "剣城あきら"], ["10/4", "平光ひなた"], ["10/10", "美墨なぎさ"], ["10/11", "ユニ"], ["10/15", "滝沢あすか"], ["11/4", "剣崎真琴"], ["11/12", "十六夜リコ"], ["11/20", "美翔舞"], ["11/21", "一ノ瀬みのり"], ["11/23", "香久矢まどか"], ["11/24", "菓彩あまね"], ["12/15", "紅城トワ"]] >> Precure.all_girls.select(&:have_birthday?).map(&:human_name).count -=> 49 +=> 50 ``` * `has_birthday?` is alias to `have_birthday?`