rubicure 1.0.7 → 1.1.0

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
- SHA1:
3
- metadata.gz: c27ad4b82d1764f5d603254163deb7770038e08c
4
- data.tar.gz: '06571585281d047a4411660cf6fc4aeca6cd5351'
2
+ SHA256:
3
+ metadata.gz: e1f0b3f4fbf30c22d84caddc057806310325b6b14c423d53e02eff7a149b9274
4
+ data.tar.gz: 2e05f7b0a775d91599699de867ec38625f4bae11ae5c7bbdf8b2f27bf414a1f1
5
5
  SHA512:
6
- metadata.gz: 4d9a700e594ea80042b634982fa9b33fa23d8fca59b78f6ca4d242b12f6bb40ba06e5ccc6f66497a9f7b392991dae047c384e5ab704362fd516861c15e120cc7
7
- data.tar.gz: 530ae67c98b59c76eb04fe997c3f333d8cfebd13c14067af287af2fdccf4e47147d3a094b1f62ab3f9e5aa89b6370591843c085f7ef22ad05ccacdc03db6648e
6
+ metadata.gz: 8832f53187202a58ba624647971f23582d2233cee3fcb0229d50aaecdf3788cdc1f53a987f976f61e8e37240b35abc9c8c2474faf22360adc9989f53e0fda9f4
7
+ data.tar.gz: 01f175794e41c5dbfc36b7c1ddf5d6c4378d79a3106ad332649536f6c65a8ce4a7eac31b37704d1ea1f9e7a8d2bc66bef5bc7d18d2c8bfc5d2b7e07ca5d0457d
data/.travis.yml CHANGED
@@ -3,12 +3,13 @@ rvm:
3
3
  - 2.2.2
4
4
  - 2.3.3
5
5
  - 2.4.1
6
+ - 2.5.0
6
7
  - ruby-head
7
8
  bundler_args: "--jobs=2"
8
9
  cache: bundler
9
10
  before_install:
10
11
  - gem update --system --no-document
11
- - gem install bundler -v 1.11.2
12
+ - gem install bundler -v 1.16.1 --no-document
12
13
  before_script:
13
14
  - export CODECLIMATE_REPO_TOKEN=8e9db6ee5f3818e87287a6393086c2ccb9b1b83106c5bfb972211abefd2fe162
14
15
  - export CI=true
data/CHANGELOG.md CHANGED
@@ -1,10 +1,18 @@
1
1
  ## master
2
- [full changelog](http://github.com/sue445/rubicure/compare/v1.0.7...master)
2
+ [full changelog](http://github.com/sue445/rubicure/compare/v1.1.0...master)
3
+
4
+ ## v1.1.0
5
+ [full changelog](http://github.com/sue445/rubicure/compare/v1.0.7...v1.1.0)
6
+
7
+ * Add Hugtto Precure
8
+ * https://github.com/sue445/rubicure/pull/160
9
+ * Add `Precure.super_stars`
10
+ * https://github.com/sue445/rubicure/pull/161
3
11
 
4
12
  ## v1.0.7
5
13
  [full changelog](http://github.com/sue445/rubicure/compare/v1.0.6...v1.0.7)
6
14
 
7
- * Fixed that Cure parfait was not included in `Precure.a_la_mode`
15
+ * Fixed. Cure parfait was not included in `Precure.a_la_mode`
8
16
  * https://github.com/sue445/rubicure/pull/154
9
17
 
10
18
  ## v1.0.6
@@ -0,0 +1,74 @@
1
+ cure_yell: &cure_yell
2
+ girl_name: cure_yell
3
+ human_name: 野乃はな
4
+ precure_name: キュアエール
5
+ cast_name: 引坂理絵
6
+ color: pink
7
+ created_date: 2018-02-04 # episode 1
8
+ birthday:
9
+ transform_message: |-
10
+ ミライクリスタル!
11
+ ハートキラっと!
12
+ は~ぎゅ~~!
13
+ ぎゅ~!
14
+ ぎゅ~~!
15
+ 輝く未来を抱きしめて!
16
+ みんなを応援!元気のプリキュア!キュアエール!
17
+ # extra_names:
18
+ attack_messages:
19
+ - |-
20
+ フレフレ!ハート・フォー・ユー!
21
+ transform_calls:
22
+ - heart_kiratto
23
+ yell:
24
+ <<: *cure_yell
25
+
26
+ cure_ange: &cure_ange
27
+ girl_name: cure_ange
28
+ human_name: 薬師寺さあや
29
+ precure_name: キュアアンジュ
30
+ cast_name: 本泉莉奈
31
+ color: blue
32
+ created_date: 2018-02-11 # episode 2
33
+ birthday:
34
+ transform_message: |-
35
+ ミライクリスタル!
36
+ ハートキラっと!
37
+ は~ぎゅ~~!
38
+ ぎゅ~!
39
+ ぎゅ~~!
40
+ 輝く未来を抱きしめて!
41
+ みんなを癒す!知恵のプリキュア!キュアアンジュ!
42
+ # extra_names:
43
+ attack_messages:
44
+ - |-
45
+ フレフレ!ハート・フェーザー!
46
+ transform_calls:
47
+ - heart_kiratto
48
+ ange:
49
+ <<: *cure_ange
50
+
51
+ cure_etoile: &cure_etoile
52
+ girl_name: cure_etoile
53
+ human_name: 輝木ほまれ
54
+ precure_name: キュアエトワール
55
+ cast_name: 小倉唯
56
+ color: yellow
57
+ created_date: 2018-03-04 # episode 5
58
+ birthday:
59
+ transform_message: |-
60
+ ミライクリスタル!
61
+ ハートキラっと!
62
+ は~ぎゅ~~!
63
+ ぎゅ~!
64
+ ぎゅ~~!
65
+ 輝く未来を抱きしめて!
66
+ みんな輝け!力のプリキュア!キュアエトワール!
67
+ # extra_names:
68
+ attack_messages:
69
+ - |-
70
+ フレフレ!ハート・スター!
71
+ transform_calls:
72
+ - heart_kiratto
73
+ etoile:
74
+ <<: *cure_etoile
data/config/movies.yml CHANGED
@@ -58,3 +58,9 @@ dream_stars: &dream_stars
58
58
  started_date: 2017-03-18
59
59
  dc:
60
60
  <<: *dream_stars
61
+ #######################################################
62
+ super_stars: &super_stars
63
+ title: 映画プリキュアスーパースターズ!
64
+ started_date: 2018-03-17
65
+ ss:
66
+ <<: *super_stars
data/config/series.yml CHANGED
@@ -175,7 +175,7 @@ a_la_mode: &a_la_mode
175
175
  series_name: a_la_mode
176
176
  title: キラキラ☆プリキュアアラモード
177
177
  started_date: 2017-02-05
178
- # ended_date: 2018-01-
178
+ ended_date: 2018-01-28
179
179
  girls:
180
180
  - cure_whip
181
181
  - cure_custard
@@ -189,3 +189,15 @@ kirakira_precure_a_la_mode:
189
189
  <<: *a_la_mode
190
190
  kirakira_precure_alamode:
191
191
  <<: *a_la_mode
192
+ #######################################################
193
+ hugtto: &hugtto
194
+ series_name: hugtto
195
+ title: HUGっと!プリキュア
196
+ started_date: 2018-02-04
197
+ # ended_date: 2019-01-
198
+ girls:
199
+ - cure_yell
200
+ - cure_ange
201
+ - cure_etoile
202
+ hugtto_precure:
203
+ <<: *hugtto
data/lib/rubicure/core.rb CHANGED
@@ -95,6 +95,17 @@ module Rubicure
95
95
  @dream_stars
96
96
  end
97
97
 
98
+ def super_stars
99
+ return @super_stars if @super_stars
100
+ girls = Precure.maho_girls.girls + Precure.a_la_mode.girls + Precure.hugtto.girls
101
+
102
+ super_stars_date = Rubicure::Movie.find(:super_stars).started_date
103
+ @super_stars = girls.select { |girl| girl.created_date && girl.created_date <= super_stars_date }
104
+
105
+ @super_stars
106
+ end
107
+ alias_method :superstars, :super_stars
108
+
98
109
  # iterate with :unmarked, :max_heart, ...
99
110
  #
100
111
  # @yield series
data/lib/rubicure/cure.rb CHANGED
@@ -12,11 +12,11 @@ module Cure
12
12
  (["チョキ"] * 14) +
13
13
  (["パー"] * 15) +
14
14
  ["グッチョッパー"]
15
- MESSAGE = <<EOF.freeze
15
+ MESSAGE = <<JANKEN.freeze
16
16
  ピカピカピカリン
17
17
  ジャンケンポン!
18
18
  (%s)
19
- EOF
19
+ JANKEN
20
20
  def pikarin_janken
21
21
  print_by_line(MESSAGE % HANDS.sample)
22
22
  end
data/lib/rubicure/girl.rb CHANGED
@@ -83,7 +83,7 @@ module Rubicure
83
83
  birthday_date == date
84
84
  end
85
85
 
86
- def have_birthday? # rubocop:disable Style/PredicateName
86
+ def have_birthday? # rubocop:disable Naming/PredicateName
87
87
  has_key?(:birthday)
88
88
  end
89
89
  alias_method :has_birthday?, :have_birthday?
@@ -1,3 +1,3 @@
1
1
  module Rubicure
2
- VERSION = "1.0.7".freeze
2
+ VERSION = "1.1.0".freeze
3
3
  end
data/rubicure.gemspec CHANGED
@@ -1,5 +1,3 @@
1
- # coding: utf-8
2
-
3
1
  lib = File.expand_path("../lib", __FILE__)
4
2
  $LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
5
3
  require "rubicure/version"
@@ -34,14 +32,15 @@ Gem::Specification.new do |spec|
34
32
  spec.add_development_dependency "codeclimate-test-reporter", "~> 1.0.0"
35
33
  spec.add_development_dependency "coveralls"
36
34
  spec.add_development_dependency "delorean"
35
+ spec.add_development_dependency "onkcop", "0.52.1.1"
37
36
  spec.add_development_dependency "pry-byebug"
38
- spec.add_development_dependency "onkcop", "0.49.1.0"
39
37
  spec.add_development_dependency "rake"
40
38
  spec.add_development_dependency "rspec"
41
39
  spec.add_development_dependency "rspec-collection_matchers"
42
40
  spec.add_development_dependency "rspec-its"
43
41
  spec.add_development_dependency "rspec-parameterized", ">= 0.3.2"
44
- spec.add_development_dependency "rubocop", "0.49.1"
42
+ spec.add_development_dependency "rubocop", "0.52.1"
43
+ spec.add_development_dependency "rubocop-rspec", "1.23.0"
45
44
  spec.add_development_dependency "simplecov"
46
45
  spec.add_development_dependency "yard"
47
46
  end
@@ -84,7 +84,7 @@ describe Rubicure::Core do
84
84
  context "Without arg" do
85
85
  subject { instance.all_girls }
86
86
 
87
- let(:precure_count) { 51 }
87
+ let(:precure_count) { 54 }
88
88
 
89
89
  its(:count) { should == precure_count }
90
90
  it { should include Cure.echo }
@@ -131,4 +131,27 @@ describe Rubicure::Core do
131
131
 
132
132
  it { should contain_exactly(*dream_stars_girl_names) }
133
133
  end
134
+
135
+ describe "#super_stars" do
136
+ subject { Precure.super_stars.map(&:girl_name) }
137
+
138
+ let(:super_stars_girl_names) do
139
+ [
140
+ Cure.miracle,
141
+ Cure.magical,
142
+ Cure.felice,
143
+ Cure.whip,
144
+ Cure.custard,
145
+ Cure.gelato,
146
+ Cure.macaron,
147
+ Cure.chocolat,
148
+ Cure.parfait,
149
+ Cure.yell,
150
+ Cure.ange,
151
+ Cure.etoile,
152
+ ].map(&:girl_name)
153
+ end
154
+
155
+ it { should contain_exactly(*super_stars_girl_names) }
156
+ end
134
157
  end
@@ -25,11 +25,11 @@ describe Rubicure::Girl do
25
25
  let(:extra_names) { %w[プリンセスピース ウルトラピース] }
26
26
  let(:color) { "yellow" }
27
27
  let(:transform_message) do
28
- <<EOF
28
+ <<JANKEN
29
29
  プリキュアスマイルチャージ!
30
30
  GO! GO! Let's GO ピース!
31
31
  ピカピカピカリンジャンケンポン! キュアピース!
32
- EOF
32
+ JANKEN
33
33
  end
34
34
  let(:attack_messages) do
35
35
  [
@@ -10,6 +10,7 @@ describe Rubicure::Movie do
10
10
  :sc,
11
11
  :stmm,
12
12
  :dream_stars,
13
+ :super_stars,
13
14
  ]
14
15
  end
15
16
 
@@ -1,4 +1,24 @@
1
1
  describe Rubicure::Series do
2
+ let(:series_names) do
3
+ [
4
+ :unmarked,
5
+ :max_heart,
6
+ :splash_star,
7
+ :yes,
8
+ :yes_gogo,
9
+ :fresh,
10
+ :heart_catch,
11
+ :suite,
12
+ :smile,
13
+ :dokidoki,
14
+ :happiness_charge,
15
+ :go_princess,
16
+ :maho_girls,
17
+ :a_la_mode,
18
+ :hugtto,
19
+ ]
20
+ end
21
+
2
22
  describe "#on_air?" do
3
23
  subject { series.on_air?(date) }
4
24
 
@@ -49,25 +69,6 @@ describe Rubicure::Series do
49
69
  it { should all(be_instance_of Rubicure::Girl) }
50
70
  end
51
71
 
52
- let(:series_names) do
53
- [
54
- :unmarked,
55
- :max_heart,
56
- :splash_star,
57
- :yes,
58
- :yes_gogo,
59
- :fresh,
60
- :heart_catch,
61
- :suite,
62
- :smile,
63
- :dokidoki,
64
- :happiness_charge,
65
- :go_princess,
66
- :maho_girls,
67
- :a_la_mode,
68
- ]
69
- end
70
-
71
72
  # rubocop:disable Style/CaseEquality, Lint/UselessComparison, Style/NilComparison
72
73
  describe "#===" do
73
74
  let(:series) { Rubicure::Series.find(series_name) }
data/spec/spec_helper.rb CHANGED
@@ -39,7 +39,7 @@ require "pry"
39
39
 
40
40
  # Requires supporting ruby files with custom matchers and macros, etc,
41
41
  # in spec/support/ and its subdirectories.
42
- Dir["#{File.dirname(__FILE__)}/support/**/*.rb"].each { |f| require f }
42
+ Dir["#{__dir__}/support/**/*.rb"].each { |f| require f }
43
43
 
44
44
  RSpec.configure do |config|
45
45
  # The settings below are suggested to provide a good initial experience
@@ -111,11 +111,11 @@ RSpec.configure do |config|
111
111
  config.include Delorean
112
112
  config.include TestUtil
113
113
 
114
- config.before(:each) do
114
+ config.before do
115
115
  Rubicure::Girl.sleep_sec = 0
116
116
  end
117
117
 
118
- config.after(:each) do
118
+ config.after do
119
119
  back_to_the_present
120
120
  end
121
121
  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.7
4
+ version: 1.1.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - sue445
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2017-07-17 00:00:00.000000000 Z
11
+ date: 2018-03-04 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: activesupport
@@ -109,33 +109,33 @@ dependencies:
109
109
  - !ruby/object:Gem::Version
110
110
  version: '0'
111
111
  - !ruby/object:Gem::Dependency
112
- name: pry-byebug
112
+ name: onkcop
113
113
  requirement: !ruby/object:Gem::Requirement
114
114
  requirements:
115
- - - ">="
115
+ - - '='
116
116
  - !ruby/object:Gem::Version
117
- version: '0'
117
+ version: 0.52.1.1
118
118
  type: :development
119
119
  prerelease: false
120
120
  version_requirements: !ruby/object:Gem::Requirement
121
121
  requirements:
122
- - - ">="
122
+ - - '='
123
123
  - !ruby/object:Gem::Version
124
- version: '0'
124
+ version: 0.52.1.1
125
125
  - !ruby/object:Gem::Dependency
126
- name: onkcop
126
+ name: pry-byebug
127
127
  requirement: !ruby/object:Gem::Requirement
128
128
  requirements:
129
- - - '='
129
+ - - ">="
130
130
  - !ruby/object:Gem::Version
131
- version: 0.49.1.0
131
+ version: '0'
132
132
  type: :development
133
133
  prerelease: false
134
134
  version_requirements: !ruby/object:Gem::Requirement
135
135
  requirements:
136
- - - '='
136
+ - - ">="
137
137
  - !ruby/object:Gem::Version
138
- version: 0.49.1.0
138
+ version: '0'
139
139
  - !ruby/object:Gem::Dependency
140
140
  name: rake
141
141
  requirement: !ruby/object:Gem::Requirement
@@ -212,14 +212,28 @@ dependencies:
212
212
  requirements:
213
213
  - - '='
214
214
  - !ruby/object:Gem::Version
215
- version: 0.49.1
215
+ version: 0.52.1
216
+ type: :development
217
+ prerelease: false
218
+ version_requirements: !ruby/object:Gem::Requirement
219
+ requirements:
220
+ - - '='
221
+ - !ruby/object:Gem::Version
222
+ version: 0.52.1
223
+ - !ruby/object:Gem::Dependency
224
+ name: rubocop-rspec
225
+ requirement: !ruby/object:Gem::Requirement
226
+ requirements:
227
+ - - '='
228
+ - !ruby/object:Gem::Version
229
+ version: 1.23.0
216
230
  type: :development
217
231
  prerelease: false
218
232
  version_requirements: !ruby/object:Gem::Requirement
219
233
  requirements:
220
234
  - - '='
221
235
  - !ruby/object:Gem::Version
222
- version: 0.49.1
236
+ version: 1.23.0
223
237
  - !ruby/object:Gem::Dependency
224
238
  name: simplecov
225
239
  requirement: !ruby/object:Gem::Requirement
@@ -281,6 +295,7 @@ files:
281
295
  - config/girls/012_go_princess.yml
282
296
  - config/girls/013_maho_girls.yml
283
297
  - config/girls/014_a_la_mode.yml
298
+ - config/girls/015_hugtto.yml
284
299
  - config/girls/movie.yml
285
300
  - config/movies.yml
286
301
  - config/series.yml
@@ -324,7 +339,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
324
339
  version: '0'
325
340
  requirements: []
326
341
  rubyforge_project:
327
- rubygems_version: 2.6.10
342
+ rubygems_version: 2.7.6
328
343
  signing_key:
329
344
  specification_version: 4
330
345
  summary: All about Japanese battle heroine "Pretty Cure (Precure)".