rubicure 1.1.2 → 1.1.3
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.rubocop.yml +3 -0
- data/CHANGELOG.md +7 -1
- data/README.md +0 -1
- data/config/girls/015_hugtto.yml +2 -2
- data/lib/rubicure/core.rb +6 -4
- data/lib/rubicure/girl.rb +5 -3
- data/lib/rubicure/movie.rb +2 -2
- data/lib/rubicure/series.rb +2 -2
- data/lib/rubicure/version.rb +1 -1
- data/rubicure.gemspec +6 -6
- data/spec/rubicure/core_spec.rb +1 -1
- data/spec/rubicure/series_spec.rb +1 -1
- data/spec/spec_helper.rb +2 -2
- metadata +8 -8
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: adc2d9d7035d9663e198ba14e4e47512c0afc36fcc57681b9f0126f5ad27485e
|
4
|
+
data.tar.gz: 1dccfee49348bfbf35664f5955a65da281327506cea3e8a84e070435e6d6ea08
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: f3a7d7a9da0f42aee6cbe9ce69b43133886bb2007606d15d4cd49ad46b87252f676a05bacb32c7cab963743191b6991a366afceb182871d783e4ef2de391a4b1
|
7
|
+
data.tar.gz: 3678662807702d1471148dc081bab7f62569f25a25063496c8ca5a84408f9387f4cb17e29499427bc689697c57df7b48ca3c8a4a03ba33e08515d30c3927705d
|
data/.rubocop.yml
CHANGED
data/CHANGELOG.md
CHANGED
@@ -1,5 +1,11 @@
|
|
1
1
|
## master
|
2
|
-
[full changelog](http://github.com/sue445/rubicure/compare/v1.1.
|
2
|
+
[full changelog](http://github.com/sue445/rubicure/compare/v1.1.3...master)
|
3
|
+
|
4
|
+
## v1.1.3
|
5
|
+
[full changelog](http://github.com/sue445/rubicure/compare/v1.1.2...v1.1.3)
|
6
|
+
|
7
|
+
* Add birthdays of Cure Yell(Hana) and Cure Ange(Saaya) :birthday:
|
8
|
+
* https://github.com/sue445/rubicure/pull/169
|
3
9
|
|
4
10
|
## v1.1.2
|
5
11
|
[full changelog](http://github.com/sue445/rubicure/compare/v1.1.1...v1.1.2)
|
data/README.md
CHANGED
@@ -4,7 +4,6 @@
|
|
4
4
|
[![Build Status](https://travis-ci.org/sue445/rubicure.png?branch=master)](https://travis-ci.org/sue445/rubicure)
|
5
5
|
[![Code Climate](https://codeclimate.com/github/sue445/rubicure.png)](https://codeclimate.com/github/sue445/rubicure)
|
6
6
|
[![Coverage Status](https://coveralls.io/repos/sue445/rubicure/badge.png)](https://coveralls.io/r/sue445/rubicure)
|
7
|
-
[![Dependency Status](https://gemnasium.com/sue445/rubicure.png)](https://gemnasium.com/sue445/rubicure)
|
8
7
|
[![Inline docs](http://inch-ci.org/github/sue445/rubicure.svg?branch=master)](http://inch-ci.org/github/sue445/rubicure)
|
9
8
|
|
10
9
|
All about Japanese battle heroine "Pretty Cure (Precure)".
|
data/config/girls/015_hugtto.yml
CHANGED
@@ -5,7 +5,7 @@ cure_yell: &cure_yell
|
|
5
5
|
cast_name: 引坂理絵
|
6
6
|
color: pink
|
7
7
|
created_date: 2018-02-04 # episode 1
|
8
|
-
|
8
|
+
birthday: 1/20
|
9
9
|
transform_message: |-
|
10
10
|
ミライクリスタル!
|
11
11
|
ハートキラっと!
|
@@ -30,7 +30,7 @@ cure_ange: &cure_ange
|
|
30
30
|
cast_name: 本泉莉奈
|
31
31
|
color: blue
|
32
32
|
created_date: 2018-02-11 # episode 2
|
33
|
-
|
33
|
+
birthday: 6/10
|
34
34
|
transform_message: |-
|
35
35
|
ミライクリスタル!
|
36
36
|
ハートキラっと!
|
data/lib/rubicure/core.rb
CHANGED
@@ -112,7 +112,7 @@ module Rubicure
|
|
112
112
|
date = movie.started_date
|
113
113
|
|
114
114
|
if movie.has_key?(:extra_girls)
|
115
|
-
extra_girls = movie.extra_girls.map {
|
115
|
+
extra_girls = movie.extra_girls.map {|girl_name| Rubicure::Girl.find(girl_name.to_sym) }
|
116
116
|
end
|
117
117
|
end
|
118
118
|
|
@@ -147,7 +147,7 @@ module Rubicure
|
|
147
147
|
@all_girls.uniq!(&:human_name)
|
148
148
|
end
|
149
149
|
|
150
|
-
@all_girls.select {
|
150
|
+
@all_girls.select {|girl| girl.created_date && girl.created_date <= date }
|
151
151
|
end
|
152
152
|
|
153
153
|
alias_method :all, :all_girls
|
@@ -164,10 +164,11 @@ module Rubicure
|
|
164
164
|
# #=> ["キュアフローラ", "キュアマーメイド", "キュアトゥインクル", "キュアスカーレット", "キュアミラクル", "キュアマジカル", "キュアフェリーチェ", "キュアホイップ", "キュアカスタード", "キュアジェラート", "キュアマカロン", "キュアショコラ"]
|
165
165
|
def dream_stars
|
166
166
|
return @dream_stars if @dream_stars
|
167
|
+
|
167
168
|
girls = Precure.go_princess.girls + Precure.maho_girls.girls + Precure.a_la_mode.girls
|
168
169
|
|
169
170
|
dream_stars_date = Rubicure::Movie.find(:dream_stars).started_date
|
170
|
-
@dream_stars = girls.select {
|
171
|
+
@dream_stars = girls.select {|girl| girl.created_date && girl.created_date <= dream_stars_date }
|
171
172
|
|
172
173
|
@dream_stars
|
173
174
|
end
|
@@ -184,10 +185,11 @@ module Rubicure
|
|
184
185
|
# #=> ["キュアミラクル", "キュアマジカル", "キュアフェリーチェ", "キュアホイップ", "キュアカスタード", "キュアジェラート", "キュアマカロン", "キュアショコラ", "キュアパルフェ", "キュアエール", "キュアアンジュ", "キュアエトワール"]
|
185
186
|
def super_stars
|
186
187
|
return @super_stars if @super_stars
|
188
|
+
|
187
189
|
girls = Precure.maho_girls.girls + Precure.a_la_mode.girls + Precure.hugtto.girls
|
188
190
|
|
189
191
|
super_stars_date = Rubicure::Movie.find(:super_stars).started_date
|
190
|
-
@super_stars = girls.select {
|
192
|
+
@super_stars = girls.select {|girl| girl.created_date && girl.created_date <= super_stars_date }
|
191
193
|
|
192
194
|
@super_stars
|
193
195
|
end
|
data/lib/rubicure/girl.rb
CHANGED
@@ -73,6 +73,7 @@ module Rubicure
|
|
73
73
|
def transform!(style = nil)
|
74
74
|
if style
|
75
75
|
raise "Unknown style: #{style}" unless has_transform_style?(style)
|
76
|
+
|
76
77
|
@current_transform_style = style
|
77
78
|
end
|
78
79
|
|
@@ -181,7 +182,7 @@ module Rubicure
|
|
181
182
|
@cache ||= {}
|
182
183
|
unless @cache[girl_name]
|
183
184
|
girl_config = config[girl_name] || {}
|
184
|
-
@cache[girl_name] = Rubicure::Girl[girl_config].tap {
|
185
|
+
@cache[girl_name] = Rubicure::Girl[girl_config].tap {|girl| girl.io = $stdout }
|
185
186
|
end
|
186
187
|
|
187
188
|
@cache[girl_name]
|
@@ -195,7 +196,7 @@ module Rubicure
|
|
195
196
|
# @return [Array<Symbol>]
|
196
197
|
def uniq_names
|
197
198
|
config.each_with_object([]) do |(name, girl), uniq_names|
|
198
|
-
uniq_names << name unless uniq_names.any? {
|
199
|
+
uniq_names << name unless uniq_names.any? {|uniq_name| config[uniq_name][:precure_name] == girl[:precure_name] }
|
199
200
|
end
|
200
201
|
end
|
201
202
|
|
@@ -228,7 +229,7 @@ module Rubicure
|
|
228
229
|
# @return [Array<Symbol>]
|
229
230
|
def colors
|
230
231
|
unless @colors
|
231
|
-
@colors = config.values.each_with_object([]) {
|
232
|
+
@colors = config.values.each_with_object([]) {|girl, colors| colors << girl[:color].to_sym }.uniq.sort
|
232
233
|
end
|
233
234
|
@colors
|
234
235
|
end
|
@@ -244,6 +245,7 @@ module Rubicure
|
|
244
245
|
|
245
246
|
def has_transform_style?(style)
|
246
247
|
return false unless respond_to?(:transform_styles)
|
248
|
+
|
247
249
|
transform_styles.keys.map(&:to_sym).include?(style.to_sym)
|
248
250
|
end
|
249
251
|
|
data/lib/rubicure/movie.rb
CHANGED
@@ -15,7 +15,7 @@ module Rubicure
|
|
15
15
|
def uniq_names
|
16
16
|
uniq_names = []
|
17
17
|
config.each do |name, series|
|
18
|
-
uniq_names << name unless uniq_names.any? {
|
18
|
+
uniq_names << name unless uniq_names.any? {|uniq_name| config[uniq_name][:title] == series[:title] }
|
19
19
|
end
|
20
20
|
uniq_names
|
21
21
|
end
|
@@ -50,7 +50,7 @@ module Rubicure
|
|
50
50
|
@cache ||= {}
|
51
51
|
unless @cache[movie_name]
|
52
52
|
movie_config = config[movie_name] || {}
|
53
|
-
movie_config.reject! {
|
53
|
+
movie_config.reject! {|_k, v| v.nil? }
|
54
54
|
|
55
55
|
@cache[movie_name] = Rubicure::Movie[movie_config]
|
56
56
|
end
|
data/lib/rubicure/series.rb
CHANGED
@@ -81,7 +81,7 @@ module Rubicure
|
|
81
81
|
def uniq_names
|
82
82
|
uniq_names = []
|
83
83
|
config.each do |name, series|
|
84
|
-
uniq_names << name unless uniq_names.any? {
|
84
|
+
uniq_names << name unless uniq_names.any? {|uniq_name| config[uniq_name][:title] == series[:title] }
|
85
85
|
end
|
86
86
|
uniq_names
|
87
87
|
end
|
@@ -116,7 +116,7 @@ module Rubicure
|
|
116
116
|
@cache ||= {}
|
117
117
|
unless @cache[series_name]
|
118
118
|
series_config = config[series_name] || {}
|
119
|
-
series_config.reject! {
|
119
|
+
series_config.reject! {|_k, v| v.nil? }
|
120
120
|
|
121
121
|
@cache[series_name] = Rubicure::Series[series_config]
|
122
122
|
end
|
data/lib/rubicure/version.rb
CHANGED
data/rubicure.gemspec
CHANGED
@@ -1,4 +1,4 @@
|
|
1
|
-
lib = File.expand_path("
|
1
|
+
lib = File.expand_path("lib", __dir__)
|
2
2
|
$LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
|
3
3
|
require "rubicure/version"
|
4
4
|
|
@@ -17,10 +17,10 @@ Gem::Specification.new do |spec|
|
|
17
17
|
spec.files = `git ls-files`.split($INPUT_RECORD_SEPARATOR)
|
18
18
|
|
19
19
|
%w[examples/].each do |exclude_dir|
|
20
|
-
spec.files.reject! {
|
20
|
+
spec.files.reject! {|filename| filename.start_with?(exclude_dir) }
|
21
21
|
end
|
22
22
|
|
23
|
-
spec.executables = spec.files.grep(%r{^bin/}) {
|
23
|
+
spec.executables = spec.files.grep(%r{^bin/}) {|f| File.basename(f) }
|
24
24
|
spec.test_files = spec.files.grep(%r{^(test|spec|features)/})
|
25
25
|
spec.require_paths = ["lib"]
|
26
26
|
|
@@ -32,15 +32,15 @@ Gem::Specification.new do |spec|
|
|
32
32
|
spec.add_development_dependency "codeclimate-test-reporter", "~> 1.0.0"
|
33
33
|
spec.add_development_dependency "coveralls"
|
34
34
|
spec.add_development_dependency "delorean"
|
35
|
-
spec.add_development_dependency "onkcop", "0.
|
35
|
+
spec.add_development_dependency "onkcop", "0.53.0.0"
|
36
36
|
spec.add_development_dependency "pry-byebug"
|
37
37
|
spec.add_development_dependency "rake"
|
38
38
|
spec.add_development_dependency "rspec"
|
39
39
|
spec.add_development_dependency "rspec-collection_matchers"
|
40
40
|
spec.add_development_dependency "rspec-its"
|
41
41
|
spec.add_development_dependency "rspec-parameterized", ">= 0.3.2"
|
42
|
-
spec.add_development_dependency "rubocop", "0.
|
43
|
-
spec.add_development_dependency "rubocop-rspec", "1.
|
42
|
+
spec.add_development_dependency "rubocop", "0.53.0"
|
43
|
+
spec.add_development_dependency "rubocop-rspec", "1.25.1"
|
44
44
|
spec.add_development_dependency "simplecov"
|
45
45
|
spec.add_development_dependency "yard"
|
46
46
|
end
|
data/spec/rubicure/core_spec.rb
CHANGED
@@ -29,7 +29,7 @@ describe Rubicure::Core do
|
|
29
29
|
end
|
30
30
|
end
|
31
31
|
|
32
|
-
it { expect {
|
32
|
+
it { expect {|b| instance.each_with_series(&b) }.to yield_successive_args(*@expected_series) }
|
33
33
|
end
|
34
34
|
|
35
35
|
describe "#all_stars" do
|
@@ -136,7 +136,7 @@ describe Rubicure::Series do
|
|
136
136
|
let(:series) { Rubicure::Series.find(series_name) }
|
137
137
|
let(:series_name) { :splash_star }
|
138
138
|
|
139
|
-
it { expect {
|
139
|
+
it { expect {|b| series.each(&b) }.to yield_successive_args(Rubicure::Girl, Rubicure::Girl) }
|
140
140
|
end
|
141
141
|
|
142
142
|
describe "#to_json" do
|
data/spec/spec_helper.rb
CHANGED
@@ -27,7 +27,7 @@ if ENV["CI"]
|
|
27
27
|
end
|
28
28
|
end
|
29
29
|
|
30
|
-
$LOAD_PATH.unshift File.expand_path("
|
30
|
+
$LOAD_PATH.unshift File.expand_path("../lib", __dir__)
|
31
31
|
require "rubicure"
|
32
32
|
require "rspec"
|
33
33
|
require "rspec-parameterized"
|
@@ -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["#{__dir__}/support/**/*.rb"].each {
|
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
|
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.1.
|
4
|
+
version: 1.1.3
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- sue445
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2018-
|
11
|
+
date: 2018-05-27 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: activesupport
|
@@ -114,14 +114,14 @@ dependencies:
|
|
114
114
|
requirements:
|
115
115
|
- - '='
|
116
116
|
- !ruby/object:Gem::Version
|
117
|
-
version: 0.
|
117
|
+
version: 0.53.0.0
|
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.53.0.0
|
125
125
|
- !ruby/object:Gem::Dependency
|
126
126
|
name: pry-byebug
|
127
127
|
requirement: !ruby/object:Gem::Requirement
|
@@ -212,28 +212,28 @@ dependencies:
|
|
212
212
|
requirements:
|
213
213
|
- - '='
|
214
214
|
- !ruby/object:Gem::Version
|
215
|
-
version: 0.
|
215
|
+
version: 0.53.0
|
216
216
|
type: :development
|
217
217
|
prerelease: false
|
218
218
|
version_requirements: !ruby/object:Gem::Requirement
|
219
219
|
requirements:
|
220
220
|
- - '='
|
221
221
|
- !ruby/object:Gem::Version
|
222
|
-
version: 0.
|
222
|
+
version: 0.53.0
|
223
223
|
- !ruby/object:Gem::Dependency
|
224
224
|
name: rubocop-rspec
|
225
225
|
requirement: !ruby/object:Gem::Requirement
|
226
226
|
requirements:
|
227
227
|
- - '='
|
228
228
|
- !ruby/object:Gem::Version
|
229
|
-
version: 1.
|
229
|
+
version: 1.25.1
|
230
230
|
type: :development
|
231
231
|
prerelease: false
|
232
232
|
version_requirements: !ruby/object:Gem::Requirement
|
233
233
|
requirements:
|
234
234
|
- - '='
|
235
235
|
- !ruby/object:Gem::Version
|
236
|
-
version: 1.
|
236
|
+
version: 1.25.1
|
237
237
|
- !ruby/object:Gem::Dependency
|
238
238
|
name: simplecov
|
239
239
|
requirement: !ruby/object:Gem::Requirement
|