cureutils 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: d5e393b752e1e939c5161fcbc1de1ce23c2efa21
4
- data.tar.gz: c24bd33b230b22367c667c2766141eb884a508de
3
+ metadata.gz: 2c173be4fafce993b27b8e16178a77fd7dd5c3e4
4
+ data.tar.gz: e10b53f59a51aad93ada85b0e4dfd3973cd3b1e8
5
5
  SHA512:
6
- metadata.gz: b5bf7d46b18cd67ec3d91cb9d00c84859c90ca4493067d2f4311c7f6525befb30590800134ae983e990ecb439bd8e700bb15a4f44d9faa5deabd8ad0687b64a6
7
- data.tar.gz: 606ad7edff5e687551f739f07a9fd9dcc7ef83dde6655435050fa1116a3b078744b711cc04f23d42775902a287a6d727ae13f227f536497aa2220af6758e6a12
6
+ metadata.gz: 84e81a6effc0c2c4e79c55e9ab575bf40723cc58e84612c51c7b3f825f6c4b616904950e770d846e87901ec4ce6e85b9a395ac2180b15429c35c14db3e30710e
7
+ data.tar.gz: 19f022dd326707e9e087ea5753eac5184ea20832fdb220fd405550b313946d9693eb1d6bc1de7d12de0bbf6e9d505fcabcff5df353f01435305b821b5e4a1a65
@@ -210,7 +210,10 @@ module Cureutils
210
210
  br_ex = br_flg ? '' : '?:'
211
211
  %w(girl_name human_name precure_name cast_name color).each do |attr|
212
212
  expression = '\[:' + attr + ':\]'
213
- precures_ex = cure_list(attr.to_sym).join('|')
213
+ precures_ex = cure_list(attr.to_sym).each do |elem_str|
214
+ # Escape for cure princes.
215
+ elem_str.gsub(/\(/, '\(').gsub(/\)/, '\)')
216
+ end.join('|')
214
217
  replaced = "(#{br_ex}#{precures_ex})"
215
218
  this_regex.gsub!(/#{expression}/, replaced)
216
219
  end
@@ -2,7 +2,7 @@ module Cureutils
2
2
  class Version
3
3
  MAJOR = 0
4
4
  MINOR = 1
5
- PATCH = 1
5
+ PATCH = 2
6
6
  PRE = nil
7
7
 
8
8
  class << self
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: cureutils
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
  - Yamada, Yasuhiro
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2016-06-17 00:00:00.000000000 Z
11
+ date: 2016-06-18 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler