rubicure 0.4.2 → 0.4.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/.travis.yml +1 -0
- data/CHANGELOG.md +7 -1
- data/README.md +20 -2
- data/config/girls/movie.yml +18 -0
- data/config/movies.yml +6 -0
- data/lib/rubicure/concerns/util.rb +5 -1
- data/lib/rubicure/core.rb +13 -5
- data/lib/rubicure/version.rb +1 -1
- data/spec/core_spec.rb +25 -24
- metadata +2 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 237be428fcddb635314b4d56f35d97c2bf4cd7e2
|
4
|
+
data.tar.gz: 04396b1a1ccc18742ff9d00d1b413401c56d3b14
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 07bb16c28977b32f3ba0704ddb6131d9b69d435011f6b0d619cf9baf5c1cec366f1802858a1ae109b1f06b508e4ad86b52a631cd359235b715c8a46c2149a1c8
|
7
|
+
data.tar.gz: 77a07413c1643847542ce9031248116ce1a0b4af55b05bef89aa44e1ce3ede1ed0c1b78a9dbfcdb40fdb04fc5a21bc8e9dfa4a1a61c910484d003216718b6f76
|
data/.travis.yml
CHANGED
data/CHANGELOG.md
CHANGED
@@ -1,5 +1,11 @@
|
|
1
1
|
## master
|
2
|
-
[full changelog](http://github.com/sue445/rubicure/compare/v0.4.
|
2
|
+
[full changelog](http://github.com/sue445/rubicure/compare/v0.4.3...master)
|
3
|
+
|
4
|
+
## v0.4.3
|
5
|
+
[full changelog](http://github.com/sue445/rubicure/compare/v0.4.2...v0.4.3)
|
6
|
+
|
7
|
+
* Add cure echo
|
8
|
+
* https://github.com/sue445/rubicure/pull/102
|
3
9
|
|
4
10
|
## v0.4.2
|
5
11
|
[full changelog](http://github.com/sue445/rubicure/compare/v0.4.1...v0.4.2)
|
data/README.md
CHANGED
@@ -390,18 +390,36 @@ Precure.all_stars.map(&:precure_name)
|
|
390
390
|
|
391
391
|
Precure.all_stars("2013-10-26").count
|
392
392
|
#=> 33
|
393
|
+
|
393
394
|
Precure.all_stars(:dx).count
|
394
395
|
#=> 14
|
396
|
+
|
395
397
|
Precure.all_stars(:dx2).count
|
396
398
|
#=> 17
|
399
|
+
|
397
400
|
Precure.all_stars(:dx3).count
|
398
401
|
#=> 21
|
402
|
+
|
399
403
|
Precure.all_stars(:new_stage).count
|
400
|
-
#=>
|
404
|
+
#=> 29
|
405
|
+
Precure.all_stars(:new_stage).include?(Cure.echo)
|
406
|
+
#=> true
|
407
|
+
|
401
408
|
Precure.all_stars(:new_stage2).count
|
402
409
|
#=> 32
|
410
|
+
|
403
411
|
Precure.all_stars(:new_stage3).count
|
404
|
-
#=>
|
412
|
+
#=> 37
|
413
|
+
Precure.all_stars(:new_stage3).include?(Cure.echo)
|
414
|
+
#=> true
|
415
|
+
|
416
|
+
Precure.all_stars(:spring_carnival).count
|
417
|
+
#=> 40
|
418
|
+
|
419
|
+
Precure.all_stars(:sing_together_miracle_magic).count
|
420
|
+
#=> 44
|
421
|
+
Precure.all_stars(:sing_together_miracle_magic).include?(Cure.echo)
|
422
|
+
#=> true
|
405
423
|
```
|
406
424
|
|
407
425
|
and [more aliases!](config/movies.yml)
|
@@ -0,0 +1,18 @@
|
|
1
|
+
cure_echo: &cure_echo
|
2
|
+
girl_name: cure_echo
|
3
|
+
human_name: 坂上あゆみ
|
4
|
+
precure_name: キュアエコー
|
5
|
+
cast_name: 能登麻美子
|
6
|
+
created_date:
|
7
|
+
color: white
|
8
|
+
transform_message: |-
|
9
|
+
みんなの思いを守るために
|
10
|
+
心をひとつに!
|
11
|
+
思いよ届け!キュアエコー!
|
12
|
+
extra_names:
|
13
|
+
attack_messages:
|
14
|
+
- |-
|
15
|
+
世界に響け、みんなの思い!
|
16
|
+
プリキュア・ハートフルエコー!
|
17
|
+
echo:
|
18
|
+
<<: *cure_echo
|
data/config/movies.yml
CHANGED
@@ -16,6 +16,8 @@ dx3: &dx3
|
|
16
16
|
ns1: &ns1
|
17
17
|
title: 映画 プリキュアオールスターズNewStage みらいのともだち
|
18
18
|
started_date: 2012-03-17
|
19
|
+
extra_girls:
|
20
|
+
- cure_echo
|
19
21
|
ns:
|
20
22
|
<<: *ns1
|
21
23
|
new_stage:
|
@@ -32,6 +34,8 @@ new_stage2:
|
|
32
34
|
ns3: &ns3
|
33
35
|
title: 映画 プリキュアオールスターズ NewStage3 永遠のともだち
|
34
36
|
started_date: 2014-03-15
|
37
|
+
extra_girls:
|
38
|
+
- cure_echo
|
35
39
|
new_stage3:
|
36
40
|
<<: *ns3
|
37
41
|
#######################################################
|
@@ -44,5 +48,7 @@ spring_carnival:
|
|
44
48
|
stmm: &stmm
|
45
49
|
title: 映画 プリキュアオールスターズ みんなで歌う 奇跡の魔法!
|
46
50
|
started_date: 2016-03-19
|
51
|
+
extra_girls:
|
52
|
+
- cure_echo
|
47
53
|
sing_together_miracle_magic:
|
48
54
|
<<: *stmm
|
data/lib/rubicure/core.rb
CHANGED
@@ -43,15 +43,23 @@ module Rubicure
|
|
43
43
|
@all_stars.uniq!(&:human_name)
|
44
44
|
end
|
45
45
|
|
46
|
-
|
46
|
+
extra_girls = []
|
47
|
+
|
48
|
+
# args is Time or Date
|
49
|
+
date = to_date(arg)
|
50
|
+
|
51
|
+
unless date
|
52
|
+
# args is movie name
|
47
53
|
movie = Rubicure::Movie.find(arg.to_sym)
|
48
54
|
date = movie.started_date
|
49
|
-
|
50
|
-
|
51
|
-
|
55
|
+
|
56
|
+
if movie.has_key?(:extra_girls)
|
57
|
+
extra_girls = movie.extra_girls.map { |girl_name| Rubicure::Girl.find(girl_name.to_sym) }
|
58
|
+
end
|
52
59
|
end
|
53
60
|
|
54
|
-
@all_stars.select { |girl| girl.created_date && girl.created_date <= date }
|
61
|
+
girls = @all_stars.select { |girl| girl.created_date && girl.created_date <= date }
|
62
|
+
girls + extra_girls
|
55
63
|
end
|
56
64
|
|
57
65
|
# iterate with :unmarked, :max_heart, ...
|
data/lib/rubicure/version.rb
CHANGED
data/spec/core_spec.rb
CHANGED
@@ -70,36 +70,37 @@ EOS
|
|
70
70
|
context "With arg" do
|
71
71
|
subject { instance.all_stars(arg) }
|
72
72
|
|
73
|
-
where(:arg, :expected_count) do
|
73
|
+
where(:arg, :expected_count, :include_cure_echo) do
|
74
74
|
[
|
75
|
-
["2009-03-20", 14],
|
76
|
-
[Date.parse("2010-03-20"), 17],
|
77
|
-
[Time.parse("2011-03-19"), 21],
|
78
|
-
|
79
|
-
[:dx, 14],
|
80
|
-
[:dx1, 14],
|
81
|
-
[:dx2, 17],
|
82
|
-
[:dx3, 21],
|
83
|
-
|
84
|
-
[:ns,
|
85
|
-
[:ns1,
|
86
|
-
[:new_stage,
|
87
|
-
[:new_stage1,
|
88
|
-
[:ns2, 32],
|
89
|
-
[:new_stage2, 32],
|
90
|
-
[:ns3,
|
91
|
-
[:new_stage3,
|
92
|
-
|
93
|
-
[:sc, 40],
|
94
|
-
[:spring_carnival, 40],
|
95
|
-
|
96
|
-
[:stmm,
|
97
|
-
[:sing_together_miracle_magic,
|
75
|
+
["2009-03-20", 14, false],
|
76
|
+
[Date.parse("2010-03-20"), 17, false],
|
77
|
+
[Time.parse("2011-03-19"), 21, false],
|
78
|
+
|
79
|
+
[:dx, 14, false],
|
80
|
+
[:dx1, 14, false],
|
81
|
+
[:dx2, 17, false],
|
82
|
+
[:dx3, 21, false],
|
83
|
+
|
84
|
+
[:ns, 29, true],
|
85
|
+
[:ns1, 29, true],
|
86
|
+
[:new_stage, 29, true],
|
87
|
+
[:new_stage1, 29, true],
|
88
|
+
[:ns2, 32, false],
|
89
|
+
[:new_stage2, 32, false],
|
90
|
+
[:ns3, 37, true],
|
91
|
+
[:new_stage3, 37, true],
|
92
|
+
|
93
|
+
[:sc, 40, false],
|
94
|
+
[:spring_carnival, 40, false],
|
95
|
+
|
96
|
+
[:stmm, 44, true],
|
97
|
+
[:sing_together_miracle_magic, 44, true],
|
98
98
|
]
|
99
99
|
end
|
100
100
|
|
101
101
|
with_them do
|
102
102
|
its(:count) { should == expected_count }
|
103
|
+
it { expect(subject.include?(Cure.echo)).to be include_cure_echo }
|
103
104
|
end
|
104
105
|
end
|
105
106
|
end
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: rubicure
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.4.
|
4
|
+
version: 0.4.3
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- sue445
|
@@ -254,6 +254,7 @@ files:
|
|
254
254
|
- config/girls/011_happiness_charge.yml
|
255
255
|
- config/girls/012_go_princess.yml
|
256
256
|
- config/girls/013_maho_girls.yml
|
257
|
+
- config/girls/movie.yml
|
257
258
|
- config/movies.yml
|
258
259
|
- config/series.yml
|
259
260
|
- lib/rubicure.rb
|