rubicure 0.1.1 → 0.1.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
  SHA1:
3
- metadata.gz: cf32199337ae39e5a691d16fb165bb4d88fec71d
4
- data.tar.gz: 57f38eed7ba36fe1a26b0e2135b7215ec3ec9304
3
+ metadata.gz: ef10e2235312942d845c858110d23a9e55240e8b
4
+ data.tar.gz: 8d9154bc2d521f5d1921893f294c05796c2f3566
5
5
  SHA512:
6
- metadata.gz: cd248213618b520cdee06490265d162dc76e091259dae2abc7707db7b0504d2f3bd930a4fa34c997b7a57b56a204d966d6120942bb3dfd982e710af90b08cc2f
7
- data.tar.gz: c5575d0b6a7f35232ab14fda179f5e334413de79ff3aaa2244ed2c4e1ae26b4f486d7048a46eaff8303047eefbed77529cdaf7d126c1edce3c93d16cb82c1f6f
6
+ metadata.gz: d371d0eb2790dbbed34e1ac3fffc8ae107a63944ca3d3d7344a8d81f4c932d22f544bf55c50328e228157156b65272bf09814dd387f90305b15fb19afb695723
7
+ data.tar.gz: 46dad067f4002f2a316621699db3c2c4955f3f4b5be1450d515eadff6ec2e7b8381d8a2dd7cba69a0a81972ff14b4a08835d54fedfd2b66d820976be4fb6626f
data/.travis.yml CHANGED
@@ -1,7 +1,9 @@
1
1
  language: ruby
2
2
  rvm:
3
- - 2.0.0
4
- - 2.1.2
3
+ - 2.0
4
+ - 2.1
5
+ - 2.2
6
+ - ruby-head
5
7
  bundler_args: --jobs=2
6
8
  script: CODECLIMATE_REPO_TOKEN=8e9db6ee5f3818e87287a6393086c2ccb9b1b83106c5bfb972211abefd2fe162 bundle exec rspec --tag category:verbose && bundle exec rspec
7
9
  branches:
@@ -9,3 +11,7 @@ branches:
9
11
  - master
10
12
  notifications:
11
13
  email: false
14
+ matrix:
15
+ allow_failures:
16
+ - rvm: 2.2
17
+ - rvm: ruby-head
data/CHANGELOG.md CHANGED
@@ -1,11 +1,18 @@
1
1
  ## master
2
- [full changelog](http://github.com/sue445/rubicure/compare/v0.1.1...master)
2
+ [full changelog](http://github.com/sue445/rubicure/compare/v0.1.2...master)
3
+
4
+ ## v0.1.2
5
+ [full changelog](http://github.com/sue445/rubicure/compare/v0.1.1...v0.1.2)
6
+
7
+ * Support ruby 2.2.0-preview1
8
+ * Impl Series#each_with_girls
9
+ * https://github.com/sue445/rubicure/pull/47
3
10
 
4
11
  ## v0.1.1
5
12
  [full changelog](http://github.com/sue445/rubicure/compare/v0.1.0...v0.1.1)
6
13
 
7
14
  * specific transform
8
- * https://github.com/sue445/rubicure/pull/36
15
+ * https://github.com/sue445/rubicure/pull/36 (thx @zonuexe)
9
16
  * Add `Cure.peace.pikarin_janken` (singleton method)
10
17
  * https://github.com/sue445/rubicure/pull/39 (thx @zonuexe)
11
18
 
data/README.md CHANGED
@@ -17,6 +17,7 @@ Inspired by [Acme::PrettyCure](http://perl-users.jp/articles/advent-calendar/201
17
17
  ## Requirements
18
18
 
19
19
  * ruby >= 2.0.0
20
+ * more: [.travis.yml](.travis.yml)
20
21
 
21
22
  ## Installation
22
23
 
@@ -412,6 +413,18 @@ Cure.peace.janken
412
413
  § ruby -rubicure -e'puts Shiny.luminous.transform_message'
413
414
  ```
414
415
 
416
+ ### Enumerable
417
+ ```ruby
418
+ Precure.map(&:title)
419
+ => ["ふたりはプリキュア", "ふたりはプリキュア Max Heart", "ふたりはプリキュア Splash Star", "Yes! プリキュア5", "Yes! プリキュア5 Go Go!", "フレッシュプリキュア!", "ハートキャッチプリキュア!", "スイートプリキュア♪", "スマイルプリキュア!", "ドキドキ!プリキュア", "ハピネスチャージプリキュア!"]
420
+
421
+ Precure.happiness_charge.map(&:precure_name)
422
+ => ["キュアラブリー", "キュアプリンセス", "キュアハニー", "キュアフォーチュン"]
423
+
424
+ Precure.map{|series| series.map(&:precure_name) }
425
+ => [["キュアブラック", "キュアホワイト"], ["キュアブラック", "キュアホワイト", "シャイニールミナス"], ["キュアブルーム", "キュアイーグレット"], ["キュアドリーム", "キュアルージュ", "キュアレモネード", "キュアミント", "キュアアクア"], ["キュアドリーム", "キュアルージュ", "キュアレモネード", "キュアミント", "キュアアクア", "ミルキィローズ"], ["キュアピーチ", "キュアベリー", "キュアパイン", "キュアパッション"], ["キュアブロッサム", "キュアマリン", "キュアサンシャイン", "キュアムーンライト"], ["キュアメロディ", "キュアリズム", "キュアビート", "キュアミューズ"], ["キュアハッピー", "キュアサニー", "キュアピース", "キュアマーチ", "キュアビューティ"], ["キュアハート", "キュアダイヤモンド", "キュアロゼッタ", "キュアソード", "キュアエース"], ["キュアラブリー", "キュアプリンセス", "キュアハニー", "キュアフォーチュン"]]
426
+ ```
427
+
415
428
  ## More reference
416
429
  http://rubydoc.info/gems/rubicure/frames
417
430
 
data/config/girls.yml CHANGED
@@ -167,6 +167,7 @@ cure_dream: &cure_dream
167
167
  extra_names:
168
168
  attack_messages:
169
169
  - |-
170
+ 夢見る乙女の底力、受けてみなさい!
170
171
  プリキュア!シューティング・スター!
171
172
  transform_calls:
172
173
  - metamorphose
@@ -183,6 +184,7 @@ cure_rouge: &cure_rouge
183
184
  extra_names:
184
185
  attack_messages:
185
186
  - |-
187
+ 純情乙女の炎の力、受けてみなさい!
186
188
  プリキュア!ファイヤー・ストライク!
187
189
  cure_lemonade: &cure_lemonade
188
190
  human_name: 春日野うらら
@@ -197,6 +199,7 @@ cure_lemonade: &cure_lemonade
197
199
  extra_names:
198
200
  attack_messages:
199
201
  - |-
202
+ 輝く乙女のはじける力、受けてみなさい!
200
203
  プリキュア!プリズム・チェーン!
201
204
  transform_calls:
202
205
  - metamorphose
@@ -213,6 +216,7 @@ cure_mint: &cure_mint
213
216
  extra_names:
214
217
  attack_messages:
215
218
  - |-
219
+ 大地を揺るがす乙女の怒り、受けてみなさい!
216
220
  プリキュア!エメラルド・ソーサー!
217
221
  transform_calls:
218
222
  - metamorphose
@@ -229,6 +233,7 @@ cure_aqua: &cure_aqua
229
233
  extra_names:
230
234
  attack_messages:
231
235
  - |-
236
+ 岩をも砕く乙女の激流、受けてみなさい!
232
237
  プリキュア!サファイヤ・アロー!
233
238
  transform_calls:
234
239
  - metamorphose
@@ -4,6 +4,7 @@ module Rubicure
4
4
  class Series < Hash
5
5
  include Hashie::Extensions::MethodAccess
6
6
  include Rubicure::Concerns::Util
7
+ include Enumerable
7
8
 
8
9
  @@cache = {}
9
10
  @@config = nil
@@ -51,6 +52,11 @@ module Rubicure
51
52
  @girls
52
53
  end
53
54
 
55
+ def each_with_girls
56
+ girls.each { |girl| yield girl }
57
+ end
58
+ alias :each :each_with_girls
59
+
54
60
  # @return [Array<Symbol>]
55
61
  def self.names
56
62
  config.keys
@@ -1,3 +1,3 @@
1
1
  module Rubicure
2
- VERSION = "0.1.1"
2
+ VERSION = "0.1.2"
3
3
  end
data/rubicure.gemspec CHANGED
@@ -31,7 +31,10 @@ Gem::Specification.new do |spec|
31
31
  spec.add_development_dependency "rspec", "~> 3.0.0"
32
32
  spec.add_development_dependency "rspec-collection_matchers", "~> 1.0.0"
33
33
  spec.add_development_dependency "rspec-its", "~> 1.0.1"
34
- spec.add_development_dependency "rspec-parameterized", "~> 0.1.1"
35
- spec.add_development_dependency "rubocop"
34
+ spec.add_development_dependency "rspec-parameterized", "~> 0.1.2"
35
+ spec.add_development_dependency "rubocop", "~> 0.26.1"
36
36
  spec.add_development_dependency "yard"
37
+
38
+ # for ruby 2.2.0-preview1
39
+ spec.add_development_dependency "parser", "~> 2.2.0.pre4"
37
40
  end
data/spec/series_spec.rb CHANGED
@@ -122,4 +122,12 @@ describe Rubicure::Series do
122
122
  end
123
123
  end
124
124
 
125
+ describe "#each_with_girls" do
126
+ subject{ series.each_with_girls }
127
+
128
+ let(:series) { Rubicure::Series.find(series_name) }
129
+ let(:series_name){ :splash_star }
130
+
131
+ it { expect { |b| series.each_with_girls(&b) }.to yield_successive_args(Rubicure::Girl, Rubicure::Girl) }
132
+ end
125
133
  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: 0.1.1
4
+ version: 0.1.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - sue445
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2014-08-30 00:00:00.000000000 Z
11
+ date: 2014-09-21 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: activesupport
@@ -156,28 +156,28 @@ dependencies:
156
156
  requirements:
157
157
  - - "~>"
158
158
  - !ruby/object:Gem::Version
159
- version: 0.1.1
159
+ version: 0.1.2
160
160
  type: :development
161
161
  prerelease: false
162
162
  version_requirements: !ruby/object:Gem::Requirement
163
163
  requirements:
164
164
  - - "~>"
165
165
  - !ruby/object:Gem::Version
166
- version: 0.1.1
166
+ version: 0.1.2
167
167
  - !ruby/object:Gem::Dependency
168
168
  name: rubocop
169
169
  requirement: !ruby/object:Gem::Requirement
170
170
  requirements:
171
- - - ">="
171
+ - - "~>"
172
172
  - !ruby/object:Gem::Version
173
- version: '0'
173
+ version: 0.26.1
174
174
  type: :development
175
175
  prerelease: false
176
176
  version_requirements: !ruby/object:Gem::Requirement
177
177
  requirements:
178
- - - ">="
178
+ - - "~>"
179
179
  - !ruby/object:Gem::Version
180
- version: '0'
180
+ version: 0.26.1
181
181
  - !ruby/object:Gem::Dependency
182
182
  name: yard
183
183
  requirement: !ruby/object:Gem::Requirement
@@ -192,6 +192,20 @@ dependencies:
192
192
  - - ">="
193
193
  - !ruby/object:Gem::Version
194
194
  version: '0'
195
+ - !ruby/object:Gem::Dependency
196
+ name: parser
197
+ requirement: !ruby/object:Gem::Requirement
198
+ requirements:
199
+ - - "~>"
200
+ - !ruby/object:Gem::Version
201
+ version: 2.2.0.pre4
202
+ type: :development
203
+ prerelease: false
204
+ version_requirements: !ruby/object:Gem::Requirement
205
+ requirements:
206
+ - - "~>"
207
+ - !ruby/object:Gem::Version
208
+ version: 2.2.0.pre4
195
209
  description: All about Japanese battle heroine "Pretty Cure (Precure)".
196
210
  email:
197
211
  - sue445@sue445.net